3951-invoiceOut.index_downloadPdfs #1110
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#1110
Loading…
Reference in New Issue
No description provided.
Delete Branch "3951-invoiceOut.index_downloadPdfs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -11,2 +25,2 @@
let url = `api/InvoiceOuts/${id}/download?access_token=${this.vnToken.token}`;
window.open(url, '_blank');
openPdf() {
if (this.checked.length <= 1) {
=== 1
@ -13,0 +34,4 @@
};
this.$http.post(`InvoiceOuts/downloadZip`, params)
.then(res => {
location.href = 'data:application/zip;base64,' + res.data;
Se podría hacer para que en vez de que la ruta devuelva un base64, que hiciese algo similar a InvoiceOut/download? Podrías abrirlo directamente con window.open
No se podia crear el stream directamente. Al final se ha dejado como estaba planteado.