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
af77d521
Commit
af77d521
authored
1 year ago
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
76b80150
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
52 deletions
+38
-52
confirmationOrderDownLoadNew.vue
src/components/confirmationOrderDownLoadNew.vue
+38
-52
No files found.
src/components/confirmationOrderDownLoadNew.vue
View file @
af77d521
...
...
@@ -35,23 +35,16 @@
出团通知书下载WROD
</el-button>
</
template
>
<
template
v-else
>
<el-button
type=
"primary"
size=
"medium"
@
click=
"toPDF_2023()"
style=
"margin-left:20px;
"
>
<el-button
type=
"primary"
size=
"medium"
@
click=
"toPDF_2023()
"
>
行程下载
</el-button>
<!--
<el-dropdown
size=
"medium"
@
command=
"tripDownLoadClick"
split-button
type=
"primary"
@
click=
"handleClick"
>
行程下载
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
command=
"1"
style=
"display:none;"
>
行程(同行备注)
</el-dropdown-item>
<el-dropdown-item
command=
"2"
style=
"display:none;"
>
行程(无同行备注)
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
-->
<el-button
type=
"primary"
size=
"medium"
@
click=
"toPDF_2023(1)"
style=
"margin-left:20px;display:none;"
>
行程下载(云盘)
</el-button>
<el-button
type=
"primary"
size=
"medium"
@
click=
"gernalFeature(1)"
style=
"margin-left:20px;"
>
行程下载WORD
</el-button>
</
template
>
<!-- 可以让销售修改基本信息-->
<el-button
v-if=
"orderId>0"
type=
"primary"
size=
"medium"
value=
"修改信息"
@
click=
"editMsgShow=true"
>
修改信息
</el-button>
<el-checkbox
class=
"marginL11"
style=
"display:none;"
v-model=
"isShowTime"
>
显示行程日期
</el-checkbox>
</el-col>
</el-row>
...
...
@@ -294,14 +287,6 @@
},
2000
)
},
methods
:
{
//每次自动生成行程
handleClick
()
{
this
.
toPDF_2023
();
},
//阿里云
tripDownLoadClick
(
command
)
{
this
.
toPDF_2023
(
command
);
},
//获取微信二维码
getWxCode
:
function
()
{
this
.
apipost
(
'survey_post_GetSurveyWeiXinShare'
,
{
...
...
@@ -551,40 +536,41 @@
title
+=
this
.
orderMsg
.
lineteamName
+
this
.
orderMsg
.
dayNum
+
'日游'
;
}
var
fileName
=
title
+
".pdf"
;
that
.
pdfDownLoad
(
fileName
,
msg
);
// if (this.orderId && this.orderId > 0) {
// //出团通知书下载
// this.pdfDownLoad(fileName, msg);
// } else if (urlObj.IsOnline == 0) {
// //本地行程下载
// this.pdfDownLoad(fileName, msg);
// } else if (command && command == "1") {
// //阿里云行程下载
// var objFileKey = "TripDownLoad"
// objFileKey += "/" + msg.configId + "_" + msg.tcid;
// objFileKey += "/" + msg.configId + "_" + msg.tcid + "_B2B.pdf";
// that.downloadChengDuFileRename(objFileKey, fileName, res => {
// if (res.resultCode == 0) {
// msg.isShowB2B = 1;
// that.pdfDownLoad(fileName, msg);
// } else {
// that.pdfLoading = false;
// }
// })
// } else if (command && command == 2) {
// //阿里云行程下载
// var objFileKey = "TripDownLoad"
// objFileKey += "/" + msg.configId + "_" + msg.tcid;
// objFileKey += "/" + msg.configId + "_" + msg.tcid + ".pdf";
// that.downloadChengDuFileRename(objFileKey, fileName, res => {
// if (res.resultCode == 0) {
// msg.isShowB2B = 0;
// that.pdfDownLoad(fileName, msg);
// } else {
// that.pdfLoading = false;
// }
// })
// }
if
(
this
.
orderId
&&
this
.
orderId
>
0
)
{
//出团通知书下载
this
.
pdfDownLoad
(
fileName
,
msg
);
}
else
if
(
urlObj
.
IsOnline
==
0
)
{
//本地行程下载
this
.
pdfDownLoad
(
fileName
,
msg
);
}
else
if
(
command
&&
command
==
1
)
{
//阿里云行程下载
var
objFileKey
=
"TripDownLoad"
objFileKey
+=
"/"
+
msg
.
configId
+
"_"
+
msg
.
tcid
;
objFileKey
+=
"/"
+
msg
.
configId
+
"_"
+
msg
.
tcid
+
"_B2B.pdf"
;
that
.
downloadChengDuFileRename
(
objFileKey
,
fileName
,
res
=>
{
if
(
res
.
resultCode
==
0
)
{
msg
.
isShowB2B
=
1
;
that
.
pdfDownLoad
(
fileName
,
msg
);
}
else
{
that
.
pdfLoading
=
false
;
}
})
}
else
if
(
command
&&
command
==
2
)
{
//阿里云行程下载
var
objFileKey
=
"TripDownLoad"
objFileKey
+=
"/"
+
msg
.
configId
+
"_"
+
msg
.
tcid
;
objFileKey
+=
"/"
+
msg
.
configId
+
"_"
+
msg
.
tcid
+
".pdf"
;
that
.
downloadChengDuFileRename
(
objFileKey
,
fileName
,
res
=>
{
if
(
res
.
resultCode
==
0
)
{
msg
.
isShowB2B
=
0
;
that
.
pdfDownLoad
(
fileName
,
msg
);
}
else
{
that
.
pdfLoading
=
false
;
}
})
}
else
{
that
.
pdfDownLoad
(
fileName
,
msg
);
}
},
pdfDownLoad
:
function
(
fileName
,
msg
)
{
let
urlObj
=
this
.
domainManager
();
...
...
This diff is collapsed.
Click to expand it.
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