解决订单转出入库单遇到的小数点问题
This commit is contained in:
@@ -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 @@
|
|||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user