From 066cf121c691d2ae4e6f80c4ade2c4af1ce1498a Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Tue, 11 Jun 2024 11:23:23 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=84?= =?UTF-8?q?=E0=B9=88=E0=B8=B2=E0=B8=82=E0=B8=AD=E0=B8=87=20=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../03_customer-management/AboutComponent.vue | 20 +++++++++---------- .../BasicInformation.vue | 4 ++-- .../CustomerInfoComponent.vue | 6 +++++- src/components/FormDialog.vue | 2 +- src/components/UsersDetailCardComponent.vue | 12 +++++++++-- 5 files changed, 28 insertions(+), 16 deletions(-) diff --git a/src/components/03_customer-management/AboutComponent.vue b/src/components/03_customer-management/AboutComponent.vue index 0bfaccbb..293d3edc 100644 --- a/src/components/03_customer-management/AboutComponent.vue +++ b/src/components/03_customer-management/AboutComponent.vue @@ -26,7 +26,7 @@ const employerBranchCode = defineModel('employerBranchCode');
• {{ $t(`about`) }}
('employerBranchCode'); /> ('employerBranchCode');
('employerBranchCode'); v-model="branchCode" /> ('employerBranchCode'); /> ('employerBranchCode'); /> ('employerBranchCode');
('employerBranchCode'); v-model="taxNo" /> ('employerBranchCode'); v-model="registerName" /> ('employerBranchCode'); v-model="authorizedCapital" />
{ class="q-mr-md" /> diff --git a/src/components/FormDialog.vue b/src/components/FormDialog.vue index 8d3ae274..69b9762b 100644 --- a/src/components/FormDialog.vue +++ b/src/components/FormDialog.vue @@ -51,7 +51,7 @@ const tabsList = defineModel<{ name: string; label: string }[]>('tabsList'); {{ $t(customerLabel) }} diff --git a/src/components/UsersDetailCardComponent.vue b/src/components/UsersDetailCardComponent.vue index 7ce835fa..00797d59 100644 --- a/src/components/UsersDetailCardComponent.vue +++ b/src/components/UsersDetailCardComponent.vue @@ -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<{
-
{{ $t(list.type) }}
+
+ {{ + $t( + list.type === 'CORP' + ? 'customerLegalEntity' + : 'customerNaturalPerson', + ) + }} +