Commit 5a1e9e49 authored by 黄奎's avatar 黄奎

页面修改

parent b9bd5c16
......@@ -2,6 +2,39 @@
</style>
<template>
<div class="clearfix">
<el-table :data="orderUnionList" stripe style="width:500px;">
<el-table-column prop="GuestNameInfo" label="旅客信息" width="120px">
</el-table-column>
<el-table-column prop="FlightName" label="去程" width="160px">
<template slot-scope="scope">
<template v-if="scope.row.FlightName">
{{scope.row.FlightName.Flight_number}}
{{scope.row.FlightName.Departure_time}}-{{scope.row.FlightName.Arrival_time}}
<br />
{{scope.row.FlightName.DepartureCityName}}({{scope.row.FlightName.DIATA}})
-{{scope.row.FlightName.ArrivalCityName}}({{scope.row.FlightName.AIATA}})
</template>
</template>
</el-table-column>
<el-table-column prop="BackFlightName" label="回程" width="160px">
<template slot-scope="scope">
<template v-if="scope.row.BackFlightName">
{{scope.row.BackFlightName.Flight_number}}
{{scope.row.BackFlightName.Departure_time}}-{{scope.row.BackFlightName.Arrival_time}}
<br />
{{scope.row.BackFlightName.DepartureCityName}}({{scope.row.BackFlightName.DIATA}})
-{{scope.row.BackFlightName.ArrivalCityName}}({{scope.row.BackFlightName.AIATA}})
</template>
</template>
</el-table-column>
<el-table-column>
<template slot-scope="scope">
<a style="color:blue;cursor:pointer" @click="editOrderUnion(scope.row)">修改</a>
<a style="color:blue;cursor:pointer" @click="deleteOrderUnion(scope.row)">删除</a>
</template>
</el-table-column>
</el-table>
<br />
<el-form label-width="100px">
<el-form-item label="订单编号">
{{orderInfo.OrderId}}
......@@ -34,15 +67,37 @@
TicketOrder: "", //机票导入命令
TicketUnionId: 0, //判断新增还是修改
IsSure: 0, //0-暂定,1-确定
selectFlight: 1, //查询航班
},
orderUnionList: [],
}
},
mounted() {
},
methods: {
//修改联运
editOrderUnion(item) {
console.log("item", item)
},
//删除联运
deleteOrderUnion(item) {
console.log("item", item)
},
//获取订单设置联运信息
getOrderUnionList() {
this.apipost("AirTicket_get_GetUnionTicketListByTCIDNew", this.postMsg,
(res) => {
console.log("AirTicket_get_GetUnionTicketListByTCIDNew", res.data);
if (res.data.resultCode == 1) {
this.orderUnionList = res.data.data;
}
}
);
},
//设置联运
saveTicketUnion() {
//员工
this.apipost("AirTicket_post_ImportUnionOrderFlight", this.postMsg,
(res) => {
if (res.data.resultCode == 1) {
......@@ -74,6 +129,9 @@
this.postMsg.TCID = this.orderInfo.TCID;
this.postMsg.OrderId = this.orderInfo.OrderId;
this.postMsg.TicketUnionId = this.orderInfo.TicketUnionId;
if (this.postMsg.TCID > 0 || this.postMsg.OrderId > 0) {
this.getOrderUnionList();
}
},
deep: true,
immediate: true,
......
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