瀏覽代碼

下单时修改应缴金额和实缴金额以元为单位

john.hong 2 年之前
父節點
當前提交
7de94a7e19
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/pages/parkingFee/mixins/parkingFeeDetail.js

+ 2 - 2
src/pages/parkingFee/mixins/parkingFeeDetail.js

@@ -118,8 +118,8 @@ export default {
             vehicleNo: parkingRecord.vehicleNo,
             enterTime: parkingRecord.enterTime,
             serviceMin: parkingRecord.serviceMin,
-            totalFee: parkingRecord.totalFee, //应缴
-            actualPayFee: this.actualPayFee, //应付金额
+            totalFee: Math.abs(parkingRecord?.totalFee || 0).toFixed(2), //应缴
+            actualPayFee: Math.abs(this.actualPayFee || 0).toFixed(2), //应付金额
           },
           discountInfo: {
             usingTotalDiscount: discountInfo?.usingTotalDiscount || 0, //优惠金额"