给采购和销售单据增加重量字段的展示

This commit is contained in:
季圣华
2023-02-09 22:16:23 +08:00
parent d287402f67
commit 1d8c52b5ca

View File

@@ -1130,6 +1130,7 @@
{ title: '税率(%)', dataIndex: 'taxRate'}, { title: '税率(%)', dataIndex: 'taxRate'},
{ title: '税额', dataIndex: 'taxMoney'}, { title: '税额', dataIndex: 'taxMoney'},
{ title: '价税合计', dataIndex: 'taxLastMoney'}, { title: '价税合计', dataIndex: 'taxLastMoney'},
{ title: '重量', dataIndex: 'weight'},
{ title: '备注', dataIndex: 'remark'} { title: '备注', dataIndex: 'remark'}
], ],
purchaseBackColumns: [ purchaseBackColumns: [
@@ -1152,6 +1153,7 @@
{ title: '税率(%)', dataIndex: 'taxRate'}, { title: '税率(%)', dataIndex: 'taxRate'},
{ title: '税额', dataIndex: 'taxMoney'}, { title: '税额', dataIndex: 'taxMoney'},
{ title: '价税合计', dataIndex: 'taxLastMoney'}, { title: '价税合计', dataIndex: 'taxLastMoney'},
{ title: '重量', dataIndex: 'weight'},
{ title: '备注', dataIndex: 'remark'} { title: '备注', dataIndex: 'remark'}
], ],
saleOrderColumns: [ saleOrderColumns: [
@@ -1193,6 +1195,7 @@
{ title: '税率(%)', dataIndex: 'taxRate'}, { title: '税率(%)', dataIndex: 'taxRate'},
{ title: '税额', dataIndex: 'taxMoney'}, { title: '税额', dataIndex: 'taxMoney'},
{ title: '价税合计', dataIndex: 'taxLastMoney'}, { title: '价税合计', dataIndex: 'taxLastMoney'},
{ title: '重量', dataIndex: 'weight'},
{ title: '备注', dataIndex: 'remark'} { title: '备注', dataIndex: 'remark'}
], ],
saleBackColumns: [ saleBackColumns: [
@@ -1215,6 +1218,7 @@
{ title: '税率(%)', dataIndex: 'taxRate'}, { title: '税率(%)', dataIndex: 'taxRate'},
{ title: '税额', dataIndex: 'taxMoney'}, { title: '税额', dataIndex: 'taxMoney'},
{ title: '价税合计', dataIndex: 'taxLastMoney'}, { title: '价税合计', dataIndex: 'taxLastMoney'},
{ title: '重量', dataIndex: 'weight'},
{ title: '备注', dataIndex: 'remark'} { title: '备注', dataIndex: 'remark'}
], ],
otherInColumns: [ otherInColumns: [
@@ -1379,6 +1383,9 @@
if(ds[i].sku) { if(ds[i].sku) {
needAddkeywords.push('sku') needAddkeywords.push('sku')
} }
if(ds[i].weight) {
needAddkeywords.push('weight')
}
} }
if(record.status === '3') { if(record.status === '3') {
//部分采购|部分销售的时候显示全部列 //部分采购|部分销售的时候显示全部列
@@ -1401,7 +1408,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'] let needRemoveKeywords = ['finishNumber','snList','batchNumber','expirationDate','sku','weight']
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