解决订单转出入库单遇到的小数点问题

This commit is contained in:
神话
2022-05-07 18:22:44 +08:00
parent efe6d4fa9b
commit cf55cba2c8
2 changed files with 10 additions and 10 deletions

View File

@@ -412,14 +412,14 @@
let listEx = []
let allTaxLastMoney = 0
for(let j=0; j<list.length; j++){
let info = list[j];
if(info.preNumber) {
let info = list[j]
if(info.finishNumber>0) {
info.operNumber = info.preNumber - info.finishNumber
info.allPrice = info.operNumber * info.unitPrice-0
}
let taxRate = info.taxRate-0
info.taxMoney = (info.allPrice*taxRate/100).toFixed(2)-0
info.taxLastMoney = info.allPrice + info.taxMoney
}
allTaxLastMoney += info.taxLastMoney
listEx.push(info)
this.changeColumnShow(info)

View File

@@ -418,14 +418,14 @@
let listEx = []
let allTaxLastMoney = 0
for(let j=0; j<list.length; j++){
let info = list[j];
if(info.preNumber) {
let info = list[j]
if(info.finishNumber>0) {
info.operNumber = info.preNumber - info.finishNumber
info.allPrice = info.operNumber * info.unitPrice-0
}
let taxRate = info.taxRate-0
info.taxMoney = (info.allPrice*taxRate/100).toFixed(2)-0
info.taxLastMoney = info.allPrice + info.taxMoney
}
allTaxLastMoney += info.taxLastMoney
listEx.push(info)
this.changeColumnShow(info)