Commit 32dade9f authored by 黄奎's avatar 黄奎

页面修改

parent 22828bd7
...@@ -347,8 +347,8 @@ ...@@ -347,8 +347,8 @@
<span>入汤税: {{ moneyFormat(y.PriceInTangTax) }}/人</span> <span>入汤税: {{ moneyFormat(y.PriceInTangTax) }}/人</span>
</div> </div>
<div class="content-Car-heji"> <div class="content-Car-heji">
<span>合计:<span> <span>合计:<span>{{y.CurrencyCode}}
<!-- ¥ -->{{ moneyFormat(y.HotelMoeny) }}</span></span> {{ moneyFormat(y.HotelMoeny) }}</span></span>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -5,19 +5,20 @@ ...@@ -5,19 +5,20 @@
<li> <li>
<span> <span>
<em>{{$t('system.quety_area')}}</em> <em>{{$t('system.quety_area')}}</em>
<el-select class="option" v-model="msg.Province" filterable @change="getProvinceList(msg.Province,2)" <el-select class="option" v-model="msg.Province" filterable @change="getCityList(msg.Province)"
:placeholder="$t('hotel.hotel_province')"> :placeholder="$t('hotel.hotel_province')" clearable @clear="msg.Province=0,msg.City=0">
<el-option :key="0" :value="0" :label="$t('pub.pleaseSel')"></el-option> <el-option :key="0" :value="0" :label="$t('pub.pleaseSel')"></el-option>
<el-option v-for="item in provinceList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option> <el-option v-for="item in provinceList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select> </el-select>
<el-select class="option" v-model="msg.City" filterable :placeholder="$t('hotel.hotel_city')"> <el-select class="option" v-model="msg.City" filterable :placeholder="$t('hotel.hotel_city')" clearable @clear="msg.City=0">
<el-option :key="0" :value="0" :label="$t('pub.pleaseSel')"></el-option> <el-option :key="0" :value="0" :label="$t('pub.pleaseSel')"></el-option>
<el-option v-for="item in cityList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option> <el-option v-for="item in cityList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select> </el-select>
</span> </span>
</li> </li>
<li><span><em>{{$t('pub.date')}}</em> <li><span><em>{{$t('pub.date')}}</em>
<el-date-picker disabled style="width: 135px;" v-model='msg.StartDate' value-format="yyyy-MM-dd" type="date"> <el-date-picker disabled style="width: 135px;" v-model='msg.StartDate' value-format="yyyy-MM-dd"
type="date">
</el-date-picker> </el-date-picker>
<el-date-picker disabled style="width: 135px;" v-model='msg.EndDate' value-format="yyyy-MM-dd" type="date"> <el-date-picker disabled style="width: 135px;" v-model='msg.EndDate' value-format="yyyy-MM-dd" type="date">
</el-date-picker> </el-date-picker>
...@@ -26,8 +27,8 @@ ...@@ -26,8 +27,8 @@
<li> <li>
<span> <span>
<em>{{$t('hotel.hotel')}}</em> <em>{{$t('hotel.hotel')}}</em>
<el-select v-model="msg.HotelChooseArray" :placeholder="$t('pub.pleaseSel')" class="multiple_input HotelChooseArray" <el-select v-model="msg.HotelChooseArray" :placeholder="$t('pub.pleaseSel')"
filterable multiple collapse-tags :multiple-limit="3"> class="multiple_input HotelChooseArray" filterable multiple collapse-tags :multiple-limit="3">
<el-option v-for="item in HotelList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option> <el-option v-for="item in HotelList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select> </el-select>
</span> </span>
...@@ -61,12 +62,18 @@ ...@@ -61,12 +62,18 @@
<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-bottom: 10px; " 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">{{$t('objFill.hongri')}}</span> <span
<span style="color:#000000;background-color: #ff99cc;padding:2px 4px;border-radius:5px">{{$t('objFill.wanji')}}</span> style="color:#000000;background-color: #ff3737;padding:2px 4px;border-radius:5px">{{$t('objFill.hongri')}}</span>
<span style="color:#000000;background-color: #bcd6ee;padding:2px 4px;border-radius:5px">{{$t('objFill.pingji')}}</span> <span
<span style="color:#000000;background-color: #DDDDDD;padding:2px 4px;border-radius:5px">{{$t('objFill.danji')}}</span> style="color:#000000;background-color: #ff99cc;padding:2px 4px;border-radius:5px">{{$t('objFill.wanji')}}</span>
<span style="color:#000000;background-color: #02F78E;padding:2px 4px;border-radius:5px">{{$t('objFill.tiebiejia')}}</span> <span
<span style="color:#000000;background-color: #808000;padding:2px 4px;border-radius:5px">{{$t('objFill.xingqianri')}}</span> style="color:#000000;background-color: #bcd6ee;padding:2px 4px;border-radius:5px">{{$t('objFill.pingji')}}</span>
<span
style="color:#000000;background-color: #DDDDDD;padding:2px 4px;border-radius:5px">{{$t('objFill.danji')}}</span>
<span
style="color:#000000;background-color: #02F78E;padding:2px 4px;border-radius:5px">{{$t('objFill.tiebiejia')}}</span>
<span
style="color:#000000;background-color: #808000;padding:2px 4px;border-radius:5px">{{$t('objFill.xingqianri')}}</span>
</div> </div>
<template v-if="isShow"> <template v-if="isShow">
<el-table v-if="dataList.length>0" :data="dataList" style="width:100%" border v-loading='loading' <el-table v-if="dataList.length>0" :data="dataList" style="width:100%" border v-loading='loading'
...@@ -94,16 +101,13 @@ ...@@ -94,16 +101,13 @@
<template v-for="childItem in scope.row.subList[index].PriceList"> <template v-for="childItem in scope.row.subList[index].PriceList">
<div :class="getClass(1,childItem.InventoryType)" <div :class="getClass(1,childItem.InventoryType)"
:style="{width:(100/scope.row.subList[index].PriceList.length)+'%'}" class="CostPriceHover"> :style="{width:(100/scope.row.subList[index].PriceList.length)+'%'}" class="CostPriceHover">
<el-popover <el-popover placement="bottom" width="300" trigger="hover">
placement="bottom" <SamplePriceList v-if="
width="300"
trigger="hover">
<SamplePriceList
v-if="
scope.row.subList[index].PriceList[0].BidroomPrice>0|| scope.row.subList[index].PriceList[0].BidroomPrice>0||
scope.row.subList[index].PriceList[0].SingleroomPrice>0|| scope.row.subList[index].PriceList[0].SingleroomPrice>0||
scope.row.subList[index].PriceList[0].AddBedPrice>0|| scope.row.subList[index].PriceList[0].AddBedPrice>0||
scope.row.subList[index].PriceList[0].GuideRoomPrice>0" :price="scope.row.subList[index]"></SamplePriceList> scope.row.subList[index].PriceList[0].GuideRoomPrice>0" :price="scope.row.subList[index]">
</SamplePriceList>
<div v-else style="text-align: center;width: 100%;">{{$t('objFill.wuqitafangxingbj')}}</div> <div v-else style="text-align: center;width: 100%;">{{$t('objFill.wuqitafangxingbj')}}</div>
<span slot="reference" class="CostPriceHover">{{childItem.CostPrice}}</span> <span slot="reference" class="CostPriceHover">{{childItem.CostPrice}}</span>
</el-popover> </el-popover>
...@@ -121,8 +125,7 @@ ...@@ -121,8 +125,7 @@
{{item.ConfirmNum}}/{{item.ReserveNum}} {{item.ConfirmNum}}/{{item.ReserveNum}}
</div> </div>
<div class="Hotel_kong Com_hoteldiv"> <div class="Hotel_kong Com_hoteldiv">
<span v-if="item.UseInventory-item.Inventory>0" <span v-if="item.UseInventory-item.Inventory>0" style="color:red;">
style="color:red;">
{{item.UseInventory-item.Inventory}} {{item.UseInventory-item.Inventory}}
</span> </span>
</div> </div>
...@@ -142,32 +145,34 @@ ...@@ -142,32 +145,34 @@
<p>{{$t("active.ld_noData")}}</p> <p>{{$t("active.ld_noData")}}</p>
</div> </div>
<el-pagination v-if="dataList.length>0" background @current-change="handleCurrentChange" <el-pagination v-if="dataList.length>0" background @current-change="handleCurrentChange"
:current-page.sync="msg.pageIndex" :current-page.sync="msg.pageIndex" layout="total,prev, pager, next, jumper" :page-size='msg.pageSize'
layout="total,prev, pager, next, jumper" :page-size='msg.pageSize' :total='total'></el-pagination> :total='total'></el-pagination>
</template> </template>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import SamplePriceList from './SamplePriceList' import SamplePriceList from './SamplePriceList'
import TableOperation from './TableOperation' import TableOperation from './TableOperation'
import ListCar from './ListCar' import ListCar from './ListCar'
import hotelDetails from './hotelDetails' import hotelDetails from './hotelDetails'
export default { export default {
components: { SamplePriceList, }, components: {
props:['newDate'], SamplePriceList,
},
props: ['newDate'],
data() { data() {
return { return {
total:0, total: 0,
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
//酒店选择数组 //酒店选择数组
HotelChooseArray: [], HotelChooseArray: [],
StartDate: '', StartDate: this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")),
EndDate: '', EndDate: this.getBeforeDate(-30, this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"))),
//只查询日本 //只查询日本
Country: "651", Country: "0",
Province: 0, Province: 0,
City: 0, City: 0,
OutBranchId: -1, OutBranchId: -1,
...@@ -178,7 +183,10 @@ ...@@ -178,7 +183,10 @@
//供应商 //供应商
Supplier: 0, Supplier: 0,
MaxPrice: 0, MaxPrice: 0,
MinPrice: 0 MinPrice: 0,
HotelName: '',
SourceType: 1,
IsHotelAddPrice: 1
}, },
tableHeight: 0, tableHeight: 0,
//分公司列表 //分公司列表
...@@ -209,12 +217,13 @@ ...@@ -209,12 +217,13 @@
dataList: [], dataList: [],
isShow: false, isShow: false,
loading: false, loading: false,
userInfo: {},
}; };
}, },
watch: { watch: {
newDate: { newDate: {
handler(newValue,onldValue) { handler(newValue, onldValue) {
if(newValue!=onldValue){ if (newValue != onldValue) {
this.getList() this.getList()
} }
}, },
...@@ -222,8 +231,8 @@ ...@@ -222,8 +231,8 @@
}, },
}, },
methods: { methods: {
finishHanler(hotel){ finishHanler(hotel) {
this.$emit('finish',hotel) this.$emit('finish', hotel)
}, },
com_onresize() { com_onresize() {
//clientHeight的值由DIV内容的实际高度和CSS中的padding值决定, //clientHeight的值由DIV内容的实际高度和CSS中的padding值决定,
...@@ -239,7 +248,7 @@ ...@@ -239,7 +248,7 @@
this.loading = true; this.loading = true;
this.msg.StartDate = this.newDate; this.msg.StartDate = this.newDate;
this.msg.EndDate = this.newDate; this.msg.EndDate = this.newDate;
if(!this.msg.StartDate) return if (!this.msg.StartDate) return
this.apipost("dict_post_HotelOffer_GetClientHotelStatics", this.msg, this.apipost("dict_post_HotelOffer_GetClientHotelStatics", this.msg,
res => { res => {
this.loading = false; this.loading = false;
...@@ -256,11 +265,15 @@ ...@@ -256,11 +265,15 @@
}, },
//获取酒店列表 //获取酒店列表
GetHotelList() { GetHotelList() {
this.apipost( var postMsg = {
"hotel_post_GetHasStockHotelList", { QCountry: "",
QCountry: "651",
IsMoreThanZero: 1 IsMoreThanZero: 1
}, }
if (this.userInfo && this.userInfo.RB_Group_id == 2) {
postMsg.QCountry = "651";
}
this.apipost(
"hotel_post_GetHasStockHotelList", postMsg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.HotelList = res.data.data; this.HotelList = res.data.data;
...@@ -274,7 +287,6 @@ ...@@ -274,7 +287,6 @@
var str = dateStr.split('-'); var str = dateStr.split('-');
var weekDay = ["天", "一", "二", "三", "四", "五", "六"]; var weekDay = ["天", "一", "二", "三", "四", "五", "六"];
var myDate = new Date(Date.parse(dateStr)); var myDate = new Date(Date.parse(dateStr));
return str[1] + '/' + str[2] + "(" + weekDay[myDate.getDay()] + ")"; return str[1] + '/' + str[2] + "(" + weekDay[myDate.getDay()] + ")";
}, },
//获取星期几 //获取星期几
...@@ -348,37 +360,41 @@ ...@@ -348,37 +360,41 @@
err => {} err => {}
); );
}, },
getProvinceList(ID, type) { getCityList(ID) {
//根据省份获取城市 //根据省份获取城市
let msg = { let msg = {
Id: ID Id: ID
}; };
if (type == 1) {
this.msg.Province = 0;
this.msg.City = 0;
this.provinceList = [];
this.cityList = [];
} else if (type == 2) {
this.msg.City = 0;
this.cityList = []; this.cityList = [];
}
this.apipost( this.apipost(
"dict_post_Destination_GetChildList", "dict_post_Destination_GetChildList",
msg, msg,
res => { res => {
if (type == 1) {
this.provinceList = res.data.data;
} else if (type == 2) {
this.cityList = res.data.data; this.cityList = res.data.data;
},
);
},
getProvinceList(countryId) {
//根据省份获取城市
this.provinceList = [];
let msg = {
CodeLevel: 2,
ParentID: 0
};
if (countryId && countryId > 0) {
msg.ParentID = countryId;
} }
this.apipost(
"dict_get_Destination_GetCityExtList",
msg,
res => {
this.provinceList = res.data.data;
}, },
err => {}
); );
}, },
getBranchList() { getBranchList() {
let UserInfo = this.getLocalStorage();
this.apipost('admin_get_BranchGetList', { this.apipost('admin_get_BranchGetList', {
RB_Group_Id: UserInfo.RB_Group_id, RB_Group_Id: this.userInfo.RB_Group_id,
Status: 0, Status: 0,
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -387,9 +403,17 @@ ...@@ -387,9 +403,17 @@
}, err => {}) }, err => {})
}, },
}, },
created() {
this.userInfo = this.getLocalStorage();
},
mounted() { mounted() {
if (this.userInfo && this.userInfo.RB_Group_id == 2) {
this.msg.Country = "651";
this.getProvinceList("651");
} else {
this.getProvinceList("0");
}
this.getBranchList(); this.getBranchList();
this.getProvinceList("651", 1);
this.GetHotelList(); this.GetHotelList();
this.getList(); this.getList();
this.GetHotelTipList(); this.GetHotelTipList();
...@@ -400,9 +424,9 @@ ...@@ -400,9 +424,9 @@
} }
}; };
</script> </script>
<style scoped> <style scoped>
.Hq_duoge { .Hq_duoge {
cursor: pointer; cursor: pointer;
text-decoration: underline; text-decoration: underline;
...@@ -432,9 +456,11 @@ ...@@ -432,9 +456,11 @@
.classTe { .classTe {
background-color: rgb(2, 247, 142); background-color: rgb(2, 247, 142);
} }
.hotelQueryListclass6 { .hotelQueryListclass6 {
background-color:#808000; background-color: #808000;
} }
.HouseTypeList { .HouseTypeList {
background: #ccc; background: #ccc;
width: 100%; width: 100%;
...@@ -530,41 +556,51 @@ ...@@ -530,41 +556,51 @@
.HotelQueryList .el-table td { .HotelQueryList .el-table td {
padding: 0; padding: 0;
} }
.CostPriceHover{
height:100%; .CostPriceHover {
float:left; height: 100%;
width:100%; float: left;
width: 100%;
cursor: pointer; cursor: pointer;
} }
.query-box li{
.query-box li {
margin: 0 0 10px 0; margin: 0 0 10px 0;
} }
.query-box li span>em{
.query-box li span>em {
min-width: 58px; min-width: 58px;
} }
/deep/.query-box .option .el-input{
/deep/.query-box .option .el-input {
width: 120px !important; width: 120px !important;
} }
/deep/.query-box .HotelChooseArray .el-input{
/deep/.query-box .HotelChooseArray .el-input {
width: 200px !important; width: 200px !important;
} }
/deep/.query-box .Star .el-input{
/deep/.query-box .Star .el-input {
width: 100px !important; width: 100px !important;
} }
/deep/.el-table td{
/deep/.el-table td {
padding: 0; padding: 0;
} }
/deep/.el-table .cell{
/deep/.el-table .cell {
padding-left: 0; padding-left: 0;
padding-right: 0; padding-right: 0;
} }
.choose-hotel{
.choose-hotel {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 10px 0; padding: 10px 0;
} }
.choose-hotel span{
.choose-hotel span {
padding: 0 15px; padding: 0 15px;
border-radius: 5px; border-radius: 5px;
border: 1px solid #009EF7; border: 1px solid #009EF7;
...@@ -573,7 +609,4 @@ ...@@ -573,7 +609,4 @@
cursor: pointer; cursor: pointer;
} }
</style>
</style>
\ No newline at end of file
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