Commit ab5a763b authored by youjie's avatar youjie

发团日期限制

parent b384cda2
...@@ -1465,6 +1465,11 @@ ...@@ -1465,6 +1465,11 @@
}, },
data() { data() {
return { return {
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now();
}
},
GroupTypeVisible: false, GroupTypeVisible: false,
GroupTypeObj: {}, GroupTypeObj: {},
dialog: { dialog: {
...@@ -1704,12 +1709,20 @@ ...@@ -1704,12 +1709,20 @@
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: time => { disabledDate: time => {
if (this.queryMsg.EndGroupDate == null) { if (this.queryMsg.EndGroupDate == null) {
return false; if(this.queryMsg.StartGroupDate){
let endTime = this.TourDateRestrictions()
return time && endTime.getTime() >= time.getTime();
}else return false;
} else { } else {
if(this.queryMsg.StartGroupDate){
let endTime = this.TourDateRestrictions()
return time && endTime.getTime() >= time.getTime();
}else{
let endTime = new Date(this.queryMsg.EndGroupDate); let endTime = new Date(this.queryMsg.EndGroupDate);
return endTime.getTime() < time.getTime(); return endTime.getTime() < time.getTime();
} }
} }
}
}, },
pickerBeginDateAfter: { pickerBeginDateAfter: {
disabledDate: time => { disabledDate: time => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment