fix: refs #6389 front filters
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Carlos Satorres 2024-10-23 12:20:53 +02:00
parent 861a507e10
commit daf57c9b2b
4 changed files with 35 additions and 1 deletions

View File

@ -43,7 +43,6 @@ const getLocale = (label) => {
(groupedStates = data.map((x) => Object.assign(x, { code: t(x.code) })))
"
/>
<FetchData url="departments" auto-load />
<VnFilterPanel
:data-key="dataKey"
:search-button="true"
@ -211,6 +210,18 @@ const getLocale = (label) => {
/>
</QItemSection>
</QItem>
<QItem>
<QItemSection>
<VnSelect
outlined
dense
rounded
:label="t('globals.params.departmentFk')"
v-model="params.department"
url="Departments"
/>
</QItemSection>
</QItem>
<QItem>
<QItemSection>
<QCheckbox

View File

@ -48,6 +48,7 @@ function exprBuilder(param, value) {
case 'nickname':
return { [`t.nickname`]: { like: `%${value}%` } };
case 'zoneFk':
case 'departmentId':
case 'totalWithVat':
return { [`t.${param}`]: value };
}
@ -222,6 +223,26 @@ const columns = computed(() => [
},
},
},
{
label: t('salesTicketsTable.department'),
name: 'department',
align: 'left',
component: 'select',
attrs: {
url: 'Departments',
optionValue: 'name',
optionLabel: 'name',
},
columnFilter: {
component: 'select',
url: 'Departments',
attrs: {
optionValue: 'name',
optionLabel: 'name',
dense: true,
},
},
},
{
align: 'right',
name: 'tableActions',

View File

@ -43,6 +43,7 @@ salesTicketsTable:
total: Total
preparation: Preparation
payMethod: Pay method
department: Department
searchBar:
label: Search tickets
info: Search tickets by id or alias

View File

@ -43,6 +43,7 @@ salesTicketsTable:
total: Total
preparation: Preparación
payMethod: Método de pago
department: Departamento
searchBar:
label: Buscar tickets
info: Buscar tickets por identificador o alias