opt:优化成品出库查询导出
This commit is contained in:
@@ -195,11 +195,12 @@ export default {
|
||||
},
|
||||
downdtl() {
|
||||
if (this.currentRow !== null) {
|
||||
crud.downloadLoading = true
|
||||
this.showDtlLoading = true
|
||||
const data = {
|
||||
'stor_id': this.crud.query.stor_id,
|
||||
'bill_types': this.crud.query.bill_types,
|
||||
'with': this.crud.query.with,
|
||||
'pcsn': this.crud.query.pcsn,
|
||||
'customer_name': this.crud.query.customer_name
|
||||
}
|
||||
if (this.crud.query.createTime !== undefined) {
|
||||
@@ -208,9 +209,9 @@ export default {
|
||||
}
|
||||
download('/api/out/OutQuery/download2', data).then(result => {
|
||||
downloadFile(result, '成品出库查询', 'xlsx')
|
||||
crud.downloadLoading = false
|
||||
this.showDtlLoading = false
|
||||
}).catch(() => {
|
||||
crud.downloadLoading = false
|
||||
this.showDtlLoading = false
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user