fix: delete rule + "-" when it blank
This commit is contained in:
parent
1c5acba093
commit
fce77cb6c6
1 changed files with 15 additions and 6 deletions
|
|
@ -10,7 +10,7 @@ const registeredBranchId = defineModel<string>('registeredBranchId');
|
|||
const taxNo = defineModel<string | null | undefined>('taxNo');
|
||||
|
||||
const employerID = defineModel<string>('employerID');
|
||||
|
||||
const slash = ref<string>('-');
|
||||
// employee
|
||||
const customerBranch = defineModel<{
|
||||
id: string;
|
||||
|
|
@ -361,8 +361,9 @@ defineEmits<{
|
|||
:label="$t('formDialogEmployeeID')"
|
||||
v-model="employeeId"
|
||||
/>
|
||||
|
||||
<q-input
|
||||
mask="## #### ###### #"
|
||||
v-if="readonly && !nrcNo"
|
||||
for="input-nrcNo"
|
||||
:dense="dense"
|
||||
outlined
|
||||
|
|
@ -370,11 +371,19 @@ defineEmits<{
|
|||
hide-bottom-space
|
||||
class="col-6"
|
||||
:label="$t('formDialogEmployeeNRCNo')"
|
||||
v-model="slash"
|
||||
/>
|
||||
<q-input
|
||||
v-else
|
||||
mask="## #### ###### #"
|
||||
for="input-nrcNo"
|
||||
:dense="dense"
|
||||
outlined
|
||||
hide-bottom-space
|
||||
:readonly="readonly"
|
||||
class="col-6"
|
||||
:label="$t('formDialogEmployeeNRCNo')"
|
||||
v-model="nrcNo"
|
||||
:rules="[
|
||||
(val: string) =>
|
||||
!!val || $t('inputValidate') + $t('formDialogEmployeeNRCNo'),
|
||||
]"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue