Commit 70855836 authored by 黄媛媛's avatar 黄媛媛

修改财务

parent 16af8da2
......@@ -1948,15 +1948,23 @@ export default {
let fee = this.payMsgList[index].Fee,
Rate = this.payMsgList[index].Rate==0?1:this.payMsgList[index].Rate,
Money = this.payMsgList[index].OriginalMoney;
Rate=Rate*100;
let newmoney=Money*Rate+fee;
let NewRate=Rate;
if(Rate.toString().split(".")[1] && Rate.toString().split(".")[1].length<5){
NewRate=Rate*100;
}
let newmoney=Money*NewRate+fee;
if(newmoney.toString().split(".")[1]){
let num=newmoney.toString().split(".")[1].length;
if(num==1){
newmoney=`${newmoney}1`;
}
}
this.payMsgList[index].allMoney = Math.round( newmoney* 100) / 100 / 100;
if(Rate.toString().split(".")[1] && Rate.toString().split(".")[1].length<5){
this.payMsgList[index].allMoney = Math.round( newmoney* 100) / 100 / 100;
}else{
this.payMsgList[index].allMoney = Math.round( newmoney* 100) / 100;
}
} else {
this.payMsg.Fee = isNaN(parseFloat(this.payMsg.Fee))?0:parseFloat(this.payMsg.Fee);
this.payMsg.Rate = isNaN(parseFloat(this.payMsg.Rate))?0:parseFloat(this.payMsg.Rate);
......@@ -1964,16 +1972,22 @@ export default {
let fee = this.payMsg.Fee,
Rate = this.payMsg.Rate==0?1:this.payMsg.Rate,
Money = this.payMsg.OriginalMoney;
Rate=Rate*100;
let newmoney=Money*Rate+fee;
let NewRate=Rate;
if(Rate.toString().split(".")[1] && Rate.toString().split(".")[1].length<5){
NewRate=Rate*100;
}
let newmoney=Money*NewRate+fee;
if(newmoney.toString().split(".")[1]){
let num=newmoney.toString().split(".")[1].length;
if(num==1){
newmoney=`${newmoney}1`;
}
}
this.payMsg.allMoney = Math.round( newmoney* 100) / 100 / 100;
}
if(Rate.toString().split(".")[1] && Rate.toString().split(".")[1].length<5){
this.payMsgList[index].allMoney = Math.round( newmoney* 100) / 100 / 100;
}else{
this.payMsgList[index].allMoney = Math.round( newmoney* 100) / 100;
}
}
},
......@@ -2161,29 +2175,29 @@ export default {
}, err => {})
},
AuditOrRefund(){ // 保存
let that=this;
that.benMoney=Math.round(that.benMoney * 100) / 100;
if(that.Ststus==1){
if(this.AuditOrRefundMsg.Status=='5'){
if(that.GetDetail.AccountNumber && that.GetDetail.AccountNumber.indexOf("东航平台")!=-1){
if(this.allMoney==0){
this.Error("请将信息填写完整!")
return;
let that=this;
that.benMoney=Math.round(that.benMoney * 100) / 100;
if(that.Ststus==1){
if(this.AuditOrRefundMsg.Status=='5'){
if(that.GetDetail.AccountNumber && that.GetDetail.AccountNumber.indexOf("东航平台")!=-1){
if(this.allMoney==0){
this.Error("请将信息填写完整!")
return;
}else{
if(this.allMoney>parseFloat(that.benMoney) + 5 || this.allMoney<parseFloat(that.benMoney) - 5){
this.Error("请检查实付金额是否在范围内!")
return;
}
}
}else{
if(this.allMoney>parseFloat(that.benMoney) + 5 || this.allMoney<parseFloat(that.benMoney) - 5){
this.Error("请检查实付金额是否在范围内!")
if(this.allMoney!=parseFloat(that.benMoney)){
this.Error("请检查金额是否一致!")
return;
}
}
}else{
if(this.allMoney!=parseFloat(that.benMoney)){
this.Error("请检查金额是否一致!")
return;
}
}
}
}
let imgArr = [];
......
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