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

Merge pull request #589 from John-Hong/release-3.17.0

feat(SCRM-7245): 兼容电子券过低的场景
John-Hong 9 месяцев назад
Родитель
Сommit
ce54dc9fb5
1 измененных файлов с 10 добавлено и 5 удалено
  1. 10 5
      src/pages/parkingFeeV2/mixins/parkingFeeCoupon.js

+ 10 - 5
src/pages/parkingFeeV2/mixins/parkingFeeCoupon.js

@@ -270,10 +270,12 @@ export default {
             const elm = {
               ...this.couponList[elmIndex]
             }
-            this.$set(this.couponList, elmIndex , {
-              ...elm,
-              disabled:  elmIndex !== index
-            })
+            if(elm.name) {
+              this.$set(this.couponList, elmIndex , {
+                ...elm,
+                disabled:  elmIndex !== index
+              })
+            }
           })
         break;
         case '2': // 同类型可叠加
@@ -302,7 +304,10 @@ export default {
             } else {
               elm.disabled = true; // 非同批次的优惠券设置为不可选择
             }
-            this.$set(this.couponList, elmIndex , {...elm})
+            if(elm.name) {
+              this.$set(this.couponList, elmIndex , {...elm})
+            }
+            
           })
         break;
       }