refactor: update select items

This commit is contained in:
Methapon Metanipat 2024-09-30 11:35:21 +07:00
parent e504d02be7
commit f7d6cdfd6e

View file

@ -153,12 +153,13 @@ defineEmits<{
<div class="q-mt-sm">
<div>
<span v-if="scope.opt.customer.customerType">
{{ scope.opt.code }}
{{
scope.opt.customer.customerType === 'CORP'
? $t('customer.form.registerName')
: $t('customer.form.ownerName')
}}:
<span style="font-weight: 600">
{{
scope.opt.customer.customerType === 'CORP'
? $t('customer.form.registerName')
: $t('customer.form.ownerName')
}}:
</span>
{{
scope.opt.customer.customerType === 'CORP'
? scope.opt.customerName
@ -167,6 +168,7 @@ defineEmits<{
'-'
: `${scope.opt.firstName} ${scope.opt.lastName}` || '-'
}}
({{ scope.opt.code }})
</span>
</div>
@ -206,12 +208,13 @@ defineEmits<{
style="width: 1px"
>
<div class="q-mr-sm">
{{ scope.opt.code }}
{{
scope.opt.customer.customerType === 'CORP'
? $t('customer.form.registerName')
: $t('customer.form.ownerName')
}}:
<span style="font-weight: 600">
{{
scope.opt.customer.customerType === 'CORP'
? $t('customer.form.registerName')
: $t('customer.form.ownerName')
}}:
</span>
{{
scope.opt.customer.customerType === 'CORP'
? scope.opt.customerName
@ -219,6 +222,7 @@ defineEmits<{
? `${scope.opt.firstNameEN} ${scope.opt.lastNameEN}` || '-'
: `${scope.opt.firstName} ${scope.opt.lastName}` || '-'
}}
({{ scope.opt.code }})
</div>
<div
class="text-caption app-text-muted-2"