Commit 4b477051 authored by 华国豪's avatar 华国豪 🙄

二维码 自动计算手续费

parent a203a272
...@@ -612,6 +612,7 @@ export default { ...@@ -612,6 +612,7 @@ export default {
resultCode:null, resultCode:null,
templateType: 1, templateType: 1,
setCode:'', setCode:'',
shouxufei: 0,
} }
}, },
methods:{ methods:{
...@@ -883,6 +884,12 @@ export default { ...@@ -883,6 +884,12 @@ export default {
}) })
} }
}) })
if (this.bankType == 13) {
this.apipost('Financial_post_GetQRCodeServiceCharge',{AccountId: i}, res => {
console.log(res)
this.shouxufei = res.data.data
}, err => {})
}
}, },
clearAccBank(){ // 选择账户类型清空数据 clearAccBank(){ // 选择账户类型清空数据
this.msg.BankList[0].Type = ''; this.msg.BankList[0].Type = '';
...@@ -912,18 +919,7 @@ export default { ...@@ -912,18 +919,7 @@ export default {
} }
} }
}, err => {}) }, err => {})
// if(i==1){
// this.bankaccount_post_GetList()
// }
// if(i==2){
// this.BankAccount_post_GetPlatformList()
// }
// if(i==3){
// this.BankAccount_post_GetCashAccountList()
// }
// if(i==4){
// this.BankAccount_post_GetCashPoolList()
// }
}, },
BankAccount_post_GetPlatformList(i){ //获取平台账户 BankAccount_post_GetPlatformList(i){ //获取平台账户
let msg = { let msg = {
...@@ -1183,6 +1179,9 @@ export default { ...@@ -1183,6 +1179,9 @@ export default {
ybFee:0, ybFee:0,
bbFee:0, bbFee:0,
}; };
if (this.shouxufei > 0) {
this.shouxufeiJiSuan()
}
this.countFee(); this.countFee();
}, },
Calculation(t,i){ // 计算原币 本位币 Calculation(t,i){ // 计算原币 本位币
...@@ -1285,8 +1284,17 @@ export default { ...@@ -1285,8 +1284,17 @@ export default {
} }
} }
this.msg.BankList[0].Fee = parseFloat(this.msg.BankList[0].ybFee); this.msg.BankList[0].Fee = parseFloat(this.msg.BankList[0].ybFee);
this.$forceUpdate(); this.$forceUpdate();
}, },
shouxufeiJiSuan: function (){
let price = 0;
this.msg.detailList.forEach(y=>{
price = price + y.bTotalPrice
});
console.log(price)
this.msg.OriginalFee = Math.round((price * this.shouxufei) * 100) / 100;
},
getCostTypeName(i, t){ // 根据支出费用类型获取费用类型名称 列表展示用 getCostTypeName(i, t){ // 根据支出费用类型获取费用类型名称 列表展示用
this.GetCostTypeList.forEach(x=>{ this.GetCostTypeList.forEach(x=>{
if(x.ID == i){ if(x.ID == i){
......
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