From e8396ea3385704150702f56225029522760f81e3 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 6 Aug 2024 11:55:44 +0200 Subject: [PATCH] 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) }}