@freteclick/quasar-financial-ui 1.0.86 → 1.0.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -11,16 +11,27 @@
|
|
|
11
11
|
|
|
12
12
|
<!-- BILLET VIEWER SICRED -->
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
<div :class="showBilletSicred ? 'full-width q-pa-lg' : 'hidden'">
|
|
15
|
+
|
|
16
|
+
<div class="col-12 q-pt-lg" v-if=" paymentInstitution === 'sicred'">
|
|
17
|
+
<div class="row justify-center items-center">
|
|
18
|
+
<q-btn
|
|
19
|
+
icon="money"
|
|
20
|
+
size="lg"
|
|
21
|
+
color="primary"
|
|
22
|
+
label="Baixar Boleto"
|
|
23
|
+
:loading="isLoadingDownload"
|
|
24
|
+
@click="clickDownloadBilletSicred()"
|
|
25
|
+
:disable="isPaid"
|
|
26
|
+
/>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
21
30
|
</div>
|
|
22
31
|
</div>
|
|
23
32
|
|
|
33
|
+
</div>
|
|
34
|
+
|
|
24
35
|
<!-- BILLET VIEWER INTER -->
|
|
25
36
|
|
|
26
37
|
<div :class="showBilletInter ? 'full-width q-pa-lg' : 'hidden'">
|
|
@@ -87,20 +98,6 @@
|
|
|
87
98
|
</div>
|
|
88
99
|
</div>
|
|
89
100
|
|
|
90
|
-
<div class="col-12 q-pt-lg" v-if="paymentIsPending && paymentInstitution === 'inter'">
|
|
91
|
-
<div style="min-height: 80vh;" class="row justify-center items-center">
|
|
92
|
-
<q-btn
|
|
93
|
-
icon="money"
|
|
94
|
-
size="lg"
|
|
95
|
-
color="primary"
|
|
96
|
-
label="Abrir Boleto"
|
|
97
|
-
:loading="isLoadingDownload"
|
|
98
|
-
@click="clickDownloadBilletInter()"
|
|
99
|
-
:disable="isPaid"
|
|
100
|
-
/>
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
101
|
<!-- PAID MESSAGE -->
|
|
105
102
|
|
|
106
103
|
<div class="col-12" v-if="payment !== null && isPaid">
|
|
@@ -121,6 +118,9 @@ import {mapActions, mapGetters} from 'vuex';
|
|
|
121
118
|
import axios from 'axios';
|
|
122
119
|
import {ENTRYPOINT} from '../../../../../../../../src/config/entrypoint';
|
|
123
120
|
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
124
|
export default {
|
|
125
125
|
props: {
|
|
126
126
|
invoiceId: {
|
|
@@ -133,6 +133,10 @@ export default {
|
|
|
133
133
|
},
|
|
134
134
|
},
|
|
135
135
|
|
|
136
|
+
components: {
|
|
137
|
+
|
|
138
|
+
},
|
|
139
|
+
|
|
136
140
|
mounted() {
|
|
137
141
|
window.addEventListener('focus', this.loadItauDataOnFocus);
|
|
138
142
|
},
|
|
@@ -205,7 +209,7 @@ export default {
|
|
|
205
209
|
}
|
|
206
210
|
});
|
|
207
211
|
|
|
208
|
-
} else if(this.paymentInstitution === 'inter') {
|
|
212
|
+
} else if(this.paymentInstitution === 'inter') {
|
|
209
213
|
|
|
210
214
|
this.showBillet = false;
|
|
211
215
|
let urlTmp = ENTRYPOINT + `/vendor/pdf.js/web/viewer.html?file=/finance/${this.invoiceId}/download?timestamp${new Date().getTime()}`;
|
|
@@ -214,10 +218,11 @@ export default {
|
|
|
214
218
|
this.showBilletInter = true;
|
|
215
219
|
|
|
216
220
|
}
|
|
217
|
-
else {
|
|
221
|
+
else {
|
|
218
222
|
|
|
219
223
|
this.showBillet = false;
|
|
220
|
-
let urlTmp = ENTRYPOINT + `/
|
|
224
|
+
let urlTmp = ENTRYPOINT + `/download?invoiceUrl=${this.payment.invoiceUrl}`;
|
|
225
|
+
// let urlTmp = ENTRYPOINT + `/vendor/pdf.js/web/viewer.html?file=/finance/${this.invoiceId}/download?timestamp${new Date().getTime()}`;
|
|
221
226
|
this.invoiceUrlSicred = urlTmp;
|
|
222
227
|
this.isLoading = false;
|
|
223
228
|
this.showBilletSicred = true;
|
|
@@ -282,12 +287,15 @@ export default {
|
|
|
282
287
|
responseType: 'blob'
|
|
283
288
|
}).then((response) => {
|
|
284
289
|
let blob = new Blob([response.data], {type: 'application/pdf'}), url = window.URL.createObjectURL(blob);
|
|
290
|
+
|
|
291
|
+
console.log(url);
|
|
292
|
+
|
|
285
293
|
return url;
|
|
286
294
|
});
|
|
287
295
|
},
|
|
288
296
|
|
|
289
297
|
clickDownloadBilletSicred() {
|
|
290
|
-
let urlTmp = ENTRYPOINT + `/
|
|
298
|
+
let urlTmp = ENTRYPOINT + `/download?invoiceUrl=${this.payment.invoiceUrl}`;
|
|
291
299
|
window.open(urlTmp);
|
|
292
300
|
},
|
|
293
301
|
|