From cd153aa3e4ac74e3f528dedd922d62388021548d Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Wed, 12 Jun 2024 16:21:55 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20by=20=E0=B8=84=E0=B9=88=E0=B8=B2?= =?UTF-8?q?=E0=B8=82=E0=B8=AD=E0=B8=87=E0=B8=AA=E0=B8=B2=E0=B8=82=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../03_customer-management/CustomerInfoComponent.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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])" />