From fed382d1fdda406549927ed76048ace81e84d237 Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 2 Feb 2024 15:28:10 +0100 Subject: [PATCH] fix: refs #4466 conficts --- .../InvoiceIn/Card/InvoiceInCorrective.vue | 2 +- .../InvoiceIn/Card/InvoiceInDescriptor.vue | 38 +++++++++++-------- src/pages/InvoiceIn/InvoiceInFilter.vue | 16 ++++++++ src/router/modules/invoiceIn.js | 21 +--------- 4 files changed, 40 insertions(+), 37 deletions(-) diff --git a/src/pages/InvoiceIn/Card/InvoiceInCorrective.vue b/src/pages/InvoiceIn/Card/InvoiceInCorrective.vue index beab90769..147a42145 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInCorrective.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInCorrective.vue @@ -48,7 +48,7 @@ const columns = computed(() => [ options: siiTypeInvoiceOuts.value, model: 'siiTypeInvoiceOutFk', optionValue: 'id', - optionLabel: 'id', + optionLabel: 'code', sortable: true, tabIndex: 1, align: 'left', diff --git a/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue b/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue index 250ef06e3..1ac3ce823 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue @@ -113,14 +113,12 @@ const routes = reactive({ }, getCorrection: (invoiceInCorrection) => { if (invoiceInCorrection.correcting.length > 1) { - return; - // Se crea una sección aparte? - /* return { + return { name: 'InvoiceInList', - params: { - search: invoiceInCorrection.correcting.join(), + query: { + params: JSON.stringify({ correctedFk: entityId.value }), }, - }; */ + }; } return { @@ -130,6 +128,9 @@ const routes = reactive({ }, }; }, + getEntry: (id) => { + return { name: 'EntryCard', params: { id } }; + }, }); const correctionFormData = reactive({ id: +entityId.value, @@ -143,7 +144,7 @@ onBeforeMount(async () => await setInvoiceCorrection(entityId.value)); watch( () => route.params.id, - async (newId, oldId) => { + async (newId) => { invoiceInCorrection.correcting.length = 0; invoiceInCorrection.corrected = null; if (newId) await setInvoiceCorrection(entityId.value); @@ -161,7 +162,7 @@ async function setInvoiceCorrection(id) { }, }, }), - await axios.get('InvoiceInCorrections', { + axios.get('InvoiceInCorrections', { params: { filter: { where: { @@ -225,7 +226,6 @@ async function checkToBook() { async function toBook() { await axios.post(`InvoiceIns/${entityId.value}/toBook`); - // Pendiente de sincronizar todo con arrayData quasar.notify({ type: 'positive', message: t('globals.dataSaved'), @@ -327,7 +327,6 @@ const createInvoiceInCorrection = async () => { @on-fetch="(data) => (invoiceCorrectionTypes = data)" auto-load /> - {