From ef7554dafd41a2086f48aaa8e74e37e746603c5c Mon Sep 17 00:00:00 2001 From: josedario87 Date: Sat, 22 Nov 2025 02:29:24 -0600 Subject: [PATCH] fix 2 --- nuxt4/app/app.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nuxt4/app/app.vue b/nuxt4/app/app.vue index 7922ee7..8706d2a 100644 --- a/nuxt4/app/app.vue +++ b/nuxt4/app/app.vue @@ -269,7 +269,7 @@ import type { Lote, Operacion } from '~/composables/useLotes' const { isAuthenticated } = useAuthentik() -const { fetchLotes: fetchLotesComposable } = useLotes() +const { fetchLotes: fetchLotesComposable, TIPOS_LOTE, TIPOS_OPERACION } = useLotes() // Navegación const selectedTab = ref('lotes') @@ -351,6 +351,11 @@ const closeOperacionDetailModal = () => { selectedOperacion.value = null } +const getTipoLabel = (tipo: string) => { + const found = TIPOS_LOTE.find((t) => t.value === tipo) + return found?.label || tipo +} + const getOperacionTipoLabel = (tipo: string) => { const found = TIPOS_OPERACION.find((t) => t.value === tipo) return found?.label || tipo