Эх сурвалжийг харах

feat(KIP-17239): 合集临时停车管理回顾绑定车辆优惠控制功能可用性

lock.qiu@kerryprops.com 1 жил өмнө
parent
commit
3562c835f8

+ 6 - 4
src/pages/parkingFeeV2/mixins/parkingFee.js

@@ -63,7 +63,8 @@ export default {
       eventId: '',
       // 2.22新增内容:https://kerryprops.atlassian.net/browse/KIP-13059
       portalsByLbsList: [],
-      portalsByLbsInfo: {}
+      portalsByLbsInfo: {},
+      enableDiscountVehicle: ''
     };
   },
   computed: {
@@ -239,6 +240,7 @@ export default {
         } else {
           this.description = res?.description?.replace(reg, '\r\n').replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>');  
         }
+        this.enableDiscountVehicle = res.enableDiscountVehicle
         this.supportUnlicensed = res.supportUnlicensed || false
         this.carList = res.carList;
       } catch (e) {
@@ -386,7 +388,7 @@ export default {
     async preHandleSearch() {
       if (this.disabledBtn) return
       // 不是杭州的车牌 或者 用户拒绝登陆的场景
-      if (!isHZ(this.mallId) || this.$route.query.isLogin === 'loginDenied')  {
+      if (!this.enableDiscountVehicle || this.$route.query.isLogin === 'loginDenied')  {
         this.toParkingFeeDetail()
         return
       }
@@ -420,7 +422,7 @@ export default {
     // 历史车牌快速查询
     async toHandleSearchBefore(vehicleNo) {
       // 不是杭州的车牌 或者 用户拒绝登陆的场景
-      if (!isHZ(this.mallId) || this.$route.query.isLogin === 'loginDenied')  {
+      if (!this.enableDiscountVehicle || this.$route.query.isLogin === 'loginDenied')  {
         this.toHandleSearch(vehicleNo)
         return
       }
@@ -1162,7 +1164,7 @@ export default {
     // 获取会员绑定的车牌列表
     async getVehiclesINTMP() {
       /*杭州*/
-      if (!isHZ(this.mallId)) return
+      if (!this.enableDiscountVehicle) return
       try {
         if(this.$route.query.isLogin === 'loginDenied') {
           throw new Error('设置默认参数')

+ 3 - 3
src/pages/parkingFeeV2/mixins/vehicleManagement.js

@@ -170,7 +170,7 @@ export default {
     // 跳转支付页面
     toPayBefore(item) {
       // 不是杭州的车牌 或者 是非优惠的车牌
-      if(!this.isHZ || item.eligible || !this.enableDiscountVehicle){
+      if(!this.enableDiscountVehicle || item.eligible || !this.enableDiscountVehicle){
         this.toPay(item.vehicleNo)
         return
       }
@@ -187,7 +187,7 @@ export default {
     // 编辑
     toEditBefore(item) {
       // 不是杭州的车牌 或者 是非优惠的车牌
-      if(!this.isHZ || !item.eligible || !this.enableDiscountVehicle){
+      if(!this.enableDiscountVehicle || !item.eligible || !this.enableDiscountVehicle){
         this.toEdit(item)
         return
       }
@@ -342,7 +342,7 @@ export default {
       this.activeId = item.id;
       this.activeCarno = item.vehicleNo;
       // 不是杭州的车牌 或者 是非优惠的车牌
-      if(!this.isHZ || !item.eligible || !this.enableDiscountVehicle) {
+      if(!this.enableDiscountVehicle || !item.eligible || !this.enableDiscountVehicle) {
         this.show = true
         return
       }

+ 1 - 1
src/pages/parkingFeeV2/vehicleManagement.vue

@@ -20,7 +20,7 @@
               我的车牌
             </div>
             <!-- <img v-if="isHZ && item.eligible" class="discountCar" :src="`${require(`@/pages/parkingFee/static/images/${source ==='KIP' ? 'discountCarOffice': 'discountCar' }.svg`)}`" />-->
-            <div class="discountCar" v-if="isHZ && item.eligible && enableDiscountVehicle">
+            <div class="discountCar" v-if="item.eligible && enableDiscountVehicle">
               优惠车
             </div>
             <div class="plate_plate_index plate_plate_index2">