Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
97a78851
Commit
97a78851
authored
May 06, 2019
by
qiaoyajun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自由行计划方案添加参数
parent
19d4f761
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
407 additions
and
394 deletions
+407
-394
TravelPrice2.vue
...ents/newTravelmanager/TravelGroupControl/TravelPrice2.vue
+6
-8
TravelManager5.vue
...newTravelmanager/oldTravelGroupControl/TravelManager5.vue
+401
-386
No files found.
src/components/newTravelmanager/TravelGroupControl/TravelPrice2.vue
View file @
97a78851
...
...
@@ -886,9 +886,7 @@
PriceTagIds
:[],
PriceFlight
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
PostConfig
.
FlightList
)
),
customId
:
this
.
PostConfig
.
customId
,
allotId
:
this
.
PostConfig
.
allotId
,
)
};
}
this
.
returnPriceList
.
push
(
objItem
);
...
...
src/components/newTravelmanager/oldTravelGroupControl/TravelManager5.vue
View file @
97a78851
...
...
@@ -33,22 +33,29 @@
<TravelConfig
@
headCallBack=
"getConfig"
@
setTravelUploadData=
"setTravelUploadData"
:PostConfig=
"PostConfig"
:TCNUM=
"TCNUM"
id=
"firstAnchor"
:LineList=
"LineList"
></TravelConfig>
<TravelDaysTripDirect
id=
"secondAnchor"
@
headCallBack=
"getDaysTrip"
:NoticeParameters=
"NoticeParameters"
:subConfig=
"journeyList"
:isOpenGroup=
"false"
:IsDirect=
"PostConfig.IsDirect"
v-bind:AllCityList=
"AllCityList"
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"
:subConfig=
"journeyList"
:isOpenGroup=
"false"
:IsDirect=
"PostConfig.IsDirect"
v-bind:AllCityList=
"AllCityList"
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>
<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"
:priceList=
"PriceList"
:PostConfig=
"PostConfig"
:modifyTcid=
"modifyTcid"
:TeamType=
"TeamType"
></TravelPrice2>
:priceList=
"PriceList"
:PostConfig=
"PostConfig"
:modifyTcid=
"modifyTcid"
:TeamType=
"TeamType"
></TravelPrice2>
<div
class=
"btnFixedDiv"
>
<div
class=
"toTop"
@
click=
"backTop"
>
<i
class=
"iconfont icon-huidaodingbu"
></i>
</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(3)" title="另存为新模板">保存
<div
v-if=
"modifyType==2"
class=
"DTSaveBtn"
:class=
"
{'disClick':!isSubmit}" @click="submitForm(3)"
title="另存为新模板">保存
</div>
<div
v-if=
"ConfigId>0"
class=
"DTSaveBtn"
:class=
"
{'disClick':!isSubmit}" @click="goB2B()">预览
</div>
</div>
...
...
@@ -58,37 +65,37 @@
</
template
>
<
script
>
import
TravelConfig
from
"../TravelGroupControl/TravelConfig.vue"
;
import
TravelDaysTripDirect
from
"../oldTravelGroupControl/TravelDaysTrip_Direct"
;
import
TravelFeature
from
"../TravelGroupControl/TravelFeature"
;
import
TravelNotice
from
"../TravelGroupControl/TravelNotice"
;
import
TravelPrice2
from
"../TravelGroupControl/TravelPrice2"
;
import
TravelConfig
from
'../TravelGroupControl/TravelConfig.vue'
import
TravelDaysTripDirect
from
'../oldTravelGroupControl/TravelDaysTrip_Direct'
import
TravelFeature
from
'../TravelGroupControl/TravelFeature'
import
TravelNotice
from
'../TravelGroupControl/TravelNotice'
import
TravelPrice2
from
'../TravelGroupControl/TravelPrice2'
export
default
{
provide
()
{
provide
()
{
return
{
loadConfigInfo
:
this
.
firstLoadConfigInfo
}
},
data
()
{
data
()
{
return
{
ConfigId
:
0
,
//地址栏查询参数
NewConfigId
:
""
,
//configID加密后的字符串【预览使用】
NewConfigId
:
''
,
//configID加密后的字符串【预览使用】
TCNUM
:
''
,
//团控列表传过来的tcnum
NoticeParameters
:
{
ConfigId
:
0
,
//配置编号
CountryID
:
""
,
//国家
CountryID
:
''
,
//国家
IsDirect
:
0
,
//是否直采
LineId
:
0
//线路编号
},
NoticeData
:
{
FeeInclude
:
""
,
FeeNonInclude
:
""
,
ImportantTip
:
""
,
WarmTip
:
""
,
B2BRemark
:
""
,
ShopRemark
:
""
,
VisaRemark
:
""
FeeInclude
:
''
,
FeeNonInclude
:
''
,
ImportantTip
:
''
,
WarmTip
:
''
,
B2BRemark
:
''
,
ShopRemark
:
''
,
VisaRemark
:
''
},
ShopList
:
[],
SelfpayingList
:
[],
...
...
@@ -100,51 +107,51 @@
StartCityId
:
0
,
LineId
:
0
,
LineteamId
:
0
,
Title
:
""
,
Title
:
''
,
//本团卖点
ProductRecommend
:
""
,
ProductRecommend
:
''
,
//选择的系列的国家编号
CountryID
:
0
,
RemoveChild
:
[],
//移除的子项
RemoveImg
:
[],
//移除的图片
IsDirect
:
0
,
//是否直采(0-否-1-是)
PriceIsDirect
:
0
,
//是否直采报价(1-否-2-是)
PDFAlias
:
""
,
//pdf别名,
PDFAlias
:
''
,
//pdf别名,
FlightList
:
[],
//航班信息
ShopList
:
[],
//购物店信息
SelfpayingList
:
[],
//自费信息
Feature
:
""
,
//行程特色
Feature
:
''
,
//行程特色
fileList
:
[],
VideoStr
:
""
,
//视频地址
VideoStr
:
''
,
//视频地址
//是否更新酒店库存
IsUpdateHotel
:
0
,
OpenTeamDescribe
:
""
,
//开团备注
customId
:
0
,
allotId
:
0
,
IsUpdateHotel
:
0
,
OpenTeamDescribe
:
''
,
//开团备注
customId
:
0
,
allotId
:
0
,
},
//行程
FeatureData
:
{
ID
:
0
,
ConfigId
:
0
,
FeatureType
:
3
,
FeatureImg
:
""
,
FeatureContent
:
""
,
//自定义内容
FeatureHtml
:
""
,
//行程特色(html)
FeatureHtmlImage
:
""
,
//行程特色(image)
FeatureHtmlJson
:
""
,
//行程特色(Json数据)
FeatureHtmlJsonDelete
:
""
,
//行程特色删除数据
FeatureImg
:
''
,
FeatureContent
:
''
,
//自定义内容
FeatureHtml
:
''
,
//行程特色(html)
FeatureHtmlImage
:
''
,
//行程特色(image)
FeatureHtmlJson
:
''
,
//行程特色(Json数据)
FeatureHtmlJsonDelete
:
''
,
//行程特色删除数据
fileList
:
[],
Title
:
""
,
Subtitle
:
""
,
LineName
:
""
,
Title
:
''
,
Subtitle
:
''
,
LineName
:
''
,
DayList
:
[],
TemplateId
:
1
,
IsSave
:
false
//是否保存
},
//线路行程
journeyList
:
{
DayNum
:
""
,
//天数
NightNum
:
""
,
//晚上
DayNum
:
''
,
//天数
NightNum
:
''
,
//晚上
StartCityId
:
0
,
ReturnArriveCityId
:
0
,
//返回抵达城市
//交通
...
...
@@ -165,13 +172,13 @@
DayList
:
[],
isFileUpload
:
false
//是否是一键上传行程
},
PostPrice
:
""
,
//报价信息
PostPrice
:
''
,
//报价信息
//线路
LineList
:
[],
PostFeature
:
""
,
//行程特色信息
PostNotice
:
""
,
//行程特色其他内容
PostFeature
:
''
,
//行程特色信息
PostNotice
:
''
,
//行程特色其他内容
//配置信息
PostDaysTrip
:
""
,
//每天的行程
PostDaysTrip
:
''
,
//每天的行程
PriceList
:
[],
//所有的城市数据
AllCityList
:
[],
...
...
@@ -182,17 +189,17 @@
isgetPrice
:
true
,
realSave
:
1
,
//1:制作报价单,2保存草稿
outerVisible
:
false
,
tripTitle
:
""
,
tripTitle
:
''
,
isSubmit
:
true
,
//选中的导航
ckedNav
:
1
,
modifyType
:
1
,
//1:系列团修改,2:单团修改
modifyTcid
:
0
,
//修改单团期id
TeamType
:
''
,
TeamType
:
''
,
loading
:
false
,
isNewConfig
:
true
,
isfromManager
:
true
,
}
;
isfromManager
:
true
,
}
},
components
:
{
TravelConfig
:
TravelConfig
,
...
...
@@ -203,10 +210,10 @@
},
methods
:
{
/*获取行程特色内容对象*/
getFeature
(
featureObj
)
{
this
.
PostFeature
=
featureObj
;
getFeature
(
featureObj
)
{
this
.
PostFeature
=
featureObj
},
handlerChangeData
(
data
)
{
handlerChangeData
(
data
)
{
if
(
this
.
FeatureData
.
FeatureHtmlJson
&&
this
.
FeatureData
.
FeatureHtmlJson
.
d
&&
...
...
@@ -214,133 +221,137 @@
)
{
//to do something
}
else
{
this
.
$refs
.
TravelFeature
.
setNewDate
(
data
)
;
this
.
$refs
.
TravelFeature
.
setNewDate
(
data
)
}
},
/*获取组件配置信息【回调方法】*/
getConfig
(
configObj
)
{
this
.
PostConfig
=
configObj
;
this
.
NoticeParameters
.
ConfigId
=
this
.
PostConfig
.
ConfigId
;
this
.
NoticeParameters
.
CountryID
=
this
.
PostConfig
.
CountryID
;
this
.
NoticeParameters
.
IsDirect
=
this
.
PostConfig
.
IsDirect
;
this
.
NoticeParameters
.
LineId
=
this
.
PostConfig
.
LineId
;
getConfig
(
configObj
)
{
this
.
PostConfig
=
configObj
this
.
NoticeParameters
.
ConfigId
=
this
.
PostConfig
.
ConfigId
this
.
NoticeParameters
.
CountryID
=
this
.
PostConfig
.
CountryID
this
.
NoticeParameters
.
IsDirect
=
this
.
PostConfig
.
IsDirect
this
.
NoticeParameters
.
LineId
=
this
.
PostConfig
.
LineId
if
(
this
.
ConfigId
==
0
)
{
this
.
FeatureData
.
LineName
=
this
.
PostConfig
.
LineName
;
this
.
FeatureData
.
Subtitle
=
this
.
PostConfig
.
LineTeamName
;
this
.
FeatureData
.
Title
=
this
.
PostConfig
.
Title
;
this
.
FeatureData
.
LineName
=
this
.
PostConfig
.
LineName
this
.
FeatureData
.
Subtitle
=
this
.
PostConfig
.
LineTeamName
this
.
FeatureData
.
Title
=
this
.
PostConfig
.
Title
}
},
/*获取组件报价信息*/
getPrice
(
priceObj
)
{
getPrice
(
priceObj
)
{
priceObj
.
forEach
(
objItem
=>
{
var
SaleBranchId
=
""
;
var
SaleBranchId
=
''
if
(
objItem
.
SaleBranchIdArray
.
length
>
0
)
{
objItem
.
SaleBranchIdArray
.
forEach
(
subItem
=>
{
SaleBranchId
+=
subItem
+
","
;
})
;
SaleBranchId
+=
subItem
+
','
})
}
if
(
SaleBranchId
!=
""
)
{
var
str
=
SaleBranchId
.
substr
(
0
,
SaleBranchId
.
length
-
1
)
;
objItem
.
SaleBranchId
=
str
;
if
(
SaleBranchId
!=
''
)
{
var
str
=
SaleBranchId
.
substr
(
0
,
SaleBranchId
.
length
-
1
)
objItem
.
SaleBranchId
=
str
}
})
;
this
.
PostPrice
=
priceObj
;
})
this
.
PostPrice
=
priceObj
},
//行程回调
getDaysTrip
(
tripObj
)
{
this
.
PostDaysTrip
=
tripObj
;
getDaysTrip
(
tripObj
)
{
this
.
PostDaysTrip
=
tripObj
},
/*获取行程特色内容对象*/
getFeature
(
featureObj
)
{
this
.
PostFeature
=
featureObj
;
getFeature
(
featureObj
)
{
this
.
PostFeature
=
featureObj
},
/*获取行程特色其他内容*/
getNotice
(
noticeObj
)
{
this
.
PostNotice
=
noticeObj
;
getNotice
(
noticeObj
)
{
this
.
PostNotice
=
noticeObj
},
//解锁表单重复提交
unlockFormCommit
(
value
)
{
this
.
isSubmit
=
value
;
unlockFormCommit
(
value
)
{
this
.
isSubmit
=
value
},
//初始化幻灯片
initFileList
()
{
initFileList
()
{
for
(
var
i
=
0
;
i
<
5
;
i
++
)
{
var
fileObj
=
this
.
$commonUtils
.
FileObject
()
;
var
fileObj
=
this
.
$commonUtils
.
FileObject
()
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
)
{
this
.
isSubmit
=
false
;
this
.
SaveData
(
SaveType
)
;
this
.
isSubmit
=
false
this
.
SaveData
(
SaveType
)
}
},
/*保存数据*/
SaveData
(
SaveType
)
{
this
.
MsgBus
.
$emit
(
'saveTravel'
,
true
)
;
this
.
FeatureData
.
IsSave
=
true
;
this
.
submitText
=
"保存中"
;
SaveData
(
SaveType
)
{
this
.
MsgBus
.
$emit
(
'saveTravel'
,
true
)
this
.
FeatureData
.
IsSave
=
true
this
.
submitText
=
'保存中'
//团队配置
var
basicData
=
{}
;
basicData
.
PriceList
=
this
.
PostPrice
;
var
basicData
=
{}
basicData
.
PriceList
=
this
.
PostPrice
//配置编号
basicData
.
ID
=
this
.
ConfigId
;
basicData
.
LineId
=
this
.
PostConfig
.
LineId
;
basicData
.
LineteamId
=
this
.
PostConfig
.
LineteamId
;
basicData
.
Title
=
this
.
PostConfig
.
Title
;
basicData
.
OpRemark
=
this
.
PostConfig
.
OpRemark
;
basicData
.
ProductRecommend
=
this
.
PostConfig
.
ProductRecommend
;
basicData
.
VideoStr
=
this
.
PostConfig
.
VideoStr
;
basicData
.
PDFAlias
=
this
.
PostConfig
.
PDFAlias
;
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
.
ID
=
this
.
ConfigId
if
(
basicData
.
ID
!=
null
&&
basicData
.
ID
==
0
)
{
basicData
.
customId
=
this
.
PostConfig
.
customId
basicData
.
allotId
=
this
.
PostConfig
.
allotId
}
basicData
.
LineId
=
this
.
PostConfig
.
LineId
basicData
.
LineteamId
=
this
.
PostConfig
.
LineteamId
basicData
.
Title
=
this
.
PostConfig
.
Title
basicData
.
OpRemark
=
this
.
PostConfig
.
OpRemark
basicData
.
ProductRecommend
=
this
.
PostConfig
.
ProductRecommend
basicData
.
VideoStr
=
this
.
PostConfig
.
VideoStr
basicData
.
PDFAlias
=
this
.
PostConfig
.
PDFAlias
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
.
NightNum
=
(
this
.
PostDaysTrip
&&
this
.
PostDaysTrip
.
NightNum
!=
""
)
?
this
.
PostDaysTrip
.
NightNum
:
0
;
basicData
.
StartCityId
=
(
this
.
PostDaysTrip
&&
this
.
PostDaysTrip
.
StartCityId
!=
""
)
?
this
.
PostDaysTrip
.
StartCityId
:
0
;
basicData
.
ReturnArriveCityId
=
(
this
.
PostDaysTrip
&&
this
.
PostDaysTrip
.
ReturnArriveCityId
!=
""
)
?
this
.
PostDaysTrip
.
ReturnArriveCityId
:
0
;
basicData
.
DayNum
=
(
this
.
PostDaysTrip
&&
this
.
PostDaysTrip
.
DayNum
!=
''
)
?
this
.
PostDaysTrip
.
DayNum
:
0
basicData
.
NightNum
=
(
this
.
PostDaysTrip
&&
this
.
PostDaysTrip
.
NightNum
!=
''
)
?
this
.
PostDaysTrip
.
NightNum
:
0
basicData
.
StartCityId
=
(
this
.
PostDaysTrip
&&
this
.
PostDaysTrip
.
StartCityId
!=
''
)
?
this
.
PostDaysTrip
.
StartCityId
:
0
basicData
.
ReturnArriveCityId
=
(
this
.
PostDaysTrip
&&
this
.
PostDaysTrip
.
ReturnArriveCityId
!=
''
)
?
this
.
PostDaysTrip
.
ReturnArriveCityId
:
0
basicData
.
SelfpayingList
=
this
.
PostConfig
.
SelfpayingList
;
basicData
.
ShopList
=
this
.
PostConfig
.
ShopList
;
basicData
.
SelfpayingList
=
this
.
PostConfig
.
SelfpayingList
basicData
.
ShopList
=
this
.
PostConfig
.
ShopList
basicData
.
DinnerList
=
this
.
PostDaysTrip
.
DinnerList
;
basicData
.
FreedomList
=
this
.
PostDaysTrip
.
FreedomList
;
basicData
.
HotelList
=
this
.
PostDaysTrip
.
HotelList
;
basicData
.
ScenicList
=
this
.
PostDaysTrip
.
ScenicList
;
basicData
.
TrafficList
=
this
.
PostDaysTrip
.
TrafficList
;
basicData
.
WarmTipList
=
this
.
PostDaysTrip
.
WarmTipList
;
basicData
.
TitleList
=
this
.
PostDaysTrip
.
TitleList
;
basicData
.
RemoveImg
=
this
.
PostDaysTrip
.
RemoveImg
;
basicData
.
DinnerList
=
this
.
PostDaysTrip
.
DinnerList
basicData
.
FreedomList
=
this
.
PostDaysTrip
.
FreedomList
basicData
.
HotelList
=
this
.
PostDaysTrip
.
HotelList
basicData
.
ScenicList
=
this
.
PostDaysTrip
.
ScenicList
basicData
.
TrafficList
=
this
.
PostDaysTrip
.
TrafficList
basicData
.
WarmTipList
=
this
.
PostDaysTrip
.
WarmTipList
basicData
.
TitleList
=
this
.
PostDaysTrip
.
TitleList
basicData
.
RemoveImg
=
this
.
PostDaysTrip
.
RemoveImg
//行程特色数据
var
TripFeature
=
{}
;
if
(
this
.
PostFeature
==
""
)
{
TripFeature
=
this
.
FeatureData
;
var
TripFeature
=
{}
if
(
this
.
PostFeature
==
''
)
{
TripFeature
=
this
.
FeatureData
}
else
{
TripFeature
=
this
.
PostFeature
;
TripFeature
=
this
.
PostFeature
}
TripFeature
.
FeatureHtmlJson
=
TripFeature
.
FeatureHtmlJson
?
JSON
.
stringify
(
TripFeature
.
FeatureHtmlJson
)
:
""
;
''
TripFeature
.
FeatureHtmlJsonDelete
=
TripFeature
.
FeatureHtmlJsonDelete
?
JSON
.
stringify
(
TripFeature
.
FeatureHtmlJsonDelete
)
:
""
;
TripFeature
.
FeeInclude
=
this
.
PostNotice
.
FeeInclude
;
TripFeature
.
FeeNonInclude
=
this
.
PostNotice
.
FeeNonInclude
;
TripFeature
.
ImportantTip
=
this
.
PostNotice
.
ImportantTip
;
TripFeature
.
WarmTip
=
this
.
PostNotice
.
WarmTip
;
TripFeature
.
B2BRemark
=
this
.
PostNotice
.
B2BRemark
;
TripFeature
.
ShopRemark
=
this
.
PostNotice
.
ShopRemark
;
TripFeature
.
VisaRemark
=
this
.
PostNotice
.
VisaRemark
;
''
TripFeature
.
FeeInclude
=
this
.
PostNotice
.
FeeInclude
TripFeature
.
FeeNonInclude
=
this
.
PostNotice
.
FeeNonInclude
TripFeature
.
ImportantTip
=
this
.
PostNotice
.
ImportantTip
TripFeature
.
WarmTip
=
this
.
PostNotice
.
WarmTip
TripFeature
.
B2BRemark
=
this
.
PostNotice
.
B2BRemark
TripFeature
.
ShopRemark
=
this
.
PostNotice
.
ShopRemark
TripFeature
.
VisaRemark
=
this
.
PostNotice
.
VisaRemark
if
(
basicData
.
TrafficList
!=
null
&&
...
...
@@ -348,414 +359,418 @@
basicData
.
TrafficList
[
0
].
SubTraffic
!=
null
&&
basicData
.
TrafficList
[
0
].
SubTraffic
.
length
>
0
)
{
basicData
[
"ArriveCityId"
]
=
basicData
.
TrafficList
[
0
].
SubTraffic
[
0
].
ArrivalCityId
;
basicData
[
'ArriveCityId'
]
=
basicData
.
TrafficList
[
0
].
SubTraffic
[
0
].
ArrivalCityId
}
if
(
basicData
.
OpenState
==
1
)
{
basicData
[
"AfterOpenModify"
]
=
true
;
basicData
[
'AfterOpenModify'
]
=
true
}
//"另存"新增团期
if
(
SaveType
==
3
)
{
basicData
.
TravelInfoIsCopy
=
true
;
basicData
.
TravelInfoIsCopy
=
true
}
basicData
.
TeamType
=
this
.
TeamType
;
basicData
.
IsUpdateHotel
=
this
.
PostConfig
.
IsUpdateHotel
;
basicData
.
TeamType
=
this
.
TeamType
basicData
.
IsUpdateHotel
=
this
.
PostConfig
.
IsUpdateHotel
this
.
apipost
(
"travel_post_SetTravelConfigInfo"
,
'travel_post_SetTravelConfigInfo'
,
basicData
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
//配置编号
TripFeature
.
ConfigId
=
res
.
data
.
data
;
TripFeature
.
isfromManager
=
true
;
this
.
$refs
.
TravelFeature
.
getHtml
(
TripFeature
,
SaveType
,
this
.
TeamType
);
TripFeature
.
ConfigId
=
res
.
data
.
data
TripFeature
.
isfromManager
=
true
this
.
$refs
.
TravelFeature
.
getHtml
(
TripFeature
,
SaveType
,
this
.
TeamType
)
// this.$refs.TravelPrice.closeHotelDialog();
// this.$refs.TravelPrice.initStatus();
}
else
if
(
res
.
data
.
resultCode
==
10009
)
{
this
.
FeatureData
.
IsSave
=
false
;
this
.
FeatureData
.
IsSave
=
false
//表单重复提交
this
.
isSubmit
=
true
;
this
.
isSubmit
=
true
}
else
{
this
.
FeatureData
.
IsSave
=
false
;
this
.
Error
(
res
.
data
.
message
)
;
this
.
isSubmit
=
true
;
this
.
submitText
=
"提交"
;
this
.
$refs
.
TravelFeature
.
del_show
=
true
;
this
.
FeatureData
.
IsSave
=
false
this
.
Error
(
res
.
data
.
message
)
this
.
isSubmit
=
true
this
.
submitText
=
'提交'
this
.
$refs
.
TravelFeature
.
del_show
=
true
}
},
err
=>
{}
);
err
=>
{
}
)
},
//初始化团的幻灯片
initFileList
()
{
this
.
PostConfig
.
fileList
=
[];
initFileList
()
{
this
.
PostConfig
.
fileList
=
[]
for
(
var
i
=
0
;
i
<
5
;
i
++
)
{
var
fileObj
=
this
.
$commonUtils
.
FileObject
()
;
this
.
PostConfig
.
fileList
.
push
(
fileObj
)
;
var
fileObj
=
this
.
$commonUtils
.
FileObject
()
this
.
PostConfig
.
fileList
.
push
(
fileObj
)
}
},
//初始化行程特色幻灯片
initFeatureFile
()
{
initFeatureFile
()
{
for
(
var
i
=
0
;
i
<
5
;
i
++
)
{
var
fileObj
=
this
.
$commonUtils
.
FileObject
()
;
this
.
FeatureData
.
fileList
.
push
(
fileObj
)
;
var
fileObj
=
this
.
$commonUtils
.
FileObject
()
this
.
FeatureData
.
fileList
.
push
(
fileObj
)
}
},
custormAnchor
(
anchorName
,
index
)
{
custormAnchor
(
anchorName
,
index
)
{
// 找到锚点
let
anchorElement
=
document
.
getElementById
(
anchorName
)
;
let
anchorElement
=
document
.
getElementById
(
anchorName
)
// 如果对应id的锚点存在,就跳转到锚点
if
(
anchorElement
)
{
anchorElement
.
scrollIntoView
()
;
anchorElement
.
scrollIntoView
()
}
this
.
ckedNav
=
index
;
this
.
ckedNav
=
index
},
//滚动事件
ScrollMethod
()
{
var
that
=
this
;
var
s1
,
s2
,
s3
,
s4
,
s5
;
ScrollMethod
()
{
var
that
=
this
var
s1
,
s2
,
s3
,
s4
,
s5
document
.
getElementsByClassName
(
"frame-box"
)[
0
]
.
addEventListener
(
"scroll"
,
function
()
{
if
(
document
.
getElementById
(
"firstAnchor"
)
!=
null
)
{
s1
=
document
.
getElementById
(
"firstAnchor"
).
offsetTop
;
.
getElementsByClassName
(
'frame-box'
)[
0
]
.
addEventListener
(
'scroll'
,
function
()
{
if
(
document
.
getElementById
(
'firstAnchor'
)
!=
null
)
{
s1
=
document
.
getElementById
(
'firstAnchor'
).
offsetTop
}
if
(
document
.
getElementById
(
"secondAnchor"
)
!=
null
)
{
s2
=
document
.
getElementById
(
"secondAnchor"
).
offsetTop
;
if
(
document
.
getElementById
(
'secondAnchor'
)
!=
null
)
{
s2
=
document
.
getElementById
(
'secondAnchor'
).
offsetTop
}
if
(
document
.
getElementById
(
"thirdAnchor"
)
!=
null
)
{
s3
=
document
.
getElementById
(
"thirdAnchor"
).
offsetTop
;
if
(
document
.
getElementById
(
'thirdAnchor'
)
!=
null
)
{
s3
=
document
.
getElementById
(
'thirdAnchor'
).
offsetTop
}
if
(
document
.
getElementById
(
"fourAnchor"
)
!=
null
)
{
s4
=
document
.
getElementById
(
"fourAnchor"
).
offsetTop
;
if
(
document
.
getElementById
(
'fourAnchor'
)
!=
null
)
{
s4
=
document
.
getElementById
(
'fourAnchor'
).
offsetTop
}
if
(
document
.
getElementById
(
"fiveAnchor"
)
!=
null
)
{
s5
=
document
.
getElementById
(
"fiveAnchor"
).
offsetTop
;
if
(
document
.
getElementById
(
'fiveAnchor'
)
!=
null
)
{
s5
=
document
.
getElementById
(
'fiveAnchor'
).
offsetTop
}
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
)
{
that
.
ckedNav
=
2
;
that
.
ckedNav
=
2
}
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
)
{
that
.
ckedNav
=
4
;
that
.
ckedNav
=
4
}
else
if
(
s5
>=
this
.
scrollTop
-
50
&&
s5
<=
this
.
scrollTop
+
50
)
{
that
.
ckedNav
=
5
;
that
.
ckedNav
=
5
}
})
;
})
},
//返回顶部
backTop
()
{
backTop
()
{
var
timer
=
setInterval
(
function
()
{
var
scrollTop
=
document
.
getElementsByClassName
(
"frame-box"
)[
0
]
.
scrollTop
;
var
ispeed
=
Math
.
floor
(
-
scrollTop
/
6
)
;
var
scrollTop
=
document
.
getElementsByClassName
(
'frame-box'
)[
0
]
.
scrollTop
var
ispeed
=
Math
.
floor
(
-
scrollTop
/
6
)
if
(
scrollTop
==
0
)
{
clearInterval
(
timer
)
;
clearInterval
(
timer
)
}
document
.
getElementsByClassName
(
"frame-box"
)[
0
].
scrollTop
=
scrollTop
+
ispeed
;
},
30
)
;
document
.
getElementsByClassName
(
'frame-box'
)[
0
].
scrollTop
=
scrollTop
+
ispeed
},
30
)
},
/*一键上传数据组装*/
setTravelUploadData
(
uploadConfig
)
{
setTravelUploadData
(
uploadConfig
)
{
if
(
uploadConfig
!=
undefined
)
{
var
configData
=
JSON
.
parse
(
uploadConfig
)
;
var
configData
=
JSON
.
parse
(
uploadConfig
)
//基础数据组装
//this.PostConfig.Title = "";
this
.
PostConfig
.
IsDirect
=
0
;
this
.
PostConfig
.
IsDirect
=
0
//线路行程组装
let
dayList
=
[]
;
let
dayList
=
[]
for
(
var
i
=
0
;
i
<
configData
.
Days
.
length
;
i
++
)
{
let
dayObj
=
configData
.
Days
[
i
]
;
var
dayItem
=
this
.
$tripUtils
.
tripDayobj
()
;
dayItem
.
DayNum
=
i
+
1
;
let
dayObj
=
configData
.
Days
[
i
]
var
dayItem
=
this
.
$tripUtils
.
tripDayobj
()
dayItem
.
DayNum
=
i
+
1
//行程大点
var
titleItem
=
this
.
$tripUtils
.
titleObj
()
;
titleItem
.
DayNum
=
i
+
1
;
titleItem
.
Title
=
dayObj
.
Title
;
dayItem
.
TitleObj
=
titleItem
;
var
titleItem
=
this
.
$tripUtils
.
titleObj
()
titleItem
.
DayNum
=
i
+
1
titleItem
.
Title
=
dayObj
.
Title
dayItem
.
TitleObj
=
titleItem
//交通对象
var
trafficObj
=
this
.
$tripUtils
.
trafficObj
()
;
trafficObj
.
DayNum
=
i
+
1
;
var
trafficObj
=
this
.
$tripUtils
.
trafficObj
()
trafficObj
.
DayNum
=
i
+
1
//交通子对象
var
subTrafficObj
=
this
.
$tripUtils
.
subTrafficObj
()
;
trafficObj
.
SubTraffic
.
push
(
subTrafficObj
)
;
dayItem
.
TrafficObj
=
trafficObj
;
var
subTrafficObj
=
this
.
$tripUtils
.
subTrafficObj
()
trafficObj
.
SubTraffic
.
push
(
subTrafficObj
)
dayItem
.
TrafficObj
=
trafficObj
//温馨提示
var
warmTipObj
=
this
.
$tripUtils
.
warmtipObj
()
;
warmTipObj
.
DayNum
=
i
+
1
;
warmTipObj
.
Description
=
dayObj
.
Tips
;
dayItem
.
WarmTipObj
=
warmTipObj
;
dayItem
.
isHide
=
false
;
dayItem
.
isRead
=
false
;
var
warmTipObj
=
this
.
$tripUtils
.
warmtipObj
()
warmTipObj
.
DayNum
=
i
+
1
warmTipObj
.
Description
=
dayObj
.
Tips
dayItem
.
WarmTipObj
=
warmTipObj
dayItem
.
isHide
=
false
dayItem
.
isRead
=
false
//景点
if
(
dayObj
.
ViewSpotList
.
length
>
0
)
{
dayObj
.
ViewSpotList
.
forEach
((
viewSpot
,
index
)
=>
{
if
((
index
+
1
)
<=
5
)
{
var
scenicObj
=
this
.
$tripUtils
.
scenicObj
()
;
scenicObj
.
DayNum
=
i
+
1
;
scenicObj
.
CouponsName
=
viewSpot
.
Name
;
scenicObj
.
Description
=
viewSpot
.
Description
;
var
scenicObj
=
this
.
$tripUtils
.
scenicObj
()
scenicObj
.
DayNum
=
i
+
1
scenicObj
.
CouponsName
=
viewSpot
.
Name
scenicObj
.
Description
=
viewSpot
.
Description
if
(
viewSpot
.
Imgs
!=
null
&&
viewSpot
.
Imgs
.
length
>
0
)
{
let
imaArray
=
[]
;
let
imaArray
=
[]
viewSpot
.
Imgs
.
forEach
(
img
=>
{
imaArray
.
push
({
Url
:
img
,
Name
:
""
})
;
})
;
scenicObj
.
NewImaArray
=
imaArray
;
scenicObj
.
NewScenicImg
=
JSON
.
stringify
(
scenicObj
.
NewImaArray
)
;
Name
:
''
})
})
scenicObj
.
NewImaArray
=
imaArray
scenicObj
.
NewScenicImg
=
JSON
.
stringify
(
scenicObj
.
NewImaArray
)
}
else
{
scenicObj
.
NewImaArray
=
[]
;
scenicObj
.
NewScenicImg
=
""
;
scenicObj
.
NewImaArray
=
[]
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
,
2
,
dayObj
.
Lanuch
))
;
dayItem
.
DinnerArray
.
push
(
this
.
dinnerUploadFactory
(
i
+
1
,
3
,
dayObj
.
Dinner
))
;
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
,
3
,
dayObj
.
Dinner
))
//酒店
var
hotelObj
=
this
.
$tripUtils
.
hotelObj
()
;
hotelObj
.
DayNum
=
i
+
1
;
hotelObj
.
HotelName
=
dayObj
.
Hotel
;
dayItem
.
HotelArray
.
push
(
hotelObj
)
;
dayList
.
push
(
dayItem
)
;
}
this
.
journeyList
.
isFileUpload
=
true
;
this
.
journeyList
.
DayNum
=
configData
.
Days
.
length
;
this
.
journeyList
.
NightNum
=
this
.
journeyList
.
DayNum
-
1
;
this
.
journeyList
.
DayList
=
dayList
;
var
hotelObj
=
this
.
$tripUtils
.
hotelObj
()
hotelObj
.
DayNum
=
i
+
1
hotelObj
.
HotelName
=
dayObj
.
Hotel
dayItem
.
HotelArray
.
push
(
hotelObj
)
dayList
.
push
(
dayItem
)
}
this
.
journeyList
.
isFileUpload
=
true
this
.
journeyList
.
DayNum
=
configData
.
Days
.
length
this
.
journeyList
.
NightNum
=
this
.
journeyList
.
DayNum
-
1
this
.
journeyList
.
DayList
=
dayList
//产品特色
this
.
FeatureData
.
FeatureType
=
3
;
this
.
FeatureData
.
FeatureContent
=
configData
.
Feature
;
this
.
FeatureData
.
FeatureType
=
3
this
.
FeatureData
.
FeatureContent
=
configData
.
Feature
//行程补充信息
this
.
NoticeData
.
FeeInclude
=
configData
.
PriceInCloub
;
this
.
NoticeData
.
FeeNonInclude
=
configData
.
PriceNoInCloub
;
this
.
NoticeData
.
ImportantTip
=
configData
.
PriceNoInCloub
;
this
.
NoticeData
.
WarmTip
=
configData
.
Tips
;
this
.
NoticeData
.
ShopRemark
=
configData
.
Shopping
;
this
.
NoticeData
.
FeeInclude
=
configData
.
PriceInCloub
this
.
NoticeData
.
FeeNonInclude
=
configData
.
PriceNoInCloub
this
.
NoticeData
.
ImportantTip
=
configData
.
PriceNoInCloub
this
.
NoticeData
.
WarmTip
=
configData
.
Tips
this
.
NoticeData
.
ShopRemark
=
configData
.
Shopping
}
},
//餐饮对象上传创建
dinnerUploadFactory
(
dayNum
,
useDinnerType
,
dinnerName
)
{
let
dinnerObj
=
this
.
$tripUtils
.
dinnerObj
()
;
dinnerObj
.
UseDinnerType
=
useDinnerType
;
dinnerObj
.
DinnerName
=
dinnerName
;
dinnerObj
.
BreakfastUseType
=
0
;
dinnerObj
.
DayNum
=
dayNum
;
return
dinnerObj
;
},
firstLoadConfigInfo
()
{
var
routeName
=
this
.
$route
.
name
;
this
.
TeamType
=
1
;
let
configId
=
this
.
$route
.
query
.
configId
;
this
.
modifyTcid
=
this
.
$route
.
query
.
tcid
;
this
.
TCNUM
=
this
.
$route
.
query
.
TCNUM
;
dinnerUploadFactory
(
dayNum
,
useDinnerType
,
dinnerName
)
{
let
dinnerObj
=
this
.
$tripUtils
.
dinnerObj
()
dinnerObj
.
UseDinnerType
=
useDinnerType
dinnerObj
.
DinnerName
=
dinnerName
dinnerObj
.
BreakfastUseType
=
0
dinnerObj
.
DayNum
=
dayNum
return
dinnerObj
},
firstLoadConfigInfo
()
{
var
routeName
=
this
.
$route
.
name
this
.
TeamType
=
1
let
configId
=
this
.
$route
.
query
.
configId
this
.
modifyTcid
=
this
.
$route
.
query
.
tcid
this
.
TCNUM
=
this
.
$route
.
query
.
TCNUM
if
(
this
.
modifyTcid
>
0
)
{
this
.
modifyType
=
2
;
this
.
modifyType
=
2
}
else
{
this
.
modifyType
=
1
;
this
.
modifyTcid
=
0
;
this
.
modifyType
=
1
this
.
modifyTcid
=
0
}
var
that
=
this
;
var
that
=
this
if
(
configId
>
0
)
{
this
.
isNewConfig
=
false
;
this
.
ConfigId
=
configId
;
this
.
isNewConfig
=
false
this
.
ConfigId
=
configId
let
msg
=
{
configId
:
configId
,
TeamType
:
this
.
TeamType
}
;
this
.
loading
=
true
;
}
this
.
loading
=
true
this
.
apipost
(
"travel_get_GetTravelConfigMakeInfo"
,
'travel_get_GetTravelConfigMakeInfo'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
tempData
=
res
.
data
.
data
;
var
tempData
=
res
.
data
.
data
if
(
tempData
.
Feature
!=
null
)
{
this
.
FeatureData
.
ID
=
tempData
.
Feature
.
ID
;
this
.
FeatureData
.
ConfigId
=
tempData
.
Feature
.
ConfigId
;
this
.
FeatureData
.
FeatureType
=
tempData
.
Feature
.
FeatureType
;
this
.
FeatureData
.
FeatureImg
=
tempData
.
Feature
.
FeatureImg
;
this
.
FeatureData
.
TemplateId
=
tempData
.
Feature
.
TemplateId
;
this
.
FeatureData
.
FeatureContent
=
tempData
.
Feature
.
FeatureContent
;
this
.
FeatureData
.
ID
=
tempData
.
Feature
.
ID
this
.
FeatureData
.
ConfigId
=
tempData
.
Feature
.
ConfigId
this
.
FeatureData
.
FeatureType
=
tempData
.
Feature
.
FeatureType
this
.
FeatureData
.
FeatureImg
=
tempData
.
Feature
.
FeatureImg
this
.
FeatureData
.
TemplateId
=
tempData
.
Feature
.
TemplateId
this
.
FeatureData
.
FeatureContent
=
tempData
.
Feature
.
FeatureContent
//图片列表
this
.
FeatureData
.
fileList
=
tempData
.
Feature
.
FeatureImgList
;
this
.
FeatureData
.
fileList
=
tempData
.
Feature
.
FeatureImgList
this
.
FeatureData
.
FeatureHtmlJson
=
tempData
.
Feature
.
FeatureHtmlJson
&&
tempData
.
Feature
.
FeatureHtmlJson
!=
""
&&
tempData
.
Feature
.
FeatureType
>
3
?
tempData
.
Feature
.
FeatureHtmlJson
!=
''
&&
tempData
.
Feature
.
FeatureType
>
3
?
JSON
.
parse
(
tempData
.
Feature
.
FeatureHtmlJson
)
:
null
;
null
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
)
:
null
;
this
.
NoticeData
.
FeeInclude
=
tempData
.
Feature
.
FeeInclude
;
this
.
NoticeData
.
FeeNonInclude
=
tempData
.
Feature
.
FeeNonInclude
;
this
.
NoticeData
.
ImportantTip
=
tempData
.
Feature
.
ImportantTip
;
this
.
NoticeData
.
WarmTip
=
tempData
.
Feature
.
WarmTip
;
this
.
NoticeData
.
B2BRemark
=
tempData
.
Feature
.
B2BRemark
;
this
.
NoticeData
.
ShopRemark
=
tempData
.
Feature
.
ShopRemark
;
this
.
NoticeData
.
VisaRemark
=
tempData
.
Feature
.
VisaRemark
;
}
if
(
tempData
.
PDFAlias
!==
null
&&
tempData
.
PDFAlias
!==
""
)
{
this
.
FeatureData
.
Title
=
tempData
.
PDFAlias
;
null
this
.
NoticeData
.
FeeInclude
=
tempData
.
Feature
.
FeeInclude
this
.
NoticeData
.
FeeNonInclude
=
tempData
.
Feature
.
FeeNonInclude
this
.
NoticeData
.
ImportantTip
=
tempData
.
Feature
.
ImportantTip
this
.
NoticeData
.
WarmTip
=
tempData
.
Feature
.
WarmTip
this
.
NoticeData
.
B2BRemark
=
tempData
.
Feature
.
B2BRemark
this
.
NoticeData
.
ShopRemark
=
tempData
.
Feature
.
ShopRemark
this
.
NoticeData
.
VisaRemark
=
tempData
.
Feature
.
VisaRemark
}
if
(
tempData
.
PDFAlias
!==
null
&&
tempData
.
PDFAlias
!==
''
)
{
this
.
FeatureData
.
Title
=
tempData
.
PDFAlias
}
else
{
this
.
FeatureData
.
Title
=
tempData
.
Title
;
this
.
FeatureData
.
Title
=
tempData
.
Title
}
if
(
tempData
.
PriceList
!=
null
)
{
this
.
PriceList
=
tempData
.
PriceList
;
this
.
PriceList
=
tempData
.
PriceList
}
this
.
FeatureData
.
Subtitle
=
tempData
.
LtName
;
this
.
FeatureData
.
LineName
=
tempData
.
LineName
;
this
.
FeatureData
.
DayList
=
tempData
.
DayList
;
this
.
FeatureData
.
Subtitle
=
tempData
.
LtName
this
.
FeatureData
.
LineName
=
tempData
.
LineName
this
.
FeatureData
.
DayList
=
tempData
.
DayList
this
.
ConfigId
=
tempData
.
ID
;
this
.
ConfigId
=
tempData
.
ID
//HK 2019-01-08添加 NewConfigId B2B预览使用
this
.
NewConfigId
=
tempData
.
NewConfigId
;
this
.
PostConfig
.
ID
=
tempData
.
ID
;
this
.
PostConfig
.
StartCityId
=
tempData
.
StartCityId
;
this
.
PostConfig
.
LineId
=
tempData
.
LineId
;
this
.
PostConfig
.
LineteamId
=
tempData
.
LineteamId
;
this
.
PostConfig
.
CountryID
=
tempData
.
CountryID
;
this
.
NewConfigId
=
tempData
.
NewConfigId
this
.
PostConfig
.
ID
=
tempData
.
ID
this
.
PostConfig
.
StartCityId
=
tempData
.
StartCityId
this
.
PostConfig
.
LineId
=
tempData
.
LineId
this
.
PostConfig
.
LineteamId
=
tempData
.
LineteamId
this
.
PostConfig
.
CountryID
=
tempData
.
CountryID
//视频地址
this
.
PostConfig
.
VideoStr
=
tempData
.
VideoStr
;
this
.
PostConfig
.
OpenTeamDescribe
=
tempData
.
OpenTeamDescribe
;
this
.
PostConfig
.
VideoStr
=
tempData
.
VideoStr
this
.
PostConfig
.
OpenTeamDescribe
=
tempData
.
OpenTeamDescribe
this
.
NoticeParameters
.
ConfigId
=
tempData
.
ConfigId
;
this
.
NoticeParameters
.
CountryID
=
tempData
.
CountryID
;
this
.
NoticeParameters
.
IsDirect
=
tempData
.
IsDirect
;
this
.
NoticeParameters
.
LineId
=
tempData
.
LineId
;
this
.
NoticeParameters
.
ConfigId
=
tempData
.
ConfigId
this
.
NoticeParameters
.
CountryID
=
tempData
.
CountryID
this
.
NoticeParameters
.
IsDirect
=
tempData
.
IsDirect
this
.
NoticeParameters
.
LineId
=
tempData
.
LineId
this
.
PostConfig
.
ImgCover
=
tempData
.
ImgCover
;
this
.
PostConfig
.
LtName
=
tempData
.
LtName
;
this
.
PostConfig
.
CreateBy
=
tempData
.
CreateBy
;
if
(
tempData
.
ImgCover
!=
""
)
{
this
.
PostConfig
.
ImgCover
=
tempData
.
ImgCover
this
.
PostConfig
.
LtName
=
tempData
.
LtName
this
.
PostConfig
.
CreateBy
=
tempData
.
CreateBy
if
(
tempData
.
ImgCover
!=
''
)
{
if
(
tempData
.
ImgCoverList
.
length
>
0
)
{
this
.
PostConfig
.
fileList
=
tempData
.
ImgCoverList
;
this
.
PostConfig
.
fileList
=
tempData
.
ImgCoverList
}
}
else
{
this
.
initFileList
()
;
this
.
initFileList
()
}
this
.
PostConfig
.
Title
=
tempData
.
Title
;
this
.
PostConfig
.
ProductRecommend
=
tempData
.
ProductRecommend
;
this
.
PostConfig
.
IsSubstitution
=
tempData
.
IsSubstitution
;
this
.
PostConfig
.
IsDirect
=
tempData
.
IsDirect
;
this
.
PostConfig
.
PriceIsDirect
=
tempData
.
PriceIsDirect
;
this
.
PostConfig
.
Title
=
tempData
.
Title
this
.
PostConfig
.
ProductRecommend
=
tempData
.
ProductRecommend
this
.
PostConfig
.
IsSubstitution
=
tempData
.
IsSubstitution
this
.
PostConfig
.
IsDirect
=
tempData
.
IsDirect
this
.
PostConfig
.
PriceIsDirect
=
tempData
.
PriceIsDirect
if
(
tempData
.
FlightList
!=
null
)
{
this
.
PostConfig
.
FlightList
=
tempData
.
FlightList
;
this
.
PostConfig
.
FlightList
=
tempData
.
FlightList
}
if
(
tempData
.
ShopList
!=
null
)
{
this
.
PostConfig
.
ShopList
=
tempData
.
ShopList
;
this
.
PostConfig
.
ShopList
=
tempData
.
ShopList
}
if
(
tempData
.
SelfpayingList
!=
null
)
{
this
.
PostConfig
.
SelfpayingList
=
tempData
.
SelfpayingList
;
this
.
PostConfig
.
SelfpayingList
=
tempData
.
SelfpayingList
}
this
.
journeyList
.
DayNum
=
tempData
.
DayNum
;
this
.
journeyList
.
NightNum
=
tempData
.
NightNum
;
this
.
journeyList
.
ReturnArriveCityId
=
tempData
.
ReturnArriveCityId
;
this
.
journeyList
.
StartCityId
=
tempData
.
StartCityId
;
this
.
journeyList
.
DayList
=
tempData
.
DayList
;
this
.
journeyList
.
DayNum
=
tempData
.
DayNum
this
.
journeyList
.
NightNum
=
tempData
.
NightNum
this
.
journeyList
.
ReturnArriveCityId
=
tempData
.
ReturnArriveCityId
this
.
journeyList
.
StartCityId
=
tempData
.
StartCityId
this
.
journeyList
.
DayList
=
tempData
.
DayList
this
.
journeyList
.
DayList
.
forEach
(
x
=>
{
x
[
"HotelChooseArray"
]
=
[];
x
[
"ChooseScenicArray"
]
=
[];
x
[
"isHide"
]
=
false
;
})
;
x
[
'HotelChooseArray'
]
=
[]
x
[
'ChooseScenicArray'
]
=
[]
x
[
'isHide'
]
=
false
})
if
(
tempData
.
OfferList
!=
null
)
{
this
.
OfferList
=
tempData
.
OfferList
;
this
.
OfferList
=
tempData
.
OfferList
}
if
(
tempData
.
LineList
!=
null
)
{
this
.
LineList
=
tempData
.
LineList
;
this
.
LineList
=
tempData
.
LineList
}
if
(
tempData
.
AllCityList
!=
null
)
{
this
.
AllCityList
=
tempData
.
AllCityList
;
this
.
AllCityList
=
tempData
.
AllCityList
}
if
(
tempData
.
StartCity
!=
null
)
{
this
.
StartCity
=
tempData
.
StartCity
;
this
.
StartCity
=
tempData
.
StartCity
}
this
.
UseTypeArray
=
tempData
.
UseTypeArray
;
this
.
AirPickUp
=
tempData
.
AirPickUp
;
this
.
AirSend
=
tempData
.
AirSend
;
this
.
PostConfig
[
"OpenState"
]
=
this
.
OpenState
;
this
.
PostConfig
.
PDFAlias
=
tempData
.
PDFAlias
;
this
.
UseTypeArray
=
tempData
.
UseTypeArray
this
.
AirPickUp
=
tempData
.
AirPickUp
this
.
AirSend
=
tempData
.
AirSend
this
.
PostConfig
[
'OpenState'
]
=
this
.
OpenState
this
.
PostConfig
.
PDFAlias
=
tempData
.
PDFAlias
}
else
{
this
.
Error
(
res
.
data
.
message
)
;
this
.
Error
(
res
.
data
.
message
)
}
this
.
loading
=
false
;
this
.
loading
=
false
},
err
=>
{}
);
err
=>
{
}
)
}
else
{
this
.
initFileList
()
;
this
.
initFeatureFile
()
;
this
.
loading
=
true
;
this
.
initFileList
()
this
.
initFeatureFile
()
this
.
loading
=
true
this
.
apipost
(
"travel_get_GetCommonTravelInfo"
,
{
'travel_get_GetCommonTravelInfo'
,
{
TeamType
:
this
.
TeamType
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
tempData
=
res
.
data
.
data
;
var
tempData
=
res
.
data
.
data
if
(
tempData
.
LineList
!=
null
)
{
this
.
LineList
=
tempData
.
LineList
;
this
.
LineList
=
tempData
.
LineList
}
if
(
tempData
.
AllCityList
!=
null
)
{
this
.
AllCityList
=
tempData
.
AllCityList
;
this
.
AllCityList
=
tempData
.
AllCityList
}
if
(
tempData
.
StartCity
!=
null
)
{
this
.
StartCity
=
tempData
.
StartCity
;
this
.
StartCity
=
tempData
.
StartCity
}
this
.
UseTypeArray
=
tempData
.
UseTypeArray
;
this
.
AirPickUp
=
tempData
.
AirPickUp
;
this
.
AirSend
=
tempData
.
AirSend
;
this
.
UseTypeArray
=
tempData
.
UseTypeArray
this
.
AirPickUp
=
tempData
.
AirPickUp
this
.
AirSend
=
tempData
.
AirSend
}
else
{
this
.
Error
(
res
.
data
.
message
)
;
this
.
Error
(
res
.
data
.
message
)
}
this
.
loading
=
false
;
this
.
loading
=
false
},
err
=>
{}
);
err
=>
{
}
)
}
},
goB2B
()
{
let
userInfo
=
this
.
getLocalStorage
()
;
var
B2BDomain
=
userInfo
.
B2BDomain
;
let
configId
=
this
.
NewConfigId
;
goB2B
()
{
let
userInfo
=
this
.
getLocalStorage
()
var
B2BDomain
=
userInfo
.
B2BDomain
let
configId
=
this
.
NewConfigId
window
.
open
(
B2BDomain
+
"/#/detailTwo/"
+
B2BDomain
+
'/#/detailTwo/'
+
encodeURIComponent
(
configId
)
+
'/'
+
0
+
"/preview"
,
"_blank"
)
;
'/preview'
,
'_blank'
)
},
},
updated
:
function
()
{
this
.
MsgBus
.
$emit
(
'FeatureDataFlag'
)
;
this
.
MsgBus
.
$emit
(
'FeatureDataFlag'
)
},
watch
:
{},
mounted
()
{
mounted
()
{
if
(
this
.
$route
.
query
.
customId
)
{
this
.
Post
DaysTrip
.
customId
=
this
.
$route
.
query
.
customId
;
this
.
Post
Config
.
customId
=
this
.
$route
.
query
.
customId
}
if
(
this
.
$route
.
query
.
allotId
)
{
this
.
Post
DaysTrip
.
allotId
=
this
.
$route
.
query
.
allotId
;
this
.
Post
Config
.
allotId
=
this
.
$route
.
query
.
allotId
}
this
.
ScrollMethod
();
console
.
log
(
"this.PostConfig"
,
this
.
PostConfig
)
this
.
ScrollMethod
()
},
created
()
{
this
.
firstLoadConfigInfo
();
created
()
{
this
.
firstLoadConfigInfo
()
}
}
};
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment