Commit e9b4bd5f authored by 黄奎's avatar 黄奎

1

parent 692e9d41
......@@ -47,9 +47,6 @@
</el-table-column>
</el-table>
<br />
<el-form label-width="100px">
<template v-if="postMsg.GuestList&&postMsg.GuestList.length>0">
<el-row :gutter="20">
......@@ -57,13 +54,12 @@
<el-form-item :label="$t('objFill.v101.traveltrip.quxiaohanbxs')">
<template v-if="PiceOrderUnionFlightList&&PiceOrderUnionFlightList.length>0">
<el-select v-model="SelectList" multiple :placeholder="$t('objFill.qingxuanzhe')" style="width:100%">
<el-option
v-for="item in PiceOrderUnionFlightList"
:key="item.ID"
:label="item.Flight_number"
<el-option v-for="item in PiceOrderUnionFlightList" :key="item.ID" :label="item.Flight_number"
:value="item.ID">
<span style="float: left">{{ item.Flight_number }} {{ item.FlightSubType==1?$t('objFill.v101.traveltrip.qicheng'):$t('Airticket.Air_returnTrip') }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.AlName }}{{ item.FlightDateStr}} {{item.Departure_time}}{{item.DepartureName}}({{item.DIATA}})-
<span style="float: left">{{ item.Flight_number }}
{{ item.FlightSubType==1?$t('objFill.v101.traveltrip.qicheng'):$t('Airticket.Air_returnTrip') }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.AlName }}{{ item.FlightDateStr}}
{{item.Departure_time}}{{item.DepartureName}}({{item.DIATA}})-
{{ item.FlightDateStr}} {{item.Arrival_time}}{{item.ArrivalCityName}}({{item.AIATA}})
</span>
</el-option>
......@@ -131,7 +127,8 @@
</el-col>
<el-col :span="10">
<el-form-item :label="$t('objFill.v101.BasicDocuments.quchenghb')">
<el-input v-model="postMsg.GoFlightNum" type="text" maxlength="20" :placeholder="$t('objFill.v101.BasicDocuments.quchenghb')">
<el-input v-model="postMsg.GoFlightNum" type="text" maxlength="20"
:placeholder="$t('objFill.v101.BasicDocuments.quchenghb')">
</el-input>
</el-form-item>
</el-col>
......@@ -146,7 +143,8 @@
</el-col>
<el-col :span="10">
<el-form-item :label="$t('objFill.huichenghb')">
<el-input v-model="postMsg.BackFlightNum" type="text" maxlength="20" :placeholder="$t('objFill.huichenghb')"></el-input>
<el-input v-model="postMsg.BackFlightNum" type="text" maxlength="20"
:placeholder="$t('objFill.huichenghb')"></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -160,7 +158,8 @@
<el-row>
<el-col :span="20">
<el-form-item>
<input type="button" class="normalBtn Rs_leaderSearch" @click="saveTicketUnion" :value="$t('pub.sureBtn')" />
<input type="button" class="normalBtn Rs_leaderSearch" @click="saveTicketUnion"
:value="$t('pub.sureBtn')" />
<input type="button" class="normalBtn Rs_leaderSearch" @click="closeDialog()" :value="$t('pub.closeSel')" />
</el-form-item>
</el-col>
......@@ -187,12 +186,12 @@
GoFlightNum: "", //去程航班
BackFlightNum: "", //回程航班
Notes: "", //备注
NotShowFlightIds:"",//不需要的航班ids
NotShowFlightIds: "", //不需要的航班ids
},
orderUnionList: [], //订单联运信息
orderGuestList: [], //订单旅客信息
PiceOrderUnionFlightList:[],//团航班信息
SelectList:[],//已选航班信息
PiceOrderUnionFlightList: [], //团航班信息
SelectList: [], //已选航班信息
}
},
mounted() {
......@@ -201,10 +200,10 @@
methods: {
//修改联运
editOrderUnion(item) {
this.SelectList=[];
this.SelectList=item.NotShowFlightList;
this.PiceOrderUnionFlightList=[];
this.PiceOrderUnionFlightList=item.PiceOrderUnionFlightList;
this.SelectList = [];
this.SelectList = item.NotShowFlightList;
this.PiceOrderUnionFlightList = [];
this.PiceOrderUnionFlightList = item.PiceOrderUnionFlightList;
if (item.TicketUnionId) {
this.postMsg.TicketUnionId = item.TicketUnionId;
}
......@@ -239,7 +238,7 @@
that.apipost("AirTicket_post_DeleteUnionOrderFlight", msg,
res => {
if (res.data.resultCode == 1) {
that.Success(this.$t('objFill.shangchulycg'));
that.Success(that.$t('objFill.shangchulycg'));
that.getOrderUnionList();
} else {
that.Error(res.data.data);
......@@ -253,8 +252,8 @@
(res) => {
if (res.data.resultCode == 1) {
this.orderUnionList = res.data.data;
if (this.postMsg.TicketUnionId==0&&this.orderUnionList&&this.orderUnionList.length>0) {
this.PiceOrderUnionFlightList=this.orderUnionList[0].PiceOrderUnionFlightList;
if (this.postMsg.TicketUnionId == 0 && this.orderUnionList && this.orderUnionList.length > 0) {
this.PiceOrderUnionFlightList = this.orderUnionList[0].PiceOrderUnionFlightList;
}
}
}
......@@ -262,8 +261,8 @@
},
//设置联运
saveTicketUnion() {
if(this.SelectList&&this.SelectList.length>0){
this.postMsg.NotShowFlightIds=this.SelectList.map(item => item).join(', ');
if (this.SelectList && this.SelectList.length > 0) {
this.postMsg.NotShowFlightIds = this.SelectList.map(item => item).join(', ');
}
this.apipost("AirTicket_post_ImportUnionOrderFlight", this.postMsg,
(res) => {
......
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