This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user