@freteclick/quasar-financial-ui 1.0.91 → 1.0.93

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freteclick/quasar-financial-ui",
3
- "version": "1.0.91",
3
+ "version": "1.0.93",
4
4
  "author": "FreteClick",
5
5
  "description": "FreteClick financial Quasar UI Component",
6
6
  "license": "MIT",
@@ -20,8 +20,8 @@
20
20
 
21
21
  <!-- BILLET VIEWER SICRED -->
22
22
  <div :class="showBilletSicred ? 'full-width q-pa-lg' : 'hidden'">
23
- <div class="col-12 q-pt-lg" v-if=" paymentInstitution === 'sicred'">
24
- <div class="row justify-center items-center">
23
+ <div class="col-12 q-pt-lg" v-if="paymentInstitution === 'sicred'">
24
+ <!-- <div class="row justify-center items-center">
25
25
  <q-btn
26
26
  icon="money"
27
27
  size="lg"
@@ -31,7 +31,15 @@
31
31
  @click="clickDownloadBilletSicred()"
32
32
  :disable="isPaid"
33
33
  />
34
- </div>
34
+ </div> -->
35
+
36
+ <div style="height: 1200px">
37
+ <iframe
38
+ :src="invoiceUrlSicred"
39
+ name="BILLETINTER" id="billet_sicred" width="100%" height="100%" frameBorder="0">
40
+ <p>This browser does not support IFrame.</p>
41
+ </iframe>
42
+ </div>
35
43
  </div>
36
44
  </div>
37
45
 
@@ -222,7 +230,8 @@ export default {
222
230
  else {
223
231
 
224
232
  this.showBillet = false;
225
- let urlTmp = ENTRYPOINT + `/download?invoiceUrl=${this.payment.invoiceUrl}`;
233
+ let urlTmp = ENTRYPOINT + `/vendor/pdf.js/web/viewer.html?file=/finance/${this.invoiceId}/bank/sicred/download?timestamp${new Date().getTime()}`;
234
+ // let urlTmp = ENTRYPOINT + `/download?invoiceUrl=${this.payment.invoiceUrl}`;
226
235
  this.invoiceUrlSicred = urlTmp;
227
236
  this.isLoading = false;
228
237
  this.showBilletSicred = true;
@@ -52,8 +52,11 @@
52
52
  <tr>
53
53
  <td class="text-left text-bold">Vencimento</td>
54
54
  <td class="text-left">
55
- <EditInvoiceDuedate v-if="editDueDate" :dueDate="invoice.dueDate"
56
- :invoiceId="invoice['@id'] || ''" @saved="(data) => (invoice = data)" />
55
+ <EditInvoiceDuedate v-if="editDueDate"
56
+ :dueDate="invoice.dueDate"
57
+ :invoiceId="invoice['@id'] || ''"
58
+ @saved="(data) => (invoice = data)"
59
+ />
57
60
  <div v-else>
58
61
  {{ invoice.dueDate }}
59
62
  </div>
@@ -106,7 +109,7 @@
106
109
  <InvoiceOrders :invoiceId="invoiceId" :invoice="{
107
110
  '@id': invoice ? invoice['@id'] : null,
108
111
  status: invoice ? invoice.status.realStatus : null,
109
- billet: editDueDate ? false : true,
112
+ billet: editDueDate = true,
110
113
  }" />
111
114
  </q-tab-panel>
112
115
  </q-tab-panels>
@@ -278,4 +281,4 @@ export default {
278
281
  },
279
282
  },
280
283
  };
281
- </script>
284
+ </script>
@@ -206,8 +206,8 @@ export default {
206
206
  data: [],
207
207
  filters: {
208
208
  orderType: {
209
- label: "Todos",
210
- value: null,
209
+ label: "Venda",
210
+ value: "sale",
211
211
  },
212
212
  date: {
213
213
  from: "",
@@ -20,8 +20,8 @@
20
20
 
21
21
  <!-- BILLET VIEWER SICRED -->
22
22
  <div :class="showBilletSicred ? 'full-width q-pa-lg' : 'hidden'">
23
- <div class="col-12 q-pt-lg" v-if=" paymentInstitution === 'sicred'">
24
- <div class="row justify-center items-center">
23
+ <div class="col-12 q-pt-lg" v-if="paymentInstitution === 'sicred'">
24
+ <!-- <div class="row justify-center items-center">
25
25
  <q-btn
26
26
  icon="money"
27
27
  size="lg"
@@ -31,7 +31,15 @@
31
31
  @click="clickDownloadBilletSicred()"
32
32
  :disable="isPaid"
33
33
  />
34
- </div>
34
+ </div> -->
35
+
36
+ <div style="height: 1200px">
37
+ <iframe
38
+ :src="invoiceUrlSicred"
39
+ name="BILLETINTER" id="billet_sicred" width="100%" height="100%" frameBorder="0">
40
+ <p>This browser does not support IFrame.</p>
41
+ </iframe>
42
+ </div>
35
43
  </div>
36
44
  </div>
37
45
 
@@ -222,7 +230,8 @@ export default {
222
230
  else {
223
231
 
224
232
  this.showBillet = false;
225
- let urlTmp = ENTRYPOINT + `/download?invoiceUrl=${this.payment.invoiceUrl}`;
233
+ let urlTmp = ENTRYPOINT + `/vendor/pdf.js/web/viewer.html?file=/finance/${this.invoiceId}/bank/sicred/download?timestamp${new Date().getTime()}`;
234
+ // let urlTmp = ENTRYPOINT + `/download?invoiceUrl=${this.payment.invoiceUrl}`;
226
235
  this.invoiceUrlSicred = urlTmp;
227
236
  this.isLoading = false;
228
237
  this.showBilletSicred = true;