From f8c76ba0de49ff0d87cbaa9d7425bdf5c1db18a4 Mon Sep 17 00:00:00 2001 From: PQZ Date: Mon, 30 Sep 2024 17:31:15 +0800 Subject: [PATCH] 1 --- .../EventMarketing/newCertificate/index.vue | 312 +++++++++++------- .../src/main/resources/application.properties | 4 +- 2 files changed, 192 insertions(+), 124 deletions(-) diff --git a/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue b/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue index 4c5fdc23c..b169e0178 100644 --- a/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue +++ b/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue @@ -332,93 +332,177 @@
- - - 每周 - - - - - - 每月 - - - - - - + + + 适用时间段 + 不可用时间段 - -
-
时间段
- - - - -
-
- - -
- 每周 - - + +
+ +
+ 每周 + + + +
+ + 每月 + + -
-
- 每月 - - + +
+
+ + + + 至 + + + +
+
+ +
+ + 每周 + + + + + 每月 + + -
- - -
-
时间段
- - - - + +
+
+ + + + 至 + + +
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -524,35 +608,7 @@ export default { threelist: [], goodsList: [], orderShow: false, - weekList: [ - { - label: "周一", - value: "周一" - }, - { - label: "周二", - value: "周二" - }, - { - label: "周三", - value: "周三" - }, - { - label: "周四", - value: "周四" - }, - { - label: "周五", - value: "周五" - }, { - label: "周六", - value: "周六" - }, { - label: "周天", - value: "周天" - } - - ], + weekList: ["周一", "周二", "周三", "周四", "周五", "周六", "周日"], monthList: [ { label: "每月1号", @@ -720,7 +776,12 @@ export default { }], oilNumberList: [], oilNameList: [], + weekDay: [], + monthDay: [], + weekDay1: [], + monthDay1: [], ruleForm: { + availableOrUn:'0', productIdList:[], productIds:'', productLimit:1, @@ -844,17 +905,20 @@ export default { this.centerDialogVisible = !this.centerDialogVisible getCardCoupon(id).then(res => { this.ruleForm = res.data + if (this.ruleForm.availableOrUn == null || this.ruleForm.availableOrUn == ''){ + this.ruleForm.availableOrUn = '0' + } if (res.data.unAvailableWeek) { - this.ruleForm.unAvailableWeek = res.data.unAvailableWeek.split(",") + this.weekDay1 = res.data.unAvailableWeek.split(",") } if (res.data.unAvailableDay) { - this.ruleForm.unAvailableDay = res.data.unAvailableDay.split(",") + this.monthDay1 = res.data.unAvailableDay.split(",") } if (res.data.availableWeek) { - this.ruleForm.availableWeek = res.data.availableWeek.split(",") + this.weekDay = res.data.availableWeek.split(",") } if (res.data.availableDay) { - this.ruleForm.availableDay = res.data.availableDay.split(",") + this.monthDay = res.data.availableDay.split(",") } if (res.data.membershipLevel) { this.ruleForm.membershipLevel = res.data.membershipLevel.split(",") @@ -1072,18 +1136,18 @@ export default { }, addBlock() { - if (this.ruleForm.unAvailableWeek) { - this.ruleForm.unAvailableWeek = this.ruleForm.unAvailableWeek.toString() - } - if (this.ruleForm.unAvailableDay) { - this.ruleForm.unAvailableDay = this.ruleForm.unAvailableDay.toString() - } - if (this.ruleForm.availableWeek) { - this.ruleForm.availableWeek = this.ruleForm.availableWeek.toString() - } - if (this.ruleForm.availableDay) { - this.ruleForm.availableDay = this.ruleForm.availableDay.toString() - } + // if (this.ruleForm.unAvailableWeek) { + // this.ruleForm.unAvailableWeek = this.ruleForm.unAvailableWeek.toString() + // } + // if (this.ruleForm.unAvailableDay) { + // this.ruleForm.unAvailableDay = this.ruleForm.unAvailableDay.toString() + // } + // if (this.ruleForm.availableWeek) { + // this.ruleForm.availableWeek = this.ruleForm.availableWeek.toString() + // } + // if (this.ruleForm.availableDay) { + // this.ruleForm.availableDay = this.ruleForm.availableDay.toString() + // } if (this.ruleForm.membershipLevel) { this.ruleForm.membershipLevel = this.ruleForm.membershipLevel.toString() } @@ -1091,6 +1155,10 @@ export default { this.ruleForm.oilNumber = this.ruleForm.oilNumber.toString() } let productIds = this.ruleForm.productIdList + '' + this.ruleForm.availableWeek = this.weekDay + '' + this.ruleForm.availableDay = this.monthDay + '' + this.ruleForm.unAvailableWeek = this.weekDay1 + '' + this.ruleForm.unAvailableDay = this.monthDay1 + '' this.ruleForm.productIds = productIds if (!this.ruleForm.id) { diff --git a/fuintBackend/fuint-application/src/main/resources/application.properties b/fuintBackend/fuint-application/src/main/resources/application.properties index cced9dbc1..2e4d797e4 100644 --- a/fuintBackend/fuint-application/src/main/resources/application.properties +++ b/fuintBackend/fuint-application/src/main/resources/application.properties @@ -4,8 +4,8 @@ env.profile=dev #env.properties.path=D:/workspaces/oil-stations/fuintBackend/configure/ #env.properties.path=F:/work/oilSystem/fuintBackend/configure/ #env.properties.path=D:/oil/new-oil/oilSystem/fuintBackend/configure/ -env.properties.path=D:/code/bulidmap/oil-station/fuintBackend/configure -#env.properties.path=D:/Code/yuzhan/oil-station/fuintBackend/configure +#env.properties.path=D:/code/bulidmap/oil-station/fuintBackend/configure +env.properties.path=D:/Code/yuzhan/oil-station/fuintBackend/configure #env.properties.path=/www/wwwroot/shenlanshuke/oilAdmin/ # \u6570\u636E\u5E93\u914D\u7F6E