This commit is contained in:
2022-11-24 23:49:50 +08:00
parent 5821b61e3b
commit c788d29b11

View File

@@ -550,12 +550,16 @@ export default {
return strStyle + arr.join('') return strStyle + arr.join('')
}, },
printExcel(jo) { printExcel(jo) {
download('/api/checkoutbill/downloadExcel', { 'iostorinv_id': jo.iostorinv_id }).then(result => { debugger
downloadFile(result, '', 'xlsx') const j = Math.ceil(jo.detail_count / jo.shd_dtl_num)
crud.downloadLoading = false for (let i = 0; i < j; i++) {
}).catch(() => { download('/api/checkoutbill/downloadExcel', { 'iostorinv_id': jo.iostorinv_id, 'j': i }).then(result => {
crud.downloadLoading = false downloadFile(result, '', 'xlsx')
}) crud.downloadLoading = false
}).catch(() => {
crud.downloadLoading = false
})
}
} }
} }
} }