Commit ff066d81 authored by 黄奎's avatar 黄奎

页面修改

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