Commit cff2bfcc authored by 黄奎's avatar 黄奎

页面修改

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