Commit af77d521 authored by 黄奎's avatar 黄奎

页面修改

parent 76b80150
...@@ -35,23 +35,16 @@ ...@@ -35,23 +35,16 @@
出团通知书下载WROD</el-button> 出团通知书下载WROD</el-button>
</template> </template>
<template v-else> <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-button>
<!-- <el-dropdown size="medium" @command="tripDownLoadClick" split-button type="primary" @click="handleClick"> <el-button type="primary" size="medium" @click="toPDF_2023(1)" style="margin-left:20px;display:none;">
行程下载 行程下载(云盘)</el-button>
<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="gernalFeature(1)" style="margin-left:20px;"> <el-button type="primary" size="medium" @click="gernalFeature(1)" style="margin-left:20px;">
行程下载WORD</el-button> 行程下载WORD</el-button>
</template> </template>
<!-- 可以让销售修改基本信息--> <!-- 可以让销售修改基本信息-->
<el-button v-if="orderId>0" type="primary" size="medium" value="修改信息" @click="editMsgShow=true"> <el-button v-if="orderId>0" type="primary" size="medium" value="修改信息" @click="editMsgShow=true">
修改信息</el-button> 修改信息</el-button>
<el-checkbox class="marginL11" style="display:none;" v-model="isShowTime">显示行程日期</el-checkbox> <el-checkbox class="marginL11" style="display:none;" v-model="isShowTime">显示行程日期</el-checkbox>
</el-col> </el-col>
</el-row> </el-row>
...@@ -294,14 +287,6 @@ ...@@ -294,14 +287,6 @@
}, 2000) }, 2000)
}, },
methods: { methods: {
//每次自动生成行程
handleClick() {
this.toPDF_2023();
},
//阿里云
tripDownLoadClick(command) {
this.toPDF_2023(command);
},
//获取微信二维码 //获取微信二维码
getWxCode: function () { getWxCode: function () {
this.apipost('survey_post_GetSurveyWeiXinShare', { this.apipost('survey_post_GetSurveyWeiXinShare', {
...@@ -551,40 +536,41 @@ ...@@ -551,40 +536,41 @@
title += this.orderMsg.lineteamName + this.orderMsg.dayNum + '日游'; title += this.orderMsg.lineteamName + this.orderMsg.dayNum + '日游';
} }
var fileName = title + ".pdf"; var fileName = title + ".pdf";
that.pdfDownLoad(fileName, msg); if (this.orderId && this.orderId > 0) {
// if (this.orderId && this.orderId > 0) { //出团通知书下载
// //出团通知书下载 this.pdfDownLoad(fileName, msg);
// this.pdfDownLoad(fileName, msg); } else if (urlObj.IsOnline == 0) {
// } else if (urlObj.IsOnline == 0) { //本地行程下载
// //本地行程下载 this.pdfDownLoad(fileName, msg);
// this.pdfDownLoad(fileName, msg); } else if (command && command == 1) {
// } else if (command && command == "1") { //阿里云行程下载
// //阿里云行程下载 var objFileKey = "TripDownLoad"
// var objFileKey = "TripDownLoad" objFileKey += "/" + msg.configId + "_" + msg.tcid;
// objFileKey += "/" + msg.configId + "_" + msg.tcid; objFileKey += "/" + msg.configId + "_" + msg.tcid + "_B2B.pdf";
// objFileKey += "/" + msg.configId + "_" + msg.tcid + "_B2B.pdf"; that.downloadChengDuFileRename(objFileKey, fileName, res => {
// that.downloadChengDuFileRename(objFileKey, fileName, res => { if (res.resultCode == 0) {
// if (res.resultCode == 0) { msg.isShowB2B = 1;
// msg.isShowB2B = 1; that.pdfDownLoad(fileName, msg);
// that.pdfDownLoad(fileName, msg); } else {
// } else { that.pdfLoading = false;
// that.pdfLoading = false; }
// } })
// }) } else if (command && command == 2) {
// } else if (command && command == 2) { //阿里云行程下载
// //阿里云行程下载 var objFileKey = "TripDownLoad"
// var objFileKey = "TripDownLoad" objFileKey += "/" + msg.configId + "_" + msg.tcid;
// objFileKey += "/" + msg.configId + "_" + msg.tcid; objFileKey += "/" + msg.configId + "_" + msg.tcid + ".pdf";
// objFileKey += "/" + msg.configId + "_" + msg.tcid + ".pdf"; that.downloadChengDuFileRename(objFileKey, fileName, res => {
// that.downloadChengDuFileRename(objFileKey, fileName, res => { if (res.resultCode == 0) {
// if (res.resultCode == 0) { msg.isShowB2B = 0;
// msg.isShowB2B = 0; that.pdfDownLoad(fileName, msg);
// that.pdfDownLoad(fileName, msg); } else {
// } else { that.pdfLoading = false;
// that.pdfLoading = false; }
// } })
// }) } else {
// } that.pdfDownLoad(fileName, msg);
}
}, },
pdfDownLoad: function (fileName, msg) { pdfDownLoad: function (fileName, msg) {
let urlObj = this.domainManager(); 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