diff --git a/src/components/01_branch-management/FormBranchInformation.vue b/src/components/01_branch-management/FormBranchInformation.vue index c36df0b5..33003dce 100644 --- a/src/components/01_branch-management/FormBranchInformation.vue +++ b/src/components/01_branch-management/FormBranchInformation.vue @@ -58,6 +58,11 @@ function formatCode(input: string | undefined, type: 'code' | 'number') { :label="$t('formDialogHqAbbreviation')" for="input-abbreviation" :model-value="view ? formatCode(abbreviation, 'code') : abbreviation" + :rules="[ + (val) => + (val && val.length > 0 && /[a-zA-Z]+/.test(val)) || + $t('formDialogInputHqAbbreviation'), + ]" @update:model-value="(v) => (abbreviation = v as string)" />