refs #6897 fix latestbuys trad

This commit is contained in:
Carlos Satorres 2024-06-28 11:23:29 +02:00
parent 2e8396d1d4
commit b05528ae14
3 changed files with 66 additions and 59 deletions

View File

@ -413,6 +413,7 @@ entry:
landed: Landed landed: Landed
warehouseOut: Warehouse Out warehouseOut: Warehouse Out
latestBuys: latestBuys:
tableVisibleColumns:
picture: Picture picture: Picture
itemFk: Item ID itemFk: Item ID
packing: Packing packing: Packing

View File

@ -412,9 +412,10 @@ entry:
landed: F. entrega landed: F. entrega
warehouseOut: Alm. salida warehouseOut: Alm. salida
latestBuys: latestBuys:
tableVisibleColumns:
picture: Foto picture: Foto
itemFk: ID Artículo itemFk: Id Artículo
packing: Packing packing: packing
grouping: Grouping grouping: Grouping
quantity: Cantidad quantity: Cantidad
size: Medida size: Medida

View File

@ -11,7 +11,7 @@ import { useArrayData } from 'composables/useArrayData';
const router = useRouter(); const router = useRouter();
const stateStore = useStateStore(); const stateStore = useStateStore();
const { t } = useI18n(); const { t } = useI18n();
import { toDate } from 'src/filters';
const rowsFetchDataRef = ref(null); const rowsFetchDataRef = ref(null);
const editTableCellDialogRef = ref(null); const editTableCellDialogRef = ref(null);
const allColumnNames = ref([]); const allColumnNames = ref([]);
@ -222,7 +222,12 @@ const columns = computed(() => [
{ {
align: 'left', align: 'left',
label: t('entry.latestBuys.tableVisibleColumns.landing'), label: t('entry.latestBuys.tableVisibleColumns.landing'),
name: 'landing' name: 'landing',
component: 'date',
columnField: {
component: null,
},
format: (row, dashIfEmpty) => dashIfEmpty(toDate(row.landing))
}, },
]); ]);
@ -277,7 +282,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
url="Buys/latestBuysFilter" url="Buys/latestBuysFilter"
order="id DESC" order="id DESC"
:columns="columns" :columns="columns"
redirect="buy" redirect="entry"
default-mode="table" default-mode="table"
auto-load auto-load
:right-search="false" :right-search="false"