From 18b7c5c5ab3a99cb6b7a77f8d8be85513443e56b Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:12:51 +0700 Subject: [PATCH 001/158] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=20?= =?UTF-8?q?=20ui=20=20=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=88?= =?UTF-8?q?=E0=B8=B3=E0=B8=99=E0=B8=A7=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/StatCardComponent.vue | 79 ++++++++++++---------------- 1 file changed, 33 insertions(+), 46 deletions(-) diff --git a/src/components/StatCardComponent.vue b/src/components/StatCardComponent.vue index 2eb2e7c0..ac7f08a2 100644 --- a/src/components/StatCardComponent.vue +++ b/src/components/StatCardComponent.vue @@ -1,9 +1,11 @@ From 6cb6caf3d990637e86392313362320a83fbc370a Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 13:16:38 +0700 Subject: [PATCH 011/158] refactor: change border color --- src/css/app.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css/app.scss b/src/css/app.scss index 8b9903dc..a1ebf4ca 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -9,7 +9,7 @@ html { --brand-1: #035aa1; --brand-2: #f50000; - --border-color: var(--gray-4); + --border-color: var(--gray-3); --foreground: black; --background: var(--gray-1); --surface-0: var(--background); From aa5adf57896b9166d7fcb9a03db00ab1cc1b79a4 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 13:33:31 +0700 Subject: [PATCH 012/158] fix: rebase fail --- src/pages/03_customer-management/MainPage.vue | 67 ++++++++----------- 1 file changed, 28 insertions(+), 39 deletions(-) diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index 17e170ba..40d7f367 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -1334,50 +1334,39 @@ watch([inputSearch, currentStatus], async () => {
-
-
- {{ - selectorLabel === 'EMPLOYER' - ? $t('customerEmployerStatTitle') - : $t('customerEmployeeStatTitle') - }} -
- -
+
+
- -
From 1986ef593ab5ad89e732c0c2d7d7f2ad7b1dad1b Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 13:41:24 +0700 Subject: [PATCH 013/158] fix: wrapping --- .../01_branch-management/BranchCard.vue | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/components/01_branch-management/BranchCard.vue b/src/components/01_branch-management/BranchCard.vue index ace3c30e..d1cc03e4 100644 --- a/src/components/01_branch-management/BranchCard.vue +++ b/src/components/01_branch-management/BranchCard.vue @@ -69,7 +69,6 @@ defineProps<{ display: flex; flex-direction: column; overflow: hidden; - box-shadow: var(--shadow-2); & > .branch-card__row { display: flex; @@ -81,20 +80,6 @@ defineProps<{ flex-grow: 1; } - &:nth-child(2n + 1) { - background-color: hsla(var(--_branch-card-row-bg) / 0.1); - } - - &.branch-card__header, - &.branch-card__footer { - color: hsl(var(--_branch-card-row-fg)); - background-color: hsl(var(--_branch-card-row-bg)); - - &:deep(*) { - font-weight: 600; - } - } - &.branch-card__header > * { display: flex; align-items: center; From e931d3b60eb509cc76134eee91cd14982a2816b3 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:27:35 +0700 Subject: [PATCH 014/158] fix: wraping --- src/components/StatCardComponent.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/StatCardComponent.vue b/src/components/StatCardComponent.vue index d1f66f42..c6d27e79 100644 --- a/src/components/StatCardComponent.vue +++ b/src/components/StatCardComponent.vue @@ -17,7 +17,7 @@ const props = withDefaults( @@ -69,41 +84,45 @@ defineProps<{ display: flex; flex-direction: column; overflow: hidden; + padding: var(--size-3); - & > .branch-card__row { + & .branch-card__header { + display: flex; + margin-bottom: var(--size-2); + + & .branch-card__icon { + background-color: hsla(var(--_branch-card-row-bg) / 0.1); + border-radius: 50%; + padding: var(--size-1); + + & :deep(.q-icon) { + color: hsla(var(--_branch-card-row-bg) / 1); + } + } + + & .branch-card__name { + display: flex; + flex-direction: column; + flex: 1; + padding-inline: var(--size-2); + + & .branch-card__code { + color: hsla(var(--text-mute) / 1); + } + } + + & .branch-card__action { + margin-left: auto; + } + } + & .branch-card__data { display: flex; - flex-wrap: nowrap; - padding-inline: var(--size-4); padding-block: var(--size-2); - &:last-child { - flex-grow: 1; - } - - &.branch-card__header > * { - display: flex; - align-items: center; - } - - & > .branch-card__label { - min-width: 120px; - width: 30%; - } - - &:not(.branch-card__header) .branch-card__label { - color: hsl(var(--stone-6-hsl)); - } - - & > .branch-card__value { - width: 70%; - - &.branch-card__badge > span { - display: inline-block; - border-radius: 999rem; - padding-inline: var(--size-2); - color: hsl(var(--_branch-badge-fg)); - background-color: hsla(var(--_branch-badge-bg) / 0.1); - } + & > :first-child { + color: hsla(var(--text-mute) / 1); + width: 0%; + min-width: 40%; } } diff --git a/src/pages/01_branch-management/MainPage.vue b/src/pages/01_branch-management/MainPage.vue index 8f1b3685..d207eeba 100644 --- a/src/pages/01_branch-management/MainPage.vue +++ b/src/pages/01_branch-management/MainPage.vue @@ -135,11 +135,9 @@ const beforeBranch = ref<{ id: string; code: string }>({ const inputSearch = ref(''); const fieldBranch = ref(['all', 'branchHQLabel', 'branchLabel']); const fieldDisplay = ref([ - 'branchLabelName', 'branchLabelTel', 'branchLabelAddress', 'branchLabelType', - 'branchLabelStatus', ]); const fieldSelected = ref(fieldDisplay.value); const fieldSelectedBranch = ref<{ @@ -888,7 +886,6 @@ watch(locale, () => { branchLabelType: $t( item.isHeadOffice ? 'branchHQLabel' : 'branchLabel', ), - branchLabelStatus: $t(`status${item.status}`), }" :field-selected="fieldSelected" :badge-field="['branchLabelStatus']" From a985d8be58a5f3d4f2dabd90cf37bfa9f5d3de0e Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:29:08 +0700 Subject: [PATCH 016/158] fix: ordering --- src/components/01_branch-management/BranchCard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/01_branch-management/BranchCard.vue b/src/components/01_branch-management/BranchCard.vue index d1023ff4..2de05a9b 100644 --- a/src/components/01_branch-management/BranchCard.vue +++ b/src/components/01_branch-management/BranchCard.vue @@ -62,7 +62,7 @@ defineProps<{ " />
Date: Thu, 4 Jul 2024 14:38:38 +0700 Subject: [PATCH 017/158] refacotr: styling --- .../01_branch-management/BranchCard.vue | 42 +++++++++++++------ 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/src/components/01_branch-management/BranchCard.vue b/src/components/01_branch-management/BranchCard.vue index 2de05a9b..0dda583a 100644 --- a/src/components/01_branch-management/BranchCard.vue +++ b/src/components/01_branch-management/BranchCard.vue @@ -77,10 +77,9 @@ defineProps<{ From 74ce38cf6e292de8776a5b3e148ad6c2c5719dde Mon Sep 17 00:00:00 2001 From: puriphatt Date: Thu, 4 Jul 2024 07:43:50 +0000 Subject: [PATCH 018/158] fix: drawer active and branch --- src/components/DrawerComponent.vue | 133 ++++++++++++++++++++--------- src/css/app.scss | 2 +- 2 files changed, 94 insertions(+), 41 deletions(-) diff --git a/src/components/DrawerComponent.vue b/src/components/DrawerComponent.vue index bdafc8ca..03a1eec4 100644 --- a/src/components/DrawerComponent.vue +++ b/src/components/DrawerComponent.vue @@ -86,6 +86,8 @@ function navigateTo(label: string, destination: string) { currentRoute.value = label; router.push(`${destination}`); } + +function branchSetting() {} @@ -129,28 +174,14 @@ function navigateTo(label: string, destination: string) { diff --git a/src/css/app.scss b/src/css/app.scss index a1ebf4ca..7f4d40c6 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -46,7 +46,7 @@ html { } :where(.dark, .body--dark) { - --brand-1: var(--blue-5); + --brand-1: #035aa1; --brand-2: #f50000; --border-color: var(--gray-7); --foreground: white; From d9b77ca357551033f4b62352d9a39937cc6fac99 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:42:55 +0700 Subject: [PATCH 019/158] fix: dark mode color --- src/components/01_branch-management/BranchCard.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/01_branch-management/BranchCard.vue b/src/components/01_branch-management/BranchCard.vue index 0dda583a..1ec80708 100644 --- a/src/components/01_branch-management/BranchCard.vue +++ b/src/components/01_branch-management/BranchCard.vue @@ -90,7 +90,7 @@ defineProps<{ margin-bottom: var(--size-2); & .branch-card__icon { - background-color: hsla(var(--_branch-card-bg) / 0.1); + background-color: hsla(var(--_branch-card-bg) / 0.15); border-radius: 50%; padding: var(--size-1); position: relative; @@ -169,7 +169,7 @@ defineProps<{ --_branch-status-color: var(--red-4-hsl); --_branch-badge-bg: var(--red-4-hsl); filter: grayscale(1); - background-color: hsl(var(--gray-1-hsl) / 0.4); + background-color: hsl(var(--gray-6-hsl) / 0.1); opacity: 0.7; } } From 04b1ded194d681b3509c16f526a3bdb122d9a0d6 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:44:52 +0700 Subject: [PATCH 020/158] fix: shadow dark mode --- src/components/StatCardComponent.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/StatCardComponent.vue b/src/components/StatCardComponent.vue index c6d27e79..d3cec44d 100644 --- a/src/components/StatCardComponent.vue +++ b/src/components/StatCardComponent.vue @@ -20,7 +20,7 @@ const props = withDefaults(
@@ -56,6 +56,7 @@ const props = withDefaults( .stat-card { border-radius: var(--radius-2); overflow: hidden; + box-shadow: var(--shadow-2); } .stat-card__content { From 69bca333076552ad893bd4c97aac71d19330275d Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:44:56 +0700 Subject: [PATCH 021/158] fix: icon --- src/pages/01_branch-management/MainPage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/01_branch-management/MainPage.vue b/src/pages/01_branch-management/MainPage.vue index d207eeba..538a20f0 100644 --- a/src/pages/01_branch-management/MainPage.vue +++ b/src/pages/01_branch-management/MainPage.vue @@ -100,13 +100,13 @@ async function calculateStats() { if (_stats) { stats.value = [ { - icon: 'mdi-home', + icon: 'mdi-office-building-outline', count: _stats.hq, label: 'branchHQLabel', color: 'pink', }, { - icon: 'mdi-office-building', + icon: 'mdi-home-group', count: _stats.br, label: 'branchLabel', color: 'purple', From a80f7739b96462938b5bff48fb8c1ff9f06429a3 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:46:45 +0700 Subject: [PATCH 022/158] fix: dark mode color --- src/components/DrawerComponent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DrawerComponent.vue b/src/components/DrawerComponent.vue index 03a1eec4..0fed7cda 100644 --- a/src/components/DrawerComponent.vue +++ b/src/components/DrawerComponent.vue @@ -185,7 +185,7 @@ function branchSetting() {} } :deep(.q-drawer) { - background-color: transparent; + background-color: var(--surface-3); padding: var(--size-4); padding-right: 0; } From f6745c0467d191e889bee1293ea524e38833e837 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:49:05 +0700 Subject: [PATCH 023/158] refactor: overall color dark mode --- src/css/app.scss | 4 ++-- src/css/quasar.variables.scss | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/css/app.scss b/src/css/app.scss index 7f4d40c6..1c474724 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -52,9 +52,9 @@ html { --foreground: white; --background: var(--gray-10); --surface-0: var(--background); - --surface-1: var(--gray-11); + --surface-1: var(--gray-9); --surface-2: var(--gray-10); - --surface-3: var(--gray-9); + --surface-3: var(--gray-11); --surface-tab: var(--gray-9); diff --git a/src/css/quasar.variables.scss b/src/css/quasar.variables.scss index 32801cd1..ec01867f 100644 --- a/src/css/quasar.variables.scss +++ b/src/css/quasar.variables.scss @@ -6,8 +6,8 @@ $primary: var(--brand-1); $secondary: var(--brand-2); $accent: #9c27b0; -$dark: var(--gray-11); -$dark-page: var(--gray-10); +$dark: var(--gray-10); +$dark-page: var(--gray-11); $positive: #00bd9d; $negative: var(--red-9); From 4cdbdc05c15665a734be07633fb7bad851045f2d Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:49:43 +0700 Subject: [PATCH 024/158] feat: add border to btn --- src/layouts/MainLayout.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 1f57612a..4313d78e 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -185,6 +185,7 @@ onMounted(async () => { left: -18px; background-color: var(--surface-1); " + class="bordered" > Date: Thu, 4 Jul 2024 14:52:12 +0700 Subject: [PATCH 025/158] refactor: color --- src/css/app.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/css/app.scss b/src/css/app.scss index 1c474724..faf3f09b 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -52,8 +52,8 @@ html { --foreground: white; --background: var(--gray-10); --surface-0: var(--background); - --surface-1: var(--gray-9); - --surface-2: var(--gray-10); + --surface-1: var(--gray-10); + --surface-2: var(--gray-9); --surface-3: var(--gray-11); --surface-tab: var(--gray-9); From 1137f47b44f9ff15cfa436c2fe5af85ecdbed4ef Mon Sep 17 00:00:00 2001 From: puriphatt Date: Thu, 4 Jul 2024 07:53:51 +0000 Subject: [PATCH 026/158] fix: remove gradient title --- src/layouts/MainLayout.vue | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 4313d78e..aec1fe36 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -220,7 +220,7 @@ onMounted(async () => { >
{{ @@ -502,14 +502,6 @@ onMounted(async () => { } } -.title-gradient { - background: linear-gradient(to right, var(--brand-1), var(--brand-2)); - background-clip: text; /* Standard property */ - -webkit-background-clip: text; /* WebKit fallback */ - -webkit-text-fill-color: transparent; /* WebKit fallback */ - color: transparent; /* Fallback for browsers not supporting text-clip */ -} - :deep(main.q-page) { min-height: 0 !important; } From 02e89010d880ad1b61408204924e4e6a139367f8 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:24:56 +0700 Subject: [PATCH 027/158] =?UTF-8?q?refactor:=20=E0=B9=80=E0=B8=9E=E0=B8=B4?= =?UTF-8?q?=E0=B9=88=E0=B8=A1=20i18n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/en-US/index.ts | 2 ++ src/i18n/th-th/index.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/i18n/en-US/index.ts b/src/i18n/en-US/index.ts index 7ab6d47e..21506e34 100644 --- a/src/i18n/en-US/index.ts +++ b/src/i18n/en-US/index.ts @@ -59,6 +59,8 @@ export default { baseOnDevice: 'Base on Device', person: 'Person', recordsPage: 'Showing {resultcurrentPage} out of {total} records', + showing: 'Showing', + ...status, ...main, ...address, diff --git a/src/i18n/th-th/index.ts b/src/i18n/th-th/index.ts index 6602952e..65de771c 100644 --- a/src/i18n/th-th/index.ts +++ b/src/i18n/th-th/index.ts @@ -59,6 +59,7 @@ export default { baseOnDevice: 'สีตามอุปกรณ์', person: 'คน', recordsPage: 'แสดง {resultcurrentPage} รายการจาก {total} รายการ', + showing: 'แสดงทีละ', ...status, ...main, ...address, From fa7e87d5374f43810be80755cfe5382f010ab0e2 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:25:24 +0700 Subject: [PATCH 028/158] =?UTF-8?q?refactor:=20=20=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B1=E0=B8=9A=20=20ui=20=E0=B9=80=E0=B8=9B=E0=B8=A5?= =?UTF-8?q?=E0=B8=B5=E0=B9=88=E0=B8=A2=E0=B8=99=E0=B8=AB=E0=B8=99=E0=B9=89?= =?UTF-8?q?=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../02_personnel-management/MainPage.vue | 52 +++++++++++++++---- 1 file changed, 42 insertions(+), 10 deletions(-) diff --git a/src/pages/02_personnel-management/MainPage.vue b/src/pages/02_personnel-management/MainPage.vue index bfd49313..fd993012 100644 --- a/src/pages/02_personnel-management/MainPage.vue +++ b/src/pages/02_personnel-management/MainPage.vue @@ -501,15 +501,15 @@ watch( ); const currentPage = ref(1); +const pageSize = ref(30); const currentMaxPage = computed(() => - userData.value - ? Math.ceil(userData.value?.total / userData.value?.pageSize) - : 1, + userData.value ? Math.ceil(userData.value?.total / pageSize.value) : 1, ); async function fetchUserList() { await userStore.fetchList({ includeBranch: true, + pageSize: pageSize.value, page: currentPage.value, query: !!inputSearch.value ? inputSearch.value : undefined, userType: selectorLabel.value ?? undefined, @@ -682,8 +682,38 @@ watch(inputSearch, async () => await fetchUserList());
-
-
+
+
+
+
{{ $t('showing') }}
+
+ + + + + {{ v }} + + + + +
+
+
+ +
{{ $t('recordsPage', { resultcurrentPage: userData?.result.length, @@ -691,11 +721,13 @@ watch(inputSearch, async () => await fetchUserList()); }) }}
- +
+ +
From 1d79d9e911353d88e896c96199b13f802569e100 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:35:19 +0700 Subject: [PATCH 029/158] =?UTF-8?q?refactor:=20=E0=B8=9B=E0=B8=A3=E0=B8=B1?= =?UTF-8?q?=E0=B8=9A=20ui=20=E0=B9=80=E0=B8=9B=E0=B8=A5=E0=B8=B5=E0=B9=88?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2=20?= =?UTF-8?q?=E0=B8=82=E0=B8=AD=E0=B8=87=20=E0=B8=99=E0=B8=B2=E0=B8=A2?= =?UTF-8?q?=E0=B8=88=E0=B9=89=E0=B8=B2=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/03_customer-management/MainPage.vue | 51 +++++++++++++++---- 1 file changed, 40 insertions(+), 11 deletions(-) diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index 40d7f367..d56376aa 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -1599,7 +1599,34 @@ watch([inputSearch, currentStatus], async () => { v-if="listCustomer.length !== 0" class="row justify-between q-pt-md" > -
+
+
+
{{ $t('showing') }}
+
+ + + + + {{ v }} + + + + +
+
+
+ +
{{ $t('recordsPage', { resultcurrentPage: listCustomer.length, @@ -1607,16 +1634,18 @@ watch([inputSearch, currentStatus], async () => { }) }}
- +
+ +
From 979abe0bbb3b6f6f4d0664d0e4ef4d0e54fdb617 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:46:10 +0700 Subject: [PATCH 030/158] =?UTF-8?q?refactor:=20=E0=B8=9B=E0=B8=A3=E0=B8=B1?= =?UTF-8?q?=E0=B8=9A=20ui=20=20=E0=B9=80=E0=B8=9B=E0=B8=A5=E0=B8=B5?= =?UTF-8?q?=E0=B9=88=E0=B8=A2=E0=B8=99=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/03_customer-management/MainPage.vue | 59 +++++++++++++++---- 1 file changed, 46 insertions(+), 13 deletions(-) diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index d56376aa..5dd3695d 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -1601,7 +1601,9 @@ watch([inputSearch, currentStatus], async () => { >
-
{{ $t('showing') }}
+
+ {{ $t('showing') }} +
@@ -1696,8 +1698,37 @@ watch([inputSearch, currentStatus], async () => { @toggle-status="(id, status) => toggleStatusEmployee(id, status)" /> -
-
+
+
+
+
+ {{ $t('showing') }} +
+
+ + + + + {{ v }} + + + + +
+
+
+ +
{{ $t('recordsPage', { resultcurrentPage: listEmployee.length, @@ -1705,16 +1736,18 @@ watch([inputSearch, currentStatus], async () => { }) }}
- +
+ +
From 8316d61201ec72ed3edebbc3624ec0a7fd93ff73 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:46:53 +0700 Subject: [PATCH 031/158] refactor: class app-text-muted --- src/pages/02_personnel-management/MainPage.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/02_personnel-management/MainPage.vue b/src/pages/02_personnel-management/MainPage.vue index fd993012..116fe095 100644 --- a/src/pages/02_personnel-management/MainPage.vue +++ b/src/pages/02_personnel-management/MainPage.vue @@ -688,7 +688,9 @@ watch(inputSearch, async () => await fetchUserList()); >
-
{{ $t('showing') }}
+
+ {{ $t('showing') }} +
From 7fd7df5a1b2f0b7b640b93511acc1fe738ecabe1 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:55:09 +0700 Subject: [PATCH 032/158] =?UTF-8?q?refactor:=20=E0=B8=9B=E0=B8=A3=E0=B8=B1?= =?UTF-8?q?=E0=B8=9A=20=20ui=20=E0=B9=80=E0=B8=9B=E0=B8=A5=E0=B8=B5?= =?UTF-8?q?=E0=B9=88=E0=B8=A2=E0=B8=99=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/04_product-service/MainPage.vue | 166 +++++++++++++++++----- 1 file changed, 132 insertions(+), 34 deletions(-) diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index 4cd81135..c4cf1bfe 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -1403,9 +1403,38 @@ watch(inputSearchProductAndService, async () => {
@@ -1706,7 +1769,40 @@ watch(inputSearchProductAndService, async () => {
-
+
+
+
+ {{ $t('showing') }} +
+
+ + + + + {{ v }} + + + + +
+
+
+ +
{{ $t('recordsPage', { resultcurrentPage: @@ -1719,16 +1815,18 @@ watch(inputSearchProductAndService, async () => { }) }}
- +
+ +
From 283ae2d1b05693af831f01faa8cd3bb9428fedfc Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:04:52 +0700 Subject: [PATCH 033/158] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=20ty?= =?UTF-8?q?pe=20=20fieldSelected?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/01_branch-management/MainPage.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/01_branch-management/MainPage.vue b/src/pages/01_branch-management/MainPage.vue index 538a20f0..a579e02e 100644 --- a/src/pages/01_branch-management/MainPage.vue +++ b/src/pages/01_branch-management/MainPage.vue @@ -134,12 +134,12 @@ const beforeBranch = ref<{ id: string; code: string }>({ const inputSearch = ref(''); const fieldBranch = ref(['all', 'branchHQLabel', 'branchLabel']); -const fieldDisplay = ref([ - 'branchLabelTel', - 'branchLabelAddress', - 'branchLabelType', -]); -const fieldSelected = ref(fieldDisplay.value); +const fieldDisplay = ref< + ('branchLabelAddress' | 'branchLabelTel' | 'branchLabelType')[] +>(['branchLabelTel', 'branchLabelAddress', 'branchLabelType']); +const fieldSelected = ref< + ('branchLabelAddress' | 'branchLabelTel' | 'branchLabelType')[] +>(fieldDisplay.value); const fieldSelectedBranch = ref<{ label: string; value: string; From 8790ab68a54b1c761491c17dcb84471cc357f426 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:22:59 +0700 Subject: [PATCH 034/158] refactor: color --- src/components/DrawerComponent.vue | 8 ++++++-- src/components/StatCardComponent.vue | 2 +- src/css/app.scss | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/DrawerComponent.vue b/src/components/DrawerComponent.vue index 0fed7cda..c2ebb7ea 100644 --- a/src/components/DrawerComponent.vue +++ b/src/components/DrawerComponent.vue @@ -105,7 +105,11 @@ function branchSetting() {} @click="$router.push('/')" id="btn-drawer-home" > - +
@@ -185,7 +189,7 @@ function branchSetting() {} } :deep(.q-drawer) { - background-color: var(--surface-3); + background-color: var(--surface-0); padding: var(--size-4); padding-right: 0; } diff --git a/src/components/StatCardComponent.vue b/src/components/StatCardComponent.vue index d3cec44d..e2d20c30 100644 --- a/src/components/StatCardComponent.vue +++ b/src/components/StatCardComponent.vue @@ -92,6 +92,6 @@ const props = withDefaults( } .dark .stat-card__orange { - --_color: var(--orange-8); + --_color: var(--orange-6-hsl); } diff --git a/src/css/app.scss b/src/css/app.scss index faf3f09b..33ab399f 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -11,7 +11,7 @@ html { --brand-2: #f50000; --border-color: var(--gray-3); --foreground: black; - --background: var(--gray-1); + --background: var(--gray-2); --surface-0: var(--background); --surface-1: white; --surface-2: var(--gray-0); @@ -50,7 +50,7 @@ html { --brand-2: #f50000; --border-color: var(--gray-7); --foreground: white; - --background: var(--gray-10); + --background: var(--gray-11); --surface-0: var(--background); --surface-1: var(--gray-10); --surface-2: var(--gray-9); From 9cce73338e0f8494af5c89f40b06564f249dcdb2 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:44:28 +0700 Subject: [PATCH 035/158] feat: remove border --- src/components/DrawerComponent.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/DrawerComponent.vue b/src/components/DrawerComponent.vue index c2ebb7ea..4fcd3d10 100644 --- a/src/components/DrawerComponent.vue +++ b/src/components/DrawerComponent.vue @@ -197,7 +197,6 @@ function branchSetting() {} :deep(.q-drawer__content) { border-radius: var(--radius-2); background: var(--surface-1); - border: 1px solid var(--border-color); } #drawer-menu :deep(.q-item.active)::before { From fe0ac5c4b051437ff56484781afc14cb77ffef84 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:45:09 +0700 Subject: [PATCH 036/158] refactor: color --- src/components/04_product-service/ProductCardComponent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/04_product-service/ProductCardComponent.vue b/src/components/04_product-service/ProductCardComponent.vue index fa5c6fd6..93252422 100644 --- a/src/components/04_product-service/ProductCardComponent.vue +++ b/src/components/04_product-service/ProductCardComponent.vue @@ -37,7 +37,7 @@ withDefaults( >
Date: Thu, 4 Jul 2024 15:45:20 +0700 Subject: [PATCH 037/158] refactor: style --- src/layouts/MainLayout.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index aec1fe36..f3c11022 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -185,7 +185,6 @@ onMounted(async () => { left: -18px; background-color: var(--surface-1); " - class="bordered" > {
{{ utilsStore.currentTitle?.title From cccea1f42322162afc5288955bd39845abb1eaca Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:45:28 +0700 Subject: [PATCH 038/158] refactor: color --- src/components/01_branch-management/BranchCard.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/01_branch-management/BranchCard.vue b/src/components/01_branch-management/BranchCard.vue index 1ec80708..bcf8592d 100644 --- a/src/components/01_branch-management/BranchCard.vue +++ b/src/components/01_branch-management/BranchCard.vue @@ -163,6 +163,10 @@ defineProps<{ &.branch-card__br { --_branch-card-bg: var(--violet-11-hsl); + + &.branch-card__dark { + --_branch-card-bg: var(--violet-10-hsl); + } } &.branch-card__inactive { @@ -170,7 +174,7 @@ defineProps<{ --_branch-badge-bg: var(--red-4-hsl); filter: grayscale(1); background-color: hsl(var(--gray-6-hsl) / 0.1); - opacity: 0.7; + opacity: 0.5; } } From 4f240a3f20ce3bb1882c9c742f99786e4b00c37f Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:53:45 +0700 Subject: [PATCH 039/158] Revert "fix: remove gradient title" This reverts commit 1137f47b44f9ff15cfa436c2fe5af85ecdbed4ef. --- src/layouts/MainLayout.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index f3c11022..975dc3ab 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -219,7 +219,7 @@ onMounted(async () => { >
-
+ +
-
+
- - -
- +
+ + {{ $t(v.label) }} - - + +
+ +
+ {{ $t(v.label) }} +
-
-
- - -
- +
+ + +
+ -
- - {{ 'ชื่อสาขาที่ 1' }} - - - {{ 'BR1001' }} - -
+
+ + {{ 'ชื่อสาขาที่ 1' }} + + + {{ 'BR1001' }} +
+ + style="margin-left: auto" + />
@@ -188,7 +207,22 @@ function branchSetting() {} // border-left: 10px solid $secondary; } +#drawer-menu :deep(.q-item.active)::before { + display: block; + position: absolute; + content: ' '; + background: var(--brand-2); + border-radius: 99rem; + width: 6px; + left: -0.6rem; + top: 18%; + bottom: 18%; + cursor: context-menu; +} + :deep(.q-drawer) { + transition: 0.1s width ease-in-out; + background-color: var(--surface-0); padding: var(--size-4); padding-right: 0; @@ -199,19 +233,6 @@ function branchSetting() {} background: var(--surface-1); } -#drawer-menu :deep(.q-item.active)::before { - display: block; - position: absolute; - content: ' '; - background: var(--brand-2); - border-radius: 99rem; - width: 6px; - left: -5%; - top: 18%; - bottom: 18%; - cursor: context-menu; -} - .dot { height: 10px; width: 10px; diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 975dc3ab..41b07557 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -169,22 +169,25 @@ onMounted(async () => { diff --git a/src/pages/02_personnel-management/MainPage.vue b/src/pages/02_personnel-management/MainPage.vue index c3ffdc0a..c00d6310 100644 --- a/src/pages/02_personnel-management/MainPage.vue +++ b/src/pages/02_personnel-management/MainPage.vue @@ -1,7 +1,7 @@ From 37d19e8600ad88bebe8efdb9280a2351a8cee011 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Mon, 8 Jul 2024 11:15:31 +0700 Subject: [PATCH 096/158] feat: scroll inside product / service --- src/pages/04_product-service/MainPage.vue | 237 +++++++++++----------- 1 file changed, 116 insertions(+), 121 deletions(-) diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index 7b7cdc3b..8890de45 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -1227,31 +1227,28 @@ watch(inputSearchProductAndService, async () => {
-
-
+
+
{{ $t('productAndServiceType') }}
{{ $t('productAndServiceAll') }}
{
-
-
- - +
+
+ + + drawerInfo = true; + } + " + @deleteCard="deleteProductById(v.id)" + @on-click=" + async () => { + pathGroupName = v.name; + currentId = v.id; + productMode = 'type'; + await fetchListType(); + flowStore.rotate(); + } + " + /> +
From 4fa1188063b35897353f62403436b0fb03ce12a3 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Mon, 8 Jul 2024 11:21:00 +0700 Subject: [PATCH 097/158] chore: format code --- src/boot/components.ts | 2 +- src/components/home/PersonCard.vue | 24 +-- src/i18n/en-US/employer-dialog.ts | 2 +- src/i18n/th-th/employer-dialog.ts | 3 +- src/pages/01_branch-management/MainPage.vue | 2 +- src/pages/03_customer-management/MainPage.vue | 187 ++++++++---------- 6 files changed, 98 insertions(+), 122 deletions(-) diff --git a/src/boot/components.ts b/src/boot/components.ts index 9bd627c0..0e028326 100644 --- a/src/boot/components.ts +++ b/src/boot/components.ts @@ -1,6 +1,6 @@ import { boot } from 'quasar/wrappers'; import VueDatePicker from '@vuepic/vue-datepicker'; -import '@vuepic/vue-datepicker/dist/main.css' +import '@vuepic/vue-datepicker/dist/main.css'; import GlobalDialog from 'components/GlobalDialog.vue'; import GlobalLoading from 'components/GlobalLoading.vue'; diff --git a/src/components/home/PersonCard.vue b/src/components/home/PersonCard.vue index 11bfdb25..16172e58 100644 --- a/src/components/home/PersonCard.vue +++ b/src/components/home/PersonCard.vue @@ -68,7 +68,7 @@ defineEmits<{ />
- - + - - - - +
diff --git a/src/i18n/en-US/employer-dialog.ts b/src/i18n/en-US/employer-dialog.ts index 31d08d86..3a618ea9 100644 --- a/src/i18n/en-US/employer-dialog.ts +++ b/src/i18n/en-US/employer-dialog.ts @@ -7,5 +7,5 @@ export default { companyOwnerName: 'Company Owner Name', - corporation:'Corporation' + corporation: 'Corporation', }; diff --git a/src/i18n/th-th/employer-dialog.ts b/src/i18n/th-th/employer-dialog.ts index e2f28c78..927d9eaa 100644 --- a/src/i18n/th-th/employer-dialog.ts +++ b/src/i18n/th-th/employer-dialog.ts @@ -7,6 +7,5 @@ export default { companyOwnerName: 'ชื่อเจ้าของบริษัท', - corporation:'ชื่อ บริษัท/นิติบุคคล' - + corporation: 'ชื่อ บริษัท/นิติบุคคล', }; diff --git a/src/pages/01_branch-management/MainPage.vue b/src/pages/01_branch-management/MainPage.vue index d6cb0228..50a547dc 100644 --- a/src/pages/01_branch-management/MainPage.vue +++ b/src/pages/01_branch-management/MainPage.vue @@ -913,7 +913,7 @@ watch(locale, () => { { } " > - +
- - - + + - - + - - + -
+
{ utilsStore.currentTitle.title = 'mainProductTitle'; - utilsStore.currentTitle.caption = 'mainProductCaption'; + utilsStore.currentTitle.path = [{ text: 'mainProductCaption' }]; calculateStats(); await fetchListGroups(); @@ -1229,7 +1229,7 @@ watch(inputSearchProductAndService, async () => { v-if="productMode === 'group' || productMode === 'type'" class="surface-1 col bordered rounded column no-wrap" > -
+
{{ $t('productAndServiceType') }}
@@ -1433,7 +1433,7 @@ watch(inputSearchProductAndService, async () => {