feat: validate tax no
This commit is contained in:
parent
54a20d9558
commit
2728d92b07
1 changed files with 3 additions and 1 deletions
|
|
@ -60,7 +60,9 @@ defineProps<{
|
|||
v-model="taxNo"
|
||||
lazy-rules
|
||||
:rules="[
|
||||
(val) => (val && val.length > 0) || $t('formDialogInputTaxNoValidate'),
|
||||
(val) =>
|
||||
(val && val.length === 13 && /[0-9]+/.test(val)) ||
|
||||
$t('formDialogInputTaxNoValidate'),
|
||||
]"
|
||||
for="input-tax-no"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue