Commit 114d71a1 authored by 黄奎's avatar 黄奎

行程下载文件名修改

parent 10b0958e
......@@ -536,15 +536,23 @@
var that = this;
let urlObj = this.domainManager();
let msg = this.getPostMsg();
var title = this.orderMsg.startDate + this.orderMsg.lineteamName + this.orderMsg.dayNum + '日游';
var title = "";
if (this.priceList && this.priceList.length > 0 && this.priceList[0].priceFlight && this.priceList[0]
.priceFlight.length > 0) {
if (this.priceList[0].priceFlight[0].alName && this.priceList[0].priceFlight[0].alName != '') {
title += this.priceList[0].priceFlight[0].alName;
}
}
title += this.orderMsg.startDate;
//欧洲
if (this.dataAll.lineId == 168 || this.dataAll.lineId == 119) {
title = this.orderMsg.startDate;
if (this.dataAll.title.length > 80) {
title += this.dataAll.title.substring(0, 80);
if (this.dataAll.title.length > 60) {
title += this.dataAll.title.substring(0, 60);
} else {
title += this.dataAll.title;
}
} else {
title += this.orderMsg.lineteamName + this.orderMsg.dayNum + '日游';
}
console.log("title", title);
var fileName = title + ".pdf";
......
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