fix: แก้ค่าของ type
This commit is contained in:
parent
601aa69d7c
commit
066cf121c6
5 changed files with 28 additions and 16 deletions
|
|
@ -16,7 +16,7 @@ withDefaults(
|
|||
list: {
|
||||
imageUrl?: string;
|
||||
id: string;
|
||||
type: 'customerLegalEntity' | 'customerNaturalPerson';
|
||||
type: 'CORP' | 'PERS';
|
||||
name: string;
|
||||
code: string;
|
||||
detail?: { label: string; value: string }[];
|
||||
|
|
@ -152,7 +152,15 @@ defineEmits<{
|
|||
</q-card-section>
|
||||
</div>
|
||||
<div class="box-title">
|
||||
<div class="rounded title">{{ $t(list.type) }}</div>
|
||||
<div class="rounded title">
|
||||
{{
|
||||
$t(
|
||||
list.type === 'CORP'
|
||||
? 'customerLegalEntity'
|
||||
: 'customerNaturalPerson',
|
||||
)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
<q-card-section class="no-padding">
|
||||
<div class="column items-center justify-center q-mb-md">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue