Commit cf55cba2 authored by 神话's avatar 神话
Browse files

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

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