refactor: sort code product
This commit is contained in:
parent
ac5ef47432
commit
d12acef602
1 changed files with 5 additions and 1 deletions
|
|
@ -102,7 +102,11 @@ watch(
|
||||||
option-value="value"
|
option-value="value"
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:options="codeOptions"
|
:options="
|
||||||
|
codeOptions.sort((a, b) => {
|
||||||
|
return String(a.value ?? '').localeCompare(String(b.value ?? ''));
|
||||||
|
})
|
||||||
|
"
|
||||||
:label="$t('productService.product.code')"
|
:label="$t('productService.product.code')"
|
||||||
:hide-dropdown-icon="readonly || disableCode"
|
:hide-dropdown-icon="readonly || disableCode"
|
||||||
:rules="[(val: string) => !!val || $t('form.error.required')]"
|
:rules="[(val: string) => !!val || $t('form.error.required')]"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue