This commit is contained in:
cun-nan 2024-10-18 17:34:16 +08:00
parent 2dfb19b84d
commit 6bd2ecd154

View File

@ -1242,16 +1242,16 @@ export default {
holidayIsUse: [ holidayIsUse: [
{required: true, message: "请选择节假日是否通用", trigger: "blur"}, {required: true, message: "请选择节假日是否通用", trigger: "blur"},
], ],
suitDateType: [ // suitDateType: [
{validator: (rule, value, callback) => { // {validator: (rule, value, callback) => {
if (this.form2.suitDateType == '1'){ // if (this.form2.suitDateType == '1'){
if (this.form2.suitDateFront == undefined){ // if (this.form2.suitDateFront == undefined){
callback(new Error("请选择开始日期")) // callback(new Error(""))
}else if (this.form2.suitDateAfter == undefined){ // }else if (this.form2.suitDateAfter == undefined){
callback(new Error("请选择结束日期")) // callback(new Error(""))
} // }
} // }
}},], // }},],
suitTimeSlotType: [ suitTimeSlotType: [
{required: true, message: "请选择适用时间段", trigger: "blur"}, {required: true, message: "请选择适用时间段", trigger: "blur"},
], ],
@ -1327,9 +1327,9 @@ export default {
this.open2 = false; this.open2 = false;
}, },
// //
submitForm2: function () { submitForm2() {
this.$refs["form2"].validate(valid => { this.$refs["form2"].validate(id => {
if (valid) { if (id) {
this.form2.usePaymentWay = this.form2.usePaymentWay.toString() this.form2.usePaymentWay = this.form2.usePaymentWay.toString()
if (this.form2.suitTimeSlotType == 0) { if (this.form2.suitTimeSlotType == 0) {
this.form2.suitDate = this.weekDay.toString() this.form2.suitDate = this.weekDay.toString()