fix: แก้การตัวสอบ

This commit is contained in:
Net 2024-07-10 09:35:00 +07:00
parent e58c670f9d
commit 4183dbb0ec
3 changed files with 11 additions and 4 deletions

View file

@ -139,6 +139,11 @@ const branchNo = defineModel<number>('branchNo');
class="col-6"
:label="$t('taxNo')"
v-model="taxNo"
:rules="[
(val) =>
(val && val.length === 13 && /[0-9]+/.test(val)) ||
$t('formDialogInputTaxNoValidate'),
]"
/>
<q-input
for="input-registerName"

View file

@ -89,6 +89,11 @@ onMounted(async () => {});
class="col-6"
:label="$t('taxNo')"
v-model="taxNo"
:rules="[
(val) =>
(val && val.length === 13 && /[0-9]+/.test(val)) ||
$t('formDialogInputTaxNoValidate'),
]"
/>
<q-input

View file

@ -73,10 +73,7 @@ defineProps<{
class="col-6"
:label="$t('formDialogInputPassportRef')"
v-model="previousPassportReference"
:rules="[
(val: string) =>
!!val || $t('inputValidate') + $t('formDialogInputPassportRef'),
]"
/>
<q-input
for="input-passport-place"