feat: use VnTable

This commit is contained in:
Javier Segarra 2024-07-01 14:05:52 +02:00
parent eeab4ed915
commit d2292601de
2 changed files with 24 additions and 24 deletions

View File

@ -123,7 +123,6 @@ onMounted(async () => {
<i18n> <i18n>
es: es:
Print buys: Imprimir compras
Inventory entry: Es inventario Inventory entry: Es inventario
Virtual entry: Es una redada Virtual entry: Es una redada
Search entries: Buscar entradas Search entries: Buscar entradas

View File

@ -34,28 +34,33 @@ const columns = computed(() => [
condition: () => true, condition: () => true,
}, },
isId: true, isId: true,
columnFilter: { isTitle: false,
component: 'select',
name: 'search',
attrs: {
url: 'Clients',
fields: ['id', 'name'],
},
},
}, },
{ {
align: 'left', align: 'left',
label: t('customer.extendedList.tableVisibleColumns.name'), label: t('globals.shipped'),
name: 'name', name: 'shipped',
isTitle: true, isTitle: false,
create: true, create: true,
cardVisible: true,
format: ({ shipped }) => toDate(shipped),
}, },
{ {
align: 'left', align: 'left',
name: 'socialName', label: t('globals.landed'),
label: t('customer.extendedList.tableVisibleColumns.socialName'), name: 'landed',
isTitle: true, isTitle: false,
create: true, create: true,
cardVisible: true,
format: ({ landed }) => toDate(landed),
},
{
align: 'left',
label: t('globals.wareHouseIn'),
name: 'wareouseIn',
isTitle: false,
cardVisible: true,
create: false,
}, },
{ {
align: 'right', align: 'right',
@ -102,25 +107,21 @@ import VnTable from 'components/VnTable/VnTable.vue';
url="Entries/filter" url="Entries/filter"
:order="['landed DESC', 'id DESC']" :order="['landed DESC', 'id DESC']"
:columns="columns" :columns="columns"
default-mode="table" default-mode="card"
redirect="customer" redirect="customer"
auto-load auto-load
:create="null" :options="[]"
:right-search="false"
> >
<template #top-left></template>
</VnTable> </VnTable>
</div> </div>
</QPage> </QPage>
<QPageSticky :offset="[20, 20]">
<QBtn fab icon="add" color="primary" @click="redirectToCreateView()" />
<QTooltip>
{{ t('entry.list.newEntry') }}
</QTooltip>
</QPageSticky>
</template> </template>
<i18n> <i18n>
es: es:
Print buys: Imprimir compras Print buys: Imprimir etiquetas
Inventory entry: Es inventario Inventory entry: Es inventario
Virtual entry: Es una redada Virtual entry: Es una redada
Search entries: Buscar entradas Search entries: Buscar entradas