fix 2
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m5s

This commit is contained in:
2025-11-22 02:29:24 -06:00
parent 8a7a409de6
commit ef7554dafd

View File

@@ -269,7 +269,7 @@
import type { Lote, Operacion } from '~/composables/useLotes' import type { Lote, Operacion } from '~/composables/useLotes'
const { isAuthenticated } = useAuthentik() const { isAuthenticated } = useAuthentik()
const { fetchLotes: fetchLotesComposable } = useLotes() const { fetchLotes: fetchLotesComposable, TIPOS_LOTE, TIPOS_OPERACION } = useLotes()
// Navegación // Navegación
const selectedTab = ref('lotes') const selectedTab = ref('lotes')
@@ -351,6 +351,11 @@ const closeOperacionDetailModal = () => {
selectedOperacion.value = null 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 getOperacionTipoLabel = (tipo: string) => {
const found = TIPOS_OPERACION.find((t) => t.value === tipo) const found = TIPOS_OPERACION.find((t) => t.value === tipo)
return found?.label || tipo return found?.label || tipo