From f0d37ca0eb6ee662747c9d4e128cec40a4935564 Mon Sep 17 00:00:00 2001 From: Net Date: Fri, 30 Aug 2024 09:55:03 +0700 Subject: [PATCH] refactor: show count --- src/pages/03_customer-management/BranchPage.vue | 5 +++-- src/pages/03_customer-management/MainPage.vue | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/03_customer-management/BranchPage.vue b/src/pages/03_customer-management/BranchPage.vue index 0513008f..3c9e8135 100644 --- a/src/pages/03_customer-management/BranchPage.vue +++ b/src/pages/03_customer-management/BranchPage.vue @@ -74,6 +74,7 @@ const prop = withDefaults( color?: 'purple' | 'green'; currentCustomerName?: string; customerType: CustomerType; + countEmployee?: number; }>(), { color: 'green', @@ -261,11 +262,11 @@ watch([customerId, inputSearch, currentStatus], async () => { style="font-size: 1rem; color: var(--stone-6)" />
- {{ '10' }} + {{ countEmployee }}
- {{ '2' }} + {{ totalBranch }}
diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index dfc70204..45d35171 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -1660,6 +1660,7 @@ const emptyCreateDialog = ref(false); v-if="currentCustomer" :customer-type="currentCustomer.customerType" :current-customer-name="`${currentCustomer.firstName} ${currentCustomer.lastName}`" + :count-employee="currentCustomer._count.employee" v-model:customer-id="currentCustomer.id" v-model:mode-view="gridView" @back="$router.push('/customer-management')"