Commit 4ddc801b authored by huangyuanyuan's avatar huangyuanyuan
parents c507a6e4 ad25c8fc
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<th width="100">房间类型</th> <th width="100">房间类型</th>
<th width="70">房间数</th> <th width="70">房间数</th>
<th width="70">房间<br />人数</th> <th width="70">房间<br />人数</th>
<th width="110">修改酒店</th> <th width="170">修改酒店/供应商</th>
<th width="80">房间<br />预定数</th> <th width="80">房间<br />预定数</th>
<th width="80">预定人数</th> <th width="80">预定人数</th>
<th width="80">尚差<br />房间数</th> <th width="80">尚差<br />房间数</th>
...@@ -114,21 +114,43 @@ ...@@ -114,21 +114,43 @@
{{subItem.HouseStatistics.HouseTypeList[childIndex].HouseGuestNum}} {{subItem.HouseStatistics.HouseTypeList[childIndex].HouseGuestNum}}
</td> </td>
<td v-if="childIndex==0" :rowspan="5"> <td v-if="childIndex==0" :rowspan="5">
<div class="w150"> <table class="hotelTable">
<tr>
<td width="70" style="text-align:right;">酒店</td>
<td>
<!--:disabled="subItem.OPState==1"--> <!--:disabled="subItem.OPState==1"-->
<el-select class='w120 sel' v-model='subItem.NewHotelId' filterable
<el-select class='w120 sel' v-model='subItem.NewHotelId' filterable :placeholder="$t('pub.pleaseSel')" :placeholder="$t('pub.pleaseSel')" @visible-change='getHotelList(subItem)'
@change='sendValue(subItem)'>
<el-select class='w120 sel' v-model='subItem.NewHotelId' filterable :placeholder="$t('pub.pleaseSel')"
@visible-change='getHotelList(subItem)' @change='sendValue(subItem)'>
<el-option v-for='itemHotel in subItem.hotelList' :label='itemHotel.Name' :value='itemHotel.ID' <el-option v-for='itemHotel in subItem.hotelList' :label='itemHotel.Name' :value='itemHotel.ID'
:key='itemHotel.ID'> :key='itemHotel.ID'>
<span style="float: left">{{itemHotel.Name}}</span> <span style="float: left">{{itemHotel.Name}}</span>
<span style="float: right; color:red; font-size: 13px">{{itemHotel.Inventory }}</span> <span style="float: right; color:red; font-size: 13px">{{itemHotel.Inventory }}</span>
</el-option> </el-option>
</el-select> </el-select>
</td>
</tr>
<tr>
<td colspan="2" style="height:5px;"></td>
</tr>
<tr>
<td width="70" style="text-align:right;">
供应商
</td>
<td>
<el-select class='w120 sel' v-model='subItem.SupplierId' filterable placeholder="请选择供应商">
<el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
<el-option v-for="(SupplierItem,Supplierindex) in SupplierList" :key="Supplierindex"
:label="SupplierItem.Name" :value="SupplierItem.ID">
</el-option>
</el-select>
</td>
</tr>
<tr>
<td colspan="2" style="height:5px;"></td>
</tr>
<tr>
<td colspan="2">
<p style="padding-top: 5px;"> <p style="padding-top: 5px;">
<a v-if="subItem.ContractUrl" target="_blank" :href="subItem.ContractUrl">手配书</a> <a v-if="subItem.ContractUrl" target="_blank" :href="subItem.ContractUrl">手配书</a>
</p> </p>
...@@ -136,7 +158,9 @@ ...@@ -136,7 +158,9 @@
<el-button size="small" type="danger" @click='getItem(index, subIndex)'> <el-button size="small" type="danger" @click='getItem(index, subIndex)'>
{{!subItem.ContractUrl ? '上传手配书' : '重新上传手配书'}}</el-button> {{!subItem.ContractUrl ? '上传手配书' : '重新上传手配书'}}</el-button>
</el-upload> </el-upload>
</div> </td>
</tr>
</table>
</td> </td>
<!-- 房间数 --> <!-- 房间数 -->
<td> <td>
...@@ -248,7 +272,7 @@ ...@@ -248,7 +272,7 @@
<!-- 操作 --> <!-- 操作 -->
<td v-if="childIndex==0" :rowspan="5"> <td v-if="childIndex==0" :rowspan="5">
<!--v-if="subItem.OPState!=1"--> <!--v-if="subItem.OPState!=1"-->
<template v-if="subItem.OPState!=1"> <template v-if="subItem.OPState==1">
<span class="Hotel_red">OP选房确认</span> <span class="Hotel_red">OP选房确认</span>
</template> </template>
<template v-if="IsOperation!=1"> <template v-if="IsOperation!=1">
...@@ -300,7 +324,9 @@ ...@@ -300,7 +324,9 @@
checkedsubIndex: '', checkedsubIndex: '',
loading: false, loading: false,
boxHeight: 0, boxHeight: 0,
IsOperation:'', IsOperation: '',
//供应商列表
SupplierList: [],
} }
}, },
methods: { methods: {
...@@ -480,7 +506,7 @@ ...@@ -480,7 +506,7 @@
obj.Tel = ckedObj.Tel; obj.Tel = ckedObj.Tel;
obj.NewHotelName = ckedObj.Name; obj.NewHotelName = ckedObj.Name;
obj.PayStyle = ckedObj.PayStyle; obj.PayStyle = ckedObj.PayStyle;
obj.PayStyleExt=ckedObj.PayStyle; obj.PayStyleExt = ckedObj.PayStyle;
} else { } else {
obj.Address = ''; obj.Address = '';
obj.Tel = ''; obj.Tel = '';
...@@ -584,7 +610,17 @@ ...@@ -584,7 +610,17 @@
}) })
this.ClickItem.ContractUrl = str != "" ? str.substring(0, str.length - 1) : str; this.ClickItem.ContractUrl = str != "" ? str.substring(0, str.length - 1) : str;
}); });
},
// 获取供应商
initSupplier() {
this.apipost("supplier_post_GetAllList", {
Type: 1,
Country: 651
}, res => {
if (res.data.resultCode === 1) {
this.SupplierList = res.data.data;
}
}, err => {});
}, },
}, },
mounted() { mounted() {
...@@ -595,6 +631,7 @@ ...@@ -595,6 +631,7 @@
let height = window.innerHeight - 65 - 55; let height = window.innerHeight - 65 - 55;
this.boxHeight = height; this.boxHeight = height;
this.offsetwidth = width; this.offsetwidth = width;
this.initSupplier();
this.getList(); this.getList();
} }
} }
......
<style> <style>
@import "../../assets/css/DMC.css"; @import "../../assets/css/DMC.css";
.title{width: 100%;display: -webkit-box;margin-top: 20px }
.tu_img{width: 100%;display: -webkit-box;padding: 20px 50px}
</style> </style>
<template> <template>
<div class="flexOne changInfo"> <div class="flexOne changInfo">
...@@ -74,8 +72,8 @@ ...@@ -74,8 +72,8 @@
</el-select> </el-select>
</span> </span>
</div> </div>
<!-- <span class="resource-lititle sheshi">酒店优惠 <el-button icon="el-icon-plus" circle @click="addAir"></el-button>--> <!-- <span class="resource-lititle sheshi">酒店优惠 <el-button icon="el-icon-plus" circle @click="addAir"></el-button>-->
<!-- </span>--> <!-- </span>-->
<div class="jiudianyouhuiDiv"> <div class="jiudianyouhuiDiv">
<el-row v-for="(list,index) in addMsg.DiscountList" :key="index"> <el-row v-for="(list,index) in addMsg.DiscountList" :key="index">
...@@ -218,10 +216,10 @@ ...@@ -218,10 +216,10 @@
</el-form-item> </el-form-item>
</div> </div>
</div> </div>
<div class="title"> <div style="width: 100%;display: -webkit-box;margin-top: 20px ">
<span class="resource-lititle" style="margin-left: 30px">{{$t('hotel.hotel_imgintroduce')}}</span> <span class="resource-lititle" style="margin-left: 30px">{{$t('hotel.hotel_imgintroduce')}}</span>
</div> </div>
<div class="tu_img"> <div style="width: 100%;display: -webkit-box;padding: 20px 50px">
<div class="resource-list"> <div class="resource-list">
<div class="resource-imglist clearfix"> <div class="resource-imglist clearfix">
<div class="re-img" v-for="(item,index) in HotelImageArray" :key="item.subCode"> <div class="re-img" v-for="(item,index) in HotelImageArray" :key="item.subCode">
......
...@@ -280,7 +280,7 @@ ...@@ -280,7 +280,7 @@
</li> </li>
</ul> </ul>
</div> </div>
<div class="hotelResource clearfix" v-loading="loading"> <div class="hotelResource clearfix" v-loading="loading" style="padding:0 20px;">
<div class="resourceList" v-for="(item,index) in tableData" :key="index"> <div class="resourceList" v-for="(item,index) in tableData" :key="index">
<div class="reTopInfo" :class="{'comCursorUrl':item.URL}" @click="OpenNewUrl(item.URL)"> <div class="reTopInfo" :class="{'comCursorUrl':item.URL}" @click="OpenNewUrl(item.URL)">
<img v-if="!item.PicPath" src="../../assets/img/bg_c3@3x.png"> <img v-if="!item.PicPath" src="../../assets/img/bg_c3@3x.png">
......
...@@ -76,10 +76,10 @@ ...@@ -76,10 +76,10 @@
</ul> </ul>
</div> </div>
<div style="width: 100%;min-height:200px; overflow-x: auto;padding-bottom: 10px; " class="HotelQueryList" <div style="width: 100%;min-height:200px; overflow-x: auto;padding:0 20px; " class="HotelQueryList"
v-loading="loading"> v-loading="loading">
<div class="hotelProductManage2_tableBox" style="margin-bottom:20px;"> <div class="hotelProductManage2_tableBox" style="margin-bottom:20px;">
<span style="color:#000000;background-color: #ff3737;padding:2px 4px;border-radius:5px">红日</span> <span style="color:#fff;background-color: #ff3737;padding:2px 4px;border-radius:5px">红日</span>
<span style="color:#000000;background-color: #ff99cc;padding:2px 4px;border-radius:5px">旺季</span> <span style="color:#000000;background-color: #ff99cc;padding:2px 4px;border-radius:5px">旺季</span>
<span style="color:#000000;background-color: #bcd6ee;padding:2px 4px;border-radius:5px">平季</span> <span style="color:#000000;background-color: #bcd6ee;padding:2px 4px;border-radius:5px">平季</span>
<span style="color:#000000;background-color: #DDDDDD;padding:2px 4px;border-radius:5px">淡季</span> <span style="color:#000000;background-color: #DDDDDD;padding:2px 4px;border-radius:5px">淡季</span>
...@@ -581,6 +581,7 @@ ...@@ -581,6 +581,7 @@
.classHong { .classHong {
background-color: rgb(255, 55, 55); background-color: rgb(255, 55, 55);
color:#fff;
} }
.classWang { .classWang {
......
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
</style> </style>
<template> <template>
<div class="flexOne hotelSalesBoard"> <div class="flexOne hotelSalesBoard" style="padding:0 20px;">
<div class="query-box Plan_Query"> <div class="query-box Plan_Query">
<ul> <ul>
<li> <li>
......
...@@ -29,12 +29,13 @@ ...@@ -29,12 +29,13 @@
<el-input v-model='msg.TCNUM'></el-input> <el-input v-model='msg.TCNUM'></el-input>
</span> </span>
</li> </li>
<li><span><em>日期</em> <li>
<el-date-picker v-model='msg.StartDate' class='w135' value-format="yyyy-MM-dd" type="date" <span>
:picker-options="pickerBeginDateBefore"></el-date-picker> <em>酒店</em>
- <el-select v-model="msg.HotelId" :placeholder="$t('pub.pleaseSel')" filterable>
<el-date-picker v-model='msg.EndDate' class='w135' value-format="yyyy-MM-dd" type="date" <el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
:picker-options="pickerBeginDateAfter"></el-date-picker> <el-option v-for="item in HotelList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</span> </span>
</li> </li>
<li><span> <li><span>
...@@ -86,11 +87,12 @@ ...@@ -86,11 +87,12 @@
</li> </li>
<li> <li>
<span> <span>
<em>酒店</em> <em>日期</em>
<el-select v-model="msg.HotelId" :placeholder="$t('pub.pleaseSel')" filterable> <el-date-picker v-model='msg.StartDate' class='w135' value-format="yyyy-MM-dd" type="date"
<el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option> :picker-options="pickerBeginDateBefore"></el-date-picker>
<el-option v-for="item in HotelList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option> -
</el-select> <el-date-picker v-model='msg.EndDate' class='w135' value-format="yyyy-MM-dd" type="date"
:picker-options="pickerBeginDateAfter"></el-date-picker>
</span> </span>
</li> </li>
<li> <li>
...@@ -100,7 +102,7 @@ ...@@ -100,7 +102,7 @@
</ul> </ul>
</div> </div>
<div style="width: 100%; overflow-x: auto;padding-bottom: 10px; " class="ownScrollbarStyle"> <div style="width: 100%; overflow-x: auto;padding-bottom: 10px; " class="ownScrollbarStyle">
<div style="font-size:12px;padding:2px 4px 3px 4px; color:red">注意事项:每次导出数据最好不要超过一个月。</div> <div style="font-size:12px;padding:2px 4px 3px 20px; color:red">注意事项:每次导出数据最好不要超过一个月。</div>
<table border="0" cellspacing="1" cellpadding="0" class="roomQuery_SupplierTable" v-loading='loading'> <table border="0" cellspacing="1" cellpadding="0" class="roomQuery_SupplierTable" v-loading='loading'>
<tr> <tr>
<th width="100">序号</th> <th width="100">序号</th>
...@@ -119,7 +121,7 @@ ...@@ -119,7 +121,7 @@
<template v-for="(item,index) in dataList"> <template v-for="(item,index) in dataList">
<template v-for="(subItem,subIndex) in item.subList"> <template v-for="(subItem,subIndex) in item.subList">
<tr v-for="(childItem,childIndex) in subItem.hotelList" :class="{roomQuerySplitTrCss:index%2!=0}"> <tr v-for="(childItem,childIndex) in subItem.hotelList" :class="{roomQuerySplitTrCss:index%2!=0}">
<td v-if="childIndex==0&&subIndex==0" :rowspan="subItem.hotelList.length*item.subList.length"> <td v-if="childIndex==0&&subIndex==0" :rowspan="item.RowSpan">
{{item.NewCombinationNum}} {{item.NewCombinationNum}}
</td> </td>
<td v-if="childIndex==0" :rowspan="subItem.hotelList.length"> <td v-if="childIndex==0" :rowspan="subItem.hotelList.length">
...@@ -142,9 +144,14 @@ ...@@ -142,9 +144,14 @@
</td> </td>
<td> <td>
<span style="color:red;"> <span style="color:red;">
<template v-if="childItem.SupplierId==UserInfo.SupplierId">
<template v-if="childItem.OPState==1">[OP选房-OK]</template> <template v-if="childItem.OPState==1">[OP选房-OK]</template>
<template v-else>{{childItem.DMCState==1?"[地接-OK]":(childItem.DMCState==0?"[未操作]":"[暂定]")}} <template v-else>{{childItem.DMCState==1?"[地接-OK]":(childItem.DMCState==0?"[未操作]":"[暂定]")}}
</template> </template>
</template>
<template v-else>
[组团社自理]
</template>
</span> </span>
</td> </td>
<td v-if="childIndex==0" :rowspan="subItem.hotelList.length"> <td v-if="childIndex==0" :rowspan="subItem.hotelList.length">
...@@ -194,6 +201,7 @@ ...@@ -194,6 +201,7 @@
PriceStatus: 0, PriceStatus: 0,
CombinationNum: '' CombinationNum: ''
}, },
UserInfo:{},
//分公司类表 //分公司类表
companyList: [], companyList: [],
//酒店列表 //酒店列表
...@@ -334,6 +342,7 @@ ...@@ -334,6 +342,7 @@
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; this.dataList = res.data.data.pageData;
console.log("dataList",this.dataList);
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
...@@ -449,6 +458,7 @@ ...@@ -449,6 +458,7 @@
}, },
}, },
mounted() { mounted() {
this.UserInfo=this.getLocalStorageSupplier();
let myDate = new Date(); let myDate = new Date();
let nowDate = let nowDate =
myDate.getFullYear() + myDate.getFullYear() +
...@@ -482,8 +492,14 @@ ...@@ -482,8 +492,14 @@
background: #eee !important; background: #eee !important;
} }
.roomQuery_SupplierTable { .roomQuery_SupplierTable{
background: #ccc; width: 98%;
font-size: 12px;
color: #333;
margin: auto;
border-collapse: collapse;
background-color: #fff;
border: 1px solid #d1d1d1;
} }
.roomQuery_SupplierTable tr th { .roomQuery_SupplierTable tr th {
...@@ -493,17 +509,11 @@ ...@@ -493,17 +509,11 @@
color: #333; color: #333;
} }
.roomQuery_SupplierTable tr {
background: #fff;
text-align: center;
}
.roomQuery_SupplierTable tr td { .roomQuery_SupplierTable tr td {
font-size: 12px; border: 1px solid #d1d1d1;
line-height: 22px; text-align: center;
height: 22px; padding: 10px 0;
; }
}
.roomQuery_SupplierTable .tdLeft { .roomQuery_SupplierTable .tdLeft {
text-align: left; text-align: left;
......
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