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
0a1b575f
Commit
0a1b575f
authored
May 06, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
75d90097
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
826 deletions
+12
-826
TravelContractDetail.vue
src/components/TravelContractDetail.vue
+0
-400
clientConfirm.vue
src/components/clientConfirm.vue
+12
-426
No files found.
src/components/TravelContractDetail.vue
View file @
0a1b575f
...
...
@@ -1196,405 +1196,6 @@
this
.
$message
.
info
(
'取消删除'
);
});
},
//获取行程
GetTrip
(
id
,
TCID
)
{
this
.
tripList
=
[];
this
.
startDate
=
''
;
var
nTCID
=
0
;
if
(
TCID
)
{
nTCID
=
TCID
;
}
var
msg
=
{
configId
:
0
,
tcid
:
nTCID
,
isClick
:
1
//不算统计
};
if
(
id
!==
undefined
)
{
//根据ID 获取行程内容
this
.
apipost
(
"b2b_get_GetB2BTravelInfoNoDes"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
data
.
priceList
&&
res
.
data
.
data
.
priceList
.
length
>
0
)
{
this
.
startDate
=
res
.
data
.
data
.
priceList
[
0
].
startDate
;
}
this
.
trifficList
=
res
.
data
.
data
.
trafficList
;
this
.
tripList
=
res
.
data
.
data
.
dayList
;
this
.
LineName
=
res
.
data
.
data
.
lineName
;
this
.
startCityName
=
res
.
data
.
data
.
startCityName
;
this
.
returnArriveCityName
=
res
.
data
.
data
.
returnArriveCityName
;
this
.
init
();
}
},
err
=>
{}
);
}
else
{
var
dayList
=
[];
this
.
subConfig
.
DayList
.
forEach
((
objItem
,
objIndex
)
=>
{
var
dayItem
=
this
.
$tripUtils
.
daysArrayObj
();
dayItem
.
dayNum
=
objItem
.
dayNum
;
//每一天的数组
var
dayArray
=
[];
//子项遍历
objItem
.
dayArray
.
forEach
(
subItem
=>
{
switch
(
subItem
.
Type
)
{
//交通
case
"1"
:
var
subTraffiArray
=
[];
subItem
.
childItem
.
SubTraffic
.
forEach
(
subTrafficItem
=>
{
subTraffiArray
.
push
({
startCityName
:
subTrafficItem
.
StartCityName
,
arrivalType
:
subTrafficItem
.
ArrivalType
,
arrivalCityName
:
subTrafficItem
.
ArrivalCityName
});
});
var
trafficObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
description
:
subItem
.
childItem
.
Description
,
subTraffic
:
subTraffiArray
}
};
dayArray
.
push
(
trafficObj
);
break
;
//景点
case
"2"
:
var
imgArray
=
[];
subItem
.
childItem
.
ImaArray
.
forEach
(
imgItem
=>
{
imgArray
.
push
({
url
:
imgItem
.
Url
,
name
:
imgItem
.
Name
});
});
var
scenicObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
couponsName
:
subItem
.
childItem
.
CouponsName
,
couponsTicketName
:
subItem
.
childItem
.
CouponsTicketName
,
playTimeHour
:
subItem
.
childItem
.
PlayTimeHour
,
playTimeMinutes
:
subItem
.
childItem
.
PlayTimeMinutes
,
description
:
subItem
.
childItem
.
Description
,
imaArray
:
imgArray
}
};
dayArray
.
push
(
scenicObj
);
break
;
//酒店
case
"3"
:
var
imgArray
=
[];
subItem
.
childItem
.
ImaArray
.
forEach
(
imgItem
=>
{
imgArray
.
push
({
url
:
imgItem
.
Url
,
name
:
imgItem
.
Name
});
});
var
hotelObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
hotelName
:
subItem
.
childItem
.
HotelName
,
hotelProductName
:
subItem
.
childItem
.
HotelProductName
,
useDinnerType
:
subItem
.
childItem
.
UseDinnerType
,
description
:
subItem
.
childItem
.
Description
,
imaArray
:
imgArray
}
};
dayArray
.
push
(
hotelObj
);
break
;
//餐厅
case
"4"
:
var
imgArray
=
[];
subItem
.
childItem
.
ImaArray
.
forEach
(
imgItem
=>
{
imgArray
.
push
({
url
:
imgItem
.
Url
,
name
:
imgItem
.
Name
});
});
var
dinnerObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
dinnerName
:
subItem
.
childItem
.
DinnerName
,
mealName
:
subItem
.
childItem
.
MinnerName
,
useDinnerType
:
subItem
.
childItem
.
UseDinnerType
,
useTimeHour
:
subItem
.
childItem
.
UseTimeHour
,
useTimeMinutes
:
subItem
.
childItem
.
UseTimeMinutes
,
description
:
subItem
.
childItem
.
Description
,
descriptionText
:
subItem
.
childItem
.
Description
,
imaArray
:
imgArray
}
};
dayArray
.
push
(
dinnerObj
);
break
;
//自由活动
case
"5"
:
var
freedomObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
description
:
subItem
.
Description
,
descriptionText
:
subItem
.
Description
}
};
dayArray
.
push
(
freedomObj
);
break
;
//温馨提示
case
"6"
:
var
warmObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
description
:
subItem
.
Description
,
descriptionText
:
subItem
.
Description
}
};
dayArray
.
push
(
warmObj
);
break
;
//行程大点
case
"7"
:
var
titleObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
title
:
subItem
.
childItem
.
Title
,
description
:
subItem
.
childItem
.
Description
}
};
dayArray
.
push
(
titleObj
);
break
;
}
});
dayItem
.
dayArray
=
dayArray
;
dayList
.
push
(
dayItem
);
});
this
.
tripList
=
dayList
;
this
.
init
();
}
},
init
()
{
this
.
tripList
.
forEach
((
x
,
j
)
=>
{
let
useDinnerTypeBy
=
""
;
let
jin
=
[],
jiu
=
[],
jiu2
=
[],
jiao
=
[],
dadian
=
[],
tips
=
[],
activy
=
[],
can
=
{
breakfirst
:
"敬请自理"
,
lanuch
:
"敬请自理"
,
dinner
:
"敬请自理"
};
x
.
dayArray
.
forEach
((
y
,
index
)
=>
{
if
(
y
.
type
==
7
&&
y
.
childItem
.
title
!=
""
)
{
let
obj
=
{
title
:
y
.
childItem
.
title
,
content
:
y
.
childItem
.
description
,
img
:
y
.
childItem
.
imaArray
&&
y
.
childItem
.
imaArray
.
length
>
0
?
y
.
childItem
.
imaArray
[
0
].
url
:
""
,
ticketName
:
""
,
playTimeHour
:
null
,
playTimeMinutes
:
null
};
dadian
.
push
(
obj
);
}
else
if
(
y
.
type
==
1
&&
y
.
childItem
.
subTraffic
.
length
>
0
)
{
let
title
=
""
;
y
.
childItem
.
subTraffic
.
forEach
((
z
,
i
)
=>
{
title
+=
z
.
startCityName
;
if
(
z
.
arrivalType
==
1
)
{
title
+=
'-'
;
}
else
if
(
z
.
arrivalType
==
2
)
{
title
+=
'-'
;
}
else
if
(
z
.
arrivalType
==
3
)
{
title
+=
'-'
;
}
else
{
title
+=
'-'
;
}
if
(
i
+
1
==
y
.
childItem
.
subTraffic
.
length
)
{
title
+=
z
.
arrivalCityName
;
}
});
let
obj
=
{
title
:
title
,
content
:
y
.
childItem
.
description
,
img
:
""
,
ticketName
:
""
,
playTimeHour
:
null
,
playTimeMinutes
:
null
};
jiao
.
push
(
obj
);
}
else
if
(
y
.
type
==
2
&&
y
.
childItem
.
couponsName
!=
""
&&
y
.
childItem
.
imaArray
.
length
>
0
)
{
let
obj
=
{
title
:
y
.
childItem
.
couponsName
,
content
:
y
.
childItem
.
description
,
img
:
y
.
childItem
.
imaArray
[
0
].
url
,
ticketName
:
y
.
childItem
.
couponsTicketName
,
playTimeHour
:
y
.
childItem
.
playTimeHour
,
playTimeMinutes
:
y
.
childItem
.
playTimeHour
};
jin
.
push
(
obj
);
}
else
if
(
y
.
type
==
3
&&
y
.
childItem
.
hotelName
!=
""
&&
y
.
childItem
.
imaArray
.
length
>
0
)
{
let
obj
=
{
title
:
y
.
childItem
.
hotelName
,
content
:
y
.
childItem
.
description
,
img
:
y
.
childItem
.
imaArray
[
0
].
url
,
ticketName
:
""
,
playTimeHour
:
null
,
playTimeMinutes
:
null
};
jiu
.
push
(
obj
);
}
else
if
(
y
.
type
==
4
)
{
if
(
y
.
childItem
.
useDinnerType
==
"1"
)
{
can
.
breakfirst
=
y
.
childItem
.
dinnerName
;
}
else
if
(
y
.
childItem
.
useDinnerType
==
"2"
)
{
can
.
lanuch
=
y
.
childItem
.
dinnerName
;
}
else
if
(
y
.
childItem
.
useDinnerType
==
"3"
)
{
can
.
dinner
=
y
.
childItem
.
dinnerName
;
}
}
else
if
(
y
.
type
==
5
)
{
let
obj
=
{
title
:
"自由活动"
,
content
:
y
.
childItem
.
description
,
img
:
""
,
ticketName
:
""
,
playTimeHour
:
null
,
playTimeMinutes
:
null
};
activy
.
push
(
obj
);
}
else
if
(
y
.
type
==
6
)
{
let
obj
=
{
title
:
y
.
childItem
.
title
,
content
:
y
.
childItem
.
description
,
img
:
""
,
ticketName
:
""
,
playTimeHour
:
null
,
playTimeMinutes
:
null
};
tips
.
push
(
obj
);
}
if
(
y
.
type
==
3
)
{
jiu2
.
push
(
y
.
childItem
.
hotelName
);
useDinnerTypeBy
=
y
.
childItem
.
useDinnerType
;
}
});
if
(
can
.
breakfirst
==
"敬请自理"
&&
useDinnerTypeBy
.
indexOf
(
"1"
)
!=
-
1
)
{
can
.
breakfirst
=
"酒店内享用早餐"
;
}
if
(
can
.
lanuch
==
"敬请自理"
&&
useDinnerTypeBy
.
indexOf
(
"2"
)
!=
-
1
)
{
can
.
lanuch
=
"酒店自助"
;
}
if
(
can
.
dinner
==
"敬请自理"
&&
useDinnerTypeBy
.
indexOf
(
"3"
)
!=
-
1
)
{
can
.
dinner
=
"酒店自助"
;
}
x
.
can
=
can
;
let
details
=
[];
x
.
tips
=
tips
;
x
.
jiu2
=
jiu2
;
if
(
jin
.
length
>
0
)
{
details
=
jin
;
}
else
if
(
jiu
.
length
>
0
)
{
details
=
jiu
;
}
else
if
(
dadian
.
length
>
0
)
{
details
=
dadian
;
}
else
if
(
jiao
.
length
>
0
)
{
if
(
j
==
this
.
tripList
.
length
-
1
)
{
let
obj
=
{
title
:
"温暖的家"
,
content
:
"感谢您参加本次行程,期待下次与您相遇"
,
img
:
""
};
details
.
push
(
obj
);
}
else
{
details
=
jiao
;
}
}
else
if
(
activy
.
length
>
0
)
{
details
=
activy
;
}
x
.
title
=
dadian
.
length
>
0
?
dadian
[
0
].
title
:
jiao
.
length
>
0
?
jiao
[
0
].
title
:
"集合出发"
;
x
.
details
=
details
;
if
(
x
.
details
.
length
==
0
)
{
if
(
j
==
0
)
{
let
obj
=
{
title
:
"集合出发"
,
content
:
"向着远方的目标出发起飞"
,
img
:
""
,
ticketName
:
""
,
playTimeHour
:
null
,
playTimeMinutes
:
null
};
details
.
push
(
obj
);
}
else
if
(
j
==
this
.
tripList
.
length
-
1
)
{
let
obj
=
{
title
:
"温暖的家"
,
content
:
"感谢您参加本次行程,期待下次与您相遇"
,
img
:
""
,
ticketName
:
""
,
playTimeHour
:
null
,
playTimeMinutes
:
null
};
details
.
push
(
obj
);
}
}
else
{
if
(
x
.
title
==
"集合出发"
)
{
x
.
details
.
forEach
(
xc
=>
{
if
(
xc
.
title
!==
undefined
)
x
.
title
=
xc
.
title
+
"~"
;
});
if
(
x
.
title
==
"集合出发"
)
{
if
(
j
>
0
&&
j
<
tripList
.
length
-
1
)
x
.
title
=
"自由活动"
;
}
else
{
x
.
title
=
x
.
title
.
substring
(
0
,
x
.
title
.
length
-
1
);
}
}
}
x
.
islast
=
j
+
1
==
this
.
tripList
.
length
;
this
.
$set
(
this
.
tripList
,
j
,
x
);
});
for
(
let
i
=
this
.
tripList
.
length
-
1
;
i
>=
0
;
i
--
)
{
if
(
i
==
0
)
this
.
tripList
[
i
].
can
.
breakfirst
=
"敬请自理"
;
else
{
this
.
tripList
[
i
].
can
.
breakfirst
=
this
.
tripList
[
i
-
1
].
can
.
breakfirst
;
if
(
this
.
tripList
[
i
].
lineId
!=
5
&&
this
.
tripList
[
i
].
can
.
breakfirst
==
"敬请自理"
)
this
.
tripList
[
i
].
can
.
breakfirst
=
"酒店内享用早餐"
;
}
}
this
.
trifficList
.
forEach
((
x
,
index
)
=>
{
if
(
x
.
airportPickUp
==
1
||
x
.
airportPickUp
==
2
)
{
if
(
x
.
isUseBus
==
1
)
{
this
.
tripList
[
index
].
TrifficType
=
'飞机+大巴'
}
}
if
(
x
.
airportPickUp
==
0
&&
x
.
isUseBus
==
1
)
{
this
.
tripList
[
index
].
TrifficType
=
'大巴'
}
if
(
x
.
airportPickUp
==
1
||
x
.
airportPickUp
==
2
)
{
if
(
x
.
isUseBus
==
0
)
{
this
.
tripList
[
index
].
TrifficType
=
'飞机'
}
}
if
(
x
.
airportPickUp
==
0
||
x
.
airportPickUp
==
0
)
{
if
(
x
.
isUseBus
==
0
)
{
this
.
tripList
[
index
].
TrifficType
=
'无'
}
}
})
}
},
mounted
()
{
this
.
CurrentUserInfo
=
this
.
getLocalStorage
();
...
...
@@ -1604,7 +1205,6 @@
let
TID
=
this
.
$route
.
query
.
ID
;
this
.
getList
();
this
.
getShow
(
TID
);
this
.
GetTrip
(
0
,
this
.
msg
.
TCID
);
}
};
...
...
src/components/clientConfirm.vue
View file @
0a1b575f
...
...
@@ -511,7 +511,7 @@
<div
class=
"dic_content"
:class=
"dialogVisible?'CisHideen':''"
>
<!-- 签字 -->
<div
class=
"signSpan"
v-if=
"dataList.companySignature==''"
>
<div
@
click=
"goUrl"
class=
"sign"
>
<div
@
click=
"goUrl"
class=
"sign"
>
<p><span
style=
"font-size:3rem"
class=
"iconfont icon-qianming"
></span></p>
<span
style=
"font-size:2rem"
>
签字
</span>
</div>
...
...
@@ -935,9 +935,7 @@
<p
class=
"toTopDistance"
>
第二十七条
其他约定事项
</p>
</h3>
<p>
未尽事宜,经旅游者和出境社双方协商一致,可以列入补充条款。(如合同空间不够,可以另附纸张,由双方签字或者盖章确认。)
</p>
<p
class=
"decoration"
>
<font></font>
</p>
<p
v-html=
"dataList.otherMatter"
class=
"decoration"
></p>
<h3
class=
"Contract_Depart"
><span
class=
"leftP"
style=
"padding-left:10px;"
>
第二十八条
合同效力
</span>
</h3>
<p
class=
"Contract_Depart"
id=
"p_contract_num"
>
本合同一式
<font>
{{
getTotalNum
(
dataList
.
totalNumber
)
}}
</font>
份,双方各持
...
...
@@ -951,7 +949,8 @@
<el-col
:span=
"12"
>
旅游者代表签字(盖章):
</el-col>
<el-col
:span=
"12"
>
{{
dataList
.
companySignature
!=
''
?
''
:
dataList
.
clientName
}}
<img
style=
"width:120px;"
:src=
"dataList.companySignature"
v-if=
"dataList.companySignature!=''"
alt=
""
/>
<img
style=
"width:120px;"
:src=
"dataList.companySignature"
v-if=
"dataList.companySignature!=''"
alt=
""
/>
</el-col>
</el-row>
</li>
...
...
@@ -1007,7 +1006,7 @@
<li>
<el-row>
<el-col
:span=
"12"
>
出境社盖章:
</el-col>
<el-col
:span=
"12"
><img
class=
"signImg"
:src=
"CurrentUserInfo.ZhangImg"
alt=
""
/></el-col>
<el-col
:span=
"12"
><img
class=
"signImg"
:src=
"CurrentUserInfo.ZhangImg"
alt=
""
/></el-col>
</el-row>
</li>
<li>
...
...
@@ -2102,19 +2101,12 @@
this
.
tcShowDialog
=
false
;
this
.
signShow
=
false
;
}
}
catch
(
error
)
{
//("mounted:"+error.message)
}
}
catch
(
error
)
{}
},
methods
:
{
closeTcShowHandler
(){
// this.tcShowDialog = false
// this.$forceUpdate();
// alert('点击了'+this.tcShowDialog)
let
domtemp
=
document
.
querySelector
(
"#tcShowDialog"
)
closeTcShowHandler
()
{
let
domtemp
=
document
.
querySelector
(
"#tcShowDialog"
)
domtemp
.
remove
()
//alert('删除完成')
},
goUrl
()
{
sessionStorage
.
setItem
(
"SignInfo"
,
JSON
.
stringify
(
this
.
dataList
))
...
...
@@ -2134,7 +2126,7 @@
this
.
apiJavaPost
(
"/api/contract/getContractInfo"
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
dataList
=
res
.
data
.
data
;
this
.
dataList
.
travelContent
=
this
.
dataList
.
travelContent
.
replaceAll
(
/contenteditable="true"/ig
,
''
)
this
.
dataList
.
travelContent
=
this
.
dataList
.
travelContent
.
replaceAll
(
/contenteditable="true"/ig
,
''
)
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -2236,417 +2228,12 @@
}
},
null
);
},
//获取行程
GetTrip
(
id
,
TCID
)
{
this
.
tripList
=
[];
this
.
startDate
=
''
;
var
nTCID
=
0
;
if
(
TCID
)
{
nTCID
=
TCID
;
}
var
msg
=
{
configId
:
0
,
tcid
:
nTCID
,
isClick
:
1
//不算统计
};
if
(
id
!==
undefined
)
{
//根据ID 获取行程内容
this
.
apipost
(
"b2b_get_GetB2BTravelInfoNoDes"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
data
.
priceList
&&
res
.
data
.
data
.
priceList
.
length
>
0
)
{
this
.
startDate
=
res
.
data
.
data
.
priceList
[
0
].
startDate
;
}
this
.
trifficList
=
res
.
data
.
data
.
trafficList
;
this
.
tripList
=
res
.
data
.
data
.
dayList
;
this
.
LineName
=
res
.
data
.
data
.
lineName
;
this
.
startCityName
=
res
.
data
.
data
.
startCityName
;
this
.
returnArriveCityName
=
res
.
data
.
data
.
returnArriveCityName
;
this
.
init
();
}
},
err
=>
{}
);
}
else
{
var
dayList
=
[];
this
.
subConfig
.
DayList
.
forEach
((
objItem
,
objIndex
)
=>
{
var
dayItem
=
this
.
$tripUtils
.
daysArrayObj
();
dayItem
.
dayNum
=
objItem
.
dayNum
;
//每一天的数组
var
dayArray
=
[];
//子项遍历
objItem
.
dayArray
.
forEach
(
subItem
=>
{
switch
(
subItem
.
Type
)
{
//交通
case
"1"
:
var
subTraffiArray
=
[];
subItem
.
childItem
.
SubTraffic
.
forEach
(
subTrafficItem
=>
{
subTraffiArray
.
push
({
startCityName
:
subTrafficItem
.
StartCityName
,
arrivalType
:
subTrafficItem
.
ArrivalType
,
arrivalCityName
:
subTrafficItem
.
ArrivalCityName
});
});
var
trafficObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
description
:
subItem
.
childItem
.
Description
,
subTraffic
:
subTraffiArray
}
};
dayArray
.
push
(
trafficObj
);
break
;
//景点
case
"2"
:
var
imgArray
=
[];
subItem
.
childItem
.
ImaArray
.
forEach
(
imgItem
=>
{
imgArray
.
push
({
url
:
imgItem
.
Url
,
name
:
imgItem
.
Name
});
});
var
scenicObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
couponsName
:
subItem
.
childItem
.
CouponsName
,
couponsTicketName
:
subItem
.
childItem
.
CouponsTicketName
,
playTimeHour
:
subItem
.
childItem
.
PlayTimeHour
,
playTimeMinutes
:
subItem
.
childItem
.
PlayTimeMinutes
,
description
:
subItem
.
childItem
.
Description
,
imaArray
:
imgArray
}
};
dayArray
.
push
(
scenicObj
);
break
;
//酒店
case
"3"
:
var
imgArray
=
[];
subItem
.
childItem
.
ImaArray
.
forEach
(
imgItem
=>
{
imgArray
.
push
({
url
:
imgItem
.
Url
,
name
:
imgItem
.
Name
});
});
var
hotelObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
hotelName
:
subItem
.
childItem
.
HotelName
,
hotelProductName
:
subItem
.
childItem
.
HotelProductName
,
useDinnerType
:
subItem
.
childItem
.
UseDinnerType
,
description
:
subItem
.
childItem
.
Description
,
imaArray
:
imgArray
}
};
dayArray
.
push
(
hotelObj
);
break
;
//餐厅
case
"4"
:
var
imgArray
=
[];
subItem
.
childItem
.
ImaArray
.
forEach
(
imgItem
=>
{
imgArray
.
push
({
url
:
imgItem
.
Url
,
name
:
imgItem
.
Name
});
});
var
dinnerObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
dinnerName
:
subItem
.
childItem
.
DinnerName
,
mealName
:
subItem
.
childItem
.
MinnerName
,
useDinnerType
:
subItem
.
childItem
.
UseDinnerType
,
useTimeHour
:
subItem
.
childItem
.
UseTimeHour
,
useTimeMinutes
:
subItem
.
childItem
.
UseTimeMinutes
,
description
:
subItem
.
childItem
.
Description
,
descriptionText
:
subItem
.
childItem
.
Description
,
imaArray
:
imgArray
}
};
dayArray
.
push
(
dinnerObj
);
break
;
//自由活动
case
"5"
:
var
freedomObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
description
:
subItem
.
Description
,
descriptionText
:
subItem
.
Description
}
};
dayArray
.
push
(
freedomObj
);
break
;
//温馨提示
case
"6"
:
var
warmObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
description
:
subItem
.
Description
,
descriptionText
:
subItem
.
Description
}
};
dayArray
.
push
(
warmObj
);
break
;
//行程大点
case
"7"
:
var
titleObj
=
{
type
:
subItem
.
Type
,
childItem
:
{
title
:
subItem
.
childItem
.
Title
,
description
:
subItem
.
childItem
.
Description
}
};
dayArray
.
push
(
titleObj
);
break
;
}
});
dayItem
.
dayArray
=
dayArray
;
dayList
.
push
(
dayItem
);
});
this
.
tripList
=
dayList
;
this
.
init
();
}
},
init
()
{
this
.
tripList
.
forEach
((
x
,
j
)
=>
{
let
useDinnerTypeBy
=
""
;
let
jin
=
[],
jiu
=
[],
jiu2
=
[],
jiao
=
[],
dadian
=
[],
tips
=
[],
activy
=
[],
can
=
{
breakfirst
:
"敬请自理"
,
lanuch
:
"敬请自理"
,
dinner
:
"敬请自理"
};
x
.
dayArray
.
forEach
((
y
,
index
)
=>
{
if
(
y
.
type
==
7
&&
y
.
childItem
.
title
!=
""
)
{
let
obj
=
{
title
:
y
.
childItem
.
title
,
content
:
y
.
childItem
.
description
,
img
:
y
.
childItem
.
imaArray
&&
y
.
childItem
.
imaArray
.
length
>
0
?
y
.
childItem
.
imaArray
[
0
].
url
:
""
,
ticketName
:
""
,
playTimeHour
:
null
,
playTimeMinutes
:
null
};
dadian
.
push
(
obj
);
}
else
if
(
y
.
type
==
1
&&
y
.
childItem
.
subTraffic
.
length
>
0
)
{
let
title
=
""
;
y
.
childItem
.
subTraffic
.
forEach
((
z
,
i
)
=>
{
title
+=
z
.
startCityName
;
if
(
z
.
arrivalType
==
1
)
{
title
+=
'-'
;
}
else
if
(
z
.
arrivalType
==
2
)
{
title
+=
'-'
;
}
else
if
(
z
.
arrivalType
==
3
)
{
title
+=
'-'
;
}
else
{
title
+=
'-'
;
}
if
(
i
+
1
==
y
.
childItem
.
subTraffic
.
length
)
{
title
+=
z
.
arrivalCityName
;
}
});
let
obj
=
{
title
:
title
,
content
:
y
.
childItem
.
description
,
img
:
""
,
ticketName
:
""
,
playTimeHour
:
null
,
playTimeMinutes
:
null
};
jiao
.
push
(
obj
);
}
else
if
(
y
.
type
==
2
&&
y
.
childItem
.
couponsName
!=
""
&&
y
.
childItem
.
imaArray
.
length
>
0
)
{
let
obj
=
{
title
:
y
.
childItem
.
couponsName
,
content
:
y
.
childItem
.
description
,
img
:
y
.
childItem
.
imaArray
[
0
].
url
,
ticketName
:
y
.
childItem
.
couponsTicketName
,
playTimeHour
:
y
.
childItem
.
playTimeHour
,
playTimeMinutes
:
y
.
childItem
.
playTimeHour
};
jin
.
push
(
obj
);
}
else
if
(
y
.
type
==
3
&&
y
.
childItem
.
hotelName
!=
""
&&
y
.
childItem
.
imaArray
.
length
>
0
)
{
let
obj
=
{
title
:
y
.
childItem
.
hotelName
,
content
:
y
.
childItem
.
description
,
img
:
y
.
childItem
.
imaArray
[
0
].
url
,
ticketName
:
""
,
playTimeHour
:
null
,
playTimeMinutes
:
null
};
jiu
.
push
(
obj
);
}
else
if
(
y
.
type
==
4
)
{
if
(
y
.
childItem
.
useDinnerType
==
"1"
)
{
can
.
breakfirst
=
y
.
childItem
.
dinnerName
;
}
else
if
(
y
.
childItem
.
useDinnerType
==
"2"
)
{
can
.
lanuch
=
y
.
childItem
.
dinnerName
;
}
else
if
(
y
.
childItem
.
useDinnerType
==
"3"
)
{
can
.
dinner
=
y
.
childItem
.
dinnerName
;
}
}
else
if
(
y
.
type
==
5
)
{
let
obj
=
{
title
:
"自由活动"
,
content
:
y
.
childItem
.
description
,
img
:
""
,
ticketName
:
""
,
playTimeHour
:
null
,
playTimeMinutes
:
null
};
activy
.
push
(
obj
);
}
else
if
(
y
.
type
==
6
)
{
let
obj
=
{
title
:
y
.
childItem
.
title
,
content
:
y
.
childItem
.
description
,
img
:
""
,
ticketName
:
""
,
playTimeHour
:
null
,
playTimeMinutes
:
null
};
tips
.
push
(
obj
);
}
if
(
y
.
type
==
3
)
{
jiu2
.
push
(
y
.
childItem
.
hotelName
);
useDinnerTypeBy
=
y
.
childItem
.
useDinnerType
;
}
});
if
(
can
.
breakfirst
==
"敬请自理"
&&
useDinnerTypeBy
.
indexOf
(
"1"
)
!=
-
1
)
{
can
.
breakfirst
=
"酒店内享用早餐"
;
}
if
(
can
.
lanuch
==
"敬请自理"
&&
useDinnerTypeBy
.
indexOf
(
"2"
)
!=
-
1
)
{
can
.
lanuch
=
"酒店自助"
;
}
if
(
can
.
dinner
==
"敬请自理"
&&
useDinnerTypeBy
.
indexOf
(
"3"
)
!=
-
1
)
{
can
.
dinner
=
"酒店自助"
;
}
x
.
can
=
can
;
let
details
=
[];
x
.
tips
=
tips
;
x
.
jiu2
=
jiu2
;
if
(
jin
.
length
>
0
)
{
details
=
jin
;
}
else
if
(
jiu
.
length
>
0
)
{
details
=
jiu
;
}
else
if
(
dadian
.
length
>
0
)
{
details
=
dadian
;
}
else
if
(
jiao
.
length
>
0
)
{
if
(
j
==
this
.
tripList
.
length
-
1
)
{
let
obj
=
{
title
:
"温暖的家"
,
content
:
"感谢您参加本次行程,期待下次与您相遇"
,
img
:
""
};
details
.
push
(
obj
);
}
else
{
details
=
jiao
;
}
}
else
if
(
activy
.
length
>
0
)
{
details
=
activy
;
}
x
.
title
=
dadian
.
length
>
0
?
dadian
[
0
].
title
:
jiao
.
length
>
0
?
jiao
[
0
].
title
:
"集合出发"
;
x
.
details
=
details
;
if
(
x
.
details
.
length
==
0
)
{
if
(
j
==
0
)
{
let
obj
=
{
title
:
"集合出发"
,
content
:
"向着远方的目标出发起飞"
,
img
:
""
,
ticketName
:
""
,
playTimeHour
:
null
,
playTimeMinutes
:
null
};
details
.
push
(
obj
);
}
else
if
(
j
==
this
.
tripList
.
length
-
1
)
{
let
obj
=
{
title
:
"温暖的家"
,
content
:
"感谢您参加本次行程,期待下次与您相遇"
,
img
:
""
,
ticketName
:
""
,
playTimeHour
:
null
,
playTimeMinutes
:
null
};
details
.
push
(
obj
);
}
}
else
{
if
(
x
.
title
==
"集合出发"
)
{
x
.
details
.
forEach
(
xc
=>
{
if
(
xc
.
title
!==
undefined
)
x
.
title
=
xc
.
title
+
"~"
;
});
if
(
x
.
title
==
"集合出发"
)
{
if
(
j
>
0
&&
j
<
tripList
.
length
-
1
)
x
.
title
=
"自由活动"
;
}
else
{
x
.
title
=
x
.
title
.
substring
(
0
,
x
.
title
.
length
-
1
);
}
}
}
x
.
islast
=
j
+
1
==
this
.
tripList
.
length
;
this
.
$set
(
this
.
tripList
,
j
,
x
);
});
for
(
let
i
=
this
.
tripList
.
length
-
1
;
i
>=
0
;
i
--
)
{
if
(
i
==
0
)
this
.
tripList
[
i
].
can
.
breakfirst
=
"敬请自理"
;
else
{
this
.
tripList
[
i
].
can
.
breakfirst
=
this
.
tripList
[
i
-
1
].
can
.
breakfirst
;
if
(
this
.
tripList
[
i
].
lineId
!=
5
&&
this
.
tripList
[
i
].
can
.
breakfirst
==
"敬请自理"
)
this
.
tripList
[
i
].
can
.
breakfirst
=
"酒店内享用早餐"
;
}
}
this
.
trifficList
.
forEach
((
x
,
index
)
=>
{
if
(
x
.
airportPickUp
==
1
||
x
.
airportPickUp
==
2
)
{
if
(
x
.
isUseBus
==
1
)
{
this
.
tripList
[
index
].
TrifficType
=
'飞机+车'
}
}
if
(
x
.
airportPickUp
==
0
&&
x
.
isUseBus
==
1
)
{
this
.
tripList
[
index
].
TrifficType
=
'车'
}
if
(
x
.
airportPickUp
==
1
||
x
.
airportPickUp
==
2
)
{
if
(
x
.
isUseBus
==
0
)
{
this
.
tripList
[
index
].
TrifficType
=
'飞机'
}
}
if
(
x
.
airportPickUp
==
0
||
x
.
airportPickUp
==
0
)
{
if
(
x
.
isUseBus
==
0
)
{
this
.
tripList
[
index
].
TrifficType
=
''
}
}
})
},
//加一天返回
getDayAddOne
(
day
,
num
)
{
return
moment
(
day
).
add
(
num
,
'days'
).
format
(
'YYYY-MM-DD'
)
}
},
mounted
()
{
try
{
this
.
CurrentUserInfo
=
this
.
getLocalStorage
();
this
.
CurrentUserInfo
=
this
.
CurrentUserInfo
?
this
.
CurrentUserInfo
:
{}
this
.
CurrentUserInfo
.
ZhangImg
=
'http://imgfile.oytour.com/New/Upload/CompanyImage/hepingzhang.png'
this
.
CurrentUserInfo
=
this
.
CurrentUserInfo
?
this
.
CurrentUserInfo
:
{}
this
.
CurrentUserInfo
.
ZhangImg
=
'http://imgfile.oytour.com/New/Upload/CompanyImage/hepingzhang.png'
this
.
msg
.
TCID
=
this
.
$route
.
query
.
TCID
;
this
.
msg
.
orderID
=
this
.
$route
.
query
.
orderID
;
this
.
msg
.
guestId
=
this
.
$route
.
query
.
guestId
;
...
...
@@ -2655,9 +2242,8 @@
cHeight
.
style
.
height
=
900
+
'px'
;
this
.
getList
();
this
.
getCanvas
();
this
.
GetTrip
(
0
,
this
.
msg
.
TCID
);
}
catch
(
error
)
{
alert
(
"mounted:"
+
error
.
message
)
//
alert("mounted:"+error.message)
}
}
};
...
...
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