chenrui 10 ヶ月 前
コミット
7dfb2f36ec

+ 13 - 1
src/views/promotionRulesManagement/promotionManagement/edit.vue

@@ -226,6 +226,7 @@
                   id="promotionEdit-validType"
                   code="PROMO_RULE_TICKET_TYPE"
                   :disabled="isDisabled"
+                  @change="handleValidType"
                   allowClear></v-select>
                 <a-range-picker
                   v-show="sellForm.validType==='FIXED'"
@@ -575,6 +576,17 @@ export default {
     //     }
     //   })
     // },
+    // 券有效期 change
+    handleValidType (con) {
+      this.sellForm.validType = con.target.value
+      if (con.target.value === 'FIXED') {
+        this.sellForm.validDays = undefined
+      } else {
+        this.time = []
+        this.sellForm.validStartDate = undefined
+        this.sellForm.validEndDate = undefined
+      }
+    },
     savePartInfo (type) {
       const _this = this
       _this.form.promoActiveSn = this.$route.params.sn
@@ -738,7 +750,7 @@ export default {
     // 批量添加
     handleBatchAdd () {
       if (!this.sellForm.ruleValue) {
-        this.$message.warning('请输入返券金额(必须大于0)!')
+        this.$message.warning('请输入返券金额(大于0)!')
         return
       }
       this.$refs.chooseProduct.editMorePrice(this.sellForm.ruleValue)