Commit 8454c5d3 authored by 季圣华's avatar 季圣华
Browse files

使调取订单的时候能展示批号、序列号等字段

parent 1c6640e4
......@@ -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
//给优惠后金额重新赋值
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment