优惠券相关修改
This commit is contained in:
parent
6bd2ecd154
commit
19b9276c61
@ -690,6 +690,7 @@
|
||||
</el-radio-group>
|
||||
|
||||
<el-date-picker
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
v-model="form2.suitDateFront"
|
||||
style="width: 160px;margin-left: 10px;"
|
||||
type="date"
|
||||
@ -697,6 +698,7 @@
|
||||
</el-date-picker>
|
||||
<div style="margin: 0 10px;">至</div>
|
||||
<el-date-picker
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
v-model="form2.suitDateAfter"
|
||||
style="width: 160px"
|
||||
type="date"
|
||||
@ -1242,16 +1244,21 @@ export default {
|
||||
holidayIsUse: [
|
||||
{required: true, message: "请选择节假日是否通用", trigger: "blur"},
|
||||
],
|
||||
// suitDateType: [
|
||||
// {validator: (rule, value, callback) => {
|
||||
// if (this.form2.suitDateType == '1'){
|
||||
// if (this.form2.suitDateFront == undefined){
|
||||
// callback(new Error("请选择开始日期"))
|
||||
// }else if (this.form2.suitDateAfter == undefined){
|
||||
// callback(new Error("请选择结束日期"))
|
||||
// }
|
||||
// }
|
||||
// }},],
|
||||
suitDateType: [
|
||||
{validator: (rule, value, callback) => {
|
||||
console.log('走了',this.form2.suitDateType)
|
||||
if (this.form2.suitDateType == '1'){
|
||||
if (this.form2.suitDateFront == undefined){
|
||||
callback(new Error("请选择开始日期"))
|
||||
}else if (this.form2.suitDateAfter == undefined){
|
||||
callback(new Error("请选择结束日期"))
|
||||
}else {
|
||||
callback();
|
||||
}
|
||||
}else {
|
||||
callback();
|
||||
}
|
||||
}},],
|
||||
suitTimeSlotType: [
|
||||
{required: true, message: "请选择适用时间段", trigger: "blur"},
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user