Commit cff2bfcc authored by 黄奎's avatar 黄奎

页面修改

parent e9c76221
...@@ -72,7 +72,8 @@ ...@@ -72,7 +72,8 @@
<div class="DT_rightList"> <div class="DT_rightList">
<div class="TMTitle"><i></i>票务联运配置</div> <div class="TMTitle"><i></i>票务联运配置</div>
<!--保存--> <!--保存-->
<input type='button' class="normalBtn" @click="SaveUnion()" value="保存" /> <el-button type="primary" @click.native="SaveUnion()" :loading="saveLoading">保存</el-button>
<table class="singeRowTable DT_Table" border="0" cellspacing="0" cellpadding="0" v-loading="loading"> <table class="singeRowTable DT_Table" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<thead> <thead>
<tr> <tr>
...@@ -231,8 +232,8 @@ ...@@ -231,8 +232,8 @@
</tr> </tr>
<tr> <tr>
<td colspan="14" style="text-align:left;font-weight:bold;color:red;"> <td colspan="14" style="text-align:left;font-weight:bold;color:red;">
订单备注:{{item.Remarks}} <br /> &nbsp;订单备注:{{item.Remarks}} <br />
联运备注:{{item.UnionRemark}} &nbsp;联运备注:{{item.UnionRemark}}
</td> </td>
</tr> </tr>
</tbody> </tbody>
...@@ -288,7 +289,8 @@ ...@@ -288,7 +289,8 @@
ID: 2, ID: 2,
Name: "后两天" Name: "后两天"
} }
] ],
saveLoading: false, //保存按钮
}; };
}, },
methods: { methods: {
...@@ -319,12 +321,18 @@ ...@@ -319,12 +321,18 @@
}, },
res => { res => {
this.loading = false; this.loading = false;
console.log("res", res.data);
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var array = res.data.data; var array = res.data.data;
if (array != null && array.length > 0) { if (array != null && array.length > 0) {
array.forEach(item => { array.forEach(item => {
if (item.AirLineId && item.FlightId && item.AirLineId > 0 && item.FlightId > 0) {
this.airLineSelectChange(item, item.AirLineId, 1); this.airLineSelectChange(item, item.AirLineId, 1);
}
if (item.BackAirlineId && item.BackFlightId && item.BackAirlineId > 0 && item.BackFlightId >
0) {
this.airLineSelectChange(item, item.BackAirlineId, 2); this.airLineSelectChange(item, item.BackAirlineId, 2);
}
}); });
} }
this.UnionList = array; this.UnionList = array;
...@@ -348,13 +356,15 @@ ...@@ -348,13 +356,15 @@
//航空公司切换 //航空公司切换
airLineSelectChange(item, AirLineId, type) { airLineSelectChange(item, AirLineId, type) {
let qMsg = { let qMsg = {
AirlineID: AirLineId, airlineID: AirLineId,
Arrival_city: 0, Arrival_city: 0,
Departure_city: 0 Departure_city: 0
}; };
if (type == 1) { if (type == 1) {
item.FlightList = [];
qMsg.Departure_city = item.UnionCityId; qMsg.Departure_city = item.UnionCityId;
} else if (type == 2) { } else if (type == 2) {
item.BackFlightList = [];
qMsg.Arrival_city = item.UnionCityId; qMsg.Arrival_city = item.UnionCityId;
} }
this.apipost( this.apipost(
...@@ -389,6 +399,7 @@ ...@@ -389,6 +399,7 @@
}, },
//保存联运信息数据 //保存联运信息数据
SaveUnion() { SaveUnion() {
this.saveLoading = true;
this.UnionList.forEach(item => { this.UnionList.forEach(item => {
item.FlightList = []; item.FlightList = [];
item.BackFlightList = []; item.BackFlightList = [];
...@@ -398,6 +409,7 @@ ...@@ -398,6 +409,7 @@
TCID: this.TCID TCID: this.TCID
}; };
this.apipost("AirTicket_get_SetUnionTicketV3", msg, res => { this.apipost("AirTicket_get_SetUnionTicketV3", msg, res => {
this.saveLoading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success("设置联运成功!"); this.Success("设置联运成功!");
this.ArrList = []; this.ArrList = [];
......
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