@freteclick/quasar-financial-ui 1.0.111 → 1.0.112
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 +2 -2
- package/src/components/expense/TableExpenses.vue +1 -1
- package/src/components/invoice/client/InvoiceSearching.vue +2 -3
- package/src/components/invoice/client/details/InvoiceOrders.vue +3 -4
- package/src/components/invoice/expense/DetailExpense.vue +1 -1
- package/src/components/invoice/pay/InvoiceSearching.vue +1 -1
- package/src/components/invoice/pay/details/InvoiceOrders.vue +2 -3
- package/src/components/invoice/receive/InvoiceSearching.vue +1 -1
- package/src/components/invoice/receive/details/InvoiceOrders.vue +3 -3
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: {
|
|
@@ -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
|
|
@@ -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) {
|
|
@@ -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) {
|
|
@@ -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
|
|
|
@@ -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) {
|
|
@@ -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
|
|
|
@@ -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
|
},
|
|
@@ -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) {
|