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);
......
...@@ -33,22 +33,29 @@ ...@@ -33,22 +33,29 @@
<TravelConfig @headCallBack="getConfig" @setTravelUploadData="setTravelUploadData" :PostConfig="PostConfig" <TravelConfig @headCallBack="getConfig" @setTravelUploadData="setTravelUploadData" :PostConfig="PostConfig"
:TCNUM="TCNUM" id="firstAnchor" :LineList="LineList"></TravelConfig> :TCNUM="TCNUM" id="firstAnchor" :LineList="LineList"></TravelConfig>
<TravelDaysTripDirect id="secondAnchor" @headCallBack="getDaysTrip" :NoticeParameters="NoticeParameters" <TravelDaysTripDirect id="secondAnchor" @headCallBack="getDaysTrip" :NoticeParameters="NoticeParameters"
:subConfig="journeyList" :isOpenGroup="false" :IsDirect="PostConfig.IsDirect" v-bind:AllCityList="AllCityList" :subConfig="journeyList" :isOpenGroup="false" :IsDirect="PostConfig.IsDirect"
v-bind:StartCity="StartCity" :UseTypeArray="UseTypeArray" :AirPickUp="AirPickUp" :AirSend="AirSend" @change="handlerChangeData" :TeamType="TeamType"></TravelDaysTripDirect> v-bind:AllCityList="AllCityList"
<TravelFeature ref="TravelFeature" id="thirdAnchor" @featureCallBack="getFeature" :FeatureData="FeatureData" :TeamType="TeamType" v-bind:StartCity="StartCity" :UseTypeArray="UseTypeArray" :AirPickUp="AirPickUp"
:AirSend="AirSend" @change="handlerChangeData"
:TeamType="TeamType"></TravelDaysTripDirect>
<TravelFeature ref="TravelFeature" id="thirdAnchor" @featureCallBack="getFeature" :FeatureData="FeatureData"
:TeamType="TeamType"
:isNewConfig="isNewConfig" @unlockFormCommit="unlockFormCommit"></TravelFeature> :isNewConfig="isNewConfig" @unlockFormCommit="unlockFormCommit"></TravelFeature>
<TravelNotice ref="TravelNotice" id="fourAnchor" @headCallBack="getNotice" :subArray="NoticeParameters" <TravelNotice ref="TravelNotice" id="fourAnchor" @headCallBack="getNotice" :subArray="NoticeParameters"
:NoticeData="NoticeData" v-bind:PostConfig="PostConfig" v-bind:AllCityList="AllCityList" v-bind:CountryID="PostConfig.CountryID"></TravelNotice> :NoticeData="NoticeData" v-bind:PostConfig="PostConfig" v-bind:AllCityList="AllCityList"
v-bind:CountryID="PostConfig.CountryID"></TravelNotice>
<TravelPrice2 ref="TravelPrice" id="fiveAnchor" @headCallBack="getPrice" :PostDaysTrip="PostDaysTrip" <TravelPrice2 ref="TravelPrice" id="fiveAnchor" @headCallBack="getPrice" :PostDaysTrip="PostDaysTrip"
:priceList="PriceList" :PostConfig="PostConfig" :modifyTcid="modifyTcid" :TeamType="TeamType"></TravelPrice2> :priceList="PriceList" :PostConfig="PostConfig" :modifyTcid="modifyTcid"
:TeamType="TeamType"></TravelPrice2>
<div class="btnFixedDiv"> <div class="btnFixedDiv">
<div class="toTop" @click="backTop"> <div class="toTop" @click="backTop">
<i class="iconfont icon-huidaodingbu"></i> <i class="iconfont icon-huidaodingbu"></i>
</div> </div>
<div v-if="modifyType!=2" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="submitForm(1)">保存</div> <div v-if="modifyType!=2" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="submitForm(1)">保存</div>
<div v-if="modifyType!=2" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="submitForm(2)">提交</div> <div v-if="modifyType!=2" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="submitForm(2)">提交</div>
<div v-if="modifyType==2" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="submitForm(3)" title="另存为新模板">保存 <div v-if="modifyType==2" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="submitForm(3)"
title="另存为新模板">保存
</div> </div>
<div v-if="ConfigId>0" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="goB2B()">预览</div> <div v-if="ConfigId>0" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="goB2B()">预览</div>
</div> </div>
...@@ -58,37 +65,37 @@ ...@@ -58,37 +65,37 @@
</template> </template>
<script> <script>
import TravelConfig from "../TravelGroupControl/TravelConfig.vue"; import TravelConfig from '../TravelGroupControl/TravelConfig.vue'
import TravelDaysTripDirect from "../oldTravelGroupControl/TravelDaysTrip_Direct"; import TravelDaysTripDirect from '../oldTravelGroupControl/TravelDaysTrip_Direct'
import TravelFeature from "../TravelGroupControl/TravelFeature"; import TravelFeature from '../TravelGroupControl/TravelFeature'
import TravelNotice from "../TravelGroupControl/TravelNotice"; import TravelNotice from '../TravelGroupControl/TravelNotice'
import TravelPrice2 from "../TravelGroupControl/TravelPrice2"; import TravelPrice2 from '../TravelGroupControl/TravelPrice2'
export default { export default {
provide() { provide () {
return { return {
loadConfigInfo: this.firstLoadConfigInfo loadConfigInfo: this.firstLoadConfigInfo
} }
}, },
data() { data () {
return { return {
ConfigId: 0, //地址栏查询参数 ConfigId: 0, //地址栏查询参数
NewConfigId: "", //configID加密后的字符串【预览使用】 NewConfigId: '', //configID加密后的字符串【预览使用】
TCNUM: '', //团控列表传过来的tcnum TCNUM: '', //团控列表传过来的tcnum
NoticeParameters: { NoticeParameters: {
ConfigId: 0, //配置编号 ConfigId: 0, //配置编号
CountryID: "", //国家 CountryID: '', //国家
IsDirect: 0, //是否直采 IsDirect: 0, //是否直采
LineId: 0 //线路编号 LineId: 0 //线路编号
}, },
NoticeData: { NoticeData: {
FeeInclude: "", FeeInclude: '',
FeeNonInclude: "", FeeNonInclude: '',
ImportantTip: "", ImportantTip: '',
WarmTip: "", WarmTip: '',
B2BRemark: "", B2BRemark: '',
ShopRemark: "", ShopRemark: '',
VisaRemark: "" VisaRemark: ''
}, },
ShopList: [], ShopList: [],
SelfpayingList: [], SelfpayingList: [],
...@@ -100,51 +107,51 @@ ...@@ -100,51 +107,51 @@
StartCityId: 0, StartCityId: 0,
LineId: 0, LineId: 0,
LineteamId: 0, LineteamId: 0,
Title: "", Title: '',
//本团卖点 //本团卖点
ProductRecommend: "", ProductRecommend: '',
//选择的系列的国家编号 //选择的系列的国家编号
CountryID: 0, CountryID: 0,
RemoveChild: [], //移除的子项 RemoveChild: [], //移除的子项
RemoveImg: [], //移除的图片 RemoveImg: [], //移除的图片
IsDirect: 0, //是否直采(0-否-1-是) IsDirect: 0, //是否直采(0-否-1-是)
PriceIsDirect: 0, //是否直采报价(1-否-2-是) PriceIsDirect: 0, //是否直采报价(1-否-2-是)
PDFAlias: "", //pdf别名, PDFAlias: '', //pdf别名,
FlightList: [], //航班信息 FlightList: [], //航班信息
ShopList: [], //购物店信息 ShopList: [], //购物店信息
SelfpayingList: [], //自费信息 SelfpayingList: [], //自费信息
Feature: "", //行程特色 Feature: '', //行程特色
fileList: [], fileList: [],
VideoStr: "", //视频地址 VideoStr: '', //视频地址
//是否更新酒店库存 //是否更新酒店库存
IsUpdateHotel:0, IsUpdateHotel: 0,
OpenTeamDescribe:"",//开团备注 OpenTeamDescribe: '',//开团备注
customId:0, customId: 0,
allotId:0, allotId: 0,
}, },
//行程 //行程
FeatureData: { FeatureData: {
ID: 0, ID: 0,
ConfigId: 0, ConfigId: 0,
FeatureType: 3, FeatureType: 3,
FeatureImg: "", FeatureImg: '',
FeatureContent: "", //自定义内容 FeatureContent: '', //自定义内容
FeatureHtml: "", //行程特色(html) FeatureHtml: '', //行程特色(html)
FeatureHtmlImage: "", //行程特色(image) FeatureHtmlImage: '', //行程特色(image)
FeatureHtmlJson: "", //行程特色(Json数据) FeatureHtmlJson: '', //行程特色(Json数据)
FeatureHtmlJsonDelete: "", //行程特色删除数据 FeatureHtmlJsonDelete: '', //行程特色删除数据
fileList: [], fileList: [],
Title: "", Title: '',
Subtitle: "", Subtitle: '',
LineName: "", LineName: '',
DayList: [], DayList: [],
TemplateId: 1, TemplateId: 1,
IsSave: false //是否保存 IsSave: false //是否保存
}, },
//线路行程 //线路行程
journeyList: { journeyList: {
DayNum: "", //天数 DayNum: '', //天数
NightNum: "", //晚上 NightNum: '', //晚上
StartCityId: 0, StartCityId: 0,
ReturnArriveCityId: 0, //返回抵达城市 ReturnArriveCityId: 0, //返回抵达城市
//交通 //交通
...@@ -165,13 +172,13 @@ ...@@ -165,13 +172,13 @@
DayList: [], DayList: [],
isFileUpload: false //是否是一键上传行程 isFileUpload: false //是否是一键上传行程
}, },
PostPrice: "", //报价信息 PostPrice: '', //报价信息
//线路 //线路
LineList: [], LineList: [],
PostFeature: "", //行程特色信息 PostFeature: '', //行程特色信息
PostNotice: "", //行程特色其他内容 PostNotice: '', //行程特色其他内容
//配置信息 //配置信息
PostDaysTrip: "", //每天的行程 PostDaysTrip: '', //每天的行程
PriceList: [], PriceList: [],
//所有的城市数据 //所有的城市数据
AllCityList: [], AllCityList: [],
...@@ -182,17 +189,17 @@ ...@@ -182,17 +189,17 @@
isgetPrice: true, isgetPrice: true,
realSave: 1, //1:制作报价单,2保存草稿 realSave: 1, //1:制作报价单,2保存草稿
outerVisible: false, outerVisible: false,
tripTitle: "", tripTitle: '',
isSubmit: true, isSubmit: true,
//选中的导航 //选中的导航
ckedNav: 1, ckedNav: 1,
modifyType: 1, //1:系列团修改,2:单团修改 modifyType: 1, //1:系列团修改,2:单团修改
modifyTcid: 0, //修改单团期id modifyTcid: 0, //修改单团期id
TeamType:'', TeamType: '',
loading: false, loading: false,
isNewConfig: true, isNewConfig: true,
isfromManager:true, isfromManager: true,
}; }
}, },
components: { components: {
TravelConfig: TravelConfig, TravelConfig: TravelConfig,
...@@ -203,10 +210,10 @@ ...@@ -203,10 +210,10 @@
}, },
methods: { methods: {
/*获取行程特色内容对象*/ /*获取行程特色内容对象*/
getFeature(featureObj) { getFeature (featureObj) {
this.PostFeature = featureObj; this.PostFeature = featureObj
}, },
handlerChangeData(data) { handlerChangeData (data) {
if ( if (
this.FeatureData.FeatureHtmlJson && this.FeatureData.FeatureHtmlJson &&
this.FeatureData.FeatureHtmlJson.d && this.FeatureData.FeatureHtmlJson.d &&
...@@ -214,133 +221,137 @@ ...@@ -214,133 +221,137 @@
) { ) {
//to do something //to do something
} else { } else {
this.$refs.TravelFeature.setNewDate(data); this.$refs.TravelFeature.setNewDate(data)
} }
}, },
/*获取组件配置信息【回调方法】*/ /*获取组件配置信息【回调方法】*/
getConfig(configObj) { getConfig (configObj) {
this.PostConfig = configObj; this.PostConfig = configObj
this.NoticeParameters.ConfigId = this.PostConfig.ConfigId; this.NoticeParameters.ConfigId = this.PostConfig.ConfigId
this.NoticeParameters.CountryID = this.PostConfig.CountryID; this.NoticeParameters.CountryID = this.PostConfig.CountryID
this.NoticeParameters.IsDirect = this.PostConfig.IsDirect; this.NoticeParameters.IsDirect = this.PostConfig.IsDirect
this.NoticeParameters.LineId = this.PostConfig.LineId; 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
this.FeatureData.Title = this.PostConfig.Title; this.FeatureData.Title = this.PostConfig.Title
} }
}, },
/*获取组件报价信息*/ /*获取组件报价信息*/
getPrice(priceObj) { getPrice (priceObj) {
priceObj.forEach(objItem => { priceObj.forEach(objItem => {
var SaleBranchId = ""; var SaleBranchId = ''
if (objItem.SaleBranchIdArray.length > 0) { if (objItem.SaleBranchIdArray.length > 0) {
objItem.SaleBranchIdArray.forEach(subItem => { objItem.SaleBranchIdArray.forEach(subItem => {
SaleBranchId += subItem + ","; SaleBranchId += subItem + ','
}); })
} }
if (SaleBranchId != "") { if (SaleBranchId != '') {
var str = SaleBranchId.substr(0, SaleBranchId.length - 1); var str = SaleBranchId.substr(0, SaleBranchId.length - 1)
objItem.SaleBranchId = str; objItem.SaleBranchId = str
} }
}); })
this.PostPrice = priceObj; this.PostPrice = priceObj
}, },
//行程回调 //行程回调
getDaysTrip(tripObj) { getDaysTrip (tripObj) {
this.PostDaysTrip = tripObj; this.PostDaysTrip = tripObj
}, },
/*获取行程特色内容对象*/ /*获取行程特色内容对象*/
getFeature(featureObj) { getFeature (featureObj) {
this.PostFeature = featureObj; this.PostFeature = featureObj
}, },
/*获取行程特色其他内容*/ /*获取行程特色其他内容*/
getNotice(noticeObj) { getNotice (noticeObj) {
this.PostNotice = noticeObj; this.PostNotice = noticeObj
}, },
//解锁表单重复提交 //解锁表单重复提交
unlockFormCommit(value) { unlockFormCommit (value) {
this.isSubmit = value; this.isSubmit = value
}, },
//初始化幻灯片 //初始化幻灯片
initFileList() { initFileList () {
for (var i = 0; i < 5; i++) { for (var i = 0; i < 5; i++) {
var fileObj = this.$commonUtils.FileObject(); var fileObj = this.$commonUtils.FileObject()
if (this.PostConfig.fileList.length <= 5) { if (this.PostConfig.fileList.length <= 5) {
this.PostConfig.fileList.push(fileObj); this.PostConfig.fileList.push(fileObj)
} }
this.FeatureData.fileList.push(fileObj); this.FeatureData.fileList.push(fileObj)
} }
}, },
//提交验证 //提交验证
submitForm(SaveType) { submitForm (SaveType) {
if (this.isSubmit) { if (this.isSubmit) {
this.isSubmit = false; this.isSubmit = false
this.SaveData(SaveType); this.SaveData(SaveType)
} }
}, },
/*保存数据*/ /*保存数据*/
SaveData(SaveType) { SaveData (SaveType) {
this.MsgBus.$emit('saveTravel', true); this.MsgBus.$emit('saveTravel', true)
this.FeatureData.IsSave = true; this.FeatureData.IsSave = true
this.submitText = "保存中"; this.submitText = '保存中'
//团队配置 //团队配置
var basicData = {}; var basicData = {}
basicData.PriceList = this.PostPrice; basicData.PriceList = this.PostPrice
//配置编号 //配置编号
basicData.ID = this.ConfigId; basicData.ID = this.ConfigId
basicData.LineId = this.PostConfig.LineId; if (basicData.ID != null && basicData.ID == 0) {
basicData.LineteamId = this.PostConfig.LineteamId; basicData.customId = this.PostConfig.customId
basicData.Title = this.PostConfig.Title; basicData.allotId = this.PostConfig.allotId
basicData.OpRemark = this.PostConfig.OpRemark; }
basicData.ProductRecommend = this.PostConfig.ProductRecommend; basicData.LineId = this.PostConfig.LineId
basicData.VideoStr = this.PostConfig.VideoStr; basicData.LineteamId = this.PostConfig.LineteamId
basicData.PDFAlias = this.PostConfig.PDFAlias; basicData.Title = this.PostConfig.Title
basicData.ImgCover = this.PostConfig.ImgCover; basicData.OpRemark = this.PostConfig.OpRemark
basicData.PriceIsDirect = this.PostConfig.PriceIsDirect; basicData.ProductRecommend = this.PostConfig.ProductRecommend
basicData.IsDirect = this.PostConfig.IsDirect; basicData.VideoStr = this.PostConfig.VideoStr
basicData.OpenTeamDescribe=this.PostConfig.OpenTeamDescribe; basicData.PDFAlias = this.PostConfig.PDFAlias
basicData.RemoveChild = this.PostConfig.RemoveChild; basicData.ImgCover = this.PostConfig.ImgCover
basicData.PriceIsDirect = this.PostConfig.PriceIsDirect
basicData.IsDirect = this.PostConfig.IsDirect
basicData.OpenTeamDescribe = this.PostConfig.OpenTeamDescribe
basicData.RemoveChild = this.PostConfig.RemoveChild
basicData.TeamType = this.PostConfig.TeamType; basicData.TeamType = this.PostConfig.TeamType
basicData.DayNum = (this.PostDaysTrip && this.PostDaysTrip.DayNum != "") ? this.PostDaysTrip.DayNum : 0; basicData.DayNum = (this.PostDaysTrip && this.PostDaysTrip.DayNum != '') ? this.PostDaysTrip.DayNum : 0
basicData.NightNum = (this.PostDaysTrip && this.PostDaysTrip.NightNum != "") ? this.PostDaysTrip.NightNum : 0; basicData.NightNum = (this.PostDaysTrip && this.PostDaysTrip.NightNum != '') ? this.PostDaysTrip.NightNum : 0
basicData.StartCityId = (this.PostDaysTrip && this.PostDaysTrip.StartCityId != "") ? this.PostDaysTrip.StartCityId : basicData.StartCityId = (this.PostDaysTrip && this.PostDaysTrip.StartCityId != '') ? this.PostDaysTrip.StartCityId :
0; 0
basicData.ReturnArriveCityId = (this.PostDaysTrip && this.PostDaysTrip.ReturnArriveCityId != "") ? this.PostDaysTrip basicData.ReturnArriveCityId = (this.PostDaysTrip && this.PostDaysTrip.ReturnArriveCityId != '') ? this.PostDaysTrip
.ReturnArriveCityId : 0; .ReturnArriveCityId : 0
basicData.SelfpayingList = this.PostConfig.SelfpayingList; basicData.SelfpayingList = this.PostConfig.SelfpayingList
basicData.ShopList = this.PostConfig.ShopList; basicData.ShopList = this.PostConfig.ShopList
basicData.DinnerList = this.PostDaysTrip.DinnerList; basicData.DinnerList = this.PostDaysTrip.DinnerList
basicData.FreedomList = this.PostDaysTrip.FreedomList; basicData.FreedomList = this.PostDaysTrip.FreedomList
basicData.HotelList = this.PostDaysTrip.HotelList; basicData.HotelList = this.PostDaysTrip.HotelList
basicData.ScenicList = this.PostDaysTrip.ScenicList; basicData.ScenicList = this.PostDaysTrip.ScenicList
basicData.TrafficList = this.PostDaysTrip.TrafficList; basicData.TrafficList = this.PostDaysTrip.TrafficList
basicData.WarmTipList = this.PostDaysTrip.WarmTipList; basicData.WarmTipList = this.PostDaysTrip.WarmTipList
basicData.TitleList = this.PostDaysTrip.TitleList; basicData.TitleList = this.PostDaysTrip.TitleList
basicData.RemoveImg = this.PostDaysTrip.RemoveImg; basicData.RemoveImg = this.PostDaysTrip.RemoveImg
//行程特色数据 //行程特色数据
var TripFeature = {}; var TripFeature = {}
if (this.PostFeature == "") { if (this.PostFeature == '') {
TripFeature = this.FeatureData; TripFeature = this.FeatureData
} else { } else {
TripFeature = this.PostFeature; TripFeature = this.PostFeature
} }
TripFeature.FeatureHtmlJson = TripFeature.FeatureHtmlJson ? TripFeature.FeatureHtmlJson = TripFeature.FeatureHtmlJson ?
JSON.stringify(TripFeature.FeatureHtmlJson) : JSON.stringify(TripFeature.FeatureHtmlJson) :
""; ''
TripFeature.FeatureHtmlJsonDelete = TripFeature.FeatureHtmlJsonDelete ? JSON.stringify(TripFeature.FeatureHtmlJsonDelete) : TripFeature.FeatureHtmlJsonDelete = TripFeature.FeatureHtmlJsonDelete ? JSON.stringify(TripFeature.FeatureHtmlJsonDelete) :
""; ''
TripFeature.FeeInclude = this.PostNotice.FeeInclude; TripFeature.FeeInclude = this.PostNotice.FeeInclude
TripFeature.FeeNonInclude = this.PostNotice.FeeNonInclude; TripFeature.FeeNonInclude = this.PostNotice.FeeNonInclude
TripFeature.ImportantTip = this.PostNotice.ImportantTip; TripFeature.ImportantTip = this.PostNotice.ImportantTip
TripFeature.WarmTip = this.PostNotice.WarmTip; TripFeature.WarmTip = this.PostNotice.WarmTip
TripFeature.B2BRemark = this.PostNotice.B2BRemark; TripFeature.B2BRemark = this.PostNotice.B2BRemark
TripFeature.ShopRemark = this.PostNotice.ShopRemark; TripFeature.ShopRemark = this.PostNotice.ShopRemark
TripFeature.VisaRemark = this.PostNotice.VisaRemark; TripFeature.VisaRemark = this.PostNotice.VisaRemark
if ( if (
basicData.TrafficList != null && basicData.TrafficList != null &&
...@@ -348,414 +359,418 @@ ...@@ -348,414 +359,418 @@
basicData.TrafficList[0].SubTraffic != null && basicData.TrafficList[0].SubTraffic != null &&
basicData.TrafficList[0].SubTraffic.length > 0 basicData.TrafficList[0].SubTraffic.length > 0
) { ) {
basicData["ArriveCityId"] = basicData['ArriveCityId'] =
basicData.TrafficList[0].SubTraffic[0].ArrivalCityId; basicData.TrafficList[0].SubTraffic[0].ArrivalCityId
} }
if (basicData.OpenState == 1) { if (basicData.OpenState == 1) {
basicData["AfterOpenModify"] = true; basicData['AfterOpenModify'] = true
} }
//"另存"新增团期 //"另存"新增团期
if (SaveType == 3) { if (SaveType == 3) {
basicData.TravelInfoIsCopy = true; basicData.TravelInfoIsCopy = true
} }
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,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
//配置编号 //配置编号
TripFeature.ConfigId = res.data.data; TripFeature.ConfigId = res.data.data
TripFeature.isfromManager = true; TripFeature.isfromManager = true
this.$refs.TravelFeature.getHtml(TripFeature, SaveType,this.TeamType); this.$refs.TravelFeature.getHtml(TripFeature, SaveType, this.TeamType)
// this.$refs.TravelPrice.closeHotelDialog(); // this.$refs.TravelPrice.closeHotelDialog();
// this.$refs.TravelPrice.initStatus(); // this.$refs.TravelPrice.initStatus();
} else if (res.data.resultCode == 10009) { } else if (res.data.resultCode == 10009) {
this.FeatureData.IsSave = false; this.FeatureData.IsSave = false
//表单重复提交 //表单重复提交
this.isSubmit = true; this.isSubmit = true
} else { } else {
this.FeatureData.IsSave = false; this.FeatureData.IsSave = false
this.Error(res.data.message); this.Error(res.data.message)
this.isSubmit = true; this.isSubmit = true
this.submitText = "提交"; this.submitText = '提交'
this.$refs.TravelFeature.del_show = true; this.$refs.TravelFeature.del_show = true
} }
}, },
err => {} err => {
); }
)
}, },
//初始化团的幻灯片 //初始化团的幻灯片
initFileList() { initFileList () {
this.PostConfig.fileList=[]; this.PostConfig.fileList = []
for (var i = 0; i < 5; i++) { for (var i = 0; i < 5; i++) {
var fileObj = this.$commonUtils.FileObject(); var fileObj = this.$commonUtils.FileObject()
this.PostConfig.fileList.push(fileObj); this.PostConfig.fileList.push(fileObj)
} }
}, },
//初始化行程特色幻灯片 //初始化行程特色幻灯片
initFeatureFile() { initFeatureFile () {
for (var i = 0; i < 5; i++) { for (var i = 0; i < 5; i++) {
var fileObj = this.$commonUtils.FileObject(); var fileObj = this.$commonUtils.FileObject()
this.FeatureData.fileList.push(fileObj); this.FeatureData.fileList.push(fileObj)
} }
}, },
custormAnchor(anchorName, index) { custormAnchor (anchorName, index) {
// 找到锚点 // 找到锚点
let anchorElement = document.getElementById(anchorName); let anchorElement = document.getElementById(anchorName)
// 如果对应id的锚点存在,就跳转到锚点 // 如果对应id的锚点存在,就跳转到锚点
if (anchorElement) { if (anchorElement) {
anchorElement.scrollIntoView(); anchorElement.scrollIntoView()
} }
this.ckedNav = index; this.ckedNav = index
}, //滚动事件 }, //滚动事件
ScrollMethod() { ScrollMethod () {
var that = this; var that = this
var s1, s2, s3, s4, s5; var s1, s2, s3, s4, s5
document document
.getElementsByClassName("frame-box")[0] .getElementsByClassName('frame-box')[0]
.addEventListener("scroll", function () { .addEventListener('scroll', function () {
if (document.getElementById("firstAnchor") != null) { if (document.getElementById('firstAnchor') != null) {
s1 = document.getElementById("firstAnchor").offsetTop; s1 = document.getElementById('firstAnchor').offsetTop
} }
if (document.getElementById("secondAnchor") != null) { if (document.getElementById('secondAnchor') != null) {
s2 = document.getElementById("secondAnchor").offsetTop; s2 = document.getElementById('secondAnchor').offsetTop
} }
if (document.getElementById("thirdAnchor") != null) { if (document.getElementById('thirdAnchor') != null) {
s3 = document.getElementById("thirdAnchor").offsetTop; s3 = document.getElementById('thirdAnchor').offsetTop
} }
if (document.getElementById("fourAnchor") != null) { if (document.getElementById('fourAnchor') != null) {
s4 = document.getElementById("fourAnchor").offsetTop; s4 = document.getElementById('fourAnchor').offsetTop
} }
if (document.getElementById("fiveAnchor") != null) { if (document.getElementById('fiveAnchor') != null) {
s5 = document.getElementById("fiveAnchor").offsetTop; s5 = document.getElementById('fiveAnchor').offsetTop
} }
if (s1 >= this.scrollTop - 50 && s1 <= this.scrollTop + 50) { if (s1 >= this.scrollTop - 50 && s1 <= this.scrollTop + 50) {
that.ckedNav = 1; that.ckedNav = 1
} else if (s2 >= this.scrollTop - 50 && s2 <= this.scrollTop + 50) { } else if (s2 >= this.scrollTop - 50 && s2 <= this.scrollTop + 50) {
that.ckedNav = 2; that.ckedNav = 2
} else if (s3 >= this.scrollTop - 50 && s3 <= this.scrollTop + 50) { } else if (s3 >= this.scrollTop - 50 && s3 <= this.scrollTop + 50) {
that.ckedNav = 3; that.ckedNav = 3
} else if (s4 >= this.scrollTop - 50 && s4 <= this.scrollTop + 50) { } else if (s4 >= this.scrollTop - 50 && s4 <= this.scrollTop + 50) {
that.ckedNav = 4; that.ckedNav = 4
} else if (s5 >= this.scrollTop - 50 && s5 <= this.scrollTop + 50) { } else if (s5 >= this.scrollTop - 50 && s5 <= this.scrollTop + 50) {
that.ckedNav = 5; that.ckedNav = 5
} }
}); })
}, },
//返回顶部 //返回顶部
backTop() { backTop () {
var timer = setInterval(function () { var timer = setInterval(function () {
var scrollTop = document.getElementsByClassName("frame-box")[0] var scrollTop = document.getElementsByClassName('frame-box')[0]
.scrollTop; .scrollTop
var ispeed = Math.floor(-scrollTop / 6); var ispeed = Math.floor(-scrollTop / 6)
if (scrollTop == 0) { if (scrollTop == 0) {
clearInterval(timer); clearInterval(timer)
} }
document.getElementsByClassName("frame-box")[0].scrollTop = document.getElementsByClassName('frame-box')[0].scrollTop =
scrollTop + ispeed; scrollTop + ispeed
}, 30); }, 30)
}, },
/*一键上传数据组装*/ /*一键上传数据组装*/
setTravelUploadData(uploadConfig) { setTravelUploadData (uploadConfig) {
if (uploadConfig != undefined) { if (uploadConfig != undefined) {
var configData = JSON.parse(uploadConfig); var configData = JSON.parse(uploadConfig)
//基础数据组装 //基础数据组装
//this.PostConfig.Title = ""; //this.PostConfig.Title = "";
this.PostConfig.IsDirect = 0; this.PostConfig.IsDirect = 0
//线路行程组装 //线路行程组装
let dayList = []; let dayList = []
for (var i = 0; i < configData.Days.length; i++) { for (var i = 0; i < configData.Days.length; i++) {
let dayObj = configData.Days[i]; let dayObj = configData.Days[i]
var dayItem = this.$tripUtils.tripDayobj(); var dayItem = this.$tripUtils.tripDayobj()
dayItem.DayNum = i + 1; dayItem.DayNum = i + 1
//行程大点 //行程大点
var titleItem = this.$tripUtils.titleObj(); var titleItem = this.$tripUtils.titleObj()
titleItem.DayNum = i + 1; titleItem.DayNum = i + 1
titleItem.Title = dayObj.Title; titleItem.Title = dayObj.Title
dayItem.TitleObj = titleItem; dayItem.TitleObj = titleItem
//交通对象 //交通对象
var trafficObj = this.$tripUtils.trafficObj(); var trafficObj = this.$tripUtils.trafficObj()
trafficObj.DayNum = i + 1; trafficObj.DayNum = i + 1
//交通子对象 //交通子对象
var subTrafficObj = this.$tripUtils.subTrafficObj(); var subTrafficObj = this.$tripUtils.subTrafficObj()
trafficObj.SubTraffic.push(subTrafficObj); trafficObj.SubTraffic.push(subTrafficObj)
dayItem.TrafficObj = trafficObj; dayItem.TrafficObj = trafficObj
//温馨提示 //温馨提示
var warmTipObj = this.$tripUtils.warmtipObj(); var warmTipObj = this.$tripUtils.warmtipObj()
warmTipObj.DayNum = i + 1; warmTipObj.DayNum = i + 1
warmTipObj.Description = dayObj.Tips; warmTipObj.Description = dayObj.Tips
dayItem.WarmTipObj = warmTipObj; dayItem.WarmTipObj = warmTipObj
dayItem.isHide = false; dayItem.isHide = false
dayItem.isRead = false; dayItem.isRead = false
//景点 //景点
if (dayObj.ViewSpotList.length > 0) { if (dayObj.ViewSpotList.length > 0) {
dayObj.ViewSpotList.forEach((viewSpot, index) => { dayObj.ViewSpotList.forEach((viewSpot, index) => {
if ((index + 1) <= 5) { if ((index + 1) <= 5) {
var scenicObj = this.$tripUtils.scenicObj(); var scenicObj = this.$tripUtils.scenicObj()
scenicObj.DayNum = i + 1; scenicObj.DayNum = i + 1
scenicObj.CouponsName = viewSpot.Name; scenicObj.CouponsName = viewSpot.Name
scenicObj.Description = viewSpot.Description; scenicObj.Description = viewSpot.Description
if (viewSpot.Imgs != null && viewSpot.Imgs.length > 0) { if (viewSpot.Imgs != null && viewSpot.Imgs.length > 0) {
let imaArray = []; let imaArray = []
viewSpot.Imgs.forEach(img => { viewSpot.Imgs.forEach(img => {
imaArray.push({ imaArray.push({
Url: img, Url: img,
Name: "" Name: ''
}); })
}); })
scenicObj.NewImaArray = imaArray; scenicObj.NewImaArray = imaArray
scenicObj.NewScenicImg = JSON.stringify(scenicObj.NewImaArray); scenicObj.NewScenicImg = JSON.stringify(scenicObj.NewImaArray)
} else { } else {
scenicObj.NewImaArray = []; scenicObj.NewImaArray = []
scenicObj.NewScenicImg = ""; scenicObj.NewScenicImg = ''
} }
dayItem.ScenicArray.push(scenicObj); dayItem.ScenicArray.push(scenicObj)
} }
}); })
} }
//餐厅 //餐厅
dayItem.DinnerArray.push(this.dinnerUploadFactory(i + 1, 1, dayObj.Breakfast)); dayItem.DinnerArray.push(this.dinnerUploadFactory(i + 1, 1, dayObj.Breakfast))
dayItem.DinnerArray.push(this.dinnerUploadFactory(i + 1, 2, dayObj.Lanuch)); dayItem.DinnerArray.push(this.dinnerUploadFactory(i + 1, 2, dayObj.Lanuch))
dayItem.DinnerArray.push(this.dinnerUploadFactory(i + 1, 3, dayObj.Dinner)); dayItem.DinnerArray.push(this.dinnerUploadFactory(i + 1, 3, dayObj.Dinner))
//酒店 //酒店
var hotelObj = this.$tripUtils.hotelObj(); var hotelObj = this.$tripUtils.hotelObj()
hotelObj.DayNum = i + 1; hotelObj.DayNum = i + 1
hotelObj.HotelName = dayObj.Hotel; hotelObj.HotelName = dayObj.Hotel
dayItem.HotelArray.push(hotelObj); dayItem.HotelArray.push(hotelObj)
dayList.push(dayItem); dayList.push(dayItem)
} }
this.journeyList.isFileUpload = true; this.journeyList.isFileUpload = true
this.journeyList.DayNum = configData.Days.length; this.journeyList.DayNum = configData.Days.length
this.journeyList.NightNum = this.journeyList.DayNum - 1; this.journeyList.NightNum = this.journeyList.DayNum - 1
this.journeyList.DayList = dayList; this.journeyList.DayList = dayList
//产品特色 //产品特色
this.FeatureData.FeatureType = 3; this.FeatureData.FeatureType = 3
this.FeatureData.FeatureContent = configData.Feature; this.FeatureData.FeatureContent = configData.Feature
//行程补充信息 //行程补充信息
this.NoticeData.FeeInclude = configData.PriceInCloub; this.NoticeData.FeeInclude = configData.PriceInCloub
this.NoticeData.FeeNonInclude = configData.PriceNoInCloub; this.NoticeData.FeeNonInclude = configData.PriceNoInCloub
this.NoticeData.ImportantTip = configData.PriceNoInCloub; this.NoticeData.ImportantTip = configData.PriceNoInCloub
this.NoticeData.WarmTip = configData.Tips; this.NoticeData.WarmTip = configData.Tips
this.NoticeData.ShopRemark = configData.Shopping; this.NoticeData.ShopRemark = configData.Shopping
} }
}, },
//餐饮对象上传创建 //餐饮对象上传创建
dinnerUploadFactory(dayNum, useDinnerType, dinnerName) { dinnerUploadFactory (dayNum, useDinnerType, dinnerName) {
let dinnerObj = this.$tripUtils.dinnerObj(); let dinnerObj = this.$tripUtils.dinnerObj()
dinnerObj.UseDinnerType = useDinnerType; dinnerObj.UseDinnerType = useDinnerType
dinnerObj.DinnerName = dinnerName; dinnerObj.DinnerName = dinnerName
dinnerObj.BreakfastUseType = 0; dinnerObj.BreakfastUseType = 0
dinnerObj.DayNum = dayNum; dinnerObj.DayNum = dayNum
return dinnerObj; return dinnerObj
}, },
firstLoadConfigInfo() { firstLoadConfigInfo () {
var routeName = this.$route.name; var routeName = this.$route.name
this.TeamType=1; this.TeamType = 1
let configId = this.$route.query.configId; let configId = this.$route.query.configId
this.modifyTcid = this.$route.query.tcid; this.modifyTcid = this.$route.query.tcid
this.TCNUM = this.$route.query.TCNUM; this.TCNUM = this.$route.query.TCNUM
if (this.modifyTcid > 0) { if (this.modifyTcid > 0) {
this.modifyType = 2; this.modifyType = 2
} else { } else {
this.modifyType = 1; this.modifyType = 1
this.modifyTcid = 0; this.modifyTcid = 0
} }
var that = this; var that = this
if (configId > 0) { if (configId > 0) {
this.isNewConfig = false; this.isNewConfig = false
this.ConfigId = configId; this.ConfigId = configId
let msg = { let msg = {
configId: configId, configId: configId,
TeamType: this.TeamType TeamType: this.TeamType
}; }
this.loading = true; this.loading = true
this.apipost( this.apipost(
"travel_get_GetTravelConfigMakeInfo", 'travel_get_GetTravelConfigMakeInfo',
msg, msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data
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
this.FeatureData.FeatureType = tempData.Feature.FeatureType; this.FeatureData.FeatureType = tempData.Feature.FeatureType
this.FeatureData.FeatureImg = tempData.Feature.FeatureImg; this.FeatureData.FeatureImg = tempData.Feature.FeatureImg
this.FeatureData.TemplateId = tempData.Feature.TemplateId; this.FeatureData.TemplateId = tempData.Feature.TemplateId
this.FeatureData.FeatureContent = tempData.Feature.FeatureContent; this.FeatureData.FeatureContent = tempData.Feature.FeatureContent
//图片列表 //图片列表
this.FeatureData.fileList = tempData.Feature.FeatureImgList; this.FeatureData.fileList = tempData.Feature.FeatureImgList
this.FeatureData.FeatureHtmlJson = this.FeatureData.FeatureHtmlJson =
tempData.Feature.FeatureHtmlJson && tempData.Feature.FeatureHtmlJson &&
tempData.Feature.FeatureHtmlJson != "" && tempData.Feature.FeatureType > 3 ? tempData.Feature.FeatureHtmlJson != '' && tempData.Feature.FeatureType > 3 ?
JSON.parse(tempData.Feature.FeatureHtmlJson) : JSON.parse(tempData.Feature.FeatureHtmlJson) :
null; null
this.FeatureData.FeatureHtmlJsonDelete = tempData.Feature.FeatureHtmlJsonDelete && this.FeatureData.FeatureHtmlJsonDelete = tempData.Feature.FeatureHtmlJsonDelete &&
tempData.Feature.FeatureHtmlJsonDelete != "" && tempData.Feature.FeatureType > 3 ? tempData.Feature.FeatureHtmlJsonDelete != '' && tempData.Feature.FeatureType > 3 ?
JSON.parse(tempData.Feature.FeatureHtmlJsonDelete) : JSON.parse(tempData.Feature.FeatureHtmlJsonDelete) :
null; null
this.NoticeData.FeeInclude = tempData.Feature.FeeInclude; this.NoticeData.FeeInclude = tempData.Feature.FeeInclude
this.NoticeData.FeeNonInclude = tempData.Feature.FeeNonInclude; this.NoticeData.FeeNonInclude = tempData.Feature.FeeNonInclude
this.NoticeData.ImportantTip = tempData.Feature.ImportantTip; this.NoticeData.ImportantTip = tempData.Feature.ImportantTip
this.NoticeData.WarmTip = tempData.Feature.WarmTip; this.NoticeData.WarmTip = tempData.Feature.WarmTip
this.NoticeData.B2BRemark = tempData.Feature.B2BRemark; this.NoticeData.B2BRemark = tempData.Feature.B2BRemark
this.NoticeData.ShopRemark = tempData.Feature.ShopRemark; this.NoticeData.ShopRemark = tempData.Feature.ShopRemark
this.NoticeData.VisaRemark = tempData.Feature.VisaRemark; this.NoticeData.VisaRemark = tempData.Feature.VisaRemark
} }
if (tempData.PDFAlias !== null && tempData.PDFAlias !== "") { if (tempData.PDFAlias !== null && tempData.PDFAlias !== '') {
this.FeatureData.Title = tempData.PDFAlias; this.FeatureData.Title = tempData.PDFAlias
} else { } else {
this.FeatureData.Title = tempData.Title; this.FeatureData.Title = tempData.Title
} }
if (tempData.PriceList != null) { if (tempData.PriceList != null) {
this.PriceList = tempData.PriceList; this.PriceList = tempData.PriceList
} }
this.FeatureData.Subtitle = tempData.LtName; this.FeatureData.Subtitle = tempData.LtName
this.FeatureData.LineName = tempData.LineName; this.FeatureData.LineName = tempData.LineName
this.FeatureData.DayList = tempData.DayList; this.FeatureData.DayList = tempData.DayList
this.ConfigId = tempData.ID; this.ConfigId = tempData.ID
//HK 2019-01-08添加 NewConfigId B2B预览使用 //HK 2019-01-08添加 NewConfigId B2B预览使用
this.NewConfigId = tempData.NewConfigId; this.NewConfigId = tempData.NewConfigId
this.PostConfig.ID = tempData.ID; this.PostConfig.ID = tempData.ID
this.PostConfig.StartCityId = tempData.StartCityId; this.PostConfig.StartCityId = tempData.StartCityId
this.PostConfig.LineId = tempData.LineId; this.PostConfig.LineId = tempData.LineId
this.PostConfig.LineteamId = tempData.LineteamId; this.PostConfig.LineteamId = tempData.LineteamId
this.PostConfig.CountryID = tempData.CountryID; this.PostConfig.CountryID = tempData.CountryID
//视频地址 //视频地址
this.PostConfig.VideoStr = tempData.VideoStr; this.PostConfig.VideoStr = tempData.VideoStr
this.PostConfig.OpenTeamDescribe=tempData.OpenTeamDescribe; this.PostConfig.OpenTeamDescribe = tempData.OpenTeamDescribe
this.NoticeParameters.ConfigId = tempData.ConfigId; this.NoticeParameters.ConfigId = tempData.ConfigId
this.NoticeParameters.CountryID = tempData.CountryID; this.NoticeParameters.CountryID = tempData.CountryID
this.NoticeParameters.IsDirect = tempData.IsDirect; this.NoticeParameters.IsDirect = tempData.IsDirect
this.NoticeParameters.LineId = tempData.LineId; this.NoticeParameters.LineId = tempData.LineId
this.PostConfig.ImgCover = tempData.ImgCover; this.PostConfig.ImgCover = tempData.ImgCover
this.PostConfig.LtName = tempData.LtName; this.PostConfig.LtName = tempData.LtName
this.PostConfig.CreateBy = tempData.CreateBy; this.PostConfig.CreateBy = tempData.CreateBy
if (tempData.ImgCover != "") { if (tempData.ImgCover != '') {
if (tempData.ImgCoverList.length > 0) { if (tempData.ImgCoverList.length > 0) {
this.PostConfig.fileList = tempData.ImgCoverList; this.PostConfig.fileList = tempData.ImgCoverList
} }
} else { } else {
this.initFileList(); this.initFileList()
} }
this.PostConfig.Title = tempData.Title; this.PostConfig.Title = tempData.Title
this.PostConfig.ProductRecommend = tempData.ProductRecommend; this.PostConfig.ProductRecommend = tempData.ProductRecommend
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
if (tempData.FlightList != null) { if (tempData.FlightList != null) {
this.PostConfig.FlightList = tempData.FlightList; this.PostConfig.FlightList = tempData.FlightList
} }
if (tempData.ShopList != null) { if (tempData.ShopList != null) {
this.PostConfig.ShopList = tempData.ShopList; this.PostConfig.ShopList = tempData.ShopList
} }
if (tempData.SelfpayingList != null) { if (tempData.SelfpayingList != null) {
this.PostConfig.SelfpayingList = tempData.SelfpayingList; this.PostConfig.SelfpayingList = tempData.SelfpayingList
} }
this.journeyList.DayNum = tempData.DayNum; this.journeyList.DayNum = tempData.DayNum
this.journeyList.NightNum = tempData.NightNum; this.journeyList.NightNum = tempData.NightNum
this.journeyList.ReturnArriveCityId = tempData.ReturnArriveCityId; this.journeyList.ReturnArriveCityId = tempData.ReturnArriveCityId
this.journeyList.StartCityId = tempData.StartCityId; this.journeyList.StartCityId = tempData.StartCityId
this.journeyList.DayList = tempData.DayList; this.journeyList.DayList = tempData.DayList
this.journeyList.DayList.forEach(x => { this.journeyList.DayList.forEach(x => {
x["HotelChooseArray"] = []; x['HotelChooseArray'] = []
x["ChooseScenicArray"] = []; x['ChooseScenicArray'] = []
x["isHide"] = false; x['isHide'] = false
}); })
if (tempData.OfferList != null) { if (tempData.OfferList != null) {
this.OfferList = tempData.OfferList; this.OfferList = tempData.OfferList
} }
if (tempData.LineList != null) { if (tempData.LineList != null) {
this.LineList = tempData.LineList; this.LineList = tempData.LineList
} }
if (tempData.AllCityList != null) { if (tempData.AllCityList != null) {
this.AllCityList = tempData.AllCityList; this.AllCityList = tempData.AllCityList
} }
if (tempData.StartCity != null) { if (tempData.StartCity != null) {
this.StartCity = tempData.StartCity; this.StartCity = tempData.StartCity
} }
this.UseTypeArray = tempData.UseTypeArray; this.UseTypeArray = tempData.UseTypeArray
this.AirPickUp = tempData.AirPickUp; this.AirPickUp = tempData.AirPickUp
this.AirSend = tempData.AirSend; this.AirSend = tempData.AirSend
this.PostConfig["OpenState"] = this.OpenState; this.PostConfig['OpenState'] = this.OpenState
this.PostConfig.PDFAlias = tempData.PDFAlias; this.PostConfig.PDFAlias = tempData.PDFAlias
} else { } else {
this.Error(res.data.message); this.Error(res.data.message)
} }
this.loading = false; this.loading = false
}, },
err => {} err => {
); }
)
} else { } else {
this.initFileList(); this.initFileList()
this.initFeatureFile(); this.initFeatureFile()
this.loading = true; this.loading = true
this.apipost( this.apipost(
"travel_get_GetCommonTravelInfo", { 'travel_get_GetCommonTravelInfo', {
TeamType: this.TeamType TeamType: this.TeamType
}, },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data
if (tempData.LineList != null) { if (tempData.LineList != null) {
this.LineList = tempData.LineList; this.LineList = tempData.LineList
} }
if (tempData.AllCityList != null) { if (tempData.AllCityList != null) {
this.AllCityList = tempData.AllCityList; this.AllCityList = tempData.AllCityList
} }
if (tempData.StartCity != null) { if (tempData.StartCity != null) {
this.StartCity = tempData.StartCity; this.StartCity = tempData.StartCity
} }
this.UseTypeArray = tempData.UseTypeArray; this.UseTypeArray = tempData.UseTypeArray
this.AirPickUp = tempData.AirPickUp; this.AirPickUp = tempData.AirPickUp
this.AirSend = tempData.AirSend; this.AirSend = tempData.AirSend
} else { } else {
this.Error(res.data.message); this.Error(res.data.message)
} }
this.loading = false; this.loading = false
}, },
err => {} err => {
); }
)
} }
}, },
goB2B() { goB2B () {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage()
var B2BDomain = userInfo.B2BDomain; var B2BDomain = userInfo.B2BDomain
let configId = this.NewConfigId; let configId = this.NewConfigId
window.open( window.open(
B2BDomain + "/#/detailTwo/" + B2BDomain + '/#/detailTwo/' +
encodeURIComponent(configId) + '/' + 0 + encodeURIComponent(configId) + '/' + 0 +
"/preview", '/preview',
"_blank" '_blank'
); )
}, },
}, },
updated: function () { updated: function () {
this.MsgBus.$emit('FeatureDataFlag'); this.MsgBus.$emit('FeatureDataFlag')
}, },
watch: {}, watch: {},
mounted() { mounted () {
if (this.$route.query.customId) { if (this.$route.query.customId) {
this.PostDaysTrip.customId = this.$route.query.customId; this.PostConfig.customId = this.$route.query.customId
} }
if (this.$route.query.allotId) { if (this.$route.query.allotId) {
this.PostDaysTrip.allotId = this.$route.query.allotId; this.PostConfig.allotId = this.$route.query.allotId
} }
this.ScrollMethod(); console.log("this.PostConfig",this.PostConfig)
this.ScrollMethod()
}, },
created() { created () {
this.firstLoadConfigInfo(); this.firstLoadConfigInfo()
}
} }
};
</script> </script>
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