0
0
Fork 0

hotFix: supplierList correct filter

This commit is contained in:
Carlos Satorres 2024-07-30 11:50:23 +02:00
parent f079ba4022
commit 7ff20f3064
1 changed files with 26 additions and 24 deletions

View File

@ -19,58 +19,61 @@ const columns = computed(() => [
label: t('supplier.list.tableVisibleColumns.name'), label: t('supplier.list.tableVisibleColumns.name'),
name: 'socialName', name: 'socialName',
create: true, create: true,
component: 'input', columnCreate: {
columnField: { component: 'input',
component: null, },
columnFilter: {
name: 'search',
}, },
}, },
{ {
align: 'left', align: 'left',
label: t('supplier.list.tableVisibleColumns.nif'), label: t('supplier.list.tableVisibleColumns.nif'),
name: 'nif', name: 'nif',
component: 'input', columnFilter: {
columnField: { inWhere: true,
component: null,
}, },
}, },
{ {
align: 'left', align: 'left',
label: t('supplier.list.tableVisibleColumns.nickname'), label: t('supplier.list.tableVisibleColumns.nickname'),
name: 'alias', name: 'alias',
component: 'input', columnFilter: {
columnField: { name: 'search',
component: null,
}, },
}, },
{ {
align: 'left', align: 'left',
label: t('supplier.list.tableVisibleColumns.account'), label: t('supplier.list.tableVisibleColumns.account'),
name: 'account', name: 'account',
component: 'input', columnFilter: {
columnField: { inWhere: true,
component: null,
}, },
}, },
{ {
align: 'left', align: 'left',
label: t('supplier.list.tableVisibleColumns.payMethod'), label: t('supplier.list.tableVisibleColumns.payMethod'),
name: 'payMethod', name: 'payMethod',
component: 'select', columnFilter: {
attrs: { inWhere: true,
url: 'payMethods', name: 'payMethodFk',
fields: ['id', 'name'], component: 'select',
}, attrs: {
columnField: { url: 'payMethods',
component: null, fields: ['id', 'name'],
find: {
value: 'payMethodFk',
label: 'name',
},
},
}, },
}, },
{ {
align: 'left', align: 'left',
label: t('supplier.list.tableVisibleColumns.payDay'), label: t('supplier.list.tableVisibleColumns.payDay'),
name: 'payDat', name: 'payDay',
component: 'input', columnFilter: {
columnField: { inWhere: true,
component: null,
}, },
}, },
]); ]);
@ -99,7 +102,6 @@ const columns = computed(() => [
<i18n> <i18n>
en: en:
Search suppliers: Search suppliers Search suppliers: Search suppliers
es: es:
Search suppliers: Buscar proveedores Search suppliers: Buscar proveedores
</i18n> </i18n>