|
|
|
|
@ -46,7 +46,6 @@ export default {
|
|
|
|
|
watch: {
|
|
|
|
|
useModal(val) {
|
|
|
|
|
this.displayUseModal = val
|
|
|
|
|
this.id = this.id
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
@ -58,6 +57,33 @@ export default {
|
|
|
|
|
this.currentStep = 0
|
|
|
|
|
},
|
|
|
|
|
next() {
|
|
|
|
|
const data = store.getters.useData;
|
|
|
|
|
if (this.currentStep === 0) {
|
|
|
|
|
if (!data.activityStartDate) {
|
|
|
|
|
this.$Message.error('请填写活动开始时间');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (!data.activityEndDate) {
|
|
|
|
|
this.$Message.error('请填写活动结束时间');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (data.activityStartDate > data.activityEndDate) {
|
|
|
|
|
this.$Message.error('开始时间不能晚于结束时间');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (this.currentStep === 1) {
|
|
|
|
|
if (!data.selectCompanyValue || data.selectCompanyValue.length === 0) {
|
|
|
|
|
this.$Message.error('请至少选择1家公司');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (this.currentStep === 2) {
|
|
|
|
|
if (!data.selectShopValue || data.selectShopValue.length === 0) {
|
|
|
|
|
this.$Message.error('请至少选择1家店铺');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.currentStep = this.currentStep + 1
|
|
|
|
|
},
|
|
|
|
|
back() {
|
|
|
|
|
|