Commit 87f6d3f0 authored by 黄奎's avatar 黄奎

页面修改

parent 92a975f9
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
</div> </div>
</div> </div>
<div> <div>
<span class="openGroup opbd" @click="goToOpenTravel('TravelManager',item.ID,item.OpenState)"> <span class="openGroup opbd" @click="goToOpenTravel('TravelManager2',item.ID,item.OpenState)">
</span> </span>
<span class="bianji opbd" @click="goUrl('QuotationNewPrice',item.ID,false)" > <span class="bianji opbd" @click="goUrl('QuotationNewPrice',item.ID,false)" >
...@@ -268,7 +268,7 @@ ...@@ -268,7 +268,7 @@
//初始化表格数据 //初始化表格数据
getList() { getList() {
this.loading = true; this.loading = true;
this.apipost("travel_get_GetTravelOfferPageList", this.queryData, res => { this.apipost("travel_get_GetTravelOfferPageList_V2", this.queryData, res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.queryData.total = res.data.data.count; this.queryData.total = res.data.data.count;
...@@ -440,7 +440,8 @@ ...@@ -440,7 +440,8 @@
name: path, name: path,
query: { query: {
configId: configId, configId: configId,
openState: openState openState: openState,
isOffer:1
} }
}); });
} else { } else {
......
...@@ -84,8 +84,9 @@ ...@@ -84,8 +84,9 @@
}, },
data() { data() {
return { return {
IsShowBtn:false,//是否显示按钮 IsShowBtn: false, //是否显示按钮
ConfigId: 0, //地址栏查询参数 ConfigId: 0, //地址栏查询参数
IsHaveOffer: 0, //是否有报价单
NewConfigId: "", //configID加密后的字符串【预览使用】 NewConfigId: "", //configID加密后的字符串【预览使用】
TCNUM: '', //团控列表传过来的tcnum TCNUM: '', //团控列表传过来的tcnum
NoticeParameters: { NoticeParameters: {
...@@ -135,7 +136,7 @@ ...@@ -135,7 +136,7 @@
IsUpdateHotel: 0, IsUpdateHotel: 0,
OpenTeamDescribe: "", //开团备注 OpenTeamDescribe: "", //开团备注
IsOpenHotel: 0, //0可以添加删除酒店,1-不能修改酒店信息 IsOpenHotel: 0, //0可以添加删除酒店,1-不能修改酒店信息
DayNum:0,//行程天数 DayNum: 0, //行程天数
}, },
//行程 //行程
FeatureData: { FeatureData: {
...@@ -238,10 +239,13 @@ ...@@ -238,10 +239,13 @@
/*获取组件配置信息【回调方法】*/ /*获取组件配置信息【回调方法】*/
getConfig(configObj) { getConfig(configObj) {
this.PostConfig = configObj; this.PostConfig = configObj;
this.NoticeParameters.ConfigId = this.PostConfig.ConfigId; //没有报价单根据线路设置直采和非直采方式生成线路行程
this.NoticeParameters.CountryID = this.PostConfig.CountryID; if (this.IsHaveOffer == 0) {
this.NoticeParameters.IsDirect = this.PostConfig.IsDirect; this.NoticeParameters.ConfigId = this.PostConfig.ConfigId;
this.NoticeParameters.LineId = this.PostConfig.LineId; this.NoticeParameters.CountryID = this.PostConfig.CountryID;
this.NoticeParameters.IsDirect = this.PostConfig.IsDirect;
this.NoticeParameters.LineId = this.PostConfig.LineId;
}
if (this.ConfigId == 0) { if (this.ConfigId == 0) {
this.FeatureData.LineName = this.PostConfig.LineName; this.FeatureData.LineName = this.PostConfig.LineName;
this.FeatureData.Subtitle = this.PostConfig.LineTeamName; this.FeatureData.Subtitle = this.PostConfig.LineTeamName;
...@@ -370,11 +374,10 @@ ...@@ -370,11 +374,10 @@
if (TripFeature.FeatureType >= 4) { if (TripFeature.FeatureType >= 4) {
var htmlObj = document.getElementById("newFeatureBox"); var htmlObj = document.getElementById("newFeatureBox");
if (htmlObj && htmlObj.innerHTML != null && htmlObj.innerHTML != "") {} else { if (htmlObj && htmlObj.innerHTML != null && htmlObj.innerHTML != "") {} else {
//更新行程特色 //更新行程特色
if(this.journeyList.IsUpdateTrip==1) if (this.journeyList.IsUpdateTrip == 1) {
{ this.MsgBus.$emit('comUpTravel');
this.MsgBus.$emit('comUpTravel'); }
}
} }
} }
...@@ -404,7 +407,7 @@ ...@@ -404,7 +407,7 @@
} }
basicData.TeamType = this.TeamType; basicData.TeamType = this.TeamType;
basicData.IsUpdateHotel = this.PostConfig.IsUpdateHotel; basicData.IsUpdateHotel = this.PostConfig.IsUpdateHotel;
this.apipost( this.apipost(
"travel_post_SetTravelConfigInfo", "travel_post_SetTravelConfigInfo",
basicData, basicData,
...@@ -631,6 +634,7 @@ ...@@ -631,6 +634,7 @@
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
console.log("tempData",tempData);
if (tempData.Feature != null) { if (tempData.Feature != null) {
this.FeatureData.ID = tempData.Feature.ID; this.FeatureData.ID = tempData.Feature.ID;
this.FeatureData.ConfigId = tempData.Feature.ConfigId; this.FeatureData.ConfigId = tempData.Feature.ConfigId;
...@@ -686,7 +690,7 @@ ...@@ -686,7 +690,7 @@
this.PostConfig.VideoStr = tempData.VideoStr; this.PostConfig.VideoStr = tempData.VideoStr;
this.PostConfig.OpenTeamDescribe = tempData.OpenTeamDescribe; this.PostConfig.OpenTeamDescribe = tempData.OpenTeamDescribe;
this.PostConfig.IsOpenHotel = tempData.IsOpenHotel; this.PostConfig.IsOpenHotel = tempData.IsOpenHotel;
this.PostConfig.DayNum=tempData.DayNum;//行程天数 this.PostConfig.DayNum = tempData.DayNum; //行程天数
this.NoticeParameters.ConfigId = tempData.ConfigId; this.NoticeParameters.ConfigId = tempData.ConfigId;
...@@ -709,6 +713,8 @@ ...@@ -709,6 +713,8 @@
this.PostConfig.IsSubstitution = tempData.IsSubstitution; this.PostConfig.IsSubstitution = tempData.IsSubstitution;
this.PostConfig.IsDirect = tempData.IsDirect; this.PostConfig.IsDirect = tempData.IsDirect;
this.PostConfig.PriceIsDirect = tempData.PriceIsDirect; this.PostConfig.PriceIsDirect = tempData.PriceIsDirect;
//是否有报价单
this.IsHaveOffer = tempData.IsHaveOffer;
if (tempData.FlightList != null) { if (tempData.FlightList != null) {
this.PostConfig.FlightList = tempData.FlightList; this.PostConfig.FlightList = tempData.FlightList;
...@@ -753,7 +759,7 @@ ...@@ -753,7 +759,7 @@
this.Error(res.data.message); this.Error(res.data.message);
} }
this.loading = false; this.loading = false;
this.IsShowBtn=true; this.IsShowBtn = true;
}, },
err => {} err => {}
); );
...@@ -784,7 +790,7 @@ ...@@ -784,7 +790,7 @@
this.Error(res.data.message); this.Error(res.data.message);
} }
this.loading = false; this.loading = false;
this.IsShowBtn=true; this.IsShowBtn = true;
}, },
err => {} err => {}
); );
......
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