Commit 69ed4f78 authored by 黄奎's avatar 黄奎

新增酒店工作页面

parent 0b21bcca
<template>
<div>
<div class="query-box" style="border-bottom: none;">
<ul>
<li>
<span>
<em>时间</em>
<el-date-picker v-model="msg.YearMonthStr" type="month" value-format="yyyy-MM" placeholder="选择月">
</el-date-picker>
</span>
</li>
<li>
<input type="button" class="normalBtn" value="查询" @click="getList()" />
<!-- <input type="button" class="normalBtn" value="下载" @click="DownLoadHotelQuery()" /> -->
</li>
</ul>
</div>
</div>
</template>
<script>
export default {
data() {
return {
//查询条件
msg: {
YearMonthStr:"",
CountryId:651,//只查询日本
},
defaultSelectValue: 0,
dataList: [],
loading: false,
};
},
methods: {
GotoHotel(HotelId) {
this.$router.push({
path: "HotelManagement",
query: {
ID: HotelId,
tab: "酒店查询",
blank: 'y',
}
});
},
getList() {
this.loading = true;
this.apipost("hotel_post_GetHotelWorkListService", this.msg,
res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.dataList = res.data.data;
console.log("this.dataList",this.dataList);
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
},
mounted() {
this.msg.YearMonthStr = new Date().Format("yyyy-MM");;
this.getList();
},
};
</script>
<style>
</style>
......@@ -210,9 +210,18 @@
</el-select>
</span>
</li>
<li >
<span>
<em>类型</em>
<el-select v-model="msg.QStatus" :placeholder="$t('pub.pleaseSel')" filterable>
<el-option :key="0" label="地接餐厅订单" :value="0"></el-option>
<el-option :key="1" label="行程餐厅" :value="1"></el-option>
</el-select>
</span>
</li>
<li style="margin-right:50px;">
<button class="normalBtn" type="button" @click="GetHoltelInventory()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" type="button" @click="DownLoadDinnerSalesBoard()" >下载</button>
<button class="normalBtn" type="button" @click="DownLoadDinnerSalesBoard()">下载</button>
</li>
</ul>
</div>
......@@ -267,7 +276,8 @@
Year: 0,
Month: 0,
DiningID: 0,
loading: false
QStatus:0,
loading: false,
},
//餐厅列表
DinnerList: [],
......@@ -347,7 +357,7 @@
var that = this;
this.msg.Year = this.currentYear;
this.msg.Month = this.currentMonth;
this.DayData=[];
this.DayData = [];
this.apipost(
"order_post_GetDinnerMonthStatistics",
this.msg,
......@@ -363,7 +373,7 @@
d.getMonth() + 1,
d.getDate()
);
dayItem.dayValue=[];
dayItem.dayValue = [];
for (var j = 0; j < this.DayData.length; j++) {
if (this.DayData[j].Day == myDate) {
dayItem.dayValue = this.DayData[j].SubList;
......@@ -381,7 +391,9 @@
//获取酒店列表
GetDinnerList() {
this.apipost(
"dining_post_GetList", {QCountry:651},
"dining_post_GetList", {
QCountry: 651
},
res => {
if (res.data.resultCode == 1) {
this.DinnerList = res.data.data;
......
......@@ -209,6 +209,15 @@
<el-option v-for="item in ScenicList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</span>
</li>
<li >
<span>
<em>类型</em>
<el-select v-model="msg.QStatus" :placeholder="$t('pub.pleaseSel')" filterable>
<el-option :key="0" label="地接门票订单" :value="0"></el-option>
<el-option :key="1" label="行程门票" :value="1"></el-option>
</el-select>
</span>
</li>
<li style="margin-right:50px;">
<button class="normalBtn" type="button" @click="GetHoltelInventory()">{{$t('pub.searchBtn')}}</button>
......@@ -267,6 +276,7 @@
Year: 0,
Month: 0,
CouponsId: 0,
QStatus:0,
loading: false
},
//餐厅列表
......
......@@ -786,6 +786,14 @@ export default {
title: '酒店查询统计'
},
},
{
path: '/HotelWorkList', //酒店工作表
name: 'HotelWorkList',
component: resolve => require(['@/components/Hotel/HotelWorkList'], resolve),
meta: {
title: '酒店工作表'
},
},
{
path: '/RestauranOrder', //餐厅订单信息
name: 'RestauranOrder',
......
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