Commit 5b819837 authored by 黄奎's avatar 黄奎

酒店查询页面新增Excel下载

parent ba316e4a
...@@ -52,8 +52,10 @@ ...@@ -52,8 +52,10 @@
</span> </span>
</li> </li>
<li><span><em>日期</em> <li><span><em>日期</em>
<el-date-picker v-model='msg.StartDate' value-format="yyyy-MM-dd" type="date" :picker-options="beforeCheck"></el-date-picker> <el-date-picker v-model='msg.StartDate' value-format="yyyy-MM-dd" type="date" :picker-options="beforeCheck">
<el-date-picker v-model='msg.EndDate' value-format="yyyy-MM-dd" type="date" :picker-options="afterCheck"></el-date-picker> </el-date-picker>
<el-date-picker v-model='msg.EndDate' value-format="yyyy-MM-dd" type="date" :picker-options="afterCheck">
</el-date-picker>
</span> </span>
</li> </li>
<li> <li>
...@@ -69,6 +71,7 @@ ...@@ -69,6 +71,7 @@
<input type="button" class="normalBtn" value="温馨提示" <input type="button" class="normalBtn" value="温馨提示"
@click="showNotice=true,resetPageIndex(),GetHotelTipList()" /> @click="showNotice=true,resetPageIndex(),GetHotelTipList()" />
<input type="button" class="normalBtn" value="查询" @click="getList()" /> <input type="button" class="normalBtn" value="查询" @click="getList()" />
<input type="button" class="normalBtn" value="下载" @click="DownLoadHotelQuery()" />
</li> </li>
</ul> </ul>
</div> </div>
...@@ -248,7 +251,7 @@ ...@@ -248,7 +251,7 @@
//星级 //星级
Star: 0, Star: 0,
//价格等级 //价格等级
PriceLevel: 0 PriceLevel: 0,
}, },
beforeCheck: { beforeCheck: {
disabledDate: time => { disabledDate: time => {
...@@ -541,6 +544,19 @@ ...@@ -541,6 +544,19 @@
} }
}, err => {}) }, err => {})
}, },
//Excel下载
DownLoadHotelQuery() {
this.loading = true;
let qMsg = {
queryMsg: this.msg,
uid: this.getLocalStorage().EmployeeId
};
let fileName = "酒店查询统计" + this.$commonUtils.getCurrentDate() + ".xls";
this.GetLocalFile("hotel_get_downloadHotelQuery", qMsg, fileName,
res => {
this.loading = false;
});
},
}, },
mounted() { mounted() {
this.getBranchList(); this.getBranchList();
......
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