refactor: header branch

This commit is contained in:
Net 2024-08-22 18:03:12 +07:00
parent 4f93d44c7f
commit 60709887a1

View file

@ -1723,9 +1723,12 @@ const emptyCreateDialog = ref(false);
anchor: 'form-branch-customer-branch', anchor: 'form-branch-customer-branch',
}, },
...(customerFormData.customerBranch?.map((v, i) => ({ ...(customerFormData.customerBranch?.map((v, i) => ({
name: $t('customer.form.branch.title', { name:
name: i, i === 0
}), ? $t('customer.form.headQuarters.title')
: $t('customer.form.branch.title', {
name: i,
}),
anchor: `form-branch-customer-no-${i}`, anchor: `form-branch-customer-no-${i}`,
sub: true, sub: true,
})) || []), })) || []),