优化单据列表中的明细行的展示逻辑

This commit is contained in:
jishenghua
2025-05-05 23:07:06 +08:00
parent 268d425a9a
commit ad73e0a2d9

View File

@@ -870,7 +870,7 @@ export const BillListMixin = {
}
//动态替换扩展字段
this.handleChangeOtherField()
//判断序列号、批号、有效期、多属性、重量、仓位货架是否有值
//判断序列号、批号、有效期、多属性、重量、仓位货架、扩展、备注等是否有值
let needAddkeywords = []
for (let i = 0; i < ds.length; i++) {
if(ds[i].snList) {
@@ -897,6 +897,21 @@ export const BillListMixin = {
if(ds[i].mfrs) {
needAddkeywords.push('mfrs')
}
if(ds[i].otherField1) {
needAddkeywords.push('otherField1')
}
if(ds[i].otherField2) {
needAddkeywords.push('otherField2')
}
if(ds[i].otherField3) {
needAddkeywords.push('otherField3')
}
if(ds[i].taxRate) {
needAddkeywords.push('taxRate')
}
if(ds[i].remark) {
needAddkeywords.push('remark')
}
}
let currentCol = []
if(record.status === '3') {
@@ -926,7 +941,8 @@ export const BillListMixin = {
} else {
for(let i=0; i<this.defDetailColumns.length; i++){
//移除列
let needRemoveKeywords = ['finishNumber','snList','batchNumber','expirationDate','sku','weight','position','brand','mfrs']
let needRemoveKeywords = ['finishNumber','snList','batchNumber','expirationDate','sku','weight','position',
'brand','mfrs','otherField1','otherField2','otherField3','taxRate','remark']
if(needRemoveKeywords.indexOf(this.defDetailColumns[i].dataIndex)===-1) {
let info = {}
info.title = this.defDetailColumns[i].title