Commit 8b214e0e by crushh

update: 修改会员生日前

parent 577f7049
......@@ -210,10 +210,10 @@ export default {
checked(val) {
switch (val[0]) {
case 'brithday_day':
if (!this.form.brithday_day) {
this.form.brithday_type = 1;
this.form.brithday_day = 1;
}
// if (!this.form.brithday_day) {
// this.form.brithday_type = 1;
// this.form.brithday_day = 1;
// }
this.form.attention_day = 0;
this.form.lastCost_day = 0;
break;
......@@ -941,7 +941,6 @@ export default {
expireType: this.form.expireType,
beginDate: this.form.expireType ? formatDateTimeByType(this.form.beginDate, 'yyyy-MM-dd-HH-mm-ss') : '',
endDate: this.form.expireType ? formatDateTimeByType(this.form.endDate, 'yyyy-MM-dd-HH-mm-ss') : '',
brithday_day: this.form.effectType == 1 ? (this.form.brithday_dayval == -1 ? -1 : this.form.brithday_day) : undefined,
brithday_type: this.form.effectType == 1 ? this.form.brithday_type : undefined,
attention_day: this.form.effectType == 1 ? this.form.attention_day : undefined,
lastCost_day: this.form.effectType == 1 ? this.form.lastCost_day : undefined,
......@@ -955,7 +954,15 @@ export default {
execDateType: this.form.effectType == 1 ? this.form.execDateType : undefined, // 重复执行频率(1:天; 2:周 3:月)
execDate: this.form.effectType == 1 ? (this.form.execDate ? this.form.execDate.join() : '') : undefined // '周/月(1,2,3,4,5,6,7,)'
};
if (this.form.effectType == 1) {
if (this.checked[0] == 'brithday_day') {
this.form.brithday_dayval == -1 ? (params.brithday_day = -1) : (params.brithday_day = this.form.brithday_day);
} else {
params.brithday_day = 0;
}
} else {
params.brithday_day = undefined;
}
if (this.form.effectType == 1) {
// 重复
params.effectTime = Number(this.form.effectTime.split(':')[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment