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,10 +1709,18 @@ ...@@ -1704,10 +1709,18 @@
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 {
let endTime = new Date(this.queryMsg.EndGroupDate); if(this.queryMsg.StartGroupDate){
return endTime.getTime() < time.getTime(); let endTime = this.TourDateRestrictions()
return time && endTime.getTime() >= time.getTime();
}else{
let endTime = new Date(this.queryMsg.EndGroupDate);
return endTime.getTime() < time.getTime();
}
} }
} }
}, },
...@@ -1837,7 +1850,7 @@ ...@@ -1837,7 +1850,7 @@
resultStr += '已取消订车,取消时间:' + item.CarPushDate + '<br/>点击可重新推送用车'; resultStr += '已取消订车,取消时间:' + item.CarPushDate + '<br/>点击可重新推送用车';
} }
} }
//订房推送 //订房推送
else if (type == 1) { else if (type == 1) {
if (item.IsPush == 1) { if (item.IsPush == 1) {
resultStr = '已推送订房,推送时间:' + item.HotelPushDate + '<br/> 点击可取消订房'; resultStr = '已推送订房,推送时间:' + item.HotelPushDate + '<br/> 点击可取消订房';
......
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