修改
This commit is contained in:
@@ -550,7 +550,10 @@ 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
|
||||||
|
const j = Math.ceil(jo.detail_count / jo.shd_dtl_num)
|
||||||
|
for (let i = 0; i < j; i++) {
|
||||||
|
download('/api/checkoutbill/downloadExcel', { 'iostorinv_id': jo.iostorinv_id, 'j': i }).then(result => {
|
||||||
downloadFile(result, '', 'xlsx')
|
downloadFile(result, '', 'xlsx')
|
||||||
crud.downloadLoading = false
|
crud.downloadLoading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
@@ -558,6 +561,7 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user