使调取订单的时候能展示批号、序列号等字段
This commit is contained in:
@@ -436,6 +436,19 @@ export const BillModalMixin = {
|
||||
taxLastMoney: mInfo.billPrice
|
||||
}
|
||||
},
|
||||
//控制sku、序列号、批号输入框的显示和隐藏状态
|
||||
changeColumnShowOrHide(info) {
|
||||
if(info.sku) {
|
||||
this.changeFormTypes(this.materialTable.columns, 'sku', 1)
|
||||
}
|
||||
if(info.enableSerialNumber === "1") {
|
||||
this.changeFormTypes(this.materialTable.columns, 'snList', 1)
|
||||
}
|
||||
if(info.enableBatchNumber === "1") {
|
||||
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 1)
|
||||
this.changeFormTypes(this.materialTable.columns, 'expirationDate', 1)
|
||||
}
|
||||
},
|
||||
//删除一行或多行的时候触发
|
||||
onDeleted(ids, target) {
|
||||
target.recalcAllStatisticsColumns()
|
||||
|
||||
@@ -348,6 +348,7 @@
|
||||
info.taxMoney = 0
|
||||
info.taxLastMoney = info.allPrice
|
||||
listEx.push(info)
|
||||
this.changeColumnShowOrHide(info)
|
||||
}
|
||||
tab.dataSource = listEx
|
||||
typeof success === 'function' ? success(res) : ''
|
||||
|
||||
@@ -363,6 +363,7 @@
|
||||
info.taxMoney = 0
|
||||
info.taxLastMoney = info.allPrice
|
||||
listEx.push(info)
|
||||
this.changeColumnShowOrHide(info)
|
||||
}
|
||||
tab.dataSource = listEx
|
||||
//给优惠后金额重新赋值
|
||||
|
||||
@@ -359,6 +359,7 @@
|
||||
info.taxMoney = 0
|
||||
info.taxLastMoney = info.allPrice
|
||||
listEx.push(info)
|
||||
this.changeColumnShowOrHide(info)
|
||||
}
|
||||
tab.dataSource = listEx
|
||||
typeof success === 'function' ? success(res) : ''
|
||||
|
||||
@@ -367,6 +367,7 @@
|
||||
info.taxMoney = 0
|
||||
info.taxLastMoney = info.allPrice
|
||||
listEx.push(info)
|
||||
this.changeColumnShowOrHide(info)
|
||||
}
|
||||
tab.dataSource = listEx
|
||||
//给优惠后金额重新赋值
|
||||
|
||||
Reference in New Issue
Block a user