Commit ba7fb8c1 authored by 黄奎's avatar 黄奎

酒店查询优化

parent dbb46eb1
...@@ -119,66 +119,104 @@ ...@@ -119,66 +119,104 @@
<div style="font-size:12px;padding:2px 4px 3px 4px; color:red">注意事项:每次导出数据最好不要超过一个月。</div> <div style="font-size:12px;padding:2px 4px 3px 4px; color:red">注意事项:每次导出数据最好不要超过一个月。</div>
<table border="0" cellspacing="1" cellpadding="0" class="roomQueryTalbe" v-loading='loading'> <table border="0" cellspacing="1" cellpadding="0" class="roomQueryTalbe" v-loading='loading'>
<tr> <tr>
<th width="w100">序号</th> <th width="120">序号</th>
<th width="120">出发地</th> <th width="100">出发地</th>
<th width="80">公司团号</th> <th width="80">公司团号</th>
<th width="150">航班</th>
<th width="100">系列</th> <th width="100">系列</th>
<th width="120">机位总数<br />(Y/E/F)</th> <th width="80">机位总数<br />(Y/E/F)</th>
<th>使用时间&酒店情况</th> <th width="100">使用时间</th>
<th width="120">酒店名称</th>
<th width="120">更换酒店</th>
<th width="100">OP状态</th>
<th width="100">地接状态</th>
</tr> </tr>
<tr v-if="dataList.length==0"> <tr v-if="dataList.length==0">
<td colspan="10">暂无数据</td> <td colspan="10">暂无数据</td>
</tr> </tr>
<tbody v-for="(outItem,outindex) in dataList" :class="{roomQuerySplitTrCss:outindex%2!=0}"> <template v-for="(outItem,outindex) in dataList">
<template v-for="(item,index) in outItem.StaticsReportList"> <tbody :class="{roomQuerySplitTrCss:outindex%2!=0}">
<template v-for="(item,index) in outItem.PriceCommonList">
<template v-for="(subItem,subIndex) in item.PriceHotelResult">
<template v-for="(thirdItem,thirdIndex) in subItem.SubList">
<tr> <tr>
<td :rowspan="outItem.StaticsReportList.length" v-if='index==0'> <td :rowspan="outItem.PriceCommonList.length*item.PriceHotelResult.length*subItem.SubList.length"
<div style="max-width: 100px; min-width: 50px;margin:auto;">{{outindex+1}}</div> v-if='index==0&&subIndex==0&&thirdIndex==0'>
<div v-if='outItem.StaticsReportList.length>0' class="w150">{{outItem.NewCombinationNum}}</div> {{outItem.NewCombinationNum}}
</td> </td>
<td> <td :rowspan="item.PriceHotelResult.length*subItem.SubList.length"
<div class="w80"> v-if='subIndex==0&&thirdIndex==0'>
{{item.StartCityNames}} {{item.StartCityName}}
</div>
</td> </td>
<td> <td :rowspan="item.PriceHotelResult.length*subItem.SubList.length"
v-if='subIndex==0&&thirdIndex==0'>
<div class="w120 link"> <div class="w120 link">
<p @click="goUrlT('productQuery',item.TCNUMS,'产品查询')">{{item.TCNUMS}}</p> <p @click="goUrlT('productQuery',item.TCNUMS,'产品查询')">{{item.TCNUMS}}</p>
</div> </div>
</td> </td>
<td> <td :rowspan="item.PriceHotelResult.length*subItem.SubList.length"
<div class="w120 link"> v-if='subIndex==0&&thirdIndex==0' style="white-space:nowrap;">
{{item.LineteamIdNames}} <template v-for="(fItem,fIndex) in item.FlightList">
</div> <span style="height:25px; line-height:25px;">
<a style="color: #ff0066;font-weight: bold;">{{fItem.Flight_number}}</a>
{{fItem.FlightDateStr}}
{{fItem.Departure_time}} {{fItem.dName}} {{fItem.TicketArrivalTime}} {{fItem.aName}}
</span><br/>
</template>
</td> </td>
<td> <td :rowspan="item.PriceHotelResult.length*subItem.SubList.length"
v-if='subIndex==0&&thirdIndex==0'>
{{item.LineteamName}}
</td>
<td :rowspan="item.PriceHotelResult.length*subItem.SubList.length"
v-if='subIndex==0&&thirdIndex==0'>
<div class="w120 link"> <div class="w120 link">
<p @click="goUrlT('RegistrationList',item.TCIDS,'报名清单')"> <p @click="goUrlT('RegistrationList',item.TCIDS,'报名清单')">
{{item.TotalSeat}}/{{item.CommonReport.HouseStatistics.RealityYSeatNum}}/{{item.CommonReport.HouseStatistics.RealityESeatNum}}/{{item.CommonReport.HouseStatistics.RealityFSeatNum}} {{item.TotalSeat}}/{{item.YSeatNum}}/{{item.ESeatNum}}/{{item.FSeatNum}}
</p> </p>
</div> </div>
</td> </td>
<td style="vertical-align: top;"> <td :rowspan="subItem.SubList.length" v-if='thirdIndex==0'>
<div :style="{width:150*item.CommonReport.newHotel.length+'px'}"> {{subItem.UseDay}}
<div class="w150" v-for="childItem in item.CommonReport.newHotel" </td>
style="float:left;border-right:1px solid #d1d1d1;"> <td style="text-align:left;padding-left:2px;">
<p class="pDateStyle">{{childItem.CheckInDateStr}}</p> <template v-if="thirdItem.HotelName!=thirdItem.NewHotelName && thirdItem.NewHotelName!=''">
<p @click="goUrlR('HotelManagement',childItem.HotelId,'酒店管理')" <span style="text-decoration:line-through"> {{thirdItem.HotelName}}</span>
class="pDateStyle phoverStype ownScrollbarStyle" style="height: 50px!important; overflow:auto;"> </template>
{{childItem.NewHotelName}} <template v-else>
<span class="colorE95252"> {{thirdItem.HotelName}}
<template v-if="childItem.OPState==1">[OP-指定]</template> </template>
<template v-else-if="childItem.OPState==2&&childItem.DMCState==0">[OP-暂定]</template> </td>
<template v-else>{{childItem.DMCState==1?"[地接-OK]":(childItem.DMCState==0?"[地接-未操作]":"[地接-暂定]")}} <td style="text-align:left;padding-left:2px;">
<template v-if="thirdItem.HotelName!=thirdItem.NewHotelName">
<span style="color:red;">{{thirdItem.NewHotelName}}</span>
</template>
</td>
<td>
<template v-if="thirdItem.OPState==1">
<span style="color: green;">OP-指定</span>
</template>
<template v-else-if="thirdItem.OPState==2">
<span style="color:red;">OP-暂定</span>
</template>
</td>
<td>
<template v-if="thirdItem.DMCState==1">
<span style="color: green;">地接-OK</span>
</template>
<template v-else-if="thirdItem.DMCState==2">
<span style="color:red;">地接-暂定</span>
</template>
<template v-else-if="thirdItem.DMCState==0">
<span style="color:red;">地接-未操作</span>
</template> </template>
</span>
</p>
</div>
</div>
</td> </td>
</tr> </tr>
</template> </template>
</template>
</template>
</tbody> </tbody>
</template>
</table> </table>
</div> </div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
...@@ -194,7 +232,7 @@ ...@@ -194,7 +232,7 @@
total: 0, total: 0,
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 8, pageSize: 5,
SelectType: 1, SelectType: 1,
StartDate: '', StartDate: '',
EndDate: '', EndDate: '',
...@@ -319,29 +357,11 @@ ...@@ -319,29 +357,11 @@
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.apipost('dmcstatistics_post_GetUniteCombinationNumService', this.msg, res => { this.apipost('dmcstatistics_get_GetDmcHotelPageList', this.msg, res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.total = res.data.data.count; this.total = res.data.data.count;
this.dataList = res.data.data.pageData.data; this.dataList = res.data.data.pageData;
this.thLengthTitle = [];
for (let i = 1; i <= res.data.data.pageData.columnsCount; i++) {
this.thLengthTitle.push('第' + i + '晚')
}
this.dataList.forEach(x => {
x.StaticsReportList.forEach(y => {
y.CommonReport.newHotel = [];
if (y.CommonReport.HotelOrderListReport != null && y.CommonReport.HotelOrderListReport
.length > 0) {
y.CommonReport.HotelOrderListReport.forEach(z => {
z.HotelOrderList.forEach(q => {
y.CommonReport.newHotel.push(q);
})
})
}
y.colNum = 9 + y.CommonReport.newHotel.length;
});
})
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
......
This diff is collapsed.
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