fix: CustomerList form salesPersons options
gitea/salix-front/pipeline/pr-master This commit looks good Details

This commit is contained in:
Javier Segarra 2024-10-02 08:38:54 +00:00
parent 6c97f5eeb3
commit aa41f0d826
1 changed files with 4 additions and 4 deletions

View File

@ -67,8 +67,7 @@ const columns = computed(() => [
url: 'Workers/activeWithInheritedRole', url: 'Workers/activeWithInheritedRole',
fields: ['id', 'name'], fields: ['id', 'name'],
where: { role: 'salesPerson' }, where: { role: 'salesPerson' },
optionFilter: 'firstName', optionFilter: 'firstName'
useLike: true,
}, },
create: false, create: false,
columnField: { columnField: {
@ -423,9 +422,10 @@ function handleLocation(data, location) {
:params="{ :params="{
departmentCodes: ['VT', 'shopping'], departmentCodes: ['VT', 'shopping'],
}" }"
:fields="['id', 'nickname']" :fields="['id', 'nickname', 'code']"
sort-by="nickname ASC" sort-by="nickname ASC"
:use-like="true" option-label="nickname"
option-value="id"
emit-value emit-value
auto-load auto-load
> >