From e3a60c624550c4ef22a1cdd751ac6539144483fa Mon Sep 17 00:00:00 2001 From: linfso Date: Sat, 31 Aug 2024 16:34:29 +0800 Subject: [PATCH] md --- .../emis/emisWaybillAjustApply/adjustPanel.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/emis/emisWaybillAjustApply/adjustPanel.vue b/src/views/emis/emisWaybillAjustApply/adjustPanel.vue index 0b5be8ee..c380bffd 100644 --- a/src/views/emis/emisWaybillAjustApply/adjustPanel.vue +++ b/src/views/emis/emisWaybillAjustApply/adjustPanel.vue @@ -1794,13 +1794,9 @@ export default { expr=expr.replace("s",row.initialWeightFee); expr=expr.replace("d",row.addWeightPrice); expr=expr.replace("w",this.form.settlementWeight); - row.realFee=parseFloat(eval(expr)).toFixed(2); - - if(row.blAutoGen==0){ - row.fee=row.realFee; - } + row.realFee=parseFloat(eval(expr)); + row.realFee=realFee.toFixed(2); } - } let totalFee=Number(0); @@ -1813,10 +1809,16 @@ export default { let res= await getValidExchangeRate({from:item.currency,to:'CNY'}); if(res.code==200){ newFee=newFee*Number(res.data); + newFee=newFee.toFixed(2); item.remark="汇率:"+res.data+","+newFee+"(CNY)" } } + + if(item.blAutoGen==0){ + item.fee=item.realFee; + } + newFee=newFee.toFixed(2); totalFee=Number(totalFee)+Number(newFee); }