diff --git a/src/components/03_customer-management/CustomerInfoComponent.vue b/src/components/03_customer-management/CustomerInfoComponent.vue index 84e01f9b..5d489ccf 100644 --- a/src/components/03_customer-management/CustomerInfoComponent.vue +++ b/src/components/03_customer-management/CustomerInfoComponent.vue @@ -56,9 +56,10 @@ onMounted(async () => { customerId: prop.customerId, page: 1, pageSize: pageSizeBranch.value, + includeCustomer: true, }); if (result) { - currentCustomerName.value = 'dasd'; + currentCustomerName.value = result.result[0].customer?.customerName; maxPageBranch.value = Math.ceil(result.total / pageSizeBranch.value); branch.value = result.result; } @@ -192,7 +193,7 @@ watch(currentPageBranch, async () => { telephone: br.telephoneNo, businessTypePure: br.bussinessType, status: 'ดำเนินการอยู่', - totalEmployee: 0, + totalEmployee: br._count?.employee, }" @view-detail="emit('viewDetail', [br])" />