Commit 97a78851 authored by qiaoyajun's avatar qiaoyajun

自由行计划方案添加参数

parent 19d4f761
...@@ -886,9 +886,7 @@ ...@@ -886,9 +886,7 @@
PriceTagIds:[], PriceTagIds:[],
PriceFlight: JSON.parse( PriceFlight: JSON.parse(
JSON.stringify(this.PostConfig.FlightList) JSON.stringify(this.PostConfig.FlightList)
), )
customId:this.PostConfig.customId,
allotId:this.PostConfig.allotId,
}; };
} }
this.returnPriceList.push(objItem); this.returnPriceList.push(objItem);
...@@ -968,7 +966,7 @@ ...@@ -968,7 +966,7 @@
EstartcityId: 0, EstartcityId: 0,
EendcityId: 0, EendcityId: 0,
}; };
if(TrafficList.TrafficList.length>=2) { if(TrafficList.TrafficList.length>=2) {
if(TrafficList.TrafficList[0].SubTraffic[0].ArrivalType!==1) return; if(TrafficList.TrafficList[0].SubTraffic[0].ArrivalType!==1) return;
if(TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[0].ArrivalType!==1) return; if(TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[0].ArrivalType!==1) return;
...@@ -980,7 +978,7 @@ ...@@ -980,7 +978,7 @@
let list = TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic.length-1]; let list = TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic.length-1];
if(list.ArrivalCityId===0) return; if(list.ArrivalCityId===0) return;
if(list.StartCityId===0) return; if(list.StartCityId===0) return;
msg.EstartcityId = list.StartCityId; msg.EstartcityId = list.StartCityId;
msg.EendcityId = list.ArrivalCityId; msg.EendcityId = list.ArrivalCityId;
}else { }else {
if(TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[0].ArrivalCityId===0) return; if(TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[0].ArrivalCityId===0) return;
...@@ -988,7 +986,7 @@ ...@@ -988,7 +986,7 @@
msg.EstartcityId = TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[0].StartCityId; msg.EstartcityId = TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[0].StartCityId;
msg.EendcityId = TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[0].ArrivalCityId; msg.EendcityId = TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[0].ArrivalCityId;
} }
let storageMsg = localStorage.queryFlightAirMsg?JSON.parse(localStorage.queryFlightAirMsg):null; let storageMsg = localStorage.queryFlightAirMsg?JSON.parse(localStorage.queryFlightAirMsg):null;
if(storageMsg){ if(storageMsg){
if(storageMsg.FstartcityId!==msg.FstartcityId if(storageMsg.FstartcityId!==msg.FstartcityId
...@@ -1019,7 +1017,7 @@ ...@@ -1019,7 +1017,7 @@
}, },
// 拿到航班信息初始化日历 // 拿到航班信息初始化日历
initCalendarEdit() { initCalendarEdit() {
for(let i in this.queryFlightAirDateList){ for(let i in this.queryFlightAirDateList){
for(let k in this.days){ for(let k in this.days){
if(this.queryFlightAirDateList[i].day == new Date(this.days[k].day).Format("yyyy-MM-dd")){ if(this.queryFlightAirDateList[i].day == new Date(this.days[k].day).Format("yyyy-MM-dd")){
...@@ -1105,7 +1103,7 @@ ...@@ -1105,7 +1103,7 @@
this.queryFlightAirListData.forEach(x=>{ this.queryFlightAirListData.forEach(x=>{
if(x.purchaseID==this.getSelectdata){ if(x.purchaseID==this.getSelectdata){
item = x; item = x;
} }
}); });
this.priceData.AirticketBindList.push({ this.priceData.AirticketBindList.push({
......
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