Commit 4233c269 authored by liudong1993's avatar liudong1993
parents 5bb4d27e 114d71a1
...@@ -370,12 +370,10 @@ ...@@ -370,12 +370,10 @@
}, },
getCompanyList() { //获取公司列表 getCompanyList() { //获取公司列表
this.apipost('sellorder_post_GetBranchList', {}, res => { this.apipost('sellorder_post_GetBranchList', {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.CompanyList = res.data.data; this.CompanyList = res.data.data;
} else {} } else {}
}, err => {}) }, err => {})
}, },
//点击选中日历日期获取联运数据 //点击选中日历日期获取联运数据
clickedDay(item) { clickedDay(item) {
......
...@@ -536,15 +536,23 @@ ...@@ -536,15 +536,23 @@
var that = this; var that = this;
let urlObj = this.domainManager(); let urlObj = this.domainManager();
let msg = this.getPostMsg(); 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) { if (this.dataAll.lineId == 168 || this.dataAll.lineId == 119) {
title = this.orderMsg.startDate; if (this.dataAll.title.length > 60) {
if (this.dataAll.title.length > 80) { title += this.dataAll.title.substring(0, 60);
title += this.dataAll.title.substring(0, 80);
} else { } else {
title += this.dataAll.title; title += this.dataAll.title;
} }
} else {
title += this.orderMsg.lineteamName + this.orderMsg.dayNum + '日游';
} }
console.log("title", title); console.log("title", title);
var fileName = title + ".pdf"; var fileName = title + ".pdf";
......
...@@ -1913,12 +1913,12 @@ ...@@ -1913,12 +1913,12 @@
if (this.ChangeThePriceList.length > 0) { if (this.ChangeThePriceList.length > 0) {
if ((!localStorage.getItem("ChangeThePriceDataTime") || if ((!localStorage.getItem("ChangeThePriceDataTime") ||
(localStorage.getItem("ChangeThePriceDataTime") != this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"))) (localStorage.getItem("ChangeThePriceDataTime") != this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")))
)) { )) {
this.GetChangeThePrice() this.GetChangeThePrice()
} }
if ((!localStorage.getItem("ExamineThePriceDataTime") || if ((!localStorage.getItem("ExamineThePriceDataTime") ||
(localStorage.getItem("ExamineThePriceDataTime") != this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"))) (localStorage.getItem("ExamineThePriceDataTime") != this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")))
)) { )) {
this.GetExaminePriceOrderPageList() this.GetExaminePriceOrderPageList()
} }
// 两小时请求一次改价、审核改价提醒 // 两小时请求一次改价、审核改价提醒
...@@ -1958,7 +1958,7 @@ ...@@ -1958,7 +1958,7 @@
this.allWindowWidth = allWindowWidth - 50 - 220 - 60; this.allWindowWidth = allWindowWidth - 50 - 220 - 60;
let maxLength = parseInt(allWindowWidth / 110); let maxLength = parseInt(allWindowWidth / 110);
this.maxLength = maxLength; this.maxLength = maxLength;
//this.testApi(); this.testApi();
//this.testEmp(); //this.testEmp();
let userinfo = this.getLocalStorage(); let userinfo = this.getLocalStorage();
let ActionMenuCode = userinfo.ActionMenuCode; let ActionMenuCode = userinfo.ActionMenuCode;
...@@ -2032,7 +2032,7 @@ ...@@ -2032,7 +2032,7 @@
if (!this.ExamineThePriceMsg.total2) this.ExamineThePriceMsg.total2 = res.data.data.count if (!this.ExamineThePriceMsg.total2) this.ExamineThePriceMsg.total2 = res.data.data.count
// localStorage.setItem("ChangeThePriceData", JSON.stringify(res.data.data.pageData)); // localStorage.setItem("ChangeThePriceData", JSON.stringify(res.data.data.pageData));
localStorage.setItem("ChangeThePriceDataTime", this.getBeforeDate(0, new Date().Format( localStorage.setItem("ChangeThePriceDataTime", this.getBeforeDate(0, new Date().Format(
"yyyy-MM-dd"))); "yyyy-MM-dd")));
this.ChangeThePriceObj.ChangeThePriceData = res.data.data.pageData this.ChangeThePriceObj.ChangeThePriceData = res.data.data.pageData
this.ChangeThePriceVisible = true this.ChangeThePriceVisible = true
} else { } else {
...@@ -2073,9 +2073,10 @@ ...@@ -2073,9 +2073,10 @@
testApi() { testApi() {
// var postMsg = {}; // var postMsg = {};
// var cmd = ""; // var cmd = "";
// cmd = "admin_get_GetErpLoginInfoByUid"; // cmd = "triptemplate_GetTripConfig";
// postMsg = { // postMsg = {
// EmployeeId: 615 // ConfigId:9117,
// } // }
// this.apipost( // this.apipost(
// cmd, postMsg, // cmd, postMsg,
......
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