Commit ef22d16c authored by 黄奎's avatar 黄奎

页面修改

parent 04c7bc22
......@@ -35,13 +35,15 @@
出团通知书下载WROD</el-button>
</template>
<template v-else>
<el-dropdown size="medium" @command="tripDownLoadClick" split-button type="primary" @click="handleClick">
<el-button type="primary" size="medium" @click="toPDF_2023()" style="margin-left:20px;">
行程下载</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-dropdown> -->
<el-button type="primary" size="medium" @click="gernalFeature(1)" style="margin-left:20px;">
行程下载WORD</el-button>
</template>
......@@ -549,40 +551,40 @@
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;
}
})
}
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;
// }
// })
// }
},
pdfDownLoad: function (fileName, msg) {
let urlObj = this.domainManager();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment