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
warehouseOut: Warehouse Out
latestBuys:
tableVisibleColumns:
picture: Picture
itemFk: Item ID
packing: Packing

View File

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

View File

@ -11,7 +11,7 @@ import { useArrayData } from 'composables/useArrayData';
const router = useRouter();
const stateStore = useStateStore();
const { t } = useI18n();
import { toDate } from 'src/filters';
const rowsFetchDataRef = ref(null);
const editTableCellDialogRef = ref(null);
const allColumnNames = ref([]);
@ -222,7 +222,12 @@ const columns = computed(() => [
{
align: 'left',
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"
order="id DESC"
:columns="columns"
redirect="buy"
redirect="entry"
default-mode="table"
auto-load
:right-search="false"