解决单据关联跳转的时候优化金额计算精度的问题(解决单据跳转时计算的bug)

This commit is contained in:
季圣华
2023-02-14 21:09:33 +08:00
parent 5f83ac5bc0
commit a83879c5ac
4 changed files with 16 additions and 4 deletions

View File

@@ -449,7 +449,10 @@
this.materialTable.dataSource = listEx
///给优惠后金额重新赋值
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
let discount = (discountMoney/allTaxLastMoney*100).toFixed(2)-0
let discount = 0
if(allTaxLastMoney!==0) {
discount = (discountMoney / allTaxLastMoney * 100).toFixed(2) - 0
}
let discountLastMoney = (allTaxLastMoney - discountMoney).toFixed(2)-0
let changeAmount = discountLastMoney
if(deposit) {