浏览代码

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

feat(SCRM-7245): 兼容电子券过低的场景
John-Hong 9 月之前
父节点
当前提交
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;
       }