|
@@ -504,6 +504,7 @@
|
|
|
dynamicsColumns: [],
|
|
dynamicsColumns: [],
|
|
|
columnsVersion: 1,
|
|
columnsVersion: 1,
|
|
|
isWarehouseId: 0,
|
|
isWarehouseId: 0,
|
|
|
|
|
+ blockCountColumn: {},
|
|
|
form: {
|
|
form: {
|
|
|
datasource: []
|
|
datasource: []
|
|
|
},
|
|
},
|
|
@@ -527,7 +528,23 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
clientEnvironmentId() {
|
|
clientEnvironmentId() {
|
|
|
- return this.$store.state.user.info.clientEnvironmentId;
|
|
|
|
|
|
|
+ let clientEnvironmentId =
|
|
|
|
|
+ this.$store.state.user.info.clientEnvironmentId;
|
|
|
|
|
+ if (clientEnvironmentId == 3) {
|
|
|
|
|
+ this.blockCountColumn = {
|
|
|
|
|
+ width: 150,
|
|
|
|
|
+ prop: 'blockCount',
|
|
|
|
|
+ label: '发货数量',
|
|
|
|
|
+ slot: 'blockCount',
|
|
|
|
|
+ headerSlot: 'headerBlockCount',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ };
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.blockCountColumn = {
|
|
|
|
|
+ width: 1
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+ return clientEnvironmentId;
|
|
|
},
|
|
},
|
|
|
columns() {
|
|
columns() {
|
|
|
let columnsVersion = this.columnsVersion;
|
|
let columnsVersion = this.columnsVersion;
|
|
@@ -693,15 +710,8 @@
|
|
|
slot: 'measuringUnit',
|
|
slot: 'measuringUnit',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
|
|
+ this.blockCountColumn,
|
|
|
|
|
|
|
|
- // {
|
|
|
|
|
- // width: 120,
|
|
|
|
|
- // prop: 'blockCount',
|
|
|
|
|
- // label: '发货块数',
|
|
|
|
|
- // slot: 'blockCount',
|
|
|
|
|
- // align: 'center',
|
|
|
|
|
- // show: this.clientEnvironmentId == 4
|
|
|
|
|
- // },
|
|
|
|
|
{
|
|
{
|
|
|
width: 120,
|
|
width: 120,
|
|
|
prop: 'singleWeight',
|
|
prop: 'singleWeight',
|