From 8a7a409de68ddfb837496269dc2f493a537663be Mon Sep 17 00:00:00 2001 From: josedario87 Date: Sat, 22 Nov 2025 02:25:04 -0600 Subject: [PATCH] fix --- nuxt4/app/app.vue | 19 +++++++++++++++++-- .../components/lotes/TrazabilidadGraph.vue | 12 ++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/nuxt4/app/app.vue b/nuxt4/app/app.vue index ec6e420..7922ee7 100644 --- a/nuxt4/app/app.vue +++ b/nuxt4/app/app.vue @@ -228,7 +228,7 @@

Detalle de Operación

- {{ getTipoLabel(selectedOperacion.tipo) }} · {{ formatDate(selectedOperacion.fecha) }} + {{ getOperacionTipoLabel(selectedOperacion.tipo) }} · {{ formatDate(selectedOperacion.fecha) }}

@@ -246,7 +246,7 @@

Tipo

- {{ getTipoLabel(selectedOperacion.tipo) }} + {{ getOperacionTipoLabel(selectedOperacion.tipo) }}
@@ -351,6 +351,21 @@ const closeOperacionDetailModal = () => { selectedOperacion.value = null } +const getOperacionTipoLabel = (tipo: string) => { + const found = TIPOS_OPERACION.find((t) => t.value === tipo) + return found?.label || tipo +} + +const formatDate = (dateString: string) => { + return new Date(dateString).toLocaleDateString('es-AR', { + day: '2-digit', + month: '2-digit', + year: 'numeric', + hour: '2-digit', + minute: '2-digit', + }) +} + // Datos para grafos const graphSelectItems = computed(() => graphLotes.value.map((lote) => ({ diff --git a/nuxt4/app/components/lotes/TrazabilidadGraph.vue b/nuxt4/app/components/lotes/TrazabilidadGraph.vue index aa8182d..70ea869 100644 --- a/nuxt4/app/components/lotes/TrazabilidadGraph.vue +++ b/nuxt4/app/components/lotes/TrazabilidadGraph.vue @@ -81,6 +81,18 @@ class="transition-opacity duration-200" :opacity="0.9" /> + + +