10.18
This commit is contained in:
parent
2dfb19b84d
commit
6bd2ecd154
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user