Commit 990e0d14 authored by 华国豪's avatar 华国豪 🙄
parents 3b8333f0 4ff53076
...@@ -28,8 +28,7 @@ ...@@ -28,8 +28,7 @@
<li> <li>
<span> <span>
<em>酒店</em> <em>酒店</em>
<el-select v-model="msg.HotelId" :placeholder="$t('pub.pleaseSel')" filterable> <el-select v-model="msg.HotelChooseArray" :placeholder="$t('pub.pleaseSel')" filterable multiple :multiple-limit="3" size="mini">
<el-option :label="$t('pub.unlimitedSel')" :value="0"></el-option>
<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>
...@@ -60,25 +59,18 @@ ...@@ -60,25 +59,18 @@
<table border="0" cellspacing="1" cellpadding="0" class="HouseTypeList" v-if="isShow"> <table border="0" cellspacing="1" cellpadding="0" class="HouseTypeList" v-if="isShow">
<tr> <tr>
<th width="300">酒店名称</th> <th width="300">酒店名称</th>
<th width="80"></th> <th width="80">价格&库存</th>
<template v-if="dataList.length>0">
<th v-for="item in dataList[0].subList">
{{getDateList(item.DateStr)}}
</th>
</template>
</tr>
<tr>
<th></th>
<th></th>
<template v-if="dataList.length>0"> <template v-if="dataList.length>0">
<th v-for="item in dataList[0].subList"> <th v-for="item in dataList[0].subList">
{{getDateList(item.DateStr)}}<br/>
{{getWeek(item.DateStr)}} {{getWeek(item.DateStr)}}
</th> </th>
</template> </template>
</tr> </tr>
<tr v-for="item in dataList"> <tr v-for="item in dataList">
<td> <td>
<div style="min-width:300px; text-align:left;padding-left:5px;">{{item.HotelName}}</div> <div style="min-width:300px; text-align:left;padding-left:5px;cursor:pointer;" @click="GotoHotel(item.HotelId)">
{{item.HotelName}}</div>
</td> </td>
<td> <td>
<div class="Hotel_kong">价格</div> <div class="Hotel_kong">价格</div>
...@@ -86,8 +78,17 @@ ...@@ -86,8 +78,17 @@
<div class="Hotel_kong">超定</div> <div class="Hotel_kong">超定</div>
</td> </td>
<td v-for="(subItem,subIndex) in item.subList"> <td v-for="(subItem,subIndex) in item.subList">
<div class="Hotel_kong Com_hoteldiv" :class="getClass(subItem)"> <div class="Hotel_kong Com_hoteldiv" >
{{subItem.CostPrice}}</div> <template v-if="subItem.PriceList&&subItem.PriceList.length>0">
<template v-for="childItem in subItem.PriceList">
<div :class="getClass(1,childItem.InventoryType)" style="height:100%;float:left;"
:style="{width:(98/subItem.PriceList.length)+'%'}">{{childItem.CostPrice}}</div>
</template>
</template>
<template v-else>
<div :class="getClass(0,0)" style="width:100%;height:100%">&nbsp;</div>
</template>
</div>
<div class="Hotel_kong Com_hoteldiv Hq_duoge" @click="GotoUrl(item,subIndex,subItem.UseInventory)"> <div class="Hotel_kong Com_hoteldiv Hq_duoge" @click="GotoUrl(item,subIndex,subItem.UseInventory)">
{{subItem.Inventory}}/{{subItem.UseInventory}}/{{subItem.RemainingInventory}}</div> {{subItem.Inventory}}/{{subItem.UseInventory}}/{{subItem.RemainingInventory}}</div>
<div class="Hotel_kong Com_hoteldiv"> <div class="Hotel_kong Com_hoteldiv">
...@@ -120,7 +121,7 @@ ...@@ -120,7 +121,7 @@
<el-row> <el-row>
<el-col :span="9"> <el-col :span="9">
<el-form-item label="说明"> <el-form-item label="说明">
<el-input type="textarea" v-model="postMsg.TipContent" class="w600" maxlength="200"></el-input> <el-input type="textarea" v-model="postMsg.TipContent" maxlength="200"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="15"> <el-col :span="15">
...@@ -187,6 +188,8 @@ ...@@ -187,6 +188,8 @@
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="queryMsg.currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="queryMsg.currentPage"
:page-size="queryMsg.pageSize" layout="total,prev, pager, next, jumper" :total="queryMsg.total"> :page-size="queryMsg.pageSize" layout="total,prev, pager, next, jumper" :total="queryMsg.total">
</el-pagination> </el-pagination>
<div class="HQ_miaoshu">1.酒店库存系统已开放使用,欢迎前往参观选购!! </div>
<div class="HQ_miaoshu">2.库存酒店皆为时时更新,请上传人员细心上传!!</div>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="showHQinfo = false">关闭</button> <button class="hollowFixedBtn" @click="showHQinfo = false">关闭</button>
...@@ -199,7 +202,8 @@ ...@@ -199,7 +202,8 @@
data() { data() {
return { return {
msg: { msg: {
HotelId: 0, //酒店选择数组
HotelChooseArray:[],
StartDate: new Date().Format("yyyy-MM-dd"), StartDate: new Date().Format("yyyy-MM-dd"),
EndDate: this.setEdate(), EndDate: this.setEdate(),
//只查询日本 //只查询日本
...@@ -208,6 +212,7 @@ ...@@ -208,6 +212,7 @@
City: 0, City: 0,
OutBranchId: -1, OutBranchId: -1,
}, },
//分公司列表 //分公司列表
companyList: [], companyList: [],
defaultSelectValue: 0, defaultSelectValue: 0,
...@@ -223,7 +228,6 @@ ...@@ -223,7 +228,6 @@
currentPage: 1, currentPage: 1,
total: 0 total: 0
}, },
postMsg: { postMsg: {
Id: 0, Id: 0,
TipContent: '' TipContent: ''
...@@ -252,6 +256,16 @@ ...@@ -252,6 +256,16 @@
}; };
}, },
methods: { methods: {
GotoHotel(HotelId) {
this.$router.push({
path: "HotelManagement",
query: {
ID: HotelId,
tab: "酒店查询",
blank:'y',
}
});
},
GotoUrl(item, subIndex, UseInventory) { GotoUrl(item, subIndex, UseInventory) {
if (UseInventory > 0) { if (UseInventory > 0) {
this.$router.push({ this.$router.push({
...@@ -267,16 +281,17 @@ ...@@ -267,16 +281,17 @@
getList() { getList() {
this.loading = true; this.loading = true;
if (this.msg.StartDate == null) { if (this.msg.StartDate == null) {
this.msg.StartDate = new Date().Format("yyyy-MM-dd") this.msg.StartDate = new Date().Format("yyyy-MM-dd");
} }
if (this.msg.EndDate == null) { if (this.msg.EndDate == null) {
this.msg.EndDate = this.setEdate() this.msg.EndDate = this.setEdate();
} }
this.apipost("dict_post_HotelOffer_GetHotelStatics", this.msg, this.apipost("dict_post_HotelOffer_GetHotelStatics", this.msg,
res => { res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
console.log("dataList",this.dataList);
this.isShow = true; this.isShow = true;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
...@@ -323,12 +338,12 @@ ...@@ -323,12 +338,12 @@
return weekDay[myDate.getDay()] return weekDay[myDate.getDay()]
}, },
//获取颜色状态 //获取颜色状态
getClass(subItem) { getClass(Status,InventoryType) {
var classStr = ""; var classStr = "";
if (subItem.Status == 0) { if (Status == 0) {
classStr = 'noKucun'; classStr = 'noKucun';
} }
switch (subItem.InventoryType) { switch (InventoryType) {
case 1: case 1:
classStr = "classHong"; classStr = "classHong";
break; break;
...@@ -502,6 +517,7 @@ ...@@ -502,6 +517,7 @@
.Com_hoteldiv { .Com_hoteldiv {
min-width: 70px; min-width: 70px;
white-space:nowrap;
} }
.noKucun { .noKucun {
...@@ -560,5 +576,11 @@ ...@@ -560,5 +576,11 @@
height: 350px; height: 350px;
padding-top: 35px; padding-top: 35px;
} }
.HQ_miaoshu{
color:#E95252;
font-size:12px;
}
.HQ_miaoshu:first-child{
margin-top:10px;
}
</style> </style>
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