refactor: show count

This commit is contained in:
Net 2024-08-30 09:55:03 +07:00
parent 81afed88a6
commit f0d37ca0eb
2 changed files with 4 additions and 2 deletions

View file

@ -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)"
/>
<div class="q-px-sm">
{{ '10' }}
{{ countEmployee }}
</div>
<q-icon name="mdi-home" size="16px" style="color: var(--stone-6)" />
<div class="q-px-sm">
{{ '2' }}
{{ totalBranch }}
</div>
</div>
</div>

View file

@ -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')"