优惠券相关修改

This commit is contained in:
zhaohengkun 2024-10-18 18:05:17 +08:00
parent 6bd2ecd154
commit 19b9276c61

View File

@ -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"},
],