seguimos confiando en codex
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m4s

This commit is contained in:
2025-11-22 00:57:13 -06:00
parent 9b1628485f
commit 47c42cbcf3
3 changed files with 52 additions and 26 deletions

View File

@@ -49,25 +49,25 @@
label: 'No hay lotes registrados'
}"
>
<template #codigo-cell="{ row }">
<span class="font-mono font-semibold">{{ row.codigo || '-' }}</span>
<template #codigo-cell="{ getValue }">
<span class="font-mono font-semibold">{{ getValue() || '-' }}</span>
</template>
<template #tipo-cell="{ row }">
<UBadge :color="getTipoColor(row.tipo)" variant="subtle">
{{ getTipoLabel(row.tipo) }}
<template #tipo-cell="{ getValue }">
<UBadge :color="getTipoColor(getValue())" variant="subtle">
{{ getTipoLabel(getValue()) }}
</UBadge>
</template>
<template #cantidad_kg-cell="{ row }">
<span v-if="row.cantidad_kg" class="font-medium">
{{ row.cantidad_kg.toLocaleString('es-AR') }} kg
<template #cantidad_kg-cell="{ getValue }">
<span v-if="getValue()" class="font-medium">
{{ getValue().toLocaleString('es-AR') }} kg
</span>
<span v-else class="text-gray-400">-</span>
</template>
<template #fecha_creado-cell="{ row }">
{{ formatDate(row.fecha_creado) }}
<template #fecha_creado-cell="{ getValue }">
{{ formatDate(getValue()) }}
</template>
<template #actions-cell="{ row }">

View File

@@ -49,17 +49,17 @@
label: 'No hay operaciones registradas'
}"
>
<template #tipo-cell="{ row }">
<template #tipo-cell="{ row, getValue }">
<div class="flex items-center gap-2">
<UIcon :name="getTipoIcon(row.tipo)" class="w-4 h-4" />
<UBadge :color="getTipoColor(row.tipo)" variant="subtle">
{{ getTipoLabel(row.tipo) }}
<UIcon :name="getTipoIcon(getValue())" class="w-4 h-4" />
<UBadge :color="getTipoColor(getValue())" variant="subtle">
{{ getTipoLabel(getValue()) }}
</UBadge>
</div>
</template>
<template #fecha-cell="{ row }">
{{ formatDate(row.fecha) }}
<template #fecha-cell="{ getValue }">
{{ formatDate(getValue()) }}
</template>
<template #actions-cell="{ row }">