refactor: handle input is require

This commit is contained in:
Thanaphon Frappet 2024-12-24 13:18:52 +07:00
parent 0f8f6202cb
commit 29a0269453

View file

@ -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