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

样式修改

parent 69336d76
......@@ -116,7 +116,7 @@
</table>
</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()" />
</li>
</ul>
......@@ -155,179 +155,95 @@
</el-pagination>
<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">
<tr>
<th>航班号</th>
<th>开始时间</th>
<th>结束时间</th>
<th>出发时间</th>
<th>起飞机场</th>
<th>到达机场</th>
</tr>
<tr v-for="item in flightList">
<td>{{item.Flight_number}}</td>
<td>{{item.TicketDepartureTime}}</td>
<td>{{item.TicketArrivalTime}}</td>
<td>{{item.FlightDate}}</td>
<td>{{item.dName}}</td>
<td>{{item.aName}}</td>
</tr>
<tr>
<td colspan="6" style="text-align:left;font-weight:bold;padding-left:5px">票务航班信息</td>
</tr>
<tr>
<th>航班号</th>
<th>开始时间</th>
<th>结束时间</th>
<th>出发时间</th>
<th>起飞机场</th>
<th>到达机场</th>
</tr>
<tr v-for="item in flightList">
<td>{{item.Flight_number}}</td>
<td>
<el-input class="w60" v-model="item.TicketDepartureTime" onkeyup="value=value.replace(/[^\d^\:]/g,'')"></el-input>
</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 border="0" cellspacing="0" cellpadding="0" class="singeRowTable" style="margin-top:20px;">
<tr>
<th>航班号</th>
<th>开始时间</th>
<th>结束时间</th>
<th>出发时间</th>
<th>起飞机场</th>
<th>到达机场</th>
<tr>
<td colspan="16" style="text-align:left;font-weight:bold;padding-left:5px">联运航班信息</td>
</tr>
<tr>
<th rowspan="2">
团号
</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>
<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>
<div slot="footer" class="dialog-footer">
<button class="normalBtn" type="primary" @click="getCheckInfo()">确认航班信息</button> &nbsp;
<button class="hollowFixedBtn" @click="outerVisible = false">{{$t('pub.cancelBtn')}}</button>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
data() {
......@@ -352,9 +268,9 @@
//模板代码
TempCode: ""
},
outerVisible:false,
flightList:[],
combineTeamList:[],
outerVisible: false,
flightList: [],
combineTeamList: [],
};
},
methods: {
......@@ -384,62 +300,61 @@
},
getFlightInfo() {
let msg = {
ID:this.$route.query.id
ID: this.$route.query.id
}
this.apipost("ticket_get_GetEntityExtend", msg,res => {
if (res.data.resultCode == 1) {
this.flightList = res.data.data.flightList;
console.log(this.flightList,'主团信息');
} else {
this.Error(res.data.message);
}
},err => {}
);
this.apipost("ticket_get_GetEntityExtend", msg, res => {
if (res.data.resultCode == 1) {
this.flightList = res.data.data.flightList;
} else {
this.Error(res.data.message);
}
}, err => {});
this.outerVisible = true;
},
//获取联运团信息
getCombinTeam(){
getCombinTeam() {
let msg = {
AirTicketId:this.$route.query.id
AirTicketId: this.$route.query.id
}
this.apipost("ticket_get_GetUnionFlightAllInfo", msg,res => {
if (res.data.resultCode == 1) {
this.combineTeamList = res.data.data;
console.log(this.combineTeamList,'联运信息');
} else {
this.Error(res.data.message);
}
},err => {}
);
this.apipost("ticket_get_GetUnionFlightAllInfo", msg, res => {
if (res.data.resultCode == 1) {
this.combineTeamList = res.data.data;
console.log(this.combineTeamList, '联运信息');
} else {
this.Error(res.data.message);
}
}, err => {});
},
//确定
getCheckInfo(){
getCheckInfo() {
let FlightList = []
this.flightList.forEach(x=>{
var obj = {
ID:x.ID,
TicketDepartureTime:x.TicketDepartureTime,
TicketArrivalTime:x.TicketArrivalTime
}
FlightList.push(obj);
this.flightList.forEach(x => {
var obj = {
ID: x.ID,
TicketDepartureTime: x.TicketDepartureTime,
TicketArrivalTime: x.TicketArrivalTime
}
FlightList.push(obj);
})
var unionFlightList=[];
let msg = {
AirTicketId:this.$route.query.id,
FlightList:FlightList
AirTicketId: this.$route.query.id,
FlightList: FlightList,
UnionFlightList:unionFlightList
}
this.apipost("ticket_post_SetFlightChildConfirm", msg ,res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.exportExcel();
this.outerVisible = false;
} else {
this.Error(res.data.message);
}
},err => {}
);
this.apipost("ticket_post_SetFlightChildConfirm", msg, res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.exportExcel();
this.outerVisible = false;
} else {
this.Error(res.data.message);
}
}, err => {});
},
//导出报表
exportExcel(){
exportExcel() {
let msg = {
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