feat: refs #8602 add sorting options for select fields and update locale files with supplier name
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Pablo Natek 2025-03-11 14:44:31 +01:00
parent 5f20ff4df0
commit 6b8bba77af
5 changed files with 14 additions and 4 deletions

View File

@ -85,6 +85,7 @@ onMounted(() => {
:options="companiesOptions"
option-value="id"
option-label="code"
sort-by="code"
map-options
hide-selected
:required="true"
@ -103,6 +104,7 @@ onMounted(() => {
:options="currenciesOptions"
option-value="id"
option-label="code"
sort-by="code"
/>
</VnRow>
<VnRow class="q-py-sm">
@ -122,6 +124,14 @@ onMounted(() => {
:decimal-places="2"
:positive="false"
/>
<VnSelect
v-model="data.typeFk"
url="entryTypes"
:fields="['code', 'description']"
option-value="code"
optionLabel="description"
sortBy="description"
/>
</VnRow>
<VnRow class="q-py-sm">
<QInput

View File

@ -183,7 +183,6 @@ const columns = [
},
},
{
align: 'right',
labelAbbreviation: 'GM',
label: t('Grouping selector'),
toolTip: t('Grouping selector'),
@ -211,7 +210,6 @@ const columns = [
},
},
{
align: 'center',
labelAbbreviation: 'G',
label: 'Grouping',
toolTip: 'Grouping',
@ -644,7 +642,7 @@ onMounted(() => {
:is-editable="editableMode"
:without-header="!editableMode"
:with-filters="editableMode"
:right-search="editableMode"
:right-search="false"
:row-click="false"
:columns="columns"
:beforeSaveFn="beforeSave"

View File

@ -200,7 +200,7 @@ const columns = computed(() => [
fields: ['code', 'description'],
optionValue: 'code',
optionLabel: 'description',
sortBy: 'description ASC',
sortBy: 'description',
},
width: '65px',
format: (row, dashIfEmpty) => dashIfEmpty(row.entryTypeDescription),

View File

@ -113,6 +113,7 @@ entry:
daysAgo: Days ago
toShipped: T. shipped
fromShipped: F. shipped
supplierName: Supplier
search: Search entries
searchInfo: You can search by entry reference
descriptorMenu:

View File

@ -116,6 +116,7 @@ entry:
daysAgo: Días atras
toShipped: F. salida(hasta)
fromShipped: F. salida(desde)
supplierName: Proveedor
entryFilter:
params:
isExcludedFromAvailable: Excluido