Commit f1bf7e10 authored by 吴春's avatar 吴春

修改领队用款计划合计领款金额向下取整

parent f895e5c3
...@@ -2359,21 +2359,23 @@ ...@@ -2359,21 +2359,23 @@
isreceive = 1; isreceive = 1;
} }
}); });
console.log("this.CurrencyListMoney",this.CurrencyListMoney);
this.CurrencyListMoney.forEach((cur, i) => { this.CurrencyListMoney.forEach((cur, i) => {
cur.LeaderGetPriceArr.forEach(lead => { cur.LeaderGetPriceArr.forEach(lead => {
var tempMoney = (cur.money * this.comRate - cur.yiLing); var tempMoney = (cur.money * this.comRate - cur.yiLing);
var tempShowPrice = cur.money * this.comRate; var tempShowPrice = cur.money * this.comRate;
//日本 //日本
if (this.myLineId == 14) { if (this.myLineId == 14) {
tempShowPrice = Math.round(tempShowPrice / 10000) * 10000; tempShowPrice = Math.floor(tempShowPrice / 10000) * 10000;
} else { } else {
tempShowPrice = tempShowPrice; tempShowPrice = tempShowPrice;
} }
//未领取,日本线 *0.95 在精确到万 //未领取,日本线 *0.95 在精确到万
if (isreceive == 0) { if (isreceive == 0) {
if (this.myLineId == 14) { if (this.myLineId == 14) {
lead.LeaderGetPriceT = Math.round(tempMoney / 10000) * 10000; lead.LeaderGetPriceT = Math.floor(tempMoney / 10000) * 10000;
} else { } else {
//其它线路可能不精确到"万" //其它线路可能不精确到"万"
lead.LeaderGetPriceT = tempMoney; lead.LeaderGetPriceT = tempMoney;
...@@ -2382,12 +2384,15 @@ ...@@ -2382,12 +2384,15 @@
//领取过,直接用计划金额(精确到万)-已领取的金额 //领取过,直接用计划金额(精确到万)-已领取的金额
if (this.myLineId == 14) { if (this.myLineId == 14) {
lead.LeaderGetPriceT = tempShowPrice - cur.yiLing; lead.LeaderGetPriceT = tempShowPrice - cur.yiLing;
} else { } else {
lead.LeaderGetPriceT = tempShowPrice - cur.yiLing; lead.LeaderGetPriceT = tempShowPrice - cur.yiLing;
} }
} }
lead.ShowTotalPrice = tempShowPrice; lead.ShowTotalPrice = tempShowPrice;
lead.PlanPrice = cur.money * this.comRate; lead.PlanPrice = cur.money * this.comRate;
}); });
}); });
this.nav = nav; this.nav = nav;
......
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