Commit ff066d81 authored by 黄奎's avatar 黄奎

页面修改

parent c1ea6d40
...@@ -359,8 +359,8 @@ ...@@ -359,8 +359,8 @@
<!--真实采购机票--> <!--真实采购机票-->
<el-row v-if="isVirtuallyFlight==1"> <el-row v-if="isVirtuallyFlight==1">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="机票绑定"> <el-form-item label="机票绑定" style="padding-top:10px;">
<el-input placeholder="绑定机票信息" v-model="TicketMsg"> <el-input placeholder="绑定机票信息" v-model="TicketMsg" disabled>
<template slot="append"> <template slot="append">
<el-popover popper-class="_TravelPricePopover"> <el-popover popper-class="_TravelPricePopover">
<div> <div>
...@@ -527,9 +527,8 @@ ...@@ -527,9 +527,8 @@
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="WORD行程"> <el-form-item label="WORD行程">
<el-upload v-show="!ContractArray.length" class="upload-demo" <el-upload class="upload-demo" style="display:inline-block;position:relative;top:-1px;left:3px;"
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn" :http-request="uploadFileBtn" :show-file-list="false" action="">
:show-file-list="false" action="">
<el-button size="small" type="primary">添加附件</el-button> <el-button size="small" type="primary">添加附件</el-button>
</el-upload> </el-upload>
<template v-if="editForm.WordUrl && editForm.WordUrl!='' "> <template v-if="editForm.WordUrl && editForm.WordUrl!='' ">
...@@ -573,7 +572,6 @@ ...@@ -573,7 +572,6 @@
data() { data() {
return { return {
loading: false, loading: false,
ContractArray: [],
rules: { rules: {
GTeamName: [{ GTeamName: [{
required: true, required: true,
...@@ -696,19 +694,20 @@ ...@@ -696,19 +694,20 @@
} }
}, },
methods: { methods: {
//查询航班列表
getSelectFilght() { getSelectFilght() {
let fqMsg = { let fqMsg = {
QFlightDateStart: this.QFlightDateStart, QFlightDateStart: "",
QFlightDateEnd: this.QFlightDateEnd, QFlightDateEnd: "",
CreateBy: this.userInfo.EmployeeId, CreateBy: this.userInfo.EmployeeId,
AirTicketId: 0, AirTicketId: 0,
TCID: 0 TCID: 0
}; };
if (this.editForm.TicketId && this.editForm.TicketId > 0) { if (this.editForm.TicketId && this.editForm.TicketId > 0) {
fqMsg.AirTicketId = this.editForm.TicketId; fqMsg.AirTicketId = this.editForm.TicketId;
} } else {
if (this.editForm.TCID && this.editForm.TCID > 0) { fqMsg.QFlightDateStart = this.QFlightDateStart;
fqMsg.TCID = this.editForm.TCID; fqMsg.QFlightDateEnd = this.QFlightDateEnd;
} }
let that = this; let that = this;
this.apipost( this.apipost(
...@@ -722,9 +721,11 @@ ...@@ -722,9 +721,11 @@
that.selectFilghtList.push(x); that.selectFilghtList.push(x);
}); });
that.selectFilghtList.forEach(y => { that.selectFilghtList.forEach(y => {
if (y.PurchaseId == that.editForm.TicketId && y.BindNum > 0) {
if (y.AirticketId == that.editForm.TicketId) {
console.log("1111");
y.IsSelected = true; y.IsSelected = true;
that.editForm.TicketNum = x.BindNum; y.BindNum = that.editForm.TicketNum;
that.TicketMsg = y.AlName + "/" + y.FlightDate; that.TicketMsg = y.AlName + "/" + y.FlightDate;
} }
}); });
...@@ -816,6 +817,7 @@ ...@@ -816,6 +817,7 @@
//判断是否是虚拟航班 //判断是否是虚拟航班
if (tempObj.TicketId > 0) { if (tempObj.TicketId > 0) {
this.isVirtuallyFlight = 1; this.isVirtuallyFlight = 1;
this.getSelectFilght();
} }
if (tempObj.TravelTeamFlightList && tempObj.TravelTeamFlightList.length > 0) { if (tempObj.TravelTeamFlightList && tempObj.TravelTeamFlightList.length > 0) {
this.addMsg.flightList = tempObj.TravelTeamFlightList; this.addMsg.flightList = tempObj.TravelTeamFlightList;
...@@ -931,23 +933,6 @@ ...@@ -931,23 +933,6 @@
this.Warning("请选择合作伙伴"); this.Warning("请选择合作伙伴");
return; return;
} }
// if (
// this.editForm.TravelTeamFlightList.findIndex(
// (item) => item.TicketType === 1
// ) === -1
// ) {
// this.Warning("请选择去程航班");
// return;
// }
// if (
// this.editForm.TravelTeamFlightList.findIndex(
// (item) => item.TicketType === 2
// ) === -1
// ) {
// this.Warning("请选择回程航班");
// return;
// }
this.apipost( this.apipost(
"post_SetTeavelTeam", "post_SetTeavelTeam",
this.editForm, this.editForm,
...@@ -988,7 +973,10 @@ ...@@ -988,7 +973,10 @@
downloadFile(fileUrl, fileName) { downloadFile(fileUrl, fileName) {
const link = document.createElement("a"); const link = document.createElement("a");
link.href = fileUrl; link.href = fileUrl;
if (fileName) {
link.download = fileName; link.download = fileName;
}
link.target = "_blank";
document.body.appendChild(link); document.body.appendChild(link);
link.click(); link.click();
}, },
...@@ -1000,10 +988,7 @@ ...@@ -1000,10 +988,7 @@
this.$message.info(this.$t("tips.shangchuanzhong")); this.$message.info(this.$t("tips.shangchuanzhong"));
this.UploadSelfFileT(path, newArr, (x) => { this.UploadSelfFileT(path, newArr, (x) => {
var newUrl = this.domainManager().ViittoFileUrl + x.data.FilePath; var newUrl = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.ContractArray.push({ this.editForm.WordUrl = newUrl
Name: x.data.SourceFileName,
Url: newUrl,
});
this.Success(this.$t("tips.scchenggong")); this.Success(this.$t("tips.scchenggong"));
}); });
}, },
......
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