From 02ce4f2658d586e98a265c43cc9e0cfdbbc6f8da Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 3 Jul 2024 15:12:20 -0300 Subject: [PATCH] Small change --- src/pages/Ticket/Card/TicketComponents.vue | 13 ++++++++----- src/pages/Ticket/Card/TicketService.vue | 1 - 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/pages/Ticket/Card/TicketComponents.vue b/src/pages/Ticket/Card/TicketComponents.vue index 85d2179a2..5aeb6b0a5 100644 --- a/src/pages/Ticket/Card/TicketComponents.vue +++ b/src/pages/Ticket/Card/TicketComponents.vue @@ -37,7 +37,8 @@ watch( getTheoricalCost(); if (ticketData.value?.zone && ticketData.value?.zone?.isVolumetric) getTicketVolume(); - } + }, + { immediate: true } ); const salesFilter = computed(() => ({ @@ -134,7 +135,6 @@ const getComponentsSum = async () => { try { const { data } = await axios.get(`Tickets/${route.params.id}/getComponentsSum`); componentsList.value = data; - console.log('componentsList', componentsList.value); } catch (error) { console.error(error); } @@ -153,7 +153,6 @@ const getTicketVolume = async () => { try { if (!ticketData.value) return; const { data } = await axios.get(`Tickets/${ticketData.value.id}/getVolume`); - console.log('data volume: ', data); ticketVolume.value = data[0].volume; } catch (error) { console.error(error); @@ -218,8 +217,12 @@ onUnmounted(() => (stateStore.rightDrawer = false)); class="justify-center" horizontal > - {{ component.name }}: - {{ toCurrency(component.value, 'EUR', 3) }} + + {{ component.name }}: + + {{ + toCurrency(component.value, 'EUR', 3) + }} { params: { filter: JSON.stringify(filter) }, }); defaultTaxClass.value = data; - console.log('defaultTaxClass', defaultTaxClass.value); } catch (error) { console.error(error); }