fix: #8282 VnSelect Woker sortBy

This commit is contained in:
Javier Segarra 2024-12-09 23:00:59 +01:00
parent ca4f6b2e5e
commit 1e88f83f7d
1 changed files with 3 additions and 1 deletions

View File

@ -265,7 +265,8 @@ async function autofillBic(worker) {
v-model="data.bossFk"
url="Workers/search"
option-value="id"
option-label="name"
:fields="['id', 'name', 'nickname', 'code']"
sort-by="nickname ASC"
hide-selected
>
<template #option="scope">
@ -377,5 +378,6 @@ async function autofillBic(worker) {
<i18n>
es:
Search worker: Buscar trabajador
Create worker: Crear trabajador
You can search by worker id or name: Puedes buscar por id o nombre del trabajador
</i18n>