给单据查看界面增加仓位货架的展示

This commit is contained in:
jishenghua
2024-02-03 15:08:23 +08:00
parent 5ada171a5c
commit 0fa689e4ea

View File

@@ -1198,6 +1198,7 @@
{ title: '单价', dataIndex: 'unitPrice'}, { title: '单价', dataIndex: 'unitPrice'},
{ title: '金额', dataIndex: 'allPrice'}, { title: '金额', dataIndex: 'allPrice'},
{ title: '重量', dataIndex: 'weight'}, { title: '重量', dataIndex: 'weight'},
{ title: '仓位货架', dataIndex: 'position'},
{ title: '备注', dataIndex: 'remark'} { title: '备注', dataIndex: 'remark'}
], ],
retailBackColumns: [ retailBackColumns: [
@@ -1218,6 +1219,7 @@
{ title: '单价', dataIndex: 'unitPrice'}, { title: '单价', dataIndex: 'unitPrice'},
{ title: '金额', dataIndex: 'allPrice'}, { title: '金额', dataIndex: 'allPrice'},
{ title: '重量', dataIndex: 'weight'}, { title: '重量', dataIndex: 'weight'},
{ title: '仓位货架', dataIndex: 'position'},
{ title: '备注', dataIndex: 'remark'} { title: '备注', dataIndex: 'remark'}
], ],
purchaseOrderColumns: [ purchaseOrderColumns: [
@@ -1261,6 +1263,7 @@
{ title: '税额', dataIndex: 'taxMoney'}, { title: '税额', dataIndex: 'taxMoney'},
{ title: '价税合计', dataIndex: 'taxLastMoney'}, { title: '价税合计', dataIndex: 'taxLastMoney'},
{ title: '重量', dataIndex: 'weight'}, { title: '重量', dataIndex: 'weight'},
{ title: '仓位货架', dataIndex: 'position'},
{ title: '备注', dataIndex: 'remark'} { title: '备注', dataIndex: 'remark'}
], ],
purchaseBackColumns: [ purchaseBackColumns: [
@@ -1285,6 +1288,7 @@
{ title: '税额', dataIndex: 'taxMoney'}, { title: '税额', dataIndex: 'taxMoney'},
{ title: '价税合计', dataIndex: 'taxLastMoney'}, { title: '价税合计', dataIndex: 'taxLastMoney'},
{ title: '重量', dataIndex: 'weight'}, { title: '重量', dataIndex: 'weight'},
{ title: '仓位货架', dataIndex: 'position'},
{ title: '备注', dataIndex: 'remark'} { title: '备注', dataIndex: 'remark'}
], ],
saleOrderColumns: [ saleOrderColumns: [
@@ -1328,6 +1332,7 @@
{ title: '税额', dataIndex: 'taxMoney'}, { title: '税额', dataIndex: 'taxMoney'},
{ title: '价税合计', dataIndex: 'taxLastMoney'}, { title: '价税合计', dataIndex: 'taxLastMoney'},
{ title: '重量', dataIndex: 'weight'}, { title: '重量', dataIndex: 'weight'},
{ title: '仓位货架', dataIndex: 'position'},
{ title: '备注', dataIndex: 'remark'} { title: '备注', dataIndex: 'remark'}
], ],
saleBackColumns: [ saleBackColumns: [
@@ -1352,6 +1357,7 @@
{ title: '税额', dataIndex: 'taxMoney'}, { title: '税额', dataIndex: 'taxMoney'},
{ title: '价税合计', dataIndex: 'taxLastMoney'}, { title: '价税合计', dataIndex: 'taxLastMoney'},
{ title: '重量', dataIndex: 'weight'}, { title: '重量', dataIndex: 'weight'},
{ title: '仓位货架', dataIndex: 'position'},
{ title: '备注', dataIndex: 'remark'} { title: '备注', dataIndex: 'remark'}
], ],
otherInColumns: [ otherInColumns: [
@@ -1372,6 +1378,7 @@
{ title: '单价', dataIndex: 'unitPrice'}, { title: '单价', dataIndex: 'unitPrice'},
{ title: '金额', dataIndex: 'allPrice'}, { title: '金额', dataIndex: 'allPrice'},
{ title: '重量', dataIndex: 'weight'}, { title: '重量', dataIndex: 'weight'},
{ title: '仓位货架', dataIndex: 'position'},
{ title: '备注', dataIndex: 'remark'} { title: '备注', dataIndex: 'remark'}
], ],
otherOutColumns: [ otherOutColumns: [
@@ -1392,6 +1399,7 @@
{ title: '单价', dataIndex: 'unitPrice'}, { title: '单价', dataIndex: 'unitPrice'},
{ title: '金额', dataIndex: 'allPrice'}, { title: '金额', dataIndex: 'allPrice'},
{ title: '重量', dataIndex: 'weight'}, { title: '重量', dataIndex: 'weight'},
{ title: '仓位货架', dataIndex: 'position'},
{ title: '备注', dataIndex: 'remark'} { title: '备注', dataIndex: 'remark'}
], ],
allocationOutColumns: [ allocationOutColumns: [
@@ -1410,6 +1418,7 @@
{ title: '单价', dataIndex: 'unitPrice'}, { title: '单价', dataIndex: 'unitPrice'},
{ title: '金额', dataIndex: 'allPrice'}, { title: '金额', dataIndex: 'allPrice'},
{ title: '重量', dataIndex: 'weight'}, { title: '重量', dataIndex: 'weight'},
{ title: '仓位货架', dataIndex: 'position'},
{ title: '备注', dataIndex: 'remark'} { title: '备注', dataIndex: 'remark'}
], ],
assembleColumns: [ assembleColumns: [
@@ -1504,7 +1513,7 @@
} else if (type === '盘点复盘') { } else if (type === '盘点复盘') {
this.defColumns = this.stockCheckReplayColumns this.defColumns = this.stockCheckReplayColumns
} }
//判断序列号、批号、有效期、多属性是否有值 //判断序列号、批号、有效期、多属性、重量、仓位货架是否有值
let needAddkeywords = [] let needAddkeywords = []
for (let i = 0; i < ds.length; i++) { for (let i = 0; i < ds.length; i++) {
if(ds[i].snList) { if(ds[i].snList) {
@@ -1522,6 +1531,9 @@
if(ds[i].weight) { if(ds[i].weight) {
needAddkeywords.push('weight') needAddkeywords.push('weight')
} }
if(ds[i].position) {
needAddkeywords.push('position')
}
} }
if(record.status === '3') { if(record.status === '3') {
//部分采购|部分销售的时候显示全部列 //部分采购|部分销售的时候显示全部列
@@ -1549,7 +1561,7 @@
let currentCol = [] let currentCol = []
for(let i=0; i<this.defColumns.length; i++){ for(let i=0; i<this.defColumns.length; i++){
//移除列 //移除列
let needRemoveKeywords = ['finishNumber','snList','batchNumber','expirationDate','sku','weight'] let needRemoveKeywords = ['finishNumber','snList','batchNumber','expirationDate','sku','weight','position']
if(needRemoveKeywords.indexOf(this.defColumns[i].dataIndex)===-1) { if(needRemoveKeywords.indexOf(this.defColumns[i].dataIndex)===-1) {
let info = {} let info = {}
info.title = this.defColumns[i].title info.title = this.defColumns[i].title