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

This commit is contained in:
季圣华
2023-02-13 22:48:59 +08:00
parent f18e6945a1
commit 0a07c88b19
6 changed files with 12 additions and 12 deletions

View File

@@ -424,7 +424,7 @@
this.$refs.linkBillList.show('其它', '采购订单', '供应商', "1,3")
this.$refs.linkBillList.title = "选择采购订单"
},
linkBillListOk(selectBillDetailRows, linkNumber, organId, discount, deposit, remark) {
linkBillListOk(selectBillDetailRows, linkNumber, organId, discountMoney, deposit, remark) {
this.rowCanEdit = false
this.materialTable.columns[1].type = FormTypes.normal
this.changeFormTypes(this.materialTable.columns, 'preNumber', 1)
@@ -449,7 +449,7 @@
this.materialTable.dataSource = listEx
///给优惠后金额重新赋值
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
let discountMoney = (discount*allTaxLastMoney/100).toFixed(2)-0
let discount = (discountMoney/allTaxLastMoney*100).toFixed(2)-0
let discountLastMoney = (allTaxLastMoney - discountMoney).toFixed(2)-0
let changeAmount = discountLastMoney
if(deposit) {