|
@@ -22,7 +22,7 @@
|
|
|
ref="table"
|
|
ref="table"
|
|
|
:key="activeName"
|
|
:key="activeName"
|
|
|
:initLoad="false"
|
|
:initLoad="false"
|
|
|
- :columns="newColumns"
|
|
|
|
|
|
|
+ :columns="columns"
|
|
|
:datasource="datasource"
|
|
:datasource="datasource"
|
|
|
row-key="code"
|
|
row-key="code"
|
|
|
:selection.sync="selection"
|
|
:selection.sync="selection"
|
|
@@ -30,7 +30,7 @@
|
|
|
autoAmendPage
|
|
autoAmendPage
|
|
|
:parse-data="parseData"
|
|
:parse-data="parseData"
|
|
|
@columns-change="handleColumnChange"
|
|
@columns-change="handleColumnChange"
|
|
|
- cache-key="productOrder"
|
|
|
|
|
|
|
+ :cache-key="cacheKeyUrl"
|
|
|
>
|
|
>
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
|
<!-- <el-button type="success">新建</el-button> -->
|
|
<!-- <el-button type="success">新建</el-button> -->
|
|
@@ -277,7 +277,7 @@
|
|
|
{ label: '预制计划', value: '3' }
|
|
{ label: '预制计划', value: '3' }
|
|
|
],
|
|
],
|
|
|
selection: [],
|
|
selection: [],
|
|
|
- newColumns: [],
|
|
|
|
|
|
|
+ columns: [],
|
|
|
cacheKeyUrl: '7cc8e5d2-mes-produceOrder',
|
|
cacheKeyUrl: '7cc8e5d2-mes-produceOrder',
|
|
|
columnsVersion: 0,
|
|
columnsVersion: 0,
|
|
|
dispatchVisible: false,
|
|
dispatchVisible: false,
|
|
@@ -397,7 +397,7 @@
|
|
|
}
|
|
}
|
|
|
];
|
|
];
|
|
|
},
|
|
},
|
|
|
- columns() {
|
|
|
|
|
|
|
+ basicColumns() {
|
|
|
const num = this.columnsVersion;
|
|
const num = this.columnsVersion;
|
|
|
const opt = {
|
|
const opt = {
|
|
|
first: [
|
|
first: [
|
|
@@ -706,10 +706,10 @@
|
|
|
tabValue: {
|
|
tabValue: {
|
|
|
handler(newVal) {
|
|
handler(newVal) {
|
|
|
if (newVal === '6') {
|
|
if (newVal === '6') {
|
|
|
- this.newColumns.splice(3, 1);
|
|
|
|
|
|
|
+ this.columns.splice(3, 1);
|
|
|
} else {
|
|
} else {
|
|
|
- if (this.newColumns[3].label !== '生产订单号') {
|
|
|
|
|
- this.newColumns.splice(3, 0, {
|
|
|
|
|
|
|
+ if (this.columns[3].label !== '生产订单号') {
|
|
|
|
|
+ this.columns.splice(3, 0, {
|
|
|
label: '生产订单号',
|
|
label: '生产订单号',
|
|
|
slot: 'apsWorkOrderCode',
|
|
slot: 'apsWorkOrderCode',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
@@ -890,7 +890,7 @@
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- this.newColumns = [...this.columns, ...newRes, ...privateColumn];
|
|
|
|
|
|
|
+ this.columns = [...this.basicColumns, ...newRes, ...privateColumn];
|
|
|
this.getTabColumns();
|
|
this.getTabColumns();
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
});
|
|
});
|