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
c38772a2
Commit
c38772a2
authored
Sep 18, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
28dd3a1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
5 deletions
+60
-5
confirmationOrderDownLoadNew.vue
src/components/confirmationOrderDownLoadNew.vue
+60
-5
No files found.
src/components/confirmationOrderDownLoadNew.vue
View file @
c38772a2
...
...
@@ -55,6 +55,18 @@
margin-left: 20px;"
@
click=
"toPDF_2023(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')"
>
{{
orderId
>
0
?
"出团通知书下载"
:
"行程下载"
}}
</div>
<div
class=
"el-dropdown-link"
style=
" display:none; height: 30px;
line-height: 30px;
background-color: #E95252;
color: #fff;
font-size: 12px;
width: 90px;
text-align: center;
border-radius: 4px;
cursor: pointer;
margin-left: 20px;"
@
click=
"ToWord_V2(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游',1)"
>
{{
orderId
>
0
?
"出团通知书下载WROD"
:
"行程下载WORD"
}}
</div>
<!--&&isopOperation HK 注释 可以让销售修改基本信息-->
<input
type=
"button"
v-if=
"orderId>0"
class=
"travelControlTripBtn"
value=
"修改信息"
@
click=
"editMsgShow=true"
/>
<el-checkbox
class=
"marginL11"
v-model=
"isShowTime"
>
显示行程日期
</el-checkbox>
...
...
@@ -64,7 +76,8 @@
<div
id=
"pdfDom"
>
<!-- 首页 -->
<LeaveGroupDownload
:dataAll=
"dataAll"
:vshowJ=
"vshowJ"
:vshowL=
"vshowL"
:WeiXinShareImgSrc=
"WeiXinShareImgSrc"
:orderMsg=
"orderMsg"
:orderTripdiff=
"orderTripdiff"
:vshowLLR=
"vshowLLR"
:vshowB=
"vshowB"
:lineId=
"lineId"
:priceList=
"priceList"
>
:orderMsg=
"orderMsg"
:orderTripdiff=
"orderTripdiff"
:vshowLLR=
"vshowLLR"
:vshowB=
"vshowB"
:lineId=
"lineId"
:priceList=
"priceList"
>
</LeaveGroupDownload>
<!-- 行程特色 -->
...
...
@@ -480,6 +493,47 @@
}
return
postData
;
},
gernalFeature
(
isPc
)
{
this
.
pdfLoading
=
true
;
let
tcid
=
this
.
$route
.
query
.
tcid
;
let
UploadUrl
=
this
.
domainManager
().
UploadUrl
let
_this
=
this
if
(
this
.
showType
>=
4
)
{
// 判断是否为行程特色
_this
.
ToWord_V2
(
_this
.
orderMsg
.
startDate
+
_this
.
orderMsg
.
lineteamName
+
_this
.
orderMsg
.
dayNum
+
'日游'
,
isPc
)
}
else
{
this
.
ToWord_V2
(
this
.
orderMsg
.
startDate
+
this
.
orderMsg
.
lineteamName
+
this
.
orderMsg
.
dayNum
+
'日游'
,
isPc
)
}
},
ToWord_V2
:
function
(
title
,
isPc
)
{
this
.
pdfLoading
=
true
let
msg
=
this
.
getPostMsg
();
let
urlObj
=
this
.
domainManager
();
this
.
$http
({
headers
:
{
'Content-Type'
:
'application/json'
},
method
:
'post'
,
url
:
urlObj
.
DomainUrl
+
'/api/file/GetToWord_V2'
,
data
:
{
"msg"
:
msg
}
}).
then
(
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
let
sign
=
title
+
"V2"
const
a
=
document
.
createElement
(
'a'
);
a
.
setAttribute
(
'download'
,
''
);
a
.
setAttribute
(
'href'
,
urlObj
.
DomainUrl
+
'/api/file/DownloadFileForPdf?fileName='
+
sign
+
'.doc&&fPath='
+
res
.
data
.
data
);
a
.
click
();
}
else
{
this
.
Error
(
'WORD获取失败'
);
}
this
.
pdfLoading
=
false
}).
catch
(
err
=>
{
})
},
// 生成pdf
toPDF_2023
:
function
(
title
)
{
this
.
pdfLoading
=
true
...
...
@@ -499,13 +553,14 @@
}).
then
(
res
=>
{
if
(
res
.
data
.
resultCode
===
1
&&
res
.
data
.
data
)
{
let
path
=
res
.
data
.
data
;
this
.
pdfLoading
=
false
;
this
.
pdfLoading
=
false
;
var
fileName
=
title
+
"_2023.pdf"
;
this
.
pdfLoading
=
true
;
this
.
pdfLoading
=
true
;
let
urlObj
=
this
.
domainManager
();
var
ocrUrl
=
""
;
var
ocrUrl
=
""
;
//urlObj.ocrUrl + "/Home/DownloadFileForPdf?url=" + encodeURIComponent(path);
ocrUrl
=
urlObj
.
ocrUrl
+
"/Home/DownloadFileForPdf?configId="
+
msg
.
configId
+
"&url="
+
encodeURIComponent
(
path
);
ocrUrl
=
urlObj
.
ocrUrl
+
"/Home/DownloadFileForPdf?configId="
+
msg
.
configId
+
"&url="
+
encodeURIComponent
(
path
);
//ocrUrl="http://192.168.10.128:8300"+"/api/Home/DownloadFileForPdf?configId="+msg.configId+"&url=" + encodeURIComponent(path);
this
.
$http
({
headers
:
{
...
...
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