@freteclick/quasar-financial-ui 1.0.111 → 1.0.113
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 +1 -1
- package/src/components/common/Filters.vue +3 -6
- package/src/components/expense/FormExpense.vue +3 -3
- package/src/components/expense/TableExpenses.vue +3 -3
- package/src/components/invoice/client/InvoiceSearching.vue +5 -6
- package/src/components/invoice/client/details/InvoiceInvoice.vue +1 -1
- package/src/components/invoice/client/details/InvoiceOrders.vue +5 -6
- package/src/components/invoice/expense/CreateExpense.vue +1 -1
- package/src/components/invoice/expense/DetailExpense.vue +2 -2
- package/src/components/invoice/pay/InvoiceSearching.vue +4 -4
- package/src/components/invoice/pay/details/InvoiceOrders.vue +5 -6
- package/src/components/invoice/receive/InvoiceSearching.vue +3 -3
- package/src/components/invoice/receive/details/InvoiceInvoice.vue +1 -1
- package/src/components/invoice/receive/details/InvoiceInvoiceBkp.vue +2 -2
- package/src/components/invoice/receive/details/InvoiceOrders.vue +7 -7
package/package.json
CHANGED
|
@@ -31,13 +31,10 @@
|
|
|
31
31
|
</q-card>
|
|
32
32
|
</template>
|
|
33
33
|
<script>
|
|
34
|
-
import { mapActions
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
formatDateYmdTodmY,
|
|
38
|
-
} from "@freteclick/quasar-common-ui/src/utils/formatter";
|
|
34
|
+
import { mapActions } from "vuex";
|
|
35
|
+
|
|
36
|
+
|
|
39
37
|
import DataFilter from "@freteclick/quasar-common-ui/src/components/common/DataFilter.vue";
|
|
40
|
-
import { date } from "quasar";
|
|
41
38
|
|
|
42
39
|
export default {
|
|
43
40
|
components: {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<q-date
|
|
74
74
|
v-model ="item.dueDate"
|
|
75
75
|
mask ="DD/MM/YYYY"
|
|
76
|
-
@
|
|
76
|
+
@update:model-value ="() => $refs.qDateProxy1.hide()"
|
|
77
77
|
/>
|
|
78
78
|
</q-popup-proxy>
|
|
79
79
|
</q-icon>
|
|
@@ -279,8 +279,8 @@ export default {
|
|
|
279
279
|
"provider" : this.item.provider,
|
|
280
280
|
"amount" : parseFloat(this.item.amount.replace(',', '.')),
|
|
281
281
|
"parcels" : this.item.recurrence == 'monthly' ? null : this.item.parcels,
|
|
282
|
-
"dueDate" : this.item.dueDate ? this.item.dueDate.replace(/^(\d{2})\/(\d{2})\/(\d{4})$/g, "
|
|
283
|
-
"paymentDay" : parseInt(this.item.dueDate.replace(/^(\d{2})\/(\d{2})\/(\d{4})$/g, "
|
|
282
|
+
"dueDate" : this.item.dueDate ? this.item.dueDate.replace(/^(\d{2})\/(\d{2})\/(\d{4})$/g, "$3-$2-$1") : null,
|
|
283
|
+
"paymentDay" : parseInt(this.item.dueDate.replace(/^(\d{2})\/(\d{2})\/(\d{4})$/g, "$1")),
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
"myCompany" : this.myCompany.id
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<q-table
|
|
4
4
|
:loading ="isLoading"
|
|
5
|
-
:
|
|
5
|
+
:rows ="items"
|
|
6
6
|
:columns ="settings.columns"
|
|
7
|
-
:pagination
|
|
7
|
+
v-model:pagination="pagination"
|
|
8
8
|
@request ="onRequest"
|
|
9
9
|
row-key ="id"
|
|
10
10
|
style ="min-height: 90vh;"
|
|
@@ -257,7 +257,7 @@ export default {
|
|
|
257
257
|
let {
|
|
258
258
|
page,
|
|
259
259
|
rowsPerPage,
|
|
260
|
-
|
|
260
|
+
|
|
261
261
|
sortBy,
|
|
262
262
|
descending
|
|
263
263
|
} = props.pagination;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<q-table
|
|
4
4
|
:loading ="isLoading"
|
|
5
|
-
:
|
|
5
|
+
:rows ="data"
|
|
6
6
|
:columns ="settings.columns"
|
|
7
|
-
:pagination
|
|
7
|
+
v-model:pagination="pagination"
|
|
8
8
|
@request ="onRequest"
|
|
9
9
|
row-key ="id"
|
|
10
10
|
:visible-columns="settings.visibleColumns"
|
|
@@ -192,7 +192,7 @@ export default {
|
|
|
192
192
|
this.requestStatuses();
|
|
193
193
|
},
|
|
194
194
|
|
|
195
|
-
|
|
195
|
+
beforeUnmount() {
|
|
196
196
|
this.reset();
|
|
197
197
|
},
|
|
198
198
|
|
|
@@ -322,7 +322,6 @@ export default {
|
|
|
322
322
|
})
|
|
323
323
|
.then(statuses => {
|
|
324
324
|
if (statuses.length) {
|
|
325
|
-
let data = [];
|
|
326
325
|
for (let index in statuses) {
|
|
327
326
|
let item = statuses[index];
|
|
328
327
|
this.statuses.push({
|
|
@@ -339,11 +338,11 @@ export default {
|
|
|
339
338
|
let {
|
|
340
339
|
page,
|
|
341
340
|
rowsPerPage,
|
|
342
|
-
|
|
341
|
+
|
|
343
342
|
sortBy,
|
|
344
343
|
descending
|
|
345
344
|
} = props.pagination;
|
|
346
|
-
|
|
345
|
+
|
|
347
346
|
let params = { itemsPerPage: rowsPerPage, page };
|
|
348
347
|
|
|
349
348
|
if (this.filters.text != null && this.filters.text.length > 0) {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<div style="height: 1200px">
|
|
19
19
|
<iframe :src="invoiceUrlSicred" name="BILLETINTER" id="billet_sicred" width="100%" height="100%"
|
|
20
20
|
frameBorder="0">
|
|
21
|
-
|
|
21
|
+
This browser does not support IFrame.
|
|
22
22
|
</iframe>
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<q-table :loading="isLoading" :
|
|
2
|
+
<q-table :loading="isLoading" :rows="data" :columns="settings.columns" v-model:pagination="pagination"
|
|
3
3
|
@request="onRequest" row-key="id" :visible-columns="settings.visibleColumns" style="min-height: 90vh;">
|
|
4
4
|
<template v-slot:body="props">
|
|
5
5
|
<q-tr :props="props">
|
|
@@ -169,7 +169,7 @@ export default {
|
|
|
169
169
|
this.requestStatuses();
|
|
170
170
|
},
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
beforeUnmount() {
|
|
173
173
|
this.reset();
|
|
174
174
|
},
|
|
175
175
|
|
|
@@ -292,11 +292,10 @@ export default {
|
|
|
292
292
|
this.getStatuses({
|
|
293
293
|
visibility: 'public',
|
|
294
294
|
realStatus: ['open', 'pending', 'closed'],
|
|
295
|
-
context: order
|
|
295
|
+
context: 'order'
|
|
296
296
|
})
|
|
297
297
|
.then(statuses => {
|
|
298
298
|
if (statuses.length) {
|
|
299
|
-
let data = [];
|
|
300
299
|
for (let index in statuses) {
|
|
301
300
|
let item = statuses[index];
|
|
302
301
|
this.statuses.push({
|
|
@@ -313,11 +312,11 @@ export default {
|
|
|
313
312
|
let {
|
|
314
313
|
page,
|
|
315
314
|
rowsPerPage,
|
|
316
|
-
|
|
315
|
+
|
|
317
316
|
sortBy,
|
|
318
317
|
descending
|
|
319
318
|
} = props.pagination;
|
|
320
|
-
|
|
319
|
+
|
|
321
320
|
let params = { itemsPerPage: rowsPerPage, page };
|
|
322
321
|
|
|
323
322
|
if (this.filters.text != null && this.filters.text.length > 0) {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
<template v-slot:append>
|
|
37
37
|
<q-icon name="event" class="cursor-pointer">
|
|
38
38
|
<q-popup-proxy ref="qDateProxy1" transition-show="scale" transition-hide="scale">
|
|
39
|
-
<q-date v-model="item.dueDate" mask="DD/MM/YYYY" @
|
|
39
|
+
<q-date v-model="item.dueDate" mask="DD/MM/YYYY" @update:model-value="() => $refs.qDateProxy1.hide()" />
|
|
40
40
|
</q-popup-proxy>
|
|
41
41
|
</q-icon>
|
|
42
42
|
</template>
|
|
@@ -338,7 +338,7 @@ export default {
|
|
|
338
338
|
},
|
|
339
339
|
|
|
340
340
|
loadInvoice() {
|
|
341
|
-
|
|
341
|
+
|
|
342
342
|
|
|
343
343
|
this.isLoading = true;
|
|
344
344
|
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
<q-table
|
|
17
17
|
flat
|
|
18
18
|
:loading="isLoading"
|
|
19
|
-
:
|
|
19
|
+
:rows="data"
|
|
20
20
|
:columns="settings.columns"
|
|
21
|
-
:pagination
|
|
21
|
+
v-model:pagination="pagination"
|
|
22
22
|
@request="onRequest"
|
|
23
23
|
row-key="id"
|
|
24
24
|
style="min-height: 90vh"
|
|
@@ -149,7 +149,7 @@ export default {
|
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
beforeUnmount() {
|
|
153
153
|
this.reset();
|
|
154
154
|
},
|
|
155
155
|
|
|
@@ -342,7 +342,7 @@ export default {
|
|
|
342
342
|
|
|
343
343
|
let pagination = props ? props.pagination : this.pagination;
|
|
344
344
|
|
|
345
|
-
let { page, rowsPerPage,
|
|
345
|
+
let { page, rowsPerPage, sortBy, descending } = pagination;
|
|
346
346
|
|
|
347
347
|
let params = { itemsPerPage: rowsPerPage, page };
|
|
348
348
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<q-table
|
|
3
3
|
:loading="isLoading"
|
|
4
|
-
:
|
|
4
|
+
:rows="data"
|
|
5
5
|
:columns="settings.columns"
|
|
6
|
-
:pagination
|
|
6
|
+
v-model:pagination="pagination"
|
|
7
7
|
@request="onRequest"
|
|
8
8
|
row-key="id"
|
|
9
9
|
style="min-height: 90vh"
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
154
154
|
this.requestStatuses();
|
|
155
155
|
},
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
beforeUnmount() {
|
|
158
158
|
this.reset();
|
|
159
159
|
},
|
|
160
160
|
|
|
@@ -291,7 +291,6 @@ export default {
|
|
|
291
291
|
context:'order'
|
|
292
292
|
}).then((statuses) => {
|
|
293
293
|
if (statuses.length) {
|
|
294
|
-
let data = [];
|
|
295
294
|
for (let index in statuses) {
|
|
296
295
|
let item = statuses[index];
|
|
297
296
|
this.statuses.push({
|
|
@@ -305,9 +304,9 @@ export default {
|
|
|
305
304
|
},
|
|
306
305
|
|
|
307
306
|
onRequest(props) {
|
|
308
|
-
let { page, rowsPerPage,
|
|
307
|
+
let { page, rowsPerPage, sortBy, descending } =
|
|
309
308
|
props.pagination;
|
|
310
|
-
|
|
309
|
+
|
|
311
310
|
let params = { itemsPerPage: rowsPerPage, page };
|
|
312
311
|
|
|
313
312
|
if (this.filters.text != null && this.filters.text.length > 0) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<Filters :filters="filters" @onRequest="onRequest" />
|
|
4
|
-
<q-table :loading="isLoading" :
|
|
4
|
+
<q-table :loading="isLoading" :rows="data" :columns="settings.columns" v-model:pagination="pagination"
|
|
5
5
|
@request="onRequest" row-key="id" :visible-columns="settings.visibleColumns" style="min-height: 90vh">
|
|
6
6
|
<template v-slot:body="props">
|
|
7
7
|
<q-tr :props="props">
|
|
@@ -165,7 +165,7 @@ export default {
|
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
beforeUnmount() {
|
|
169
169
|
this.reset();
|
|
170
170
|
},
|
|
171
171
|
|
|
@@ -313,7 +313,7 @@ export default {
|
|
|
313
313
|
|
|
314
314
|
let pagination = props ? props.pagination : this.pagination;
|
|
315
315
|
|
|
316
|
-
let { page, rowsPerPage,
|
|
316
|
+
let { page, rowsPerPage, sortBy, descending } = pagination;
|
|
317
317
|
|
|
318
318
|
let params = { itemsPerPage: rowsPerPage, page };
|
|
319
319
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<div style="height: 1200px">
|
|
35
35
|
<iframe :src="invoiceUrlSicred" name="BILLETINTER" id="billet_sicred" width="100%" height="100%"
|
|
36
36
|
frameBorder="0">
|
|
37
|
-
|
|
37
|
+
This browser does not support IFrame.
|
|
38
38
|
</iframe>
|
|
39
39
|
</div>
|
|
40
40
|
</div>
|
|
@@ -107,7 +107,7 @@ export default {
|
|
|
107
107
|
window.addEventListener ('focus', this.loadItauDataOnFocus);
|
|
108
108
|
},
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
beforeUnmount() {
|
|
111
111
|
window.removeEventListener('focus', this.loadItauDataOnFocus);
|
|
112
112
|
},
|
|
113
113
|
|
|
@@ -257,4 +257,4 @@ export default {
|
|
|
257
257
|
},
|
|
258
258
|
},
|
|
259
259
|
};
|
|
260
|
-
</script>
|
|
260
|
+
</script>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<q-table
|
|
3
3
|
:loading="isLoading"
|
|
4
|
-
:
|
|
4
|
+
:rows="data"
|
|
5
5
|
:columns="settings.columns"
|
|
6
|
-
:pagination
|
|
6
|
+
v-model:pagination="pagination"
|
|
7
7
|
@request="onRequest"
|
|
8
8
|
row-key="@id"
|
|
9
9
|
:visible-columns="settings.visibleColumns"
|
|
@@ -105,7 +105,7 @@ const SETTINGS = {
|
|
|
105
105
|
align: "left",
|
|
106
106
|
format: (val, row) => {
|
|
107
107
|
return val.replace(
|
|
108
|
-
/^(\d{4})
|
|
108
|
+
/^(\d{4})-(\d{2})-(\d{2})T\d{2}:\d{2}:\d{2}\+\d{2}:\d{2}$/g,
|
|
109
109
|
"$3/$2/$1"
|
|
110
110
|
);
|
|
111
111
|
},
|
|
@@ -207,7 +207,7 @@ export default {
|
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
beforeUnmount() {
|
|
211
211
|
this.reset();
|
|
212
212
|
},
|
|
213
213
|
|
|
@@ -343,9 +343,9 @@ export default {
|
|
|
343
343
|
onRequest(props) {
|
|
344
344
|
if (this.isLoading) return;
|
|
345
345
|
|
|
346
|
-
let { page, rowsPerPage,
|
|
346
|
+
let { page, rowsPerPage, sortBy, descending } =
|
|
347
347
|
props.pagination;
|
|
348
|
-
|
|
348
|
+
|
|
349
349
|
let params = { itemsPerPage: rowsPerPage, page };
|
|
350
350
|
|
|
351
351
|
if (this.filters.company != null) {
|
|
@@ -367,4 +367,4 @@ export default {
|
|
|
367
367
|
},
|
|
368
368
|
},
|
|
369
369
|
};
|
|
370
|
-
</script>
|
|
370
|
+
</script>
|