0
0
Fork 0

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>
es:
Print buys: Imprimir compras
Inventory entry: Es inventario
Virtual entry: Es una redada
Search entries: Buscar entradas

View File

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