feat: adjust prefix display
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s

This commit is contained in:
Methapon2001 2025-07-09 14:19:59 +07:00
parent 9999a49fa0
commit 7d1a32efb4
2 changed files with 8 additions and 3 deletions

View file

@ -4101,7 +4101,12 @@ const emptyCreateDialog = ref(false);
customerFormData.customerType === 'CORP' && customerFormData.customerType === 'CORP' &&
customerFormData.customerBranch customerFormData.customerBranch
? customerFormData.customerBranch[0]?.registerName || '-' ? customerFormData.customerBranch[0]?.registerName || '-'
: customerNameInfo || '-' : (customerFormData.customerBranch[0]?.namePrefix
? $t(
'customer.form.prefix.' +
customerFormData.customerBranch[0]?.namePrefix,
) + ' '
: '') + customerNameInfo || '-'
" "
:badge-label=" :badge-label="
customerFormData.customerType === 'CORP' customerFormData.customerType === 'CORP'

View file

@ -401,8 +401,8 @@ watch(
label="Prefix" label="Prefix"
:model-value=" :model-value="
readonly readonly
? capitalize(prefixName || '') || '-' ? prefixName.toUpperCase() || '-'
: capitalize(prefixName || '') : prefixName.toUpperCase() || ''
" "
@update:model-value=" @update:model-value="
(v) => (typeof v === 'string' ? (prefixName = v) : '') (v) => (typeof v === 'string' ? (prefixName = v) : '')