Commit 7adb3acf authored by youjie's avatar youjie
parents 8255c1f9 285e52c3
...@@ -156,12 +156,12 @@ ...@@ -156,12 +156,12 @@
</tr> </tr>
<template v-for="(item,index) in list"> <template v-for="(item,index) in list">
<template v-for="(subItem,subIndex) in item.HotelOrderList"> <template v-for="(subItem,subIndex) in item.HotelOrderList">
<tr v-for="(childItem,childIndex) in subItem.OrderDetailsList"> <tr v-for="(childItem,childIndex) in subItem.OrderDetailsList" :key="childIndex">
<td v-if="childIndex==0&&subIndex==0" :rowspan="6*item.HotelOrderList.length"> <td>
{{item.UseTimeStr}} {{item.UseTimeStr}}
</td> </td>
<!-- 酒店名称 --> <!-- 酒店名称 -->
<td v-if="childIndex==0" :rowspan="6"> <td>
<table class="hotelTable"> <table class="hotelTable">
<tr> <tr>
<td colspan="2"> <td colspan="2">
...@@ -195,21 +195,21 @@ ...@@ -195,21 +195,21 @@
</table> </table>
</td> </td>
<!-- 机位总数/(Y/E/F) --> <!-- 机位总数/(Y/E/F) -->
<td v-if="childIndex==0" :rowspan="6"> <td>
<p class="link" @click="goUrlT('RegistrationList',subItem.TCID,'报名清单')"> <p class="link" @click="goUrlT('RegistrationList',subItem.TCID,'报名清单')">
{{flightTotal}}/{{subItem.HouseStatistics.RealityYSeatNum}}/{{subItem.HouseStatistics.RealityESeatNum}}/{{subItem.HouseStatistics.RealityFSeatNum}} {{flightTotal}}/{{subItem.HouseStatistics.RealityYSeatNum}}/{{subItem.HouseStatistics.RealityESeatNum}}/{{subItem.HouseStatistics.RealityFSeatNum}}
</p> </p>
</td> </td>
<!-- 占床/不占床 --> <!-- 占床/不占床 -->
<td v-if="childIndex==0" :rowspan="6"> <td>
<p class="link" @click="goUrlT('passengerHouse',subItem.TCID,'房间分配')"> <p class="link" @click="goUrlT('passengerHouse',subItem.TCID,'房间分配')">
{{subItem.RealityHouseGuestNum}}/{{subItem.HouseStatistics.NoNeedBed}}</p> {{subItem.RealityHouseGuestNum}}/{{subItem.HouseStatistics.NoNeedBed}}</p>
</td> </td>
<!-- 实际用房数 --> <!-- 实际用房数 -->
<td v-if="childIndex==0" :rowspan="6"> <td>
{{subItem.RealityHouseTypeCount}} {{subItem.RealityHouseTypeCount}}
</td> </td>
<td v-if="childIndex==0" :rowspan="6"> <td>
<table class="hotelTable"> <table class="hotelTable">
<tr> <tr>
<td width="70" style="text-align:center;" colspan="2"> <td width="70" style="text-align:center;" colspan="2">
...@@ -272,6 +272,7 @@ ...@@ -272,6 +272,7 @@
</td> </td>
<!-- 房间类型 --> <!-- 房间类型 -->
<td> <td>
<div v-if="childItem.HouseType === 2">
{{subItem.HouseStatistics.HouseTypeList[childIndex].HouseTypeNameExt}} {{subItem.HouseStatistics.HouseTypeList[childIndex].HouseTypeNameExt}}
<template v-if="childIndex==4"> <template v-if="childIndex==4">
<template v-if="subItem.DriverGuideIsRebate==1"> <template v-if="subItem.DriverGuideIsRebate==1">
...@@ -283,18 +284,20 @@ ...@@ -283,18 +284,20 @@
</template> </template>
<template v-if="childIndex==5"> <template v-if="childIndex==5">
<br /><span style="color:red;">{{$t('ground.bufanyong')}}</span> <br /><span style="color:red;">{{$t('ground.bufanyong')}}</span>
</template> </template></div>
</td> </td>
<!-- 房间数 --> <!-- 房间数 -->
<td> <td>
<div v-if="childItem.HouseType === 2">
<el-input class='w40 tcenter' maxlength="2" @keyup.native="checkPrice(childItem,'HouseTypeCount')" <el-input class='w40 tcenter' maxlength="2" @keyup.native="checkPrice(childItem,'HouseTypeCount')"
v-model='childItem.HouseTypeCount' :disabled="IsEditHotelPeople==0?true:false"></el-input> v-model='childItem.HouseTypeCount' :disabled="IsEditHotelPeople==0?true:false"></el-input></div>
</td> </td>
<td> <td>
<div v-if="childItem.HouseType === 2">
<el-input class='w40 tcenter' maxlength="2" @keyup.native="checkInteger(childItem,'BookNum')" <el-input class='w40 tcenter' maxlength="2" @keyup.native="checkInteger(childItem,'BookNum')"
@input="calculationPrice(subItem)" v-model='childItem.BookNum' @input="calculationPrice(subItem)" v-model='childItem.BookNum'
:disabled="IsEditHotelPeople==0?true:false"> :disabled="IsEditHotelPeople==0?true:false">
</el-input> </el-input></div>
</td> </td>
<!-- 尚差房间数 --> <!-- 尚差房间数 -->
<!-- <td> <!-- <td>
...@@ -305,6 +308,7 @@ ...@@ -305,6 +308,7 @@
</td> --> </td> -->
<!-- 单价/每人 --> <!-- 单价/每人 -->
<td> <td>
<div v-if="childItem.HouseType === 2">
<template v-if="childIndex==1"> <template v-if="childIndex==1">
<template v-if="EditBtn||LineId==90"> <template v-if="EditBtn||LineId==90">
<el-input @keyup.native="checkInteger(childItem,'UnitPrice')" class='w60 tcenter' <el-input @keyup.native="checkInteger(childItem,'UnitPrice')" class='w60 tcenter'
...@@ -322,20 +326,25 @@ ...@@ -322,20 +326,25 @@
@input="calculationPrice(subItem)" v-model='childItem.UnitPrice' @input="calculationPrice(subItem)" v-model='childItem.UnitPrice'
:disabled="IsEditHotel==0?true:false"> :disabled="IsEditHotel==0?true:false">
</el-input> </el-input>
</template> </template></div>
</td> </td>
<!-- 免减人数 --> <!-- 免减人数 -->
<td> <td>
<div v-if="childItem.HouseType === 2">
<el-input class='w40' maxlength="2" @keyup.native="checkInteger(childItem,'HotelDiscount')" <el-input class='w40' maxlength="2" @keyup.native="checkInteger(childItem,'HotelDiscount')"
v-model='childItem.HotelDiscount' @input="calculationPrice(subItem)"> v-model='childItem.HotelDiscount' @input="calculationPrice(subItem)">
</el-input> </el-input></div>
</td> </td>
<!-- 金额小计 --> <!-- 金额小计 -->
<td style="white-space:nowrap;"> <td style="white-space:nowrap;">
{{childItem.UnitPrice*(childItem.BookNum-childItem.HotelDiscount)}} <div v-if="childItem.HouseType === 2">
<el-input class='w40' @keyup.native="checkInteger(childItem,'TotalPrice')"
v-model='childItem.TotalPrice' @input="calculationPrice(subItem)">
</el-input>
</div>
</td> </td>
<!-- 返佣类型 --> <!-- 返佣类型 -->
<td style="white-space:nowrap;" v-if="childIndex==0" :rowspan="6"> <td style="white-space:nowrap;" v-if="childIndex==0">
<template v-if="subItem.RebateType==1"> <template v-if="subItem.RebateType==1">
<span style="color:green">{{$t('ground.hanshui')}}</span> <span style="color:green">{{$t('ground.hanshui')}}</span>
</template> </template>
...@@ -345,6 +354,7 @@ ...@@ -345,6 +354,7 @@
</td> </td>
<!--返佣--> <!--返佣-->
<td> <td>
<div v-if="childItem.HouseType === 2">
<template v-if="childIndex<4"> <template v-if="childIndex<4">
<el-input class='w40' maxlength="2" @keyup.native="checkInteger(childItem,'RebateRatio')" <el-input class='w40' maxlength="2" @keyup.native="checkInteger(childItem,'RebateRatio')"
v-model='childItem.RebateRatio' v-model='childItem.RebateRatio'
...@@ -358,10 +368,11 @@ ...@@ -358,10 +368,11 @@
<template v-if="childIndex==4 && subItem.DriverGuideIsRebate==0"> <template v-if="childIndex==4 && subItem.DriverGuideIsRebate==0">
<el-input class='w40' maxlength="2" @keyup.native="checkInteger(childItem,'RebateRatio')" <el-input class='w40' maxlength="2" @keyup.native="checkInteger(childItem,'RebateRatio')"
v-model='childItem.RebateRatio' @input="calculationPrice(subItem)" :disabled="true"></el-input> % v-model='childItem.RebateRatio' @input="calculationPrice(subItem)" :disabled="true"></el-input> %
</template> </template></div>
</td> </td>
<!--返佣金额--> <!--返佣金额-->
<td> <td>
<div v-if="childItem.HouseType === 2">
<!--含税--> <!--含税-->
<template v-if="subItem.RebateType==1"> <template v-if="subItem.RebateType==1">
<!--税别--> <!--税别-->
...@@ -381,29 +392,29 @@ ...@@ -381,29 +392,29 @@
<template v-else> <template v-else>
{{(childItem.UnitPrice * (childItem.BookNum - childItem.HotelDiscount) * (1)*( childItem.RebateRatio / 100)).toFixed(2)}} {{(childItem.UnitPrice * (childItem.BookNum - childItem.HotelDiscount) * (1)*( childItem.RebateRatio / 100)).toFixed(2)}}
</template> </template>
</template> </template></div>
</td> </td>
<!-- 入汤税 --> <!-- 入汤税 -->
<td style="white-space:nowrap;" v-if="childIndex==0" :rowspan="6"> <td style="white-space:nowrap;">
{{subItem.InTangTax}} {{subItem.InTangTax}}
</td> </td>
<!-- 城市税 --> <!-- 城市税 -->
<td style="white-space:nowrap;" v-if="childIndex==0" :rowspan="6"> <td style="white-space:nowrap;">
{{subItem.CityTax}} {{subItem.CityTax}}
</td> </td>
<!-- 停车费 --> <!-- 停车费 -->
<td style="white-space:nowrap;" v-if="childIndex==0" :rowspan="6"> <td style="white-space:nowrap;">
{{subItem.ParkFee}} {{subItem.ParkFee}}
</td> </td>
<!-- 金额总计 --> <!-- 金额总计 -->
<td v-if="childIndex==0" :rowspan="6" style="white-space:nowrap;"> <td style="white-space:nowrap;">
{{subItem.TotalPrice}} {{subItem.TotalPrice}}
<template v-if="subItem.NewTotalPrice"> <template v-if="subItem.NewTotalPrice">
<br /><span style="color:red;">{{subItem.NewTotalPrice}}</span> <br /><span style="color:red;">{{subItem.NewTotalPrice}}</span>
</template> </template>
</td> </td>
<!-- 付款方式 --> <!-- 付款方式 -->
<td v-if="childIndex==0" :rowspan="6"> <td>
<table class="hotelTable"> <table class="hotelTable">
<tr> <tr>
<td width="70" style="text-align:right;">{{$t('hotel.hotel_Currency')}}:</td> <td width="70" style="text-align:right;">{{$t('hotel.hotel_Currency')}}:</td>
...@@ -444,7 +455,7 @@ ...@@ -444,7 +455,7 @@
<tr> <tr>
<td colspan="2" style="height:5px;"></td> <td colspan="2" style="height:5px;"></td>
</tr> </tr>
<tr> <!-- <tr>
<td width="70" style="text-align:right;">{{$t('ground.shurushubie')}}:</td> <td width="70" style="text-align:right;">{{$t('ground.shurushubie')}}:</td>
<td> <td>
<el-select class='w135 sel' v-model='subItem.TaxType' :placeholder="$t('pub.pleaseSel')" <el-select class='w135 sel' v-model='subItem.TaxType' :placeholder="$t('pub.pleaseSel')"
...@@ -454,7 +465,7 @@ ...@@ -454,7 +465,7 @@
<el-option :label="$t('pub.SB')" :value='2'></el-option> <el-option :label="$t('pub.SB')" :value='2'></el-option>
</el-select> </el-select>
</td> </td>
</tr> </tr> -->
<tr> <tr>
<td colspan="2" style="height:5px;"></td> <td colspan="2" style="height:5px;"></td>
</tr> </tr>
...@@ -478,7 +489,7 @@ ...@@ -478,7 +489,7 @@
<tr> <tr>
<td colspan="2" style="height:5px;"></td> <td colspan="2" style="height:5px;"></td>
</tr> </tr>
<tr> <!-- <tr>
<td width="70" style="text-align:right;">{{$t('ground.sidaoffkfs')}}:</td> <td width="70" style="text-align:right;">{{$t('ground.sidaoffkfs')}}:</td>
<td> <td>
<el-select class='w135 sel' v-model='subItem.DMCPayType' :placeholder="$t('pub.pleaseSel')" <el-select class='w135 sel' v-model='subItem.DMCPayType' :placeholder="$t('pub.pleaseSel')"
...@@ -495,7 +506,7 @@ ...@@ -495,7 +506,7 @@
<el-option :label="$t('ground.shuaka')" :value='11'></el-option> <el-option :label="$t('ground.shuaka')" :value='11'></el-option>
</el-select> </el-select>
</td> </td>
</tr> </tr> -->
<tr v-show="subItem.PayStyle==6"> <tr v-show="subItem.PayStyle==6">
<td colspan="2" style="height:5px;"></td> <td colspan="2" style="height:5px;"></td>
</tr> </tr>
...@@ -560,7 +571,7 @@ ...@@ -560,7 +571,7 @@
</table> </table>
</td> </td>
<!-- 操作 --> <!-- 操作 -->
<td v-if="childIndex==0" :rowspan="5"> <td>
<template v-if="subItem.OPState==1"> <template v-if="subItem.OPState==1">
<span class="Hotel_red">{{$t('salesModule.OPZD')}}</span> <span class="Hotel_red">{{$t('salesModule.OPZD')}}</span>
</template> </template>
...@@ -961,6 +972,11 @@ ...@@ -961,6 +972,11 @@
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;
// in list">
// <template v-for="(subItem,subIndex) in item.HotelOrderList">
// <tr v-for="(childItem,childIndex) in subItem.OrderDetailsList" :key="childIndex">
if (list != null && list.length > 0) { if (list != null && list.length > 0) {
list.forEach((item, sIndex) => { list.forEach((item, sIndex) => {
item.HotelOrderList.forEach(subItem => { item.HotelOrderList.forEach(subItem => {
...@@ -985,6 +1001,8 @@ ...@@ -985,6 +1001,8 @@
if (subItem.ReserveNo == '' || subItem.ReserveNo == null) { if (subItem.ReserveNo == '' || subItem.ReserveNo == null) {
subItem.ReserveNo = this.$route.query.NewCombinationNum; subItem.ReserveNo = this.$route.query.NewCombinationNum;
} }
subItem.OrderDetailsList = subItem.OrderDetailsList.filter(item => item.HouseType === 2)
console.log('subItem.OrderDetailsList', subItem.OrderDetailsList, subItem.OrderDetailsList.filter(item => item.HouseType === 2))
subItem.isShowPop = false; subItem.isShowPop = false;
subItem.ckedHotelName = ""; subItem.ckedHotelName = "";
//遍历手配 //遍历手配
...@@ -997,6 +1015,7 @@ ...@@ -997,6 +1015,7 @@
}) })
}); });
this.list = list; this.list = list;
console.log('this.list', this.list)
this.$forceUpdate(); this.$forceUpdate();
} }
} else { } else {
......
...@@ -334,7 +334,7 @@ ...@@ -334,7 +334,7 @@
</div> </div>
</td> </td>
<td> <td>
<div class="fz16 fbold linkspan" @click="goUrl('roomReservationsDetails',item,outItem,'订房详情')"> <div class="fz16 fbold linkspan" @click="goUrl([131,14, 90].includes(item.LineId) ? 'roomReservationsDetails' : 'roomReservationsDetailsNew',item,outItem,'订房详情')">
<span style="color: #4BCA81;" v-if="item.HotelResult==1"></span> <span style="color: #4BCA81;" v-if="item.HotelResult==1"></span>
<span class="colorE95252" v-else>{{item.HotelResult=='-1'?"x":"O"}}</span> <span class="colorE95252" v-else>{{item.HotelResult=='-1'?"x":"O"}}</span>
</div> </div>
...@@ -387,6 +387,9 @@ ...@@ -387,6 +387,9 @@
<span class="colorE95252" v-else>{{item.LeaderIsApply=='0'?"x":"O"}}</span> <span class="colorE95252" v-else>{{item.LeaderIsApply=='0'?"x":"O"}}</span>
</div> </div>
</td> </td>
<td :rowspan="2*outItem.PriceCommonList.length" v-if='index==0'>
<span>{{item.OfferId}}</span>
</td>
<td :rowspan="2*outItem.PriceCommonList.length" v-if='index==0' style="width: 150px;"> <td :rowspan="2*outItem.PriceCommonList.length" v-if='index==0' style="width: 150px;">
<el-popover width="100" trigger="click" popper-class="DMC_HotelPop"> <el-popover width="100" trigger="click" popper-class="DMC_HotelPop">
<table style="width: 100%;" border="0" cellspacing="1" class="dmcTotalTable"> <table style="width: 100%;" border="0" cellspacing="1" class="dmcTotalTable">
......
...@@ -379,6 +379,9 @@ ...@@ -379,6 +379,9 @@
<span class="colorE95252" v-else>{{item.LeaderIsApply=='0'?"x":"O"}}</span> <span class="colorE95252" v-else>{{item.LeaderIsApply=='0'?"x":"O"}}</span>
</div> </div>
</td> </td>
<td :rowspan="2*outItem.PriceCommonList.length" v-if='index==0'>
<span>{{item.OfferId}}</span>
</td>
<td :rowspan="2*outItem.PriceCommonList.length" v-if='index==0' style="width: 150px;"> <td :rowspan="2*outItem.PriceCommonList.length" v-if='index==0' style="width: 150px;">
<el-popover width="100" trigger="click" popper-class="DMC_HotelPop"> <el-popover width="100" trigger="click" popper-class="DMC_HotelPop">
<table style="width: 100%;" border="0" cellspacing="1" class="dmcTotalTable"> <table style="width: 100%;" border="0" cellspacing="1" class="dmcTotalTable">
......
...@@ -1361,6 +1361,14 @@ export default { ...@@ -1361,6 +1361,14 @@ export default {
title: '订房管理详情' title: '订房管理详情'
}, },
}, },
{
path: '/roomReservationsDetailsNew', //订房管理详情新版
name: 'roomReservationsDetailsNew',
component: resolve => require(['@/components/Hotel/roomReservationsDetailsNew'], resolve),
meta: {
title: '订房管理详情'
},
},
{ {
path: '/roomReservationsDetails_swt', //订房管理详情 swt旅行社 path: '/roomReservationsDetails_swt', //订房管理详情 swt旅行社
name: 'roomReservationsDetails_swt', name: 'roomReservationsDetails_swt',
......
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