Commit c1ea6d40 authored by 黄奎's avatar 黄奎

页面修改

parent d0f85d45
......@@ -360,9 +360,9 @@
<el-row v-if="isVirtuallyFlight==1">
<el-col :span="24">
<el-form-item label="机票绑定">
<el-input placeholder="请输入内容" v-model="TicketMsg">
<el-input placeholder="绑定机票信息" v-model="TicketMsg">
<template slot="append">
<el-popover popper-class="_TravelPricePopover" trigger="click">
<el-popover popper-class="_TravelPricePopover">
<div>
<div style="margin-bottom:20px;">
{{$t('hotel.hotel_StartDate')}}
......@@ -389,9 +389,9 @@
<td class="_color_666">{{$t('op.TicketNum')}}/{{$t('hotel.table_UseAmount')}}</td>
<td class="_color_666">{{$t('op.BindTicket')}}</td>
</tr>
<tr v-for="fitem in selectFilghtList">
<tr v-for="(fitem,fIndex) in selectFilghtList" :key="fIndex+300000">
<td>
<el-checkbox v-model="fitem.IsSelected===true" @change="getSelect(fitem)"></el-checkbox>
<el-checkbox v-model="fitem.IsSelected" @change="getSelect(fitem,1)"></el-checkbox>
</td>
<td>
{{fitem.AirticketId}}/{{fitem.TicketByName}}
......@@ -407,7 +407,7 @@
<td>{{fitem.TicketNum}} / {{fitem.UseAmount}}</td>
<td>
<el-input class="w69" :placeholder="$t('salesModule.AirNum')"
@keyup.native="getFlightBindNum(fitem)" v-model="fitem.BindNum"></el-input>
@keyup.native="getSelect(fitem,2)" v-model="fitem.BindNum"></el-input>
</td>
</tr>
</table>
......@@ -532,13 +532,10 @@
:show-file-list="false" action="">
<el-button size="small" type="primary">添加附件</el-button>
</el-upload>
<template v-if="ContractArray && ContractArray.length > 0">
<template v-for="(subItem, subIndex) in ContractArray">
<a style="margin-left: 20px; color: blue; cursor: pointer" target="_blank" :key="subIndex"
@click="downloadFile(subItem.Url, subItem.Name)">{{ subItem.Name }}</a>
<a :key="subIndex + 1000" style="margin-left: 20px; color: blue; cursor: pointer"
@click="DeleteFile(subIndex)">删除</a>
</template>
<template v-if="editForm.WordUrl && editForm.WordUrl!='' ">
<a style="margin-left: 20px; color: blue; cursor: pointer" target="_blank"
@click="downloadFile(editForm.WordUrl)">下载word行程</a>
<a style="margin-left: 20px; color: blue; cursor: pointer" @click="DeleteFile()">删除</a>
</template>
</el-form-item>
</el-col>
......@@ -641,7 +638,8 @@
VisaPrice: 0, //签证费
OtherPrice: 0, //杂费
SingleRoomPrice: 0, //单房差
TicketNum:0,//绑定机票数量
TicketNum: 0, //绑定机票数量
PurchaseId: 0, //采购机票编号
},
//去程
addGoFlight: {
......@@ -685,8 +683,7 @@
}
},
selectFilghtList: [], //航班列表
TicketMsg: "",
TicketMsg: "", //机票显示
};
},
created() {
......@@ -707,11 +704,11 @@
AirTicketId: 0,
TCID: 0
};
if (this.addMsg.TicketId && this.addMsg.TicketId > 0) {
fqMsg.AirTicketId = this.addMsg.TicketId;
if (this.editForm.TicketId && this.editForm.TicketId > 0) {
fqMsg.AirTicketId = this.editForm.TicketId;
}
if (this.addMsg.TCID && this.addMsg.TCID > 0) {
fqMsg.TCID = this.addMsg.TCID;
if (this.editForm.TCID && this.editForm.TCID > 0) {
fqMsg.TCID = this.editForm.TCID;
}
let that = this;
this.apipost(
......@@ -725,9 +722,9 @@
that.selectFilghtList.push(x);
});
that.selectFilghtList.forEach(y => {
if (x.PurchaseId == that.addMsg.TicketId && x.BindNum > 0) {
if (y.PurchaseId == that.editForm.TicketId && y.BindNum > 0) {
y.IsSelected = true;
y.BindNum = x.BindNum;
that.editForm.TicketNum = x.BindNum;
that.TicketMsg = y.AlName + "/" + y.FlightDate;
}
});
......@@ -744,13 +741,17 @@
);
},
//选中航班选择框
getSelect(item) {
item.IsSelected = !item.IsSelected;
getSelect(item, type) {
var that = this;
if (type == 1) {
item.IsSelected = !item.IsSelected;
}
this.selectFilghtList.forEach(x => {
if (x.IsSelected) {
that.TicketMsg = y.AlName + "/" + y.FlightDate;
that.addMsg.TicketId=y.AirticketId;
that.addMsg.TicketNum=y.BindNum;
that.TicketMsg = x.AlName + "/" + x.FlightDate;
that.editForm.TicketId = x.AirticketId;
that.editForm.TicketNum = x.BindNum;
that.editForm.PurchaseId = x.Id;
}
});
},
......@@ -946,9 +947,7 @@
// this.Warning("请选择回程航班");
// return;
// }
if (this.ContractArray.length) {
this.editForm.WordUrl = this.ContractArray[0].Url;
}
this.apipost(
"post_SetTeavelTeam",
this.editForm,
......@@ -983,7 +982,7 @@
},
//删除文件
DeleteFile(subIndex) {
this.ContractArray.splice(subIndex, 1);
this.editForm.WordUrl = '';
},
//下载文件
downloadFile(fileUrl, fileName) {
......
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