Commit b86c0861 authored by 华国豪's avatar 华国豪 🙄
parents 510c0407 e7ade6b1
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
</tr> </tr>
<tr> <tr>
<th width="120">入住时间</th> <th width="120">入住时间</th>
<th width="200">选择酒店</th> <th width="200">选择酒店</th>
<th width="120">机位数(Y/E/F)</th> <th width="120">机位数(Y/E/F)</th>
<th width="120">占床/不占床</th> <th width="120">占床/不占床</th>
...@@ -38,9 +37,6 @@ ...@@ -38,9 +37,6 @@
<td v-if="childIndex==0&&subIndex==0" :rowspan="5*item.HotelOrderList.length" class="tdCenter"> <td v-if="childIndex==0&&subIndex==0" :rowspan="5*item.HotelOrderList.length" class="tdCenter">
{{item.UseTimeStr}} {{item.UseTimeStr}}
</td> </td>
<!-- <td v-if="childIndex==0" :rowspan="5" class="tdCenter">
<el-checkbox v-model='subItem.IsChecked'></el-checkbox>
</td> -->
<td v-if="childIndex==0" :rowspan="5" class="tdLeft"> <td v-if="childIndex==0" :rowspan="5" class="tdLeft">
<p class="link" style="word-break: normal;" @click="goUrlR('HotelManagement',HotelId.HotelId,'酒店管理')"> <p class="link" style="word-break: normal;" @click="goUrlR('HotelManagement',HotelId.HotelId,'酒店管理')">
{{subItem.HotelName}}</p> {{subItem.HotelName}}</p>
...@@ -67,7 +63,9 @@ ...@@ -67,7 +63,9 @@
{{subItem.HouseStatistics.HouseTypeList[childIndex].HouseGuestNum}} {{subItem.HouseStatistics.HouseTypeList[childIndex].HouseGuestNum}}
</td> </td>
<td v-if="childIndex==0" :rowspan="5" class="tdLeft"> <td v-if="childIndex==0" :rowspan="5" class="tdLeft">
{{subItem.NewHotelName}}
<template v-if="subItem.HotelName!=subItem.NewHotelName" ><span style="color:red;">{{subItem.NewHotelName}}</span></template>
<template v-else>{{subItem.NewHotelName}}</template>
</td> </td>
<td class="tdCenter"> <td class="tdCenter">
{{childItem.HouseTypeCount}} {{childItem.HouseTypeCount}}
...@@ -153,6 +151,7 @@ ...@@ -153,6 +151,7 @@
this.Loading = false; this.Loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.DataList = res.data.data.HotelOrderListReport; this.DataList = res.data.data.HotelOrderListReport;
console.log("this.DataList",this.DataList)
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -490,7 +490,7 @@ ...@@ -490,7 +490,7 @@
<span class="TCL-greenType">{{item.ClearOrderHour}}小时</span> <span class="TCL-greenType">{{item.ClearOrderHour}}小时</span>
</p> </p>
<p v-if="item.LineID==14 && item.HotelOrderListReports && item.HotelOrderListReports.length>0 "> <p v-if="item.LineID==14 && item.HotelOrderListReports && item.HotelOrderListReports.length>0 ">
<el-popover width="850" trigger="click" popper-class="TC_HotelPop"> <el-popover width="980" trigger="click" popper-class="TC_HotelPop">
<commonHotelInfo :HotelObj="item.HotelOrderListReports" :showHotelObj="showHotelObj" <commonHotelInfo :HotelObj="item.HotelOrderListReports" :showHotelObj="showHotelObj"
:TCID="item.TCID" :TCID="item.TCID"
:DMCNum="item.DMCNum" :TCNUM="item.TCNUM" :DMCNum="item.DMCNum" :TCNUM="item.TCNUM"
......
...@@ -30,80 +30,89 @@ ...@@ -30,80 +30,89 @@
<td> <td>
公司团号 公司团号
</td> </td>
<td :colspan="4" style="text-align:left;"> <td :colspan="5" style="text-align:left;">
<span style="padding-left:5px;">{{TCNUM}} ({{TCID}})</span> <span style="padding-left:5px;">{{TCNUM}} ({{TCID}})</span>
</td> </td>
<td> <td>
地接团号 地接团号
</td> </td>
<td :colspan="showHotelObj.ShowTaxType?5:3" style="text-align:left;"> <td :colspan="showHotelObj.ShowTaxType?6:4" style="text-align:left;">
<span style="padding-left:5px;">{{DMCNum}}</span> <span style="padding-left:5px;">{{DMCNum}}</span>
</td> </td>
</tr> </tr>
<tr> <tr>
<th width="120">日期</th> <th width="120">日期</th>
<th style="width:150px;">酒店</th> <th width="150">酒店</th>
<th style="width:150px;">更换酒店</th> <th width="150">更换酒店</th>
<th style="width:100px;">状态</th> <th width="120">酒店状态</th>
<th style="width:150px;" v-if="showHotelObj.showPrice">使用数量/价格</th> <th width="120">OP状态</th>
<th style="width:100px;" v-if="showHotelObj.showPay">付款方式</th> <th width="120">地接状态</th>
<th style="width:100px;" v-if="showHotelObj.ShowTaxType">税入/税别</th> <th width="110" v-if="showHotelObj.showPrice">数量<br />价格</th>
<th style="width:120px;" v-if="showHotelObj.ShowRebateRatio">返佣比例</th> <th width="120" v-if="showHotelObj.showPay">付款方式<br/>返佣比例</th>
<th style="width:130px" v-if="showHotelObj.showZhan">占房时间</th> <th width="130" v-if="showHotelObj.showZhan">占房时间</th>
<th style="width:100px" v-if="showHotelObj.showZhan">确认时间</th> <th width="100" v-if="showHotelObj.showZhan">确认时间</th>
<th style="width:80px;" v-if="showHotelObj.showPrice"> <th width="70" v-if="showHotelObj.showPrice">
日志 日志
</th> </th>
</tr> </tr>
<template v-for="(hotelItem,index) in HotelObj"> <template v-for="(hotelItem,index) in HotelObj">
<tr v-for="(hotelSubItem,hotelSubIndex) in hotelItem.SubList"> <tr v-for="(hotelSubItem,hotelSubIndex) in hotelItem.SubList">
<td width="120" v-if="hotelSubIndex==0" :rowspan="hotelItem.SubList.length"> <td width="120" v-if="hotelSubIndex==0" :rowspan="hotelItem.SubList.length" style="white-space:nowrap; ">
{{hotelItem.UseDay}} {{hotelItem.UseDay}}
</td> </td>
<td style="text-align:left;padding-left:3px;"> <td style="text-align:left;padding-left:3px;">
{{hotelSubItem.HotelName}} <template v-if="hotelSubItem.HotelName!=hotelSubItem.NewHotelName && hotelSubItem.NewHotelName!=''">
<span style="text-decoration:line-through"> {{hotelSubItem.HotelName}}</span>
</template>
<template v-else>
{{hotelSubItem.HotelName}}
</template>
</td> </td>
<td style="text-align:left;padding-left:3px;color:red"> <td style="text-align:left;padding-left:3px;color:red">
{{hotelSubItem.HotelName!=hotelSubItem.NewHotelName?""+hotelSubItem.NewHotelName:""}} {{hotelSubItem.HotelName!=hotelSubItem.NewHotelName?""+hotelSubItem.NewHotelName:""}}
</td> </td>
<td style="text-align:left;padding-left:3px;"> <td>
<template v-if="hotelSubItem.OPState==1||hotelSubItem.DMCState==1">
<a style="color:green">保证入住</a>
</template>
</td>
<td>
<span v-if="hotelSubItem.HotelName!='温馨的家'"> <span v-if="hotelSubItem.HotelName!='温馨的家'">
<template v-if="hotelSubItem.OPState==1"> <template v-if="hotelSubItem.OPState==1">
<a style="color:green">OP-指定</a> <a style="color:green">OP-指定</a>
</template> </template>
<template v-else-if="hotelSubItem.OPState==2 && hotelSubItem.DMCState==0 "> <template v-else-if="hotelSubItem.OPState==2">
<a style="color:red">OP-暂定</a> <a style="color:red">OP-暂定</a>
</template> </template>
<template v-else> </span>
<template v-if="hotelSubItem.DMCState==1"> </td>
<a style="color:green">地接-OK</a> <td>
</template> <span v-if="hotelSubItem.HotelName!='温馨的家'">
<template v-else-if="hotelSubItem.DMCState==2"> <template v-if="hotelSubItem.DMCState==1">
<a style="color:red">地接-暂定</a> <a style="color:green">地接-OK</a>
</template> </template>
<template v-else-if="hotelSubItem.DMCState==0"> <template v-else-if="hotelSubItem.DMCState==2">
<a style="color:red">地接-未操作</a> <a style="color:red">地接-暂定</a>
</template> </template>
<template v-else-if="hotelSubItem.DMCState==0">
<a style="color:red">地接-未操作</a>
</template> </template>
</span> </span>
</td> </td>
<td v-if="showHotelObj.showPrice"> <td v-if="showHotelObj.showPrice">
<a v-if="(hotelSubItem.OPState==1|| hotelSubItem.OPState==2 || hotelSubItem.DMCState==1 )"> <a v-if="(hotelSubItem.OPState==1|| hotelSubItem.OPState==2 || hotelSubItem.DMCState==1 )">
{{hotelSubItem.UseCount>0? hotelSubItem.UseCount+" 间" :""}} {{hotelSubItem.UseCount>0? hotelSubItem.UseCount+" 间" :""}}
<br />
{{hotelSubItem.CostPriceNew>0?" 价格:"+hotelSubItem.CostPriceNew:(hotelSubItem.CostPrice!=0?" 价格:"+hotelSubItem.CostPrice:"")}} {{hotelSubItem.CostPriceNew>0?" 价格:"+hotelSubItem.CostPriceNew:(hotelSubItem.CostPrice!=0?" 价格:"+hotelSubItem.CostPrice:"")}}
</a> </a>
</td> </td>
<td v-if="showHotelObj.showPay"> <td v-if="showHotelObj.showPay">
{{hotelSubItem.PayTypeStr}} {{hotelSubItem.PayTypeStr}} <template v-if="hotelSubItem.TaxType==1">税入</template>
</td>
<td v-if="showHotelObj.ShowTaxType">
<template v-if="hotelSubItem.TaxType==1">税入</template>
<template v-if="hotelSubItem.TaxType==2">税别</template> <template v-if="hotelSubItem.TaxType==2">税别</template>
{{hotelSubItem.RebateRatio}}
</td> </td>
<td v-if="showHotelObj.ShowRebateRatio">
{{hotelSubItem.RebateRatio}} <td v-if="showHotelObj.showZhan" style="white-space:nowrap; ">
</td>
<td v-if="showHotelObj.showZhan">
<template v-if="hotelSubItem.OPState==1||(hotelSubItem.OPState==2 && hotelSubItem.DMCState==0)"> <template v-if="hotelSubItem.OPState==1||(hotelSubItem.OPState==2 && hotelSubItem.DMCState==0)">
{{hotelSubItem.CreateDateStr}} {{hotelSubItem.CreateDateStr}}
</template> </template>
......
<style>
</style>
<template>
<div class="commonPriceHotelInfo">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="singeRowTable" v-loading="loading">
<tr>
<th width="100">日期</th>
<th width="135">占房时间</th>
<th width="120">团期</th>
<th width="80">总库存</th>
<th width="80">使用库存</th>
<th width="80">状态</th>
</tr>
<template v-if="HotelPriceList.length>0">
<tr v-for="(item,index) in HotelPriceList">
<td>
{{item.UseTimeStr}}
</td>
<td>
{{item.CreateTimeStr}}
</td>
<td>
{{item.TCNUM}}
</td>
<td>
{{item.Inventory}}
</td>
<td>
{{item.LastUseNum}}
</td>
<td>
<template v-if="item.Status==1"><span style="color:green;">OK</span></template>
<template v-else><span style="color:red;">暂定</span></template>
</td>
</tr>
</template>
<template v-else>
<tr>
<td colspan="6">
<span style="color:red;"> 暂无库存使用记录.</span>
</td>
</tr>
</template>
</table>
</div>
</template>
<script>
export default {
data() {
return {
loading: false,
HotelPriceList: [],
queryMsg: {
HotelId: 0,
UseTime: "",
}
};
},
methods: {
//获取日志
getHotelPriceList(HotelId, timeStr) {
this.HotelPriceList = [];
this.loading = true;
if (HotelId) {
this.queryMsg.HotelId = HotelId;
}
if (timeStr) {
this.queryMsg.UseTime = timeStr;
}
this.apipost('travel_get_GetHotelUsePriceListService', this.queryMsg, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.HotelPriceList = res.data.data;
}
}, err => {})
},
},
mounted() {}
};
</script>
...@@ -305,7 +305,7 @@ ...@@ -305,7 +305,7 @@
<span class="colorE95252" v-else>{{item.HotelResult=='-1'?"x":"O"}}</span> <span class="colorE95252" v-else>{{item.HotelResult=='-1'?"x":"O"}}</span>
</div> </div>
<p v-if="item.LineId==14 && item.PriceHotelResult && item.PriceHotelResult.length>0"> <p v-if="item.LineId==14 && item.PriceHotelResult && item.PriceHotelResult.length>0">
<el-popover width="920" trigger="click" popper-class="DMC_HotelPop"> <el-popover width="1100" trigger="click" popper-class="DMC_HotelPop">
<commonHotelInfo :HotelObj="item.PriceHotelResult" :showHotelObj="showHotelObj" :TCID="item.TCID" <commonHotelInfo :HotelObj="item.PriceHotelResult" :showHotelObj="showHotelObj" :TCID="item.TCID"
:DMCNum="item.DMCNum" :TCNUM="item.TCNUMS" :DMCNum="item.DMCNum" :TCNUM="item.TCNUMS"
@SetShouPeiShu="SetShouPeiShu(item.TCID,item.ShouPeiStatus)"></commonHotelInfo> @SetShouPeiShu="SetShouPeiShu(item.TCID,item.ShouPeiStatus)"></commonHotelInfo>
......
...@@ -810,7 +810,7 @@ ...@@ -810,7 +810,7 @@
<th width="240">酒店情况</th> <th width="240">酒店情况</th>
<th width="100">占房时间</th> <th width="100">占房时间</th>
<th width="100">更换酒店</th> <th width="100">更换酒店</th>
<th width="60">操作</th> <th width="120">操作</th>
</tr> </tr>
<template v-for="(subItem,subIndex) in priceData.PriceHotelList"> <template v-for="(subItem,subIndex) in priceData.PriceHotelList">
<tr v-for="(childItem,childIndex) in subItem.SubList"> <tr v-for="(childItem,childIndex) in subItem.SubList">
...@@ -859,6 +859,12 @@ ...@@ -859,6 +859,12 @@
<span v-if="childItem.UseCount>0 && subItem.SubList.length==1"> <span v-if="childItem.UseCount>0 && subItem.SubList.length==1">
<span style="color:red;white-space:nowrap;cursor:pointer;" @click="DeleteStock(subItem)">删除</span> <span style="color:red;white-space:nowrap;cursor:pointer;" @click="DeleteStock(subItem)">删除</span>
</span> </span>
<span >
<el-popover width="700" trigger="click" popper-class="DMC_HotelPop">
<commonPHInfo :name='"comPriceHotelInfo"+subIndex+childIndex' :ref='"comPriceHotelInfo"+subIndex+childIndex' ></commonPHInfo>
<span slot="reference" class="price" style="cursor:pointer;text-decoration:underline;" @click="GetHotelUsePriceList(childItem.HotelId,subItem.UseDay,subIndex,childIndex)">库存情况</span>
</el-popover>
</span>
</td> </td>
</tr> </tr>
</template> </template>
...@@ -913,6 +919,7 @@ ...@@ -913,6 +919,7 @@
</div> </div>
</template> </template>
<script> <script>
import commonPHlInfo from "../../commonPage/commonPriceHotelInfo.vue";
import TravelPriceFlightList from "../TravelGroupControl/TravelPriceFlightList.vue"; import TravelPriceFlightList from "../TravelGroupControl/TravelPriceFlightList.vue";
export default { export default {
props: ["priceList", "priceIsDirect", "OfferList", "PostConfig", "modifyTcid", "TeamType"], props: ["priceList", "priceIsDirect", "OfferList", "PostConfig", "modifyTcid", "TeamType"],
...@@ -1008,6 +1015,12 @@ ...@@ -1008,6 +1015,12 @@
}; };
}, },
methods: { methods: {
//调用子组件方法
GetHotelUsePriceList(HotelId,UseDay,index,hotelSubIndex)
{
let str = `comPriceHotelInfo${index}${hotelSubIndex}`;
this.$refs[str][0].getHotelPriceList(HotelId, UseDay);
},
//点击折叠 //点击折叠
fold() { fold() {
if (this.isFold == "") { if (this.isFold == "") {
...@@ -1736,7 +1749,8 @@ ...@@ -1736,7 +1749,8 @@
} }
}, },
components: { components: {
TravelPriceFlightList: TravelPriceFlightList TravelPriceFlightList: TravelPriceFlightList,
commonPHInfo:commonPHlInfo
} }
}; };
......
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