opt:优化成品出库查询导出

This commit is contained in:
DESKTOP-5DIJMF9\admin
2025-02-19 12:49:59 +08:00
parent 7526d09819
commit 6277f4ded3

View File

@@ -195,11 +195,12 @@ export default {
}, },
downdtl() { downdtl() {
if (this.currentRow !== null) { if (this.currentRow !== null) {
crud.downloadLoading = true this.showDtlLoading = true
const data = { const data = {
'stor_id': this.crud.query.stor_id, 'stor_id': this.crud.query.stor_id,
'bill_types': this.crud.query.bill_types, 'bill_types': this.crud.query.bill_types,
'with': this.crud.query.with, 'with': this.crud.query.with,
'pcsn': this.crud.query.pcsn,
'customer_name': this.crud.query.customer_name 'customer_name': this.crud.query.customer_name
} }
if (this.crud.query.createTime !== undefined) { if (this.crud.query.createTime !== undefined) {
@@ -208,9 +209,9 @@ export default {
} }
download('/api/out/OutQuery/download2', data).then(result => { download('/api/out/OutQuery/download2', data).then(result => {
downloadFile(result, '成品出库查询', 'xlsx') downloadFile(result, '成品出库查询', 'xlsx')
crud.downloadLoading = false this.showDtlLoading = false
}).catch(() => { }).catch(() => {
crud.downloadLoading = false this.showDtlLoading = false
}) })
} }
} }