Commit 71b38936 authored by 吴春's avatar 吴春

新增收款财务单据,手续费多次计算了

parent 51746986
......@@ -793,9 +793,13 @@ export default {
let f = parseFloat(this.msg.OriginalFee);
this.msg.Fee = (r*f).toFixed(2);
let allPrice = 0;
// this.msg.detailList.forEach(x=>{ //2019-02-01注释:页面手续费只需要计算一次,多个费用说明,重复计算 BY:W
// allPrice = allPrice+parseFloat(x.bTotalPrice)-parseFloat(this.msg.Fee);
// })
this.msg.detailList.forEach(x=>{
allPrice = allPrice+parseFloat(x.bTotalPrice)-parseFloat(this.msg.Fee);
allPrice = allPrice+parseFloat(x.bTotalPrice);
})
allPrice =allPrice-parseFloat(this.msg.Fee);
this.allPrice = allPrice.toFixed(2);
this.allPriceTo =this.$commonUtils.addCommas(this.allPrice);
this.chinaAllPrice=this.$commonUtils.changeMoneyToChinese(this.allPrice);
......@@ -805,9 +809,14 @@ export default {
let f = parseFloat(this.msg.OriginalFee);
this.msg.Fee = (r*f).toFixed(2);
let allPrice = 0;
// this.msg.detailList.forEach(x=>{ //2019-02-01注释:页面手续费只需要计算一次,多个费用说明,重复计算 BY:W
// allPrice = allPrice+parseFloat(x.bTotalPrice)-parseFloat(this.msg.Fee);
// });
this.msg.detailList.forEach(x=>{
allPrice = allPrice+parseFloat(x.bTotalPrice)-parseFloat(this.msg.Fee);
allPrice = allPrice+parseFloat(x.bTotalPrice);
})
allPrice =allPrice-parseFloat(this.msg.Fee);
this.allPrice = allPrice.toFixed(2);
this.allPriceTo =this.$commonUtils.addCommas(this.allPrice);
this.chinaAllPrice=this.$commonUtils.changeMoneyToChinese(this.allPrice) ;
......
Markdown is supported
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