Просмотр исходного кода

费用校验-审核订单时 添加 调整费用比例功能

li.pengfei 2 лет назад
Родитель
Сommit
d672d75636

+ 4 - 11
src/views/FinancialManagement/CarInsurance/Verifytasks/Verifyuntasks.vue

@@ -514,14 +514,9 @@ export default {
         this.adjustFeeDescInfo.jqAllFeeRate=Number(val)+Number(this.adjustFeeDescInfo.jqCommissionRate);
       //赋值调整后金额
       let totalFee=this.adjustFeeDescInfo.jqAllFeeRate*this.adjustFeeDescInfo.jqPremium/100;
-      console.log(totalFee)
-      totalFee=totalFee.toFixed(3);
-      console.log(totalFee)
-      totalFee=totalFee.substring(0, totalFee.length - 1);
-      console.log(totalFee)
+      totalFee=totalFee.toFixed(2);
       let otherFee=Number(totalFee)-Number(this.adjustFeeDescInfo.jqCommissionAmount);
-      otherFee=otherFee.toFixed(3);
-      otherFee=otherFee.substring(0, otherFee.length - 1);
+      otherFee=otherFee.toFixed(2);
       this.adjustFeeDescInfo.jqAllFeeAmount=totalFee;
       this.adjustFeeDescInfo.jqOtherFeeAmount=otherFee;
     },
@@ -535,11 +530,9 @@ export default {
       this.adjustFeeDescInfo.syAllFeeRate=Number(val)+Number(this.adjustFeeDescInfo.syCommissionRate);
       //赋值调整后金额
       let totalFee=this.adjustFeeDescInfo.syAllFeeRate*this.adjustFeeDescInfo.syPremium/100;
-      totalFee=totalFee.toFixed(3);
-      totalFee=totalFee.substring(0, totalFee.length - 1);
+      totalFee=totalFee.toFixed(2);
       let otherFee=Number(totalFee)-Number(this.adjustFeeDescInfo.syCommissionAmount);
-      otherFee=otherFee.toFixed(3);
-      otherFee=otherFee.substring(0, otherFee.length - 1);
+      otherFee=otherFee.toFixed(2);
       this.adjustFeeDescInfo.syAllFeeAmount=totalFee;
       this.adjustFeeDescInfo.syOtherFeeAmount=otherFee;
     },