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