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

11

parent ab506b18
......@@ -264,7 +264,8 @@
<div>
<p v-for="(item,subIndex) in dayItem.dayValue" :key="`d_`+index+`s_`+subIndex" style="padding-bottom:10px;">
<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">
{{item.TicketName}}{{item.TicketNum}}
</span>
......@@ -283,9 +284,7 @@
msg: {
Year: 0,
Month: 0,
CouponsId: 0,
CouponsIdList: [],
CouponsIds: '',
QStatus: 0,
loading: false,
uid: 0,
......@@ -303,27 +302,7 @@
};
},
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) {
if (type === 1) {
return 'hasStock_1'
......@@ -432,23 +411,12 @@
},
//下载餐厅统计
DownLoadDinnerSalesBoard() {
if (this.msg.CouponsId <= 0 && !this.msg.CouponsIds) {
this.Info(this.$t('sm.qxzjingdian'));
return;
}
let url = "";
//单门票下载
if (this.msg.CouponsId > 0) {
url = 'ticketcouponsorder_post_DownLoadScenicMonthStatistics'
}
//多门票下载
else {
url = 'ticketcouponsorder_post_DownLoadScenicMonthStatisticsNew'
}
let cmdStr = "";
cmdStr = 'ticketcouponsorder_post_DownLoadScenicMonthStatisticsNew'
this.msg.loading = true;
this.msg.uid = this.userInfo.EmployeeId;
let fileName = "门票下载" + this.$commonUtils.getCurrentDate() + ".xls";
this.GetLocalFile(url, this.msg, fileName,
this.GetLocalFile(cmdStr, this.msg, fileName,
res => {
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