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
e5674413
Commit
e5674413
authored
Apr 16, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
17379833
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
29 deletions
+51
-29
SalesconfirmationOrder.vue
src/components/SalesconfirmationOrder.vue
+51
-29
No files found.
src/components/SalesconfirmationOrder.vue
View file @
e5674413
...
...
@@ -40,14 +40,11 @@
<div
class=
"trip_cover"
v-show=
"pdfLoading"
v-loading=
"pdfLoading"
></div>
<input
type=
"button"
style=
"width: auto !important;"
class=
"travelControlTripBtn"
value=
"下载电脑版PDF"
@
click=
"toPDF(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')"
/>
<input
type=
"button"
style=
"width: auto !important; display:none;"
class=
"travelControlTripBtn"
value=
"下载手机版WORD"
@
click=
"gernalFeature(0)"
/>
<input
type=
"button"
style=
"width: auto !important; display:none;"
class=
"travelControlTripBtn"
value=
"下载电脑版WORD"
@
click=
"gernalFeature(1)"
/>
<a
class=
"travelControlTripBtn"
v-if=
"priceList.length>0&& priceList[0].wordPath!=''"
style=
"display:inline-block;text-decoration:none;
width:135px;text-align:center;line-height:30px;font-size:13px;position:relative;top:2px;"
:href=
"domainManager().ViittoFileUrl+priceList[0].wordPath"
>
下载WORD行程
</a>
<!-- ToWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游') -->
<!--&&isopOperation HK 注释 可以让销售修改基本信息-->
<input
type=
"button"
v-if=
"orderId>0"
class=
"travelControlTripBtn"
value=
"修改信息"
@
click=
"editMsgShow=true"
/>
<div
id=
"pdfNode"
>
...
...
@@ -293,12 +290,10 @@
</div>
</div>
<div
v-for=
"(son,i) in item.dayArray"
:key=
"i"
>
<!-- <traffice :tripItem='son' v-if="son.type==1"></traffice> -->
<
template
v-if=
"son.type==1"
>
<div
class=
"timeline-item"
>
<template
v-for=
"(dd,Subindex) in son.childItem.subTraffic"
>
<div
class=
"Arrayleft"
v-if=
"dd.startTime!=''||dd.endTime!=''"
>
<!--
<i
class=
"iconfont icon-feiji"
></i>
-->
<span
v-if=
"son.type==1"
v-for=
"(dns,o) in son.childItem.subTraffic"
:key=
"o"
>
<span
v-if=
"dns.startTime!=''"
>
{{
getStartTime
(
dns
.
startTime
)
}}
</span><span
v-if=
"dns.endTime!=''"
>
-
{{
getStartTime
(
dns
.
endTime
)
}}
</span>
</span>
...
...
@@ -326,7 +321,6 @@
<
template
v-if=
"son.type==2"
>
<div
class=
"timeline-item"
>
<div
class=
"Arrayleft"
v-if=
"son.childItem.timeStr!=''"
>
<!--
<i
class=
"iconfont icon-zuji"
></i>
-->
<template
v-if=
"son.childItem.timeStr!=''"
>
{{
getStartTime
(
son
.
childItem
.
timeStr
)
}}
</
template
>
...
...
@@ -372,7 +366,6 @@
<
template
v-if=
"son.type==4"
>
<div
class=
"timeline-item"
>
<div
class=
"Arrayleft"
v-if=
"son.childItem.timeStr!=''"
>
<!--
<i
class=
"iconfont icon-yongcan"
></i>
-->
<span
v-if=
"son.childItem.timeStr!=''"
>
{{
getStartTime
(
son
.
childItem
.
timeStr
)
}}
</span>
...
...
@@ -415,12 +408,6 @@
</div>
</div>
</
template
>
<!-- <scenic v-if="son.type==2" :tripItem='son'></scenic> -->
<!-- <hotel v-if="son.type==3" :tripItem='son'></hotel> -->
<!-- <restaurant v-if="son.type==4" :tripItem='son'></restaurant> -->
<!-- <activity v-if="son.type==5" :tripItem='son'></activity> -->
<!-- <tips v-if="son.type==6" :tripItem='son'></tips> -->
</div>
</div>
</div>
...
...
@@ -680,8 +667,6 @@
import
threeday
from
'./commonPage/threeday'
import
fourday
from
'./commonPage/fourday'
import
fiveday
from
'./commonPage/fiveday'
// import saveAs from 'file-saver'
// import '../utils/jqueryWordexport.js'
import
{
setTimeout
}
from
'timers'
;
...
...
@@ -968,32 +953,69 @@
// 生成pdf
toPDF
:
function
(
title
)
{
this
.
pdfLoading
=
true
let
pageData
=
document
.
getElementById
(
'pdfNode'
).
innerHTML
let
urlObj
=
this
.
domainManager
()
let
configId
=
this
.
$route
.
query
.
configId
;
let
tcid
=
this
.
$route
.
query
.
tcid
;
let
cityId
=
this
.
$route
.
query
.
cityId
;
let
orderId
=
this
.
$route
.
query
.
orderId
;
let
urlObj
=
this
.
domainManager
();
let
msg
=
{
configId
:
this
.
$route
.
query
.
configId
,
cityId
:
this
.
$route
.
query
.
cityId
,
tcid
:
this
.
$route
.
query
.
tcid
,
orderId
:
this
.
$route
.
query
.
orderId
,
FileName
:
title
,
//是否显示基础信息
isShowBase
:
this
.
vshowA
?
1
:
0
,
//是否显示航班
isShowFlight
:
this
.
vshowB
?
1
:
0
,
//是否显示行程特色
isShowFeature
:
this
.
vshowC
?
1
:
0
,
//自费、费用包含、费用不含
isShowFee
:
this
.
vshowE
?
1
:
0
,
//购物说明,购物安排
isShowShop
:
this
.
vshowF
?
1
:
0
,
//重要提示、温馨提示 [订单须知]
isShowTip
:
this
.
vshowG
?
1
:
0
,
//是否显示同行备注
isShowB2B
:
this
.
vshowI
?
1
:
0
,
//是否显示行程
isShowTrip
:
this
.
vshowD
?
1
:
0
,
//是否显示标题
isShowTitle
:
this
.
vshowL
?
1
:
0
,
//是否显示旅客名单
isShowGuest
:
this
.
vshowM
?
1
:
0
,
//是否显示紧急联系人
isShowMan
:
this
.
vshowLLR
?
1
:
0
,
//是否显示团号
isShowTCNUM
:
this
.
vshowTCNUM
?
1
:
0
,
//是否显示行程图片
isShowTripImage
:
this
.
vshowK
?
1
:
0
,
//是否显示签证信息
isShowVisa
:
this
.
vshowH
?
1
:
0
,
//是否显示视频图片
isShowVideoImg
:
this
.
vshowO
?
1
:
0
,
//isPc是否PC下载
isPc
:
2
,
//模板参数
templateId
:
this
.
showType
,
//用户Id
UId
:
this
.
getLocalStorage
().
EmployeeId
,
//团队类型(一日游)
TeamType
:
2
,
};
this
.
$http
({
headers
:
{
'Content-Type'
:
'application/json'
},
method
:
'post'
,
url
:
urlObj
.
DomainUrl
+
'/api/file/GetWebHtmlTwo'
,
url
:
urlObj
.
DomainUrl
+
'/api/file/GetWebHtmlTwo
_V2
'
,
data
:
{
"msg"
:
pageData
,
sign
:
"sale_pdf"
+
"C"
+
configId
+
"_T"
+
tcid
+
"_CTY"
+
cityId
+
"_OD"
+
orderId
"msg"
:
msg
}
}).
then
(
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
setTimeout
(()
=>
{
let
sign
=
title
let
sign
=
title
+
"V2"
const
a
=
document
.
createElement
(
'a'
);
a
.
setAttribute
(
'download'
,
''
);
a
.
setAttribute
(
'href'
,
urlObj
.
DomainUrl
+
'/api/file/DownloadFileForPdf?fileName='
+
sign
+
'.pdf&&fPath='
+
res
.
data
.
data
);
a
.
click
();
},
1000
)
}
else
{
this
.
$message
.
error
(
'PDF获取失败'
);
}
...
...
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