From 82560b6abd2ec837da28e1641449943c220e5793 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Tue, 25 Jun 2024 16:30:22 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=20=E0=B9=81?= =?UTF-8?q?=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82=E0=B9=80=E0=B8=9B=E0=B9=87?= =?UTF-8?q?=E0=B8=99=20=20info?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/03_customer-management/MainPage.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index c699b95c..131b7ef6 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -374,6 +374,7 @@ function openDialogCustomerType() { async function openDialogInputForm( action: 'FORM' | 'INFO' = 'FORM', id?: string, + isPersonEdit: boolean = false, ) { if (action === 'INFO') { if (!id) return; @@ -381,7 +382,7 @@ async function openDialogInputForm( if (selectorLabel.value === 'EMPLOYEE') { await assignFormDataEmployee(id); infoDrawerEmployee.value = true; - infoDrawerEmployeeEdit.value = false; + infoDrawerEmployeeEdit.value = isPersonEdit ? true : false; const employee = currentEmployee.value; infoEmployeePersonCard.value = employee ? [