|
|
@@ -18,7 +18,7 @@
|
|
|
ref="table"
|
|
|
:key="activeName"
|
|
|
:initLoad="false"
|
|
|
- :columns="columns"
|
|
|
+ :columns="newColumns"
|
|
|
:datasource="datasource"
|
|
|
row-key="code"
|
|
|
:cache-key="`${activeName}produceOrderTable`"
|
|
|
@@ -159,6 +159,10 @@
|
|
|
cancelCompletion,
|
|
|
updatePriority
|
|
|
} from '@/api/produceOrder/index.js';
|
|
|
+
|
|
|
+ import {
|
|
|
+ fieldModel
|
|
|
+} from '@/api/produceWord/index.js';
|
|
|
import produceOrderSearch from './components/produceOrder-search.vue';
|
|
|
import createDialog from './components/createDialog.vue';
|
|
|
import unpackDialog from './components/unpackDialog.vue';
|
|
|
@@ -203,7 +207,8 @@
|
|
|
{ label: '外销计划', value: '2' },
|
|
|
{ label: '预制计划', value: '3' }
|
|
|
],
|
|
|
- selection: []
|
|
|
+ selection: [],
|
|
|
+ newColumns: []
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -398,16 +403,6 @@
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
|
|
|
- {
|
|
|
- columnKey: 'action',
|
|
|
- label: '操作',
|
|
|
- width: 250,
|
|
|
- align: 'center',
|
|
|
- resizable: false,
|
|
|
- fixed: 'right',
|
|
|
- slot: 'action',
|
|
|
- showOverflowTooltip: true
|
|
|
- }
|
|
|
];
|
|
|
},
|
|
|
|
|
|
@@ -415,9 +410,9 @@
|
|
|
return this.$store.state.user.info.clientEnvironmentId;
|
|
|
}
|
|
|
},
|
|
|
- // created(){
|
|
|
- // console.log('positiveIntegerReg',positiveIntegerReg)
|
|
|
- // },
|
|
|
+ created(){
|
|
|
+ this.getFieldModel();
|
|
|
+ },
|
|
|
methods: {
|
|
|
handlePicking() {
|
|
|
this.$router.push({
|
|
|
@@ -502,6 +497,39 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
+ getFieldModel() {
|
|
|
+ fieldModel({ fieldModel: 't_main_category' }).then((res) => {
|
|
|
+
|
|
|
+ const privateColumn = [
|
|
|
+ {
|
|
|
+ columnKey: 'action',
|
|
|
+ label: '操作',
|
|
|
+ width: 250,
|
|
|
+ align: 'center',
|
|
|
+ resizable: false,
|
|
|
+ fixed: 'right',
|
|
|
+ slot: 'action',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ }
|
|
|
+ ];
|
|
|
+
|
|
|
+ let newRes = res.map((m) => {
|
|
|
+ return {
|
|
|
+ prop: 'extField.' + m.prop,
|
|
|
+ label: m.label,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ };
|
|
|
+ });
|
|
|
+
|
|
|
+ this.newColumns = [...this.columns, ...newRes, ...privateColumn];
|
|
|
+
|
|
|
+ this.$forceUpdate();
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
// 完结与批量完结
|
|
|
toEnd(row) {
|
|
|
if (row) {
|