Commit 410f8862 authored by 季圣华's avatar 季圣华
Browse files

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

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