|
@@ -57,9 +57,17 @@
|
|
|
</div>
|
|
|
<div class="btnWrap"
|
|
|
style="margin-top:20px;">
|
|
|
- <el-button type="primary" v-if="tableList.length > 0" v-permission="'order/musicalListExport'" @click="musicalListExport">发放清单导出</el-button>
|
|
|
- <el-button type="primary" v-if="tableList.length > 0" v-permission="'order/musicalListDetailExport'" @click="musicalListDetailExport">分发清单导出</el-button>
|
|
|
- <el-button type="warning okBtn" v-permission="'order/verifyMusicalList'" @click="okDetailList">确认</el-button>
|
|
|
+ <el-button type="primary"
|
|
|
+ v-if="tableList.length > 0"
|
|
|
+ v-permission="'order/musicalListExport'"
|
|
|
+ @click="musicalListExport">发放清单导出</el-button>
|
|
|
+ <el-button type="primary"
|
|
|
+ v-if="tableList.length > 0"
|
|
|
+ v-permission="'order/musicalListDetailExport'"
|
|
|
+ @click="musicalListDetailExport">分发清单导出</el-button>
|
|
|
+ <el-button type="warning okBtn"
|
|
|
+ v-permission="'order/verifyMusicalList'"
|
|
|
+ @click="okDetailList">确认</el-button>
|
|
|
<!-- <div class="okBtn" v-permission="'order/verifyMusicalList'"
|
|
|
@click="okDetailList">确认</div> -->
|
|
|
</div>
|
|
@@ -106,11 +114,11 @@ export default {
|
|
|
}).then(() => {
|
|
|
verifyMusicalList({ musicGroupId: this.teamid }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.$router.push({ path: '/business/teamDetail' })
|
|
|
+ this.$router.push({ path: '/business/teamDetail', query: { search: this.Fsearch, rules: this.Frules } })
|
|
|
}
|
|
|
})
|
|
|
- }).catch(() => {})
|
|
|
-
|
|
|
+ }).catch(() => { })
|
|
|
+
|
|
|
},
|
|
|
musicalListExport () { // 报表导出
|
|
|
let url = '/api-web/order/musicalListExport'
|
|
@@ -120,7 +128,7 @@ export default {
|
|
|
const options = {
|
|
|
method: 'POST',
|
|
|
headers: {
|
|
|
- 'Authorization': getToken()
|
|
|
+ 'Authorization': getToken()
|
|
|
},
|
|
|
data: qs.stringify(data),
|
|
|
url,
|
|
@@ -130,24 +138,24 @@ export default {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- axios(options).then(res => {
|
|
|
- let blob = new Blob([res.data], {
|
|
|
- // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
|
|
|
- type: 'application/vnd.ms-excel;charset=utf-8'
|
|
|
- //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
|
|
|
- })
|
|
|
- let objectUrl = URL.createObjectURL(blob)
|
|
|
- let link = document.createElement("a")
|
|
|
- let nowTime = new Date()
|
|
|
- let ymd = nowTime.getFullYear() + '' + (nowTime.getMonth() + 1) + '' + nowTime.getDate() + '' + nowTime.getHours() + '' + nowTime.getMinutes()
|
|
|
- let fname = this.$route.query.id + '-' + ymd + '发放清单' //下载文件的名字
|
|
|
- link.href = objectUrl
|
|
|
- link.setAttribute("download", fname)
|
|
|
- document.body.appendChild(link)
|
|
|
- link.click()
|
|
|
- })
|
|
|
- }).catch(() => {})
|
|
|
+ }).then(() => {
|
|
|
+ axios(options).then(res => {
|
|
|
+ let blob = new Blob([res.data], {
|
|
|
+ // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
|
|
|
+ type: 'application/vnd.ms-excel;charset=utf-8'
|
|
|
+ //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
|
|
|
+ })
|
|
|
+ let objectUrl = URL.createObjectURL(blob)
|
|
|
+ let link = document.createElement("a")
|
|
|
+ let nowTime = new Date()
|
|
|
+ let ymd = nowTime.getFullYear() + '' + (nowTime.getMonth() + 1) + '' + nowTime.getDate() + '' + nowTime.getHours() + '' + nowTime.getMinutes()
|
|
|
+ let fname = this.$route.query.id + '-' + ymd + '发放清单' //下载文件的名字
|
|
|
+ link.href = objectUrl
|
|
|
+ link.setAttribute("download", fname)
|
|
|
+ document.body.appendChild(link)
|
|
|
+ link.click()
|
|
|
+ })
|
|
|
+ }).catch(() => { })
|
|
|
},
|
|
|
musicalListDetailExport () { // 报表导出
|
|
|
let url = '/api-web/order/musicalListDetailExport'
|
|
@@ -157,7 +165,7 @@ export default {
|
|
|
const options = {
|
|
|
method: 'POST',
|
|
|
headers: {
|
|
|
- 'Authorization': getToken()
|
|
|
+ 'Authorization': getToken()
|
|
|
},
|
|
|
data: qs.stringify(data),
|
|
|
url,
|
|
@@ -167,24 +175,24 @@ export default {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- axios(options).then(res => {
|
|
|
- let blob = new Blob([res.data], {
|
|
|
- // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
|
|
|
- type: 'application/vnd.ms-excel;charset=utf-8'
|
|
|
- //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
|
|
|
- })
|
|
|
- let objectUrl = URL.createObjectURL(blob)
|
|
|
- let link = document.createElement("a")
|
|
|
- let nowTime = new Date()
|
|
|
- let ymd = nowTime.getFullYear() + '' + (nowTime.getMonth() + 1) + '' + nowTime.getDate() + '' + nowTime.getHours() + '' + nowTime.getMinutes()
|
|
|
- let fname = this.$route.query.id + '-' + ymd + '分发清单' //下载文件的名字
|
|
|
- link.href = objectUrl
|
|
|
- link.setAttribute("download", fname)
|
|
|
- document.body.appendChild(link)
|
|
|
- link.click()
|
|
|
- })
|
|
|
- }).catch(() => {})
|
|
|
+ }).then(() => {
|
|
|
+ axios(options).then(res => {
|
|
|
+ let blob = new Blob([res.data], {
|
|
|
+ // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
|
|
|
+ type: 'application/vnd.ms-excel;charset=utf-8'
|
|
|
+ //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
|
|
|
+ })
|
|
|
+ let objectUrl = URL.createObjectURL(blob)
|
|
|
+ let link = document.createElement("a")
|
|
|
+ let nowTime = new Date()
|
|
|
+ let ymd = nowTime.getFullYear() + '' + (nowTime.getMonth() + 1) + '' + nowTime.getDate() + '' + nowTime.getHours() + '' + nowTime.getMinutes()
|
|
|
+ let fname = this.$route.query.id + '-' + ymd + '分发清单' //下载文件的名字
|
|
|
+ link.href = objectUrl
|
|
|
+ link.setAttribute("download", fname)
|
|
|
+ document.body.appendChild(link)
|
|
|
+ link.click()
|
|
|
+ })
|
|
|
+ }).catch(() => { })
|
|
|
}
|
|
|
},
|
|
|
}
|