From 70f3959c080bddafcb76e00c70f1c95cdb51707e Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 5 Jul 2024 17:35:40 +0700 Subject: [PATCH] refactor: employer branch card --- .../BranchCardCustomer.vue | 259 ++++++++++-------- .../CustomerInfoComponent.vue | 23 +- 2 files changed, 152 insertions(+), 130 deletions(-) diff --git a/src/components/03_customer-management/BranchCardCustomer.vue b/src/components/03_customer-management/BranchCardCustomer.vue index eba693ae..5ffa6139 100644 --- a/src/components/03_customer-management/BranchCardCustomer.vue +++ b/src/components/03_customer-management/BranchCardCustomer.vue @@ -1,30 +1,27 @@ - @@ -34,114 +31,135 @@ withDefaults( 'branch-card__dark': $q.dark.isActive, 'branch-card__inactive': inactive, 'branch-card__none': - color !== 'CORP' && color !== 'PERS' && (!color || color === 'none'), - 'branch-card__CORP': color === 'CORP', - 'branch-card__PERS': color === 'PERS', + color !== 'pers' && color !== 'corp' && (!color || color === 'none'), + 'branch-card__pers': color === 'pers', + 'branch-card__corp': color === 'corp', }" + @click="$emit('open')" > - - - {{ $t(k) }} - - - {{ v }} - + + + + {{ data.branchName }} + {{ data.branchName }} + + + + + + + + + + + {{ $t(key) }} + {{ data[key as keyof typeof data] }}