-
-
每周
-
-
+
+
+
+
+ 每周
+
+
+
+
+
+ 每月
+
+
-
-
- 每月
-
-
+
+
+
+
+
+
+ 至
+
+
+
+
+
+
+
+
+ 每周
+
+
+
+
+ 每月
+
+
-
-
-
-
+
+
+
+
+ 至
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -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