Commit 622f9c39 authored by 黄奎's avatar 黄奎

样式修改

parent 69336d76
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
</table> </table>
</li> </li>
<li> <li>
<!-- <input type="button" class="normalBtn" value="导出报表" @click="getFlightInfo(),getCombinTeam()" /> --> <input type="button" class="normalBtn" value="导出报表" @click="getFlightInfo(),getCombinTeam()" style="display:none" />
<input type="button" class="normalBtn" value="导出报表" @click="exportExcel()" /> <input type="button" class="normalBtn" value="导出报表" @click="exportExcel()" />
</li> </li>
</ul> </ul>
...@@ -155,179 +155,95 @@ ...@@ -155,179 +155,95 @@
</el-pagination> </el-pagination>
<el-dialog custom-class='passgenrDialog' title="航班列表" :visible.sync="outerVisible" center> <el-dialog custom-class='passgenrDialog' title="航班列表" :visible.sync="outerVisible" center>
<!-- <div style="border-bottom:1px solid #d1d1d1;">
<table border=0 class="pg_table">
<tr>
<td width="60" style="vertical-align:top;position:relative;" class="">
<span class="Pgzhu">票务信息</span>
</td>
<td>
<div class="PgflightDiv" v-for="item in flightList">
<p>
<span class="iconfont icon-hangban"></span>
<span>{{item.Flight_number}}</span>
<span>
<el-input class="w60" v-model="item.TicketDepartureTime" onkeyup="value=value.replace(/[^\d^\:]/g,'')"></el-input> -
<el-input class="w60" v-model="item.TicketArrivalTime" onkeyup="value=value.replace(/[^\d^\:]/g,'')"></el-input>
</span>
</p>
<el-tooltip class="item" effect="dark" :content="item.FlightDate" placement="top-start"
popper-class="max-w250">
<p class="_add_info">
<span>{{$t('Airticket.Air_StartTime')}}{{item.FlightDate}}</span>
</p>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="item.dName" placement="top-start"
popper-class="max-w250">
<p class="_add_info">
<span>{{$t('system.query_flightAir')}}{{item.dName}}</span>
</p>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="item.aName" placement="top-start"
popper-class="max-w250">
<p class="_add_info">
<span>{{$t('system.query_arrivalAir')}}{{item.aName }}</span>
</p>
</el-tooltip>
</div>
</td>
</tr>
<tr>
<td width="60" style="vertical-align:top;">联运信息</td>
<td>
<div class="PgflightDiv" v-for="item in flightList" v-if="item.FlightSubType==3">
<p>
<span class="iconfont icon-hangban"></span>
<span>{{item.Flight_number}}</span>
<span>
<el-input class="w60" v-model="item.TicketDepartureTime" onkeyup="value=value.replace(/[^\d^\:]/g,'')"></el-input> -
<el-input class="w60" v-model="item.TicketArrivalTime" onkeyup="value=value.replace(/[^\d^\:]/g,'')"></el-input>
</span>
</p>
<el-tooltip class="item" effect="dark" :content="item.FlightDate" placement="top-start"
popper-class="max-w250">
<p class="_add_info">
<span>{{$t('Airticket.Air_StartTime')}}{{item.FlightDate}}</span>
</p>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="item.dName" placement="top-start"
popper-class="max-w250">
<p class="_add_info">
<span>{{$t('system.query_flightAir')}}{{item.dName}}</span>
</p>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="item.aName" placement="top-start"
popper-class="max-w250">
<p class="_add_info">
<span>{{$t('system.query_arrivalAir')}}{{item.aName }}</span>
</p>
</el-tooltip>
</div>
</td>
</tr>
</table>
</div>
<div>
<table border=0 class="pg_table">
<tbody v-for="(item,index) in combineTeamList">
<tr>
<td colspan="2">
<span class="Pglian" v-if="index==0"></span>
团号:{{item.TCNUM}}
</td>
</tr>
<tr v-for="subItem in item.List">
<td width="60">{{subItem.CityName}}去程</td>
<td>
<div class="PgflightDiv" v-for="childItem in subItem.List" v-if="childItem.FlightSubType==1">
<p>
<span class="iconfont icon-hangban"></span>
<span>{{item.Flight_number}}</span>
<span>
<el-input class="w60" v-model="childItem.Departure_time" onkeyup="value=value.replace(/[^\d^\:]/g,'')"></el-input> -
<el-input class="w60" v-model="childItem.Arrival_time" onkeyup="value=value.replace(/[^\d^\:]/g,'')"></el-input>
</span>
</p>
<el-tooltip class="item" effect="dark" :content="childItem.FlightDate" placement="top-start"
popper-class="max-w250">
<p class="_add_info">
<span>{{$t('Airticket.Air_StartTime')}}{{childItem.FlightDate}}</span>
</p>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="childItem.dName" placement="top-start"
popper-class="max-w250">
<p class="_add_info">
<span>{{$t('system.query_flightAir')}}{{childItem.dName}}</span>
</p>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="childItem.aName" placement="top-start"
popper-class="max-w250">
<p class="_add_info">
<span>{{$t('system.query_arrivalAir')}}{{childItem.aName }}</span>
</p>
</el-tooltip>
</div>
</td>
</tr>
<tr>
<td>回程</td>
<td>
</td>
</tr>
</tbody>
</table>
</div> -->
<table border="0" cellspacing="0" cellpadding="0" class="singeRowTable"> <table border="0" cellspacing="0" cellpadding="0" class="singeRowTable">
<tr> <tr>
<th>航班号</th> <td colspan="6" style="text-align:left;font-weight:bold;padding-left:5px">票务航班信息</td>
<th>开始时间</th> </tr>
<th>结束时间</th> <tr>
<th>出发时间</th> <th>航班号</th>
<th>起飞机场</th> <th>开始时间</th>
<th>到达机场</th> <th>结束时间</th>
</tr> <th>出发时间</th>
<tr v-for="item in flightList"> <th>起飞机场</th>
<td>{{item.Flight_number}}</td> <th>到达机场</th>
<td>{{item.TicketDepartureTime}}</td> </tr>
<td>{{item.TicketArrivalTime}}</td> <tr v-for="item in flightList">
<td>{{item.FlightDate}}</td> <td>{{item.Flight_number}}</td>
<td>{{item.dName}}</td> <td>
<td>{{item.aName}}</td> <el-input class="w60" v-model="item.TicketDepartureTime" onkeyup="value=value.replace(/[^\d^\:]/g,'')"></el-input>
</tr> </td>
<td>
<el-input class="w60" v-model="item.TicketArrivalTime" onkeyup="value=value.replace(/[^\d^\:]/g,'')"></el-input>
</td>
<td>{{item.FlightDate}}</td>
<td>{{item.dName}}</td>
<td>{{item.aName}}</td>
</tr>
</table> </table>
<table border="0" cellspacing="0" cellpadding="0" class="singeRowTable" style="margin-top:20px;"> <table border="0" cellspacing="0" cellpadding="0" class="singeRowTable" style="margin-top:20px;">
<tr> <tr>
<th>航班号</th> <td colspan="16" style="text-align:left;font-weight:bold;padding-left:5px">联运航班信息</td>
<th>开始时间</th> </tr>
<th>结束时间</th> <tr>
<th>出发时间</th> <th rowspan="2">
<th>起飞机场</th> 团号
<th>到达机场</th> </th>
<th rowspan="2">
公司/城市
</th>
<th colspan="6">
去程
</th>
<th colspan="6">
回程
</th>
</tr>
<tr>
<th>日期</th>
<th>航班号</th>
<th>出发时间</th>
<th>到达时间</th>
<th>起飞机场</th>
<th>到达机场</th>
<th>日期</th>
<th>航班号</th>
<th>出发时间</th>
<th>到达时间</th>
<th>起飞机场</th>
<th>到达机场</th>
</tr>
<tr v-for="subItem in combineTeamList">
<td>{{subItem.TCNUM}}({{subItem.TCID}})</td>
<td>{{subItem.UnionBranchName}}({{subItem.UnionCityName}})</td>
<td>{{subItem.GoFlightDateStr}}</td>
<td>{{subItem.GoFlight_number}}</td>
<td>
<el-input class="w60" v-model="subItem.GoDepartTime" onkeyup="value=value.replace(/[^\d^\:]/g,'')"></el-input>
<td>
<el-input class="w60" v-model="subItem.GoArriveTime" onkeyup="value=value.replace(/[^\d^\:]/g,'')"></el-input>
</td>
</td>
<td>{{subItem.GoDepartAirportName}}</td>
<td>{{subItem.GoArrivalAirportName}}</td>
<td>{{subItem.BackFlightDateStr}}</td>
<td>{{subItem.BackFlight_number}}</td>
<td>
<el-input class="w60" v-model="subItem.BackDepartTime" onkeyup="value=value.replace(/[^\d^\:]/g,'')"></el-input>
<td>
<el-input class="w60" v-model="subItem.BackArriveTime" onkeyup="value=value.replace(/[^\d^\:]/g,'')"></el-input>
</td>
</td>
<td>{{subItem.BackDepartAirportName}}</td>
<td>{{subItem.BackArrivalAirportName}}</td>
</tr> </tr>
<template v-for="item in combineTeamList">
<tr v-for="subItem in item.List">
<td>{{subItem.Flight_number}}</td>
<td>{{subItem.TicketDepartureTime}}</td>
<td>{{subItem.TicketArrivalTime}}</td>
<td>{{subItem.FlightDate}}</td>
<td>{{subItem.dName}}</td>
<td>{{subItem.aName}}</td>
</tr>
</template>
</table> </table>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="normalBtn" type="primary" @click="getCheckInfo()">确认航班信息</button> &nbsp; <button class="normalBtn" type="primary" @click="getCheckInfo()">确认航班信息</button> &nbsp;
<button class="hollowFixedBtn" @click="outerVisible = false">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn" @click="outerVisible = false">{{$t('pub.cancelBtn')}}</button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
...@@ -352,9 +268,9 @@ ...@@ -352,9 +268,9 @@
//模板代码 //模板代码
TempCode: "" TempCode: ""
}, },
outerVisible:false, outerVisible: false,
flightList:[], flightList: [],
combineTeamList:[], combineTeamList: [],
}; };
}, },
methods: { methods: {
...@@ -384,62 +300,61 @@ ...@@ -384,62 +300,61 @@
}, },
getFlightInfo() { getFlightInfo() {
let msg = { let msg = {
ID:this.$route.query.id ID: this.$route.query.id
} }
this.apipost("ticket_get_GetEntityExtend", msg,res => { this.apipost("ticket_get_GetEntityExtend", msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.flightList = res.data.data.flightList; this.flightList = res.data.data.flightList;
console.log(this.flightList,'主团信息'); } else {
} else { this.Error(res.data.message);
this.Error(res.data.message); }
} }, err => {});
},err => {}
);
this.outerVisible = true; this.outerVisible = true;
}, },
//获取联运团信息 //获取联运团信息
getCombinTeam(){ getCombinTeam() {
let msg = { let msg = {
AirTicketId:this.$route.query.id AirTicketId: this.$route.query.id
} }
this.apipost("ticket_get_GetUnionFlightAllInfo", msg,res => { this.apipost("ticket_get_GetUnionFlightAllInfo", msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.combineTeamList = res.data.data; this.combineTeamList = res.data.data;
console.log(this.combineTeamList,'联运信息'); console.log(this.combineTeamList, '联运信息');
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
},err => {} }, err => {});
);
}, },
//确定 //确定
getCheckInfo(){ getCheckInfo() {
let FlightList = [] let FlightList = []
this.flightList.forEach(x=>{ this.flightList.forEach(x => {
var obj = { var obj = {
ID:x.ID, ID: x.ID,
TicketDepartureTime:x.TicketDepartureTime, TicketDepartureTime: x.TicketDepartureTime,
TicketArrivalTime:x.TicketArrivalTime TicketArrivalTime: x.TicketArrivalTime
} }
FlightList.push(obj); FlightList.push(obj);
}) })
var unionFlightList=[];
let msg = { let msg = {
AirTicketId:this.$route.query.id, AirTicketId: this.$route.query.id,
FlightList:FlightList FlightList: FlightList,
UnionFlightList:unionFlightList
} }
this.apipost("ticket_post_SetFlightChildConfirm", msg ,res => { this.apipost("ticket_post_SetFlightChildConfirm", msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.exportExcel(); this.exportExcel();
this.outerVisible = false; this.outerVisible = false;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
},err => {} }, err => {});
);
}, },
//导出报表 //导出报表
exportExcel(){ exportExcel() {
let msg = { let msg = {
AirTicketId: this.msg.AirTicketId AirTicketId: this.msg.AirTicketId
}; };
......
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