From 601537049d368ea219ef9c5b495326f522d00e35 Mon Sep 17 00:00:00 2001 From: Net Date: Fri, 16 Aug 2024 17:36:25 +0700 Subject: [PATCH] refactor: edit div of DialogForm --- src/pages/03_customer-management/MainPage.vue | 611 ++++++++++-------- 1 file changed, 339 insertions(+), 272 deletions(-) diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index 1bd925de..9127e3f7 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -213,7 +213,9 @@ const fieldDisplayEmployee = ref< const fieldSelected = ref< ( + | 'orderNumber' | 'customerName' + | 'businessTypePure' | 'type' | 'personName' | 'telephoneNo' @@ -228,7 +230,9 @@ const fieldSelected = ref< | 'action' )[] >([ + 'orderNumber', 'customerName', + 'businessTypePure', 'personName', 'telephoneNo', 'branchEmail', @@ -1793,6 +1797,7 @@ const emptyCreateDialog = ref(false); } employeeFormState.isEmployeeEdit = false; + employeeFormState.currentIndex = -1; await fetchListEmployee(); } @@ -1813,7 +1818,7 @@ const emptyCreateDialog = ref(false); } " > -
+
-
-
- +
+
+ + : employeeFormState.currentTab === 'other' + ? [ + { + name: $t('other'), + anchor: 'form-other', + }, + ] + : [] + " + background="transparent" + :active="{ + background: 'hsla(var(--blue-6-hsl) / .2)', + foreground: 'var(--blue-6)', + }" + scroll-element="#employee-form-content" + /> +
-
-
- - - +
+ + + + + + + +
@@ -2497,8 +2566,6 @@ const emptyCreateDialog = ref(false);