Pārlūkot izejas kodu

Merge pull request #319 from John-Hong/release-2.19.0

feat(SCRM-4916): bkc新会员积分缴费提交
Tron 1 gadu atpakaļ
vecāks
revīzija
bda6fbc634
1 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  1. 8 0
      src/pages/parkingFeeV2/mixins/parkingFeeDetail.js

+ 8 - 0
src/pages/parkingFeeV2/mixins/parkingFeeDetail.js

@@ -343,6 +343,14 @@ export default {
             "discountPoints": discountFee / hourPrice * pointsPerUnit
           }
         }
+        if (newMemberPoints?.discountFee && newMemberPoints?.discountFee) {
+          const { pointsPerUnit, unitAmount, discountFee, available } = newMemberPoints
+          params.discountInfo.newMemberPoints = {
+            "discountTime": discountFee / hourPrice * 60,
+            "discountFee": discountFee,
+            "discountPoints": discountFee / hourPrice * pointsPerUnit
+          }
+        }
         // 优惠券
         if (coupons?.length) {
           const selectedCoupons = coupons.filter(elm => {