Commit c854338d authored by 黄奎's avatar 黄奎

页面修改

parent aa776075
...@@ -68,8 +68,8 @@ ...@@ -68,8 +68,8 @@
<th width="60">{{$t('Airticket.Air_segment')}}</th> <th width="60">{{$t('Airticket.Air_segment')}}</th>
<th width="80">{{$t('system.query_flightNum')}}</th> <th width="80">{{$t('system.query_flightNum')}}</th>
<th width="150">起飞时间</th> <th width="150">起飞时间</th>
<th width="150">到达时间</th> <th width="80">到达时间</th>
<th width="80">经停城市</th> <th width="100">经停城市</th>
</tr> </tr>
<tr v-for="(ds,din) in item.FlightList" :key="din" style="text-align:center;"> <tr v-for="(ds,din) in item.FlightList" :key="din" style="text-align:center;">
<td class="_d_name _color_666"> <td class="_d_name _color_666">
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</tr> </tr>
</table> </table>
<el-button slot="reference" class="normalBtn mt5" <el-button slot="reference" class="normalBtn mt5"
style='height:24px; padding: 0 10px; background: #2AAEF2; border-color: #2AAEF2;color:#fff;'>详情</el-button> style='height:24px; padding: 0 10px; background: #2AAEF2; border-color: #2AAEF2;'>详情</el-button>
</el-popover> </el-popover>
</div> </div>
</td> </td>
...@@ -135,11 +135,13 @@ ...@@ -135,11 +135,13 @@
</td> </td>
<td style="vertical-align: top;"> <td style="vertical-align: top;">
<div :style="{width:150*item.CommonReport.newHotel.length+'px'}"> <div :style="{width:150*item.CommonReport.newHotel.length+'px'}">
<div class="w150" v-for="childItem in item.CommonReport.newHotel" style="float:left;border-right:1px solid #d1d1d1;"> <div class="w150" v-for="childItem in item.CommonReport.newHotel"
style="float:left;border-right:1px solid #d1d1d1;">
<p class="pDateStyle">{{childItem.CheckInDateStr}}</p> <p class="pDateStyle">{{childItem.CheckInDateStr}}</p>
<p @click="goUrlR('HotelManagement',childItem.HotelId,'酒店管理')" <p @click="goUrlR('HotelManagement',childItem.HotelId,'酒店管理')"
class="pDateStyle phoverStype ownScrollbarStyle" style="height: 50px!important; overflow:auto;"> class="pDateStyle phoverStype ownScrollbarStyle" style="height: 50px!important; overflow:auto;">
<span v-if='childItem.HotelOrderState==0' class="colorE95252">(待定)</span>{{childItem.NewHotelName}} <span v-if='childItem.HotelOrderState==0'
class="colorE95252">(待定)</span>{{childItem.NewHotelName}}
</p> </p>
<p class="pDateStyle">{{item.CommonReport.HouseStatistics.RealityRoomNum}}</p> <p class="pDateStyle">{{item.CommonReport.HouseStatistics.RealityRoomNum}}</p>
<p class="pDateStyle"> <p class="pDateStyle">
...@@ -149,7 +151,7 @@ ...@@ -149,7 +151,7 @@
<span v-for="x in item.CommonReport.HouseStatistics.HouseTypeList">{{x.HouseTypeCount}}</span> <span v-for="x in item.CommonReport.HouseStatistics.HouseTypeList">{{x.HouseTypeCount}}</span>
<span v-if="item.CommonReport.HouseStatistics.HouseTypeList.length==0">暂无订房</span> <span v-if="item.CommonReport.HouseStatistics.HouseTypeList.length==0">暂无订房</span>
</p> </p>
</div> </div>
</div> </div>
</td> </td>
...@@ -289,35 +291,19 @@ ...@@ -289,35 +291,19 @@
for (let i = 1; i <= res.data.data.pageData.columnsCount; i++) { for (let i = 1; i <= res.data.data.pageData.columnsCount; i++) {
this.thLengthTitle.push('第' + i + '晚') this.thLengthTitle.push('第' + i + '晚')
} }
this.list.forEach(outItem => { this.list.forEach(x => {
outItem.StaticsReportList.forEach(item => { x.StaticsReportList.forEach(y => {
item.CommonReport['valueLength'] = item.CommonReport.HotelOrderListReport.length y.CommonReport.newHotel = [];
if (item.CommonReport.HotelOrderListReport.length < res.data.data.pageData.columnsCount) { if (y.CommonReport.HotelOrderListReport != null && y.CommonReport.HotelOrderListReport
let _cha = res.data.data.pageData.columnsCount - item.CommonReport.HotelOrderListReport.length .length > 0) {
let _chaArr = new Array() y.CommonReport.HotelOrderListReport.forEach(z => {
for (let i = 0; i < _cha; i++) { z.HotelOrderList.forEach(q => {
_chaArr.push({ y.CommonReport.newHotel.push(q);
'HotelName': ''
}) })
} })
item.CommonReport.HotelOrderListReport = item.CommonReport.HotelOrderListReport.concat(_chaArr)
} }
})
})
this.list.forEach(x=>{ y.colNum = 9 + y.CommonReport.newHotel.length;
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 {
......
...@@ -237,6 +237,9 @@ ...@@ -237,6 +237,9 @@
//添加酒店 //添加酒店
AddHotel(item, subIndex) { AddHotel(item, subIndex) {
var subItem = JSON.parse(JSON.stringify(item.HotelOrderList[subIndex])); var subItem = JSON.parse(JSON.stringify(item.HotelOrderList[subIndex]));
subItem.HotelId=0;
subItem.HotelName="";
subItem.OrderID=0;
item.HotelOrderList.push(subItem); item.HotelOrderList.push(subItem);
}, },
//删除酒店 //删除酒店
...@@ -321,7 +324,6 @@ ...@@ -321,7 +324,6 @@
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.list = res.data.data.HotelOrderListReport; this.list = res.data.data.HotelOrderListReport;
console.log("this.list", this.list);
this.CreateBy = res.data.data.CreateBy; this.CreateBy = res.data.data.CreateBy;
this.CreateByPhoto = res.data.data.CreateByPhoto; this.CreateByPhoto = res.data.data.CreateByPhoto;
this.CreateByAccount = res.data.data.CreateByAccount; this.CreateByAccount = res.data.data.CreateByAccount;
...@@ -364,10 +366,11 @@ ...@@ -364,10 +366,11 @@
this.$forceUpdate(); this.$forceUpdate();
}, },
getHotelList(obj) { getHotelList(obj) {
this.apipost('hotel_post_GetLineHotelList', { this.apipost('hotel_post_GetHasStockHotelList', {
IsGetPic: 0, //1-只查询有库存的酒店
IsGetRemark: 0, IsMoreThanZero:0,
//QCity: obj.QCity Country: "651",
sDate:obj.CheckInDateStr
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
obj.hotelList = res.data.data; obj.hotelList = res.data.data;
......
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