refactor: handle input is require
This commit is contained in:
parent
0f8f6202cb
commit
29a0269453
1 changed files with 6 additions and 0 deletions
|
|
@ -285,6 +285,11 @@ watch(
|
|||
class="col-6"
|
||||
:label="$t('customerEmployee.form.previousPassportNumber')"
|
||||
v-model="previousPassportRef"
|
||||
:rules="[
|
||||
(v) =>
|
||||
(!!v && v.length === 6) ||
|
||||
$t('form.error.requireLength', { msg: 6 }),
|
||||
]"
|
||||
/>
|
||||
|
||||
<q-select
|
||||
|
|
@ -564,6 +569,7 @@ watch(
|
|||
@update:model-value="
|
||||
(v) => (typeof v === 'string' ? (birthCountry = v) : '')
|
||||
"
|
||||
:rules="[(val) => !!val || $t('form.error.required')]"
|
||||
/>
|
||||
|
||||
<q-select
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue