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