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: [
{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) => {
// if (this.form2.suitDateType == '1'){
// if (this.form2.suitDateFront == undefined){
// callback(new Error(""))
// }else if (this.form2.suitDateAfter == undefined){
// callback(new Error(""))
// }
// }
// }},],
suitTimeSlotType: [
{required: true, message: "请选择适用时间段", trigger: "blur"},
],
@ -1327,9 +1327,9 @@ export default {
this.open2 = false;
},
//
submitForm2: function () {
this.$refs["form2"].validate(valid => {
if (valid) {
submitForm2() {
this.$refs["form2"].validate(id => {
if (id) {
this.form2.usePaymentWay = this.form2.usePaymentWay.toString()
if (this.form2.suitTimeSlotType == 0) {
this.form2.suitDate = this.weekDay.toString()