From e8396ea3385704150702f56225029522760f81e3 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 6 Aug 2024 11:55:44 +0200 Subject: [PATCH 1/3] refactor: refs #6899 added descriptors to VnTable and fix descriptor redirect --- src/composables/useArrayData.js | 2 +- .../InvoiceOut/Card/InvoiceOutDescriptor.vue | 2 +- src/pages/InvoiceOut/InvoiceOutList.vue | 7 +++++++ .../InvoiceOut/InvoiceOutNegativeBases.vue | 21 +++++++++++++++++++ src/pages/Ticket/Card/TicketSummary.vue | 2 +- 5 files changed, 31 insertions(+), 3 deletions(-) diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index 50d620a34..651bcefb0 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -28,7 +28,7 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) { delete params.filter; store.userParams = { ...params, ...store.userParams }; store.userFilter = { ...filter, ...store.userFilter }; - if (filter.order) store.order = filter.order; + if (filter?.order) store.order = filter.order; } }); diff --git a/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue b/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue index 42b8d92d9..e0ca2f9f2 100644 --- a/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue +++ b/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue @@ -100,7 +100,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.ref, entity. color="primary" :to="{ name: 'TicketList', - query: { q: ticketFilter(entity) }, + query: { table: ticketFilter(entity) }, }" > {{ t('invoiceOut.card.ticketList') }} diff --git a/src/pages/InvoiceOut/InvoiceOutList.vue b/src/pages/InvoiceOut/InvoiceOutList.vue index 5a611d388..7e4622560 100644 --- a/src/pages/InvoiceOut/InvoiceOutList.vue +++ b/src/pages/InvoiceOut/InvoiceOutList.vue @@ -13,6 +13,7 @@ import { toCurrency, toDate } from 'src/filters/index'; import { useStateStore } from 'stores/useStateStore'; import { QBtn } from 'quasar'; import { watchEffect } from 'vue'; +import CustomerDescriptorProxy from '../Customer/Card/CustomerDescriptorProxy.vue'; const { t } = useI18n(); const stateStore = useStateStore(); @@ -214,6 +215,12 @@ watchEffect(selectedRows); selection: 'multiple', }" > + diff --git a/src/pages/Ticket/Card/TicketSummary.vue b/src/pages/Ticket/Card/TicketSummary.vue index 295e8bca5..dc3e092cd 100644 --- a/src/pages/Ticket/Card/TicketSummary.vue +++ b/src/pages/Ticket/Card/TicketSummary.vue @@ -181,7 +181,7 @@ async function changeState(value) { {{ dashIfEmpty(ticket.refFk) }} From 990fe65a630791463a7239a6cb72e2def6b28b15 Mon Sep 17 00:00:00 2001 From: pablone Date: Tue, 6 Aug 2024 14:17:17 +0200 Subject: [PATCH 2/3] fix: filter and correct list --- src/pages/Route/Card/RouteFilter.vue | 63 +++++-------------------- src/pages/Route/Card/RouteSearchbar.vue | 3 +- src/pages/Route/RouteList.vue | 9 +++- 3 files changed, 20 insertions(+), 55 deletions(-) diff --git a/src/pages/Route/Card/RouteFilter.vue b/src/pages/Route/Card/RouteFilter.vue index f0215370f..24b155389 100644 --- a/src/pages/Route/Card/RouteFilter.vue +++ b/src/pages/Route/Card/RouteFilter.vue @@ -1,7 +1,5 @@