|
@@ -226,6 +226,7 @@
|
|
id="promotionEdit-validType"
|
|
id="promotionEdit-validType"
|
|
code="PROMO_RULE_TICKET_TYPE"
|
|
code="PROMO_RULE_TICKET_TYPE"
|
|
:disabled="isDisabled"
|
|
:disabled="isDisabled"
|
|
|
|
+ @change="handleValidType"
|
|
allowClear></v-select>
|
|
allowClear></v-select>
|
|
<a-range-picker
|
|
<a-range-picker
|
|
v-show="sellForm.validType==='FIXED'"
|
|
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) {
|
|
savePartInfo (type) {
|
|
const _this = this
|
|
const _this = this
|
|
_this.form.promoActiveSn = this.$route.params.sn
|
|
_this.form.promoActiveSn = this.$route.params.sn
|
|
@@ -738,7 +750,7 @@ export default {
|
|
// 批量添加
|
|
// 批量添加
|
|
handleBatchAdd () {
|
|
handleBatchAdd () {
|
|
if (!this.sellForm.ruleValue) {
|
|
if (!this.sellForm.ruleValue) {
|
|
- this.$message.warning('请输入返券金额(必须大于0)!')
|
|
|
|
|
|
+ this.$message.warning('请输入返券金额(需大于0)!')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
this.$refs.chooseProduct.editMorePrice(this.sellForm.ruleValue)
|
|
this.$refs.chooseProduct.editMorePrice(this.sellForm.ruleValue)
|