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
cd65c667
Commit
cd65c667
authored
Sep 01, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
e0c1a439
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
233 additions
and
175 deletions
+233
-175
index.vue
src/components/LeaveGroupDownload/index.vue
+231
-173
confirmationOrderDownLoadNew.vue
src/components/confirmationOrderDownLoadNew.vue
+2
-2
No files found.
src/components/LeaveGroupDownload/index.vue
View file @
cd65c667
<
template
>
<div
id=
"pdf_1"
v-if=
"orderMsg"
>
<div
class=
"trip-adviser"
>
<h1
class=
"trip-nav-title"
>
<span>
{{
vshowL
?
"出团通知书:"
:
""
}}
</span>
{{
orderMsg
.
lineteamName
}}{{
orderMsg
.
dayNum
}}
日游
</h1>
<p>
尊敬的旅客:
<br
/>
感谢您选择我们的旅游服务。为了确保各位旅客有更好的旅游体验,请详细阅读《出团通知书》的各项内容。如有任何问题,请拨打通知书内的本团领队电话或机场服务人员电话。
在此,预祝您旅途愉快!希望您在本次旅程中留下此生中最美好的回忆!
</p>
</div>
<table
class=
"baseTable trip-v3-base"
>
<tbody>
<tr>
<td
class=
"essential-item jianju"
>
<p
class=
"pkey"
>
线路
</p>
<p
class=
"pvalue"
>
{{
orderMsg
.
lineName
}}
</p>
</td>
<td
class=
"essential-item jianju"
>
<p
class=
"pkey"
>
出发日期
</p>
<p
class=
"pvalue"
>
{{
orderMsg
.
startDate
}}
</p>
</td>
<td
class=
"essential-item jianju"
>
<p
class=
"pkey"
>
返回日期
</p>
<p
class=
"pvalue"
>
{{
orderMsg
.
endDate
}}
</p>
</td>
<td
class=
"essential-item jianju_b"
>
<p
class=
"pkey"
>
行程天数
</p>
<p
class=
"pvalue"
>
{{
orderMsg
.
dayNum
}}
</p>
</td>
<td
rowspan=
"2"
>
<div
style=
"width: 160px; height:160px;margin-left:20px;"
>
<img
style=
"width: 160px; height:160px;"
:src=
"'data:image/png;base64,' + WeiXinShareImgSrc"
alt=
"获取微信小程序分享链接"
/>
<div
id=
"pdf_1"
v-if=
"orderMsg&&dataAll"
>
<div
class=
"UpgradedVersion-box UpgradedVersion-homebj relative"
>
<div
class=
"absolute z-index1 column"
style=
"left: 0;right: 0; top: 0;bottom: 0;"
>
<Header
:TripColor=
"dataAll&&dataAll.tripColor"
:orderMsg=
"orderMsg"
></Header>
<div
class=
"travelDaysTitlle row-aic"
>
<div
class=
"travelDaysTitlle-left"
>
<div
class=
"travelDaysTitlle-left-text column-ajc"
>
<div
class=
"travelDaysTitlle-left-textOne"
>
<span></span>
</div>
<div
class=
"travelDaysTitlle-left-textTwo"
>
<span></span>
</div>
</div>
</td>
</tr>
<tr>
<td
class=
"essential-item jianju"
colspan=
"2"
>
<p
class=
"pkey"
>
系列
</p>
<p
class=
"pvalue"
>
{{
orderMsg
.
lineteamName
}}
</p>
</td>
<td
class=
"essential-item jianju_b"
colspan=
"2"
>
<p
class=
"pkey"
>
团队编号
</p>
<p
class=
"pvalue"
>
{{
orderMsg
.
tcnum
}}
</p>
</td>
</tr>
</tbody>
</table>
<div
class=
"trip-v3-title small-margin"
>
<h2>
集合地点
&
联系人
</h2>
</div>
<table
class=
"baseTable trip-v3-base"
>
<tbody>
<tr>
<td
class=
"essential-item jianju"
>
<p
class=
"pkey"
>
本团领队
</p>
<p
class=
"pvalue"
>
{{
orderTripdiff
!=
null
?
orderTripdiff
.
leaderInfo
:
orderMsg
.
leaderName
+
(
orderMsg
.
leaderMobile
!=
null
?
"/"
+
orderMsg
.
leaderMobile
:
""
)
}}
</p>
</td>
<td
class=
"essential-item jianju"
>
<p
class=
"pkey"
>
集合时间
</p>
<p
class=
"pvalue"
>
{{
orderTripdiff
!=
null
?
orderTripdiff
.
gatheringTime
:
orderMsg
.
gatheringTime
}}
</p>
</td>
<td
class=
"essential-item jianju"
>
<p
class=
"pkey"
>
机场服务
</p>
<p
class=
"pvalue"
>
<template
v-if=
"
orderMsg &&
orderMsg.airportServicePerson &&
orderMsg.airportServicePerson != ''
"
>
{{
orderMsg
.
airportServicePerson
}}
</
template
>
</p>
</td>
<td
class=
"essential-item jianju_b"
>
<p
class=
"pkey"
>
集合标识
</p>
<p
class=
"pvalue"
>
{{
orderTripdiff != null
? orderTripdiff.gatherIdent
: orderMsg.bName
}}
</p>
</td>
</tr>
<tr>
<td
class=
"essential-item jianju"
colspan=
"2"
>
<p
class=
"pkey"
>
紧急联系人
</p>
<p
class=
"pvalue"
>
<span
v-if=
"vshowLLR"
>
<
template
v-if=
"orderMsg.emergencyContact != ''"
>
{{
orderMsg
.
emergencyContact
}}
</
template
>
</span>
</p>
</td>
<td
class=
"essential-item jianju_b"
colspan=
"2"
>
<p
class=
"pkey"
>
集合地点
</p>
<p
class=
"pvalue"
>
{{
orderTripdiff != null
? orderTripdiff.gatheringAddress
: orderMsg.gatheringAddress
}}
</p>
</td>
</tr>
</tbody>
</table>
<
template
v-if=
'vshowB'
>
<div
class=
"trip-v3-title small-margin"
>
参考航班
</div>
<div
class=
"hangban-info"
>
<table
border=
"0"
align=
"center"
cellspacing=
"0"
cellpadding=
"0"
class=
"flight_list"
:class=
"
{'guoneiLine':lineId==90}">
<thead
class=
"flight_header"
>
</div>
<div
class=
"travelDaysTitlle-right"
>
<div
class=
"travelDaysTitlle-right-text row-aic"
:style=
"
{'background': dataAll
&&
dataAll.tripColor,'font-size': getFontSize(orderMsg.lineteamName+orderMsg.dayNum),'color':textColor}">
{{
orderMsg
.
lineteamName
}}{{
orderMsg
.
dayNum
}}
日游
</div>
</div>
</div>
<div
class=
"trip-adviser"
>
<!--
<h1
class=
"trip-nav-title"
>
<span>
{{
vshowL
?
"出团通知书:"
:
""
}}
</span>
{{
orderMsg
.
lineteamName
}}{{
orderMsg
.
dayNum
}}
日游
</h1>
-->
<p>
尊敬的旅客:
<br
/>
感谢您选择我们的旅游服务。为了确保各位旅客有更好的旅游体验,请详细阅读《出团通知书》的各项内容。如有任何问题,请拨打通知书内的本团领队电话或机场服务人员电话。
在此,预祝您旅途愉快!希望您在本次旅程中留下此生中最美好的回忆!
</p>
</div>
<table
class=
"baseTable trip-v3-base"
>
<tbody>
<tr>
<th
width=
"140"
>
出发时间
<span>
(当地)
</span></th>
<th
width=
"160"
>
抵达时间
<span>
(当地)
</span></th>
<th
width=
"160"
>
<template
v-if=
"lineId==90"
>
起飞机场/出发城市
</
template
>
<
template
v-else
>
起飞机场
</
template
>
</th>
<th
width=
"18"
class=
"gap"
>
</th>
<th
width=
"160"
>
<
template
v-if=
"lineId==90"
>
抵达机场/到达城市
</
template
>
<
template
v-else
>
抵达机场
</
template
>
</th>
<th
width=
"18"
class=
"gap"
>
</th>
<th
width=
"140"
>
航空公司
</th>
<th
width=
"90"
>
航班编号
</th>
<th
width=
"18"
class=
"gap"
>
</th>
<th
width=
"100"
>
经停城市
</th>
<td
class=
"essential-item jianju"
>
<p
class=
"pkey"
>
线路
</p>
<p
class=
"pvalue"
>
{{
orderMsg
.
lineName
}}
</p>
</td>
<td
class=
"essential-item jianju"
>
<p
class=
"pkey"
>
出发日期
</p>
<p
class=
"pvalue"
>
{{
orderMsg
.
startDate
}}
</p>
</td>
<td
class=
"essential-item jianju"
>
<p
class=
"pkey"
>
返回日期
</p>
<p
class=
"pvalue"
>
{{
orderMsg
.
endDate
}}
</p>
</td>
<td
class=
"essential-item jianju_b"
>
<p
class=
"pkey"
>
行程天数
</p>
<p
class=
"pvalue"
>
{{
orderMsg
.
dayNum
}}
</p>
</td>
<td
rowspan=
"2"
>
<div
style=
"width: 160px; height:160px;margin-left:20px;"
>
<img
style=
"width: 160px; height:160px;"
:src=
"'data:image/png;base64,' + WeiXinShareImgSrc"
alt=
"获取微信小程序分享链接"
/>
</div>
</td>
</tr>
</thead>
<tbody
style=
"padding-top:12px;"
v-if=
"orderTripdiff&&orderTripdiff.travelOrderFlightList&& orderTripdiff.travelOrderFlightList.length>0"
>
<tr
v-for=
"(flight,ftIndex) in orderTripdiff.travelOrderFlightList"
:key=
"ftIndex"
>
<td
width=
"140"
><span
class=
"nth-day"
>
{{flight.startDate.substring(5)}}
</span>
<span
class=
"num"
>
{{flight.departureTime}}
</span></td>
<td
width=
"160"
><span
class=
"nth-day"
>
{{flight.arriveDate.substring(5)}}
</span>
<span
class=
"num"
>
{{flight.arrivalTime}}
</span></td>
<td
width=
"160"
>
{{flight.departureAirPortName}}
<span
class=
"citycode"
></span></td>
<td
width=
"18"
class=
"gap"
>
</td>
<td
width=
"160"
>
{{flight.arrivalAirPortName}}
<span
class=
"citycode"
></span></td>
<td
width=
"18"
class=
"gap"
>
</td>
<td
width=
"140"
>
{{flight.alName}}
</td>
<td
width=
"110"
>
{{flight.flightNumber}}
<span
style=
"color:green;"
>
{{(flight.flightState==1)?"OK":"暂定"}}
</span></td>
<td
width=
"18"
class=
"gap"
>
</td>
<td
width=
"100"
>
{{flight.stopoverAirPortName}}
</td>
<tr>
<td
class=
"essential-item jianju"
colspan=
"2"
>
<p
class=
"pkey"
>
系列
</p>
<p
class=
"pvalue"
>
{{
orderMsg
.
lineteamName
}}
</p>
</td>
<td
class=
"essential-item jianju_b"
colspan=
"2"
>
<p
class=
"pkey"
>
团队编号
</p>
<p
class=
"pvalue"
>
{{
orderMsg
.
tcnum
}}
</p>
</td>
</tr>
</tbody>
</table>
<div
class=
"trip-v3-title small-margin"
>
<h2>
集合地点
&
联系人
</h2>
</div>
<table
class=
"baseTable trip-v3-base"
>
<tbody>
<tr>
<td
colspan=
"10"
align=
"center"
style=
"color:#333;font-size:14px;"
>
1.本航班表僅提供參考,正確航班請點選您的出發日期。 2.
不同航班,餐食及行程安排皆有所不同,正確行程,請點選您的出發日期。
<td
class=
"essential-item jianju"
>
<p
class=
"pkey"
>
本团领队
</p>
<p
class=
"pvalue"
>
{{
orderTripdiff
!=
null
?
orderTripdiff
.
leaderInfo
:
orderMsg
.
leaderName
+
(
orderMsg
.
leaderMobile
!=
null
?
"/"
+
orderMsg
.
leaderMobile
:
""
)
}}
</p>
</td>
<td
class=
"essential-item jianju"
>
<p
class=
"pkey"
>
集合时间
</p>
<p
class=
"pvalue"
>
{{
orderTripdiff
!=
null
?
orderTripdiff
.
gatheringTime
:
orderMsg
.
gatheringTime
}}
</p>
</td>
<td
class=
"essential-item jianju"
>
<p
class=
"pkey"
>
机场服务
</p>
<p
class=
"pvalue"
>
<template
v-if=
"
orderMsg &&
orderMsg.airportServicePerson &&
orderMsg.airportServicePerson != ''
"
>
{{
orderMsg
.
airportServicePerson
}}
</
template
>
</p>
</td>
<td
class=
"essential-item jianju_b"
>
<p
class=
"pkey"
>
集合标识
</p>
<p
class=
"pvalue"
>
{{
orderTripdiff != null
? orderTripdiff.gatherIdent
: orderMsg.bName
}}
</p>
</td>
</tr>
<tr>
<td
class=
"essential-item jianju"
colspan=
"2"
>
<p
class=
"pkey"
>
紧急联系人
</p>
<p
class=
"pvalue"
>
<span
v-if=
"vshowLLR"
>
<
template
v-if=
"orderMsg.emergencyContact != ''"
>
{{
orderMsg
.
emergencyContact
}}
</
template
>
</span>
</p>
</td>
<td
class=
"essential-item jianju_b"
colspan=
"2"
>
<p
class=
"pkey"
>
集合地点
</p>
<p
class=
"pvalue"
>
{{
orderTripdiff != null
? orderTripdiff.gatheringAddress
: orderMsg.gatheringAddress
}}
</p>
</td>
</tr>
</tbody>
</table>
<
template
v-if=
'vshowB'
>
<div
class=
"trip-v3-title small-margin"
>
参考航班
</div>
<div
class=
"hangban-info"
>
<table
border=
"0"
align=
"center"
cellspacing=
"0"
cellpadding=
"0"
class=
"flight_list"
:class=
"
{'guoneiLine':lineId==90}">
<thead
class=
"flight_header"
>
<tr>
<th
width=
"140"
>
出发时间
<span>
(当地)
</span></th>
<th
width=
"160"
>
抵达时间
<span>
(当地)
</span></th>
<th
width=
"160"
>
<template
v-if=
"lineId==90"
>
起飞机场/出发城市
</
template
>
<
template
v-else
>
起飞机场
</
template
>
</th>
<th
width=
"18"
class=
"gap"
>
</th>
<th
width=
"160"
>
<
template
v-if=
"lineId==90"
>
抵达机场/到达城市
</
template
>
<
template
v-else
>
抵达机场
</
template
>
</th>
<th
width=
"18"
class=
"gap"
>
</th>
<th
width=
"140"
>
航空公司
</th>
<th
width=
"90"
>
航班编号
</th>
<th
width=
"18"
class=
"gap"
>
</th>
<th
width=
"100"
>
经停城市
</th>
</tr>
</thead>
<tbody
style=
"padding-top:12px;"
v-if=
"orderTripdiff&&orderTripdiff.travelOrderFlightList&& orderTripdiff.travelOrderFlightList.length>0"
>
<tr
v-for=
"(flight,ftIndex) in orderTripdiff.travelOrderFlightList"
:key=
"ftIndex"
>
<td
width=
"140"
><span
class=
"nth-day"
>
{{flight.startDate.substring(5)}}
</span>
<span
class=
"num"
>
{{flight.departureTime}}
</span></td>
<td
width=
"160"
><span
class=
"nth-day"
>
{{flight.arriveDate.substring(5)}}
</span>
<span
class=
"num"
>
{{flight.arrivalTime}}
</span></td>
<td
width=
"160"
>
{{flight.departureAirPortName}}
<span
class=
"citycode"
></span></td>
<td
width=
"18"
class=
"gap"
>
</td>
<td
width=
"160"
>
{{flight.arrivalAirPortName}}
<span
class=
"citycode"
></span></td>
<td
width=
"18"
class=
"gap"
>
</td>
<td
width=
"140"
>
{{flight.alName}}
</td>
<td
width=
"110"
>
{{flight.flightNumber}}
<span
style=
"color:green;"
>
{{(flight.flightState==1)?"OK":"暂定"}}
</span></td>
<td
width=
"18"
class=
"gap"
>
</td>
<td
width=
"100"
>
{{flight.stopoverAirPortName}}
</td>
</tr>
</tbody>
<tbody>
<tr>
<td
colspan=
"10"
align=
"center"
style=
"color:#333;font-size:14px;"
>
1.本航班表僅提供參考,正確航班請點選您的出發日期。 2.
不同航班,餐食及行程安排皆有所不同,正確行程,請點選您的出發日期。
</td>
</tr>
</tbody>
</table>
</div>
</template>
<div
style=
"width: 100%;height:40px;"
></div>
</div>
</
template
>
<div
style=
"width: 100%;height:40px;"
></div>
</
div
>
</div>
</template>
<
script
>
import
Header
from
"./components/header"
;
export
default
{
components
:
{},
components
:
{
Header
},
props
:
[
"dataAll"
,
"vshowJ"
,
"vshowL"
,
"orderMsg"
,
...
...
@@ -198,12 +226,42 @@
"lineId"
],
data
()
{
return
{};
return
{
backgroundColor
:
''
,
textColor
:
''
,
textColorOne
:
''
,
};
},
methods
:
{},
methods
:
{
getFontSize
(
title
){
if
(
title
.
length
+
2
>
60
){
return
929
/
60
+
'px'
}
else
{
return
'30px'
}
},
},
computed
:
{},
watch
:
{
dataAll
:
{
handler
(
val
,
oldVal
)
{
if
(
val
&&
val
.
tripColor
){
this
.
backgroundColor
=
this
.
hexToRgb
(
val
.
tripColor
,
0.2
)
let
rgba
=
this
.
hexToRgb
(
val
.
tripColor
,
1
)
rgba
=
rgba
.
split
(
','
)
let
rgba0
=
rgba
[
0
].
split
(
'('
)
let
arr
=
[
rgba0
[
1
],
rgba
[
1
],
rgba
[
2
]]
if
(
this
.
getRgbLevel
(
arr
)
>
50
){
this
.
textColor
=
"#fff"
}
else
{
this
.
textColor
=
"#333"
}
}
},
deep
:
true
,
immediate
:
true
},
orderMsg
:
{
handler
(
val
,
oldVal
)
{},
deep
:
true
,
...
...
src/components/confirmationOrderDownLoadNew.vue
View file @
cd65c667
...
...
@@ -59,7 +59,7 @@
<div
id=
"pdfNode"
class=
"LeaveGroupDownload-form"
>
<div
id=
"pdfDom"
style=
"padding:0 20px;"
>
<!-- 首页 -->
<LeaveGroupDownload
:vshowJ=
"vshowJ"
:vshowL=
"vshowL"
:WeiXinShareImgSrc=
"WeiXinShareImgSrc"
<LeaveGroupDownload
:
dataAll=
"dataAll"
:
vshowJ=
"vshowJ"
:vshowL=
"vshowL"
:WeiXinShareImgSrc=
"WeiXinShareImgSrc"
:orderMsg=
"orderMsg"
:orderTripdiff=
"orderTripdiff"
:vshowLLR=
"vshowLLR"
:vshowB=
"vshowB"
:lineId=
"lineId"
>
</LeaveGroupDownload>
...
...
@@ -306,7 +306,7 @@
}).
catch
(
err
=>
{
})
},
},
DateDiff
(
sDate1
,
sDate2
)
{
//sDate1和sDate2是2002-12-18格式
var
aDate
,
oDate1
,
oDate2
,
iDays
aDate
=
sDate1
.
split
(
"-"
)
...
...
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