feat: add 'visible' column to ItemShelving and fix totalLabels calculation
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Javi Gallego 2025-02-13 09:01:50 +01:00
parent 614b953d63
commit a6a0c134da
1 changed files with 8 additions and 2 deletions

View File

@ -110,10 +110,16 @@ const columns = computed(() => [
attrs: { inWhere: true }, attrs: { inWhere: true },
align: 'left', align: 'left',
}, },
{
label: t('globals.visible'),
name: 'stock',
attrs: { inWhere: true },
align: 'left',
},
]); ]);
const totalLabels = computed(() => const totalLabels = computed(() =>
rows.value.reduce((acc, row) => acc + row.stock / row.packing, 0).toFixed(2) rows.value.reduce((acc, row) => acc + row.stock / row.packing, 0).toFixed(2),
); );
const removeLines = async () => { const removeLines = async () => {
@ -157,7 +163,7 @@ watchEffect(selectedRows);
openConfirmationModal( openConfirmationModal(
t('shelvings.removeConfirmTitle'), t('shelvings.removeConfirmTitle'),
t('shelvings.removeConfirmSubtitle'), t('shelvings.removeConfirmSubtitle'),
removeLines removeLines,
) )
" "
> >