refactor: handlevirtualname

This commit is contained in:
nwpptrs 2024-12-04 17:46:27 +07:00
parent 995debe69c
commit 519b0d7e94
4 changed files with 12 additions and 3 deletions

View file

@ -124,7 +124,9 @@ function formatCode(input: string | undefined, type: 'code' | 'number') {
:label="
typeBranch === 'headOffice'
? $t('branch.form.headofficeName')
: $t('branch.form.branchName')
: virtual === true
? $t('branch.form.servicePointName')
: $t('branch.form.branchName')
"
v-model="name"
:rules="[
@ -145,7 +147,9 @@ function formatCode(input: string | undefined, type: 'code' | 'number') {
:label="
typeBranch === 'headOffice'
? $t('branch.form.headofficeNameEN')
: $t('branch.form.branchNameEN')
: virtual === true
? $t('branch.form.servicePointNameEN')
: $t('branch.form.branchNameEN')
"
:rules="[
(val) => !!val || $t('form.error.required'),