Commit e9b4bd5f authored by 黄奎's avatar 黄奎

1

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