解决零售出库和零售退货多选商品的时候不改变单据金额的bug

This commit is contained in:
季圣华 2022-11-09 22:16:45 +08:00
parent 0c1e2edd88
commit 410f8862d7

View File

@ -370,8 +370,10 @@ export const BillModalMixin = {
mObj.stock = mInfo.stock
mArr.push(mObj)
}
let allPriceTotal = 0
let taxLastMoneyTotal = 0
for (let j = 0; j < mArr.length; j++) {
allPriceTotal += mArr[j].allPrice-0
taxLastMoneyTotal += mArr[j].taxLastMoney-0
//组合和拆分单据给商品类型进行重新赋值
if(j===0) {
@ -381,7 +383,11 @@ export const BillModalMixin = {
}
}
this.materialTable.dataSource = mArr
target.statisticsColumns.taxLastMoney = taxLastMoneyTotal
if(this.prefixNo ==='LSCK' || this.prefixNo ==='LSTH') {
target.statisticsColumns.allPrice = allPriceTotal
} else {
target.statisticsColumns.taxLastMoney = taxLastMoneyTotal
}
that.autoChangePrice(target)
})
} else {