diff --git a/fuintAdmin/src/api/EventMarketing/activeBirthday.js b/fuintAdmin/src/api/EventMarketing/activeBirthday.js index e4b10091a..9db4de16f 100644 --- a/fuintAdmin/src/api/EventMarketing/activeBirthday.js +++ b/fuintAdmin/src/api/EventMarketing/activeBirthday.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function getActiveBirthday(id) { return request({ - url: 'activeBirthday/getInfoById/'+id, + url: 'activeBirthday/'+id, method: 'get', }) } diff --git a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue index 0d8cbc100..9495791ae 100644 --- a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue @@ -586,6 +586,25 @@ export default { return } } + + if (this.ruleForm.activeGift && this.ruleForm.activeGift.includes(0)) { + if (!this.pointList || this.pointList.length == 0) { + this.$message.error("请先选择赠送积分信息!") + return; + } + } + if (this.ruleForm.activeGift && this.ruleForm.activeGift.includes(3)) { + if (!this.growthValueList || this.growthValueList.length == 0) { + this.$message.error("请先选择赠送成长值信息!") + return; + } + } + if (this.ruleForm.activeGift && this.ruleForm.activeGift.includes(1)) { + if (!this.couponList || this.couponList.length == 0) { + this.$message.error("请先选择赠送优惠券信息!") + return; + } + } this.$refs[formName].validate((valid) => { if (valid) { // 使用时间段 diff --git a/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue b/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue index ecd57c993..70134075a 100644 --- a/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue @@ -282,6 +282,24 @@ export default { return } } + if (this.ruleForm.courtesyReward && this.ruleForm.courtesyReward.includes("0")) { + if (!this.couponList || this.couponList.length == 0) { + this.$message.error("请先选择赠送优惠券信息!") + return; + } + } + if (this.ruleForm.courtesyReward && this.ruleForm.courtesyReward.includes("3")) { + if (!this.ruleForm.points) { + this.$message.error("请输入赠送积分!") + return; + } + } + if (this.ruleForm.courtesyReward && this.ruleForm.courtesyReward.includes("2")) { + if (!this.ruleForm.growthValue) { + this.$message.error("请输入赠送成长值!") + return; + } + } this.$refs[formName].validate((valid) => { if (valid) { if (this.ruleForm.courtesyReward) this.ruleForm.courtesyReward = this.ruleForm.courtesyReward.toString() diff --git a/fuintAdmin/src/views/EventMarketing/liJianMarketing/index.vue b/fuintAdmin/src/views/EventMarketing/liJianMarketing/index.vue index 48b819bed..c0757166a 100644 --- a/fuintAdmin/src/views/EventMarketing/liJianMarketing/index.vue +++ b/fuintAdmin/src/views/EventMarketing/liJianMarketing/index.vue @@ -64,7 +64,7 @@ - + - + { if (valid) { if (this.ruleForm.timeType == 0) { @@ -563,6 +575,8 @@ export default { } else if (this.ruleForm.timeType == 1) { this.ruleForm.timeSlots = this.monthDay.toString() } + if (this.ruleForm.levelId) this.ruleForm.levelId = this.ruleForm.levelId.toString() + if (this.ruleForm.babelIds) this.ruleForm.babelIds = this.ruleForm.babelIds.toString() if (this.ruleForm.applyOil) this.ruleForm.applyOil = this.ruleForm.applyOil.toString() if (this.ruleForm.paymentType) this.ruleForm.paymentType = this.ruleForm.paymentType.toString() if (this.ruleForm.activeManner) this.ruleForm.activeManner = this.ruleForm.activeManner.toString() diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/birthday.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/birthday.vue index 0658743e7..2800799b4 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/birthday.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/birthday.vue @@ -48,7 +48,7 @@ - + { if (valid) { if (this.ruleForm.courtesyReward) this.ruleForm.courtesyReward = this.ruleForm.courtesyReward.toString() + if (this.ruleForm.userGradeId) this.ruleForm.userGradeId = this.ruleForm.userGradeId.toString() if (this.couponList) this.ruleForm.couponList = this.couponList if (this.ruleForm.id) { editActiveBirthday(this.ruleForm).then(response => { diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/invite.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/invite.vue index cb773590c..829ea5470 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/invite.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/invite.vue @@ -285,6 +285,24 @@ export default { return } } + if (this.ruleForm.rewardDisplay && this.ruleForm.rewardDisplay.includes("0")) { + if (!this.couponList || this.couponList.length == 0) { + this.$message.error("请先选择赠送优惠券信息!") + return; + } + } + if (this.ruleForm.rewardDisplay && this.ruleForm.rewardDisplay.includes("3")) { + if (!this.ruleForm.points) { + this.$message.error("请输入赠送积分!") + return; + } + } + if (this.ruleForm.rewardDisplay && this.ruleForm.rewardDisplay.includes("2")) { + if (!this.ruleForm.growthValue) { + this.$message.error("请输入赠送成长值!") + return; + } + } this.$refs[formName].validate((valid) => { if (valid) { if (this.ruleForm.rewardDisplay) this.ruleForm.rewardDisplay = this.ruleForm.rewardDisplay.toString() diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/popUp.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/popUp.vue index d039202ef..6e39e95f1 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/popUp.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/popUp.vue @@ -74,7 +74,7 @@ - + { if (valid) { if (this.ruleForm.suitTimeSlotType==0){ @@ -384,6 +389,7 @@ export default { this.ruleForm.suitDate = this.monthDay.toString() } if (this.ruleForm.courtesyReward) this.ruleForm.courtesyReward = this.ruleForm.courtesyReward.toString() + if (this.ruleForm.userGradeIds) this.ruleForm.userGradeIds = this.ruleForm.userGradeIds.toString() if (this.couponList) this.ruleForm.couponList = this.couponList if (this.ruleForm.id) { editActivePopUp(this.ruleForm).then(response => { diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue index ec1ce4e3b..6542f8af4 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue @@ -61,7 +61,7 @@ - + { if (valid) { if (this.ruleForm.paymentType) this.ruleForm.paymentType = this.ruleForm.paymentType.toString() + if (this.ruleForm.userGradeIds) this.ruleForm.userGradeIds = this.ruleForm.userGradeIds.toString() if (this.ruleForm.suitOilIds) this.ruleForm.suitOilIds = this.ruleForm.suitOilIds.toString() if (this.ruleForm.courtesyReward) this.ruleForm.courtesyReward = this.ruleForm.courtesyReward.toString() if (this.couponList) this.ruleForm.couponList = this.couponList diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/userRecharge.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/userRecharge.vue index b6b351789..8e5f17ec3 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/userRecharge.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/userRecharge.vue @@ -47,7 +47,7 @@ - + { if (valid) { if (this.ruleForm.paymentType) this.ruleForm.paymentType = this.ruleForm.paymentType.toString() + if (this.ruleForm.userGradeIds) this.ruleForm.userGradeIds = this.ruleForm.userGradeIds.toString() if (this.ruleForm.courtesyReward) this.ruleForm.courtesyReward = this.ruleForm.courtesyReward.toString() if (this.couponList) this.ruleForm.couponList = this.couponList if (this.ruleForm.id) { diff --git a/fuintAdmin/src/views/power/message.vue b/fuintAdmin/src/views/power/message.vue index 480727c9c..ed11c3d46 100644 --- a/fuintAdmin/src/views/power/message.vue +++ b/fuintAdmin/src/views/power/message.vue @@ -9,7 +9,7 @@
- + - +
- + - + - - - - - - - - - + - + - +