|
@@ -118,7 +118,8 @@ export default {
|
|
showTableHead: true, // 是否显示表格头部
|
|
showTableHead: true, // 是否显示表格头部
|
|
colspanNums: 13, // 单元格合并列数
|
|
colspanNums: 13, // 单元格合并列数
|
|
hasOutStockOfActive: false,
|
|
hasOutStockOfActive: false,
|
|
- simpleImage: Empty.PRESENTED_IMAGE_SIMPLE // 空图片
|
|
|
|
|
|
+ simpleImage: Empty.PRESENTED_IMAGE_SIMPLE, // 空图片
|
|
|
|
+ showStockCol: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -236,9 +237,12 @@ export default {
|
|
}
|
|
}
|
|
// 审核,需用到库存
|
|
// 审核,需用到库存
|
|
if (this.showStock) {
|
|
if (this.showStock) {
|
|
- this.colspanNums = this.colspanNums + 2
|
|
|
|
|
|
+ this.colspanNums = this.colspanNums + 1
|
|
arr.push({ title: '库存', field: 'stockQty', width: 80, key: 'm', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } })
|
|
arr.push({ title: '库存', field: 'stockQty', width: 80, key: 'm', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } })
|
|
- arr.push({ title: '第三方库存', field: 'stockQty', width: 80, key: 'mm', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } })
|
|
|
|
|
|
+ if (this.showStockCol) {
|
|
|
|
+ this.colspanNums = this.colspanNums + 1
|
|
|
|
+ arr.push({ title: '第三方库存', field: 'stockQty', width: 80, key: 'mm', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.colspanNums = this.colspanNums + 3
|
|
this.colspanNums = this.colspanNums + 3
|
|
arr = arr.concat([
|
|
arr = arr.concat([
|