解决组装拆卸单的多选商品的bug
This commit is contained in:
@@ -278,6 +278,12 @@ export const BillModalMixin = {
|
|||||||
let taxLastMoneyTotal = 0
|
let taxLastMoneyTotal = 0
|
||||||
for (let j = 0; j < mArr.length; j++) {
|
for (let j = 0; j < mArr.length; j++) {
|
||||||
taxLastMoneyTotal += mArr[j].taxLastMoney-0
|
taxLastMoneyTotal += mArr[j].taxLastMoney-0
|
||||||
|
//组合和拆分单据给商品类型进行重新赋值
|
||||||
|
if(j===0) {
|
||||||
|
mArr[0].mType = '组合件'
|
||||||
|
} else {
|
||||||
|
mArr[j].mType = '普通子件'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.materialTable.dataSource = mArr
|
this.materialTable.dataSource = mArr
|
||||||
target.statisticsColumns.taxLastMoney = taxLastMoneyTotal
|
target.statisticsColumns.taxLastMoney = taxLastMoneyTotal
|
||||||
|
|||||||
Reference in New Issue
Block a user