优化单据列表中的明细行的展示逻辑
This commit is contained in:
@@ -870,7 +870,7 @@ export const BillListMixin = {
|
|||||||
}
|
}
|
||||||
//动态替换扩展字段
|
//动态替换扩展字段
|
||||||
this.handleChangeOtherField()
|
this.handleChangeOtherField()
|
||||||
//判断序列号、批号、有效期、多属性、重量、仓位货架是否有值
|
//判断序列号、批号、有效期、多属性、重量、仓位货架、扩展、备注等是否有值
|
||||||
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) {
|
||||||
@@ -897,6 +897,21 @@ export const BillListMixin = {
|
|||||||
if(ds[i].mfrs) {
|
if(ds[i].mfrs) {
|
||||||
needAddkeywords.push('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 = []
|
let currentCol = []
|
||||||
if(record.status === '3') {
|
if(record.status === '3') {
|
||||||
@@ -926,7 +941,8 @@ export const BillListMixin = {
|
|||||||
} else {
|
} else {
|
||||||
for(let i=0; i<this.defDetailColumns.length; i++){
|
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) {
|
if(needRemoveKeywords.indexOf(this.defDetailColumns[i].dataIndex)===-1) {
|
||||||
let info = {}
|
let info = {}
|
||||||
info.title = this.defDetailColumns[i].title
|
info.title = this.defDetailColumns[i].title
|
||||||
|
|||||||
Reference in New Issue
Block a user