Commit 863f251a authored by 黄奎's avatar 黄奎

页面修改

parent be803510
<template> <template>
<div> <div>
<HotelOrderList :pagesTitle="pagesTitle"></HotelOrderList> <HotelOrderList :pagesTitle="pagesTitle"></HotelOrderList>
</div> </div>
</template> </template>
<script> <script>
import HotelOrderList from '../reservation/HotelOrderList.vue'; import HotelOrderList from '../reservation/HotelOrderList.vue';
export default { export default {
components: { HotelOrderList }, components: {
HotelOrderList
},
data() { data() {
return { return {
pagesTitle:'OP', pagesTitle: 'OP',
}; };
}, },
methods: { methods: {
}, },
mounted() { mounted() {
}, },
}; };
......
...@@ -204,8 +204,8 @@ ...@@ -204,8 +204,8 @@
<li> <li>
<span> <span>
<em>{{$t('commonPickUp.Pick_attractions')}}</em> <em>{{$t('commonPickUp.Pick_attractions')}}</em>
<el-select v-model="msg.CouponsIdList" :placeholder="$t('pub.pleaseSel')" <el-select v-model="msg.CouponsIdList" :placeholder="$t('pub.pleaseSel')" multiple collapse-tags filterable
multiple collapse-tags filterable @change="getMultipleChoice"> @change="getMultipleChoice">
<el-option :label="$t('pub.unlimitedSel')" :value="defaultSelectValue"></el-option> <el-option :label="$t('pub.unlimitedSel')" :value="defaultSelectValue"></el-option>
<el-option v-for="item in ScenicList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option> <el-option v-for="item in ScenicList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select> </el-select>
...@@ -279,11 +279,11 @@ ...@@ -279,11 +279,11 @@
Year: 0, Year: 0,
Month: 0, Month: 0,
CouponsId: 0, CouponsId: 0,
CouponsIdList:[], CouponsIdList: [],
CouponsIds: '', CouponsIds: '',
QStatus: 0, QStatus: 0,
loading: false, loading: false,
uid:0, uid: 0,
}, },
//餐厅列表 //餐厅列表
ScenicList: [], ScenicList: [],
...@@ -299,21 +299,21 @@ ...@@ -299,21 +299,21 @@
}, },
methods: { methods: {
// 多选 // 多选
getMultipleChoice(){ getMultipleChoice() {
if(this.msg.CouponsIdList.length>1){ if (this.msg.CouponsIdList.length > 1) {
if(this.msg.CouponsIdList.at(-1)==0){ if (this.msg.CouponsIdList.at(-1) == 0) {
this.msg.CouponsIdList = [0] this.msg.CouponsIdList = [0]
}else if(this.msg.CouponsIdList.at(-1)!=0){ } else if (this.msg.CouponsIdList.at(-1) != 0) {
this.msg.CouponsIdList.forEach((x,index)=>{ this.msg.CouponsIdList.forEach((x, index) => {
if(x==0){ if (x == 0) {
this.msg.CouponsIdList.splice(index,1) this.msg.CouponsIdList.splice(index, 1)
} }
}) })
} }
this.msg.CouponsId = 0 this.msg.CouponsId = 0
this.msg.CouponsIds = this.msg.CouponsIdList.join(',') this.msg.CouponsIds = this.msg.CouponsIdList.join(',')
} }
if(this.msg.CouponsIdList.length==1){ if (this.msg.CouponsIdList.length == 1) {
this.msg.CouponsId = this.msg.CouponsIdList[0] this.msg.CouponsId = this.msg.CouponsIdList[0]
this.msg.CouponsIds = '' this.msg.CouponsIds = ''
} }
...@@ -407,10 +407,14 @@ ...@@ -407,10 +407,14 @@
}, },
//获取酒店列表 //获取酒店列表
GetScenicList() { GetScenicList() {
var postMsg = {
QCountrys: ""
};
if (this.userInfo.RB_Group_id == 2) {
postMsg.QCountrys = "651";
}
this.apipost( this.apipost(
"ticketcoupons_post_GetList", { "ticketcoupons_post_GetList", postMsg,
QCountrys: "651"
},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.ScenicList = res.data.data; this.ScenicList = res.data.data;
...@@ -421,18 +425,18 @@ ...@@ -421,18 +425,18 @@
}, },
//下载餐厅统计 //下载餐厅统计
DownLoadDinnerSalesBoard() { DownLoadDinnerSalesBoard() {
if (this.msg.CouponsId<=0&&!this.msg.CouponsIds) { if (this.msg.CouponsId <= 0 && !this.msg.CouponsIds) {
this.Info("请选择景点!"); this.Info("请选择景点!");
return; return;
} }
let url let url
if(this.msg.CouponsId>0){ if (this.msg.CouponsId > 0) {
url = 'ticketcouponsorder_post_DownLoadScenicMonthStatistics' url = 'ticketcouponsorder_post_DownLoadScenicMonthStatistics'
}else{ } else {
url ='ticketcouponsorder_post_DownLoadScenicMonthStatisticsNew' url = 'ticketcouponsorder_post_DownLoadScenicMonthStatisticsNew'
} }
this.msg.loading = true; this.msg.loading = true;
this.msg.uid=this.userInfo.EmployeeId; this.msg.uid = this.userInfo.EmployeeId;
let fileName = "门票下载" + this.$commonUtils.getCurrentDate() + ".xls"; let fileName = "门票下载" + this.$commonUtils.getCurrentDate() + ".xls";
this.GetLocalFile(url, this.msg, fileName, this.GetLocalFile(url, this.msg, fileName,
res => { res => {
......
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