From d67b9b2f02a055736d5f484f9898e5d8dfcbec92 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Mon, 28 Apr 2025 10:32:50 +0700 Subject: [PATCH 001/227] refactor: edit i18n --- src/i18n/tha.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/tha.ts b/src/i18n/tha.ts index 31adb4c6..f01b2dca 100644 --- a/src/i18n/tha.ts +++ b/src/i18n/tha.ts @@ -587,7 +587,7 @@ export default { family: 'ข้อมูลครอบครัว', }, workerStatus: 'สถานะคนงาน', - previousPassportNumber: 'หมายเลขอันเก่าหนังสือเดินทาง', + previousPassportNumber: 'หมายเลขหนังสือเดินทางเล่มเก่า', employerBranch: 'สาขานายจ้าง', employeeCode: 'รหัสลูกจ้าง', nrcNo: 'เลขบัตรประจำตัวคนซึ่งไม่มีสัญชาติไทย (N.R.C No.)', From 93700a2b542ea1a07c5f9ee0608df19c5efb5209 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Mon, 28 Apr 2025 13:49:49 +0700 Subject: [PATCH 002/227] refactor: edit i18n --- src/i18n/tha.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/tha.ts b/src/i18n/tha.ts index f01b2dca..6bf8c591 100644 --- a/src/i18n/tha.ts +++ b/src/i18n/tha.ts @@ -616,7 +616,7 @@ export default { visa90Day: 'รายงานตัว 90 วัน ครั้งต่อไป', arrivalCardNo: 'บัตรขาเข้า หมายเลข TM', visaCheckpoint: 'เดินทางเข้ามาทางด่าน', - workerType: 'ประเภทคนงาน', + workerType: 'สถานะคนงาน', placeOfBirth: 'สถานที่เกิด', countryOfbirth: 'ประเทศที่เกิด', issueCountry: 'ประเทศที่ออก', From 02c7598aec12278813a023caa788d665baf40236 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Mon, 28 Apr 2025 13:57:04 +0700 Subject: [PATCH 003/227] refactor: edit label --- src/components/03_customer-management/FormEmployeePassport.vue | 2 +- src/i18n/tha.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/03_customer-management/FormEmployeePassport.vue b/src/components/03_customer-management/FormEmployeePassport.vue index 5fe21b52..c87f13dd 100644 --- a/src/components/03_customer-management/FormEmployeePassport.vue +++ b/src/components/03_customer-management/FormEmployeePassport.vue @@ -258,7 +258,7 @@ watch( :options="workerStatusOptions" :hide-dropdown-icon="readonly" :for="`${prefixId}-select-visa-type`" - :label="$t('customerEmployee.form.workerType')" + :label="$t('customerEmployee.form.workerStatus')" @filter="workerStatusFilter" :model-value="readonly ? workerStatus || '-' : workerStatus" @update:model-value=" diff --git a/src/i18n/tha.ts b/src/i18n/tha.ts index 6bf8c591..f01b2dca 100644 --- a/src/i18n/tha.ts +++ b/src/i18n/tha.ts @@ -616,7 +616,7 @@ export default { visa90Day: 'รายงานตัว 90 วัน ครั้งต่อไป', arrivalCardNo: 'บัตรขาเข้า หมายเลข TM', visaCheckpoint: 'เดินทางเข้ามาทางด่าน', - workerType: 'สถานะคนงาน', + workerType: 'ประเภทคนงาน', placeOfBirth: 'สถานที่เกิด', countryOfbirth: 'ประเทศที่เกิด', issueCountry: 'ประเทศที่ออก', From 46de2412dfd401401a6e18d1189530d2c683a8c3 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Tue, 29 Apr 2025 11:22:10 +0700 Subject: [PATCH 004/227] refactor: handle role --- src/pages/04_product-service/MainPage.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index d70b6b6a..88d6746c 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -2506,6 +2506,7 @@ watch( /> Date: Tue, 29 Apr 2025 13:07:55 +0700 Subject: [PATCH 005/227] feat: auto go into first entry if only one --- src/pages/00_manual/MainPage.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/pages/00_manual/MainPage.vue b/src/pages/00_manual/MainPage.vue index a0b85ef8..33a19ebe 100644 --- a/src/pages/00_manual/MainPage.vue +++ b/src/pages/00_manual/MainPage.vue @@ -10,10 +10,11 @@ import { onMounted, watch } from 'vue'; import { useManualStore } from 'src/stores/manual'; import { useNavigator } from 'src/stores/navigator'; import { Icon } from '@iconify/vue/dist/iconify.js'; -import { useRoute } from 'vue-router'; +import { useRoute, useRouter } from 'vue-router'; // NOTE: Variable const route = useRoute(); +const router = useRouter(); const manualStore = useManualStore(); const navigatorStore = useNavigator(); const { dataManual, dataTroubleshooting } = storeToRefs(manualStore); @@ -33,6 +34,16 @@ watch( if (route.name === 'Troubleshooting') { const res = await manualStore.getTroubleshooting(); dataTroubleshooting.value = res ? res : []; + if ( + res.length && + res.length === 1 && + res[0].page && + res[0].page.length === 1 + ) { + router.replace( + `/troubleshooting/${res[0].category}/${res[0].page[0].name}`, + ); + } } }, { immediate: true }, From c4c4b76973aa1dd6fb32486c7531732e09f7f522 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Wed, 30 Apr 2025 10:23:40 +0700 Subject: [PATCH 006/227] refactor: adjust button sizes and padding for improved layout consistency --- src/pages/00_notification/MainPage.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/00_notification/MainPage.vue b/src/pages/00_notification/MainPage.vue index a3506813..a2a37e65 100644 --- a/src/pages/00_notification/MainPage.vue +++ b/src/pages/00_notification/MainPage.vue @@ -94,21 +94,21 @@ onMounted(async () => {