Commit c6f87f4e authored by huangyuanyuan's avatar huangyuanyuan

update

parent 74307130
...@@ -1313,12 +1313,14 @@ export default { ...@@ -1313,12 +1313,14 @@ export default {
allMoney+= x.allMoney; allMoney+= x.allMoney;
// x.allMoney=(Math.round(x.allMoney * 100)) / 100; // x.allMoney=(Math.round(x.allMoney * 100)) / 100;
}) })
if(allMoney.toString().split(".")[1]){
let num=allMoney.toString().split(".")[1].length; let num=allMoney.toString().split(".")[1].length;
if(num==3){ if(num==3){
allMoney=`${allMoney}1`; allMoney=`${allMoney}1`;
} }
}
this.allMoney = Math.round(allMoney * 100) / 100; this.allMoney = Math.round(allMoney * 100) / 100;
console.log(" this.allMoney", this.allMoney)
}, },
Financial_post_GetFinancLogList(){ // 获取单据日志 Financial_post_GetFinancLogList(){ // 获取单据日志
if(this.checkboxShow) return if(this.checkboxShow) return
...@@ -1515,10 +1517,13 @@ export default { ...@@ -1515,10 +1517,13 @@ export default {
Money = this.payMsgList[index].OriginalMoney; Money = this.payMsgList[index].OriginalMoney;
Rate=Rate*100; Rate=Rate*100;
let newmoney=Money*Rate+fee; let newmoney=Money*Rate+fee;
if(newmoney.toString().split(".")[1]){
let num=newmoney.toString().split(".")[1].length; let num=newmoney.toString().split(".")[1].length;
if(num==1){ if(num==1){
newmoney=`${newmoney}1`; newmoney=`${newmoney}1`;
} }
}
this.payMsgList[index].allMoney = Math.round( newmoney* 100) / 100 / 100; this.payMsgList[index].allMoney = Math.round( newmoney* 100) / 100 / 100;
} else { } else {
......
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