Commit c38772a2 authored by 黄奎's avatar 黄奎

111

parent 28dd3a1e
......@@ -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: {
......
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