Commit b779eacd authored by 沈良进's avatar 沈良进
parents d66c2b25 04338c5b
......@@ -213,39 +213,37 @@
<el-col :span="12">
<!--添加修改航班-->
<ul class="_add_hangban clearfix">
<li v-if="addMsg.TicketType" :class="addMsg.TicketType == 1 ? '_allWidth' : ''">
<li :class="addMsg.TicketType == 1 ? '_allWidth' : ''">
<span class="_add_go_label">{{ $t("Airticket.Air_go") }}</span>
<div class="_add_go" v-for="(item, index) in addMsg.flightList" :key="index">
<template v-if="addMsg.flightList && item.TicketType == 1">
<template v-if="item.TicketType == 1">
<div>
<p>
<span class="iconfont icon-hangban"></span>
<span>{{ item.Flight_number }}</span>
<span>{{ item.Flight_number }} {{item.Departure_time }}~{{item.Arrival_time}}</span>
<span class="iconfont icon-xingzhuang" @click="deletFlightInfo(item.ID, index)"></span>
</p>
<el-tooltip class="item" effect="dark" :content="item.FlightDate" placement="top-start"
popper-class="max-w250">
</el-tooltip>
<span class="transform">是否中转:{{ item.IsTransfer === 1 ? "是" : "否" }}</span>
<el-tooltip class="item" effect="dark" :content="item.dName" placement="top-start"
<p class="_add_info">是否中转:{{ item.IsTransfer === 1 ? "是" : "否" }}</p>
<el-tooltip class="item" effect="dark" :content="item.DepartureAirPortName" placement="top-start"
popper-class="max-w250">
<p class="_add_info">
<span>{{ $t("system.query_flightAir") }}{{
item.dName
item.DepartureAirPortName
}}</span>
</p>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="item.aName" placement="top-start"
<el-tooltip class="item" effect="dark" :content="item.ArrivalAirPortName" placement="top-start"
popper-class="max-w250">
<p class="_add_info">
<span>{{ $t("system.query_arrivalAir") }}{{
item.aName
item.ArrivalAirPortName
}}</span>
</p>
</el-tooltip>
</div>
</template>
</div>
<!--添加去程-->
<div class="_add_go _new_go">
<div>
<p>
......@@ -283,41 +281,41 @@
</ul>
</el-col>
<el-col :span="12">
<!--添加修改航班-->
<!--回程-->
<ul class="_add_hangban clearfix">
<li v-if="addMsg.TicketType&& addMsg.TicketType == 2">
<li>
<span class="_add_go_label">{{
$t("Airticket.Air_returnTrip")
}}</span>
<div class="_add_go" v-for="(item, index) in addMsg.flightList" :key="index">
<template v-if="addMsg.flightList && item.TicketType == 2">
<template v-if="item.TicketType == 2">
<div>
<p>
<span class="iconfont icon-hangban"></span>
<span>{{ item.Flight_number }}
{{ item.Departure_time }}</span>
<span>{{ item.Flight_number }} {{item.Departure_time }}~{{item.Arrival_time}}</span>
<span class="iconfont icon-xingzhuang" @click="deletFlightInfo(item.ID, index)"></span>
</p>
<span class="transform">是否中转:{{ item.IsTransfer === 1 ? "是" : "否" }}</span>
<el-tooltip class="item" effect="dark" :content="item.dName" placement="top-start"
<p class="_add_info">是否中转:{{ item.IsTransfer === 1 ? "是" : "否" }}</p>
<el-tooltip class="item" effect="dark" :content="item.DepartureAirPortName" placement="top-start"
popper-class="max-w250">
<p class="_add_info">
<span>{{ $t("system.query_flightAir") }}{{
item.dName
item.DepartureAirPortName
}}</span>
</p>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="item.aName" placement="top-start"
<el-tooltip class="item" effect="dark" :content="item.ArrivalAirPortName" placement="top-start"
popper-class="max-w250">
<p class="_add_info">
<span>{{ $t("system.query_arrivalAir") }}{{
item.aName
item.ArrivalAirPortName
}}</span>
</p>
</el-tooltip>
</div>
</template>
</div>
<!--添加回程-->
<div class="_add_go _new_go">
<div>
<p>
......@@ -575,8 +573,8 @@
FlightId: "",
IsTransfer: 0,
FlightDate: "",
aName: "",
dName: "",
ArrivalAirPortName: "",
DepartureAirPortName: "",
TicketType: 1,
ID: 0,
AirLineID: "",
......@@ -587,8 +585,8 @@
FlightId: "",
IsTransfer: 0,
FlightDate: "",
aName: "",
dName: "",
ArrivalAirPortName: "",
DepartureAirPortName: "",
TicketType: 2,
ID: 0,
AirLineID: "",
......@@ -646,6 +644,7 @@
item.TicketType = Math.random() > 0.5 ? 1 : 2;
});
this.addMsg.flightList = TravelTeamFlightList;
console.log("this.addMsg",this.addMsg);
this.friendList = TravelTeamPartnerList;
} else {
this.$message.error(res.data.message);
......@@ -695,8 +694,8 @@
this.AirportNameList.forEach((x) => {
if (x.ID == this.addGoFlight.FlightId) {
newList.TicketType = 1;
newList.aName = x.aName;
newList.dName = x.dName;
newList.ArrivalAirPortName = x.aName;
newList.DepartureAirPortName = x.dName;
newList.Flight_number = x.Flight_number;
newList.FlightId = this.addGoFlight.FlightId;
newList.AirLineTicketId = this.addGoFlight.AirLineTicketId;
......@@ -718,8 +717,8 @@
this.BackAirportNameList.forEach((x) => {
if (x.ID == this.returnTripData.FlightId) {
newList.TicketType = 2;
newList.aName = x.aName;
newList.dName = x.dName;
newList.ArrivalAirPortName = x.aName;
newList.DepartureAirPortName = x.dName;
newList.Flight_number = x.Flight_number;
newList.FlightDate = newDate;
newList.FlightId = this.returnTripData.FlightId;
......
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