Commit 6ede6c8a authored by 黄奎's avatar 黄奎

11

parent ab506b18
...@@ -264,7 +264,8 @@ ...@@ -264,7 +264,8 @@
<div> <div>
<p v-for="(item,subIndex) in dayItem.dayValue" :key="`d_`+index+`s_`+subIndex" style="padding-bottom:10px;"> <p v-for="(item,subIndex) in dayItem.dayValue" :key="`d_`+index+`s_`+subIndex" style="padding-bottom:10px;">
<el-tooltip class="item" effect="dark" <el-tooltip class="item" effect="dark"
:content="`地接团号:`+item.BookGroup+`,公司团号:`+item.TCNUM+`(`+item.TCID+`),总机位:`+item.TotalSeatNum" placement="top"> :content="`地接团号:`+item.BookGroup+`,公司团号:`+item.TCNUM+`(`+item.TCID+`),总机位:`+item.TotalSeatNum"
placement="top">
<span class="text_underLine"> <span class="text_underLine">
{{item.TicketName}}{{item.TicketNum}} {{item.TicketName}}{{item.TicketNum}}
</span> </span>
...@@ -283,9 +284,7 @@ ...@@ -283,9 +284,7 @@
msg: { msg: {
Year: 0, Year: 0,
Month: 0, Month: 0,
CouponsId: 0,
CouponsIdList: [], CouponsIdList: [],
CouponsIds: '',
QStatus: 0, QStatus: 0,
loading: false, loading: false,
uid: 0, uid: 0,
...@@ -303,27 +302,7 @@ ...@@ -303,27 +302,7 @@
}; };
}, },
methods: { methods: {
// 多选
getMultipleChoice() {
this.msg.CouponsId = 0;
if (this.msg.CouponsIdList.length > 1) {
if (this.msg.CouponsIdList.at(-1) == 0) {
this.msg.CouponsIdList = [0]
} else if (this.msg.CouponsIdList.at(-1) != 0) {
this.msg.CouponsIdList.forEach((x, index) => {
if (x == 0) {
this.msg.CouponsIdList.splice(index, 1)
}
})
}
this.msg.CouponsId = 0;
this.msg.CouponsIds = this.msg.CouponsIdList.join(',')
}
if (this.msg.CouponsIdList.length == 1) {
this.msg.CouponsId = this.msg.CouponsIdList[0]
this.msg.CouponsIds = ''
}
},
stockColor: function (type) { stockColor: function (type) {
if (type === 1) { if (type === 1) {
return 'hasStock_1' return 'hasStock_1'
...@@ -432,23 +411,12 @@ ...@@ -432,23 +411,12 @@
}, },
//下载餐厅统计 //下载餐厅统计
DownLoadDinnerSalesBoard() { DownLoadDinnerSalesBoard() {
if (this.msg.CouponsId <= 0 && !this.msg.CouponsIds) { let cmdStr = "";
this.Info(this.$t('sm.qxzjingdian')); cmdStr = 'ticketcouponsorder_post_DownLoadScenicMonthStatisticsNew'
return;
}
let url = "";
//单门票下载
if (this.msg.CouponsId > 0) {
url = 'ticketcouponsorder_post_DownLoadScenicMonthStatistics'
}
//多门票下载
else {
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(cmdStr, this.msg, fileName,
res => { res => {
this.msg.loading = false; this.msg.loading = false;
}); });
......
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