From cc98d336d48dfdb90378c4e4d63b4ceeab0ead0d Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 28 Nov 2024 09:58:40 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=20stroe=20=E0=B9=80=E0=B8=81=E0=B9=87=E0=B8=9A=20list?= =?UTF-8?q?Development?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/Achievement/DialogDevelopmance.vue | 78 ++----- .../requestEdit/01_TabInformation.vue | 13 -- .../requestEdit/Dialog01_EditStatus.vue | 192 ------------------ .../requestEdit/Page02_DetailIDP.vue | 97 ++------- .../04_registryPerson/interface/index/Main.ts | 6 - .../components/Tab/Dialog/DialogDevelop.vue | 75 ++----- .../components/results/dialogIndividual.vue | 92 ++------- .../components/ProjectDetail.vue | 102 ++-------- .../15_development/interface/index/Main.ts | 7 + .../15_development/store/listDevelopment.ts | 98 +++++++++ 10 files changed, 182 insertions(+), 578 deletions(-) delete mode 100644 src/modules/04_registryPerson/components/requestEdit/Dialog01_EditStatus.vue create mode 100644 src/modules/15_development/store/listDevelopment.ts diff --git a/src/modules/04_registryPerson/components/detail/Achievement/DialogDevelopmance.vue b/src/modules/04_registryPerson/components/detail/Achievement/DialogDevelopmance.vue index 54f8ca7fb..abed59a50 100644 --- a/src/modules/04_registryPerson/components/detail/Achievement/DialogDevelopmance.vue +++ b/src/modules/04_registryPerson/components/detail/Achievement/DialogDevelopmance.vue @@ -6,17 +6,20 @@ import { useRoute } from "vue-router"; import http from "@/plugins/http"; import config from "@/app.config"; import { useCounterMixin } from "@/stores/mixin"; +import { uselistDevelopmentDataStore } from "@/modules/15_development/store/listDevelopment"; import type { DataOptionTechnique, ProjectYearOp, } from "@/modules/14_KPI/interface/index/Main"; +import type { DataItemsDevelopment } from "@/modules/15_development/interface/index/Main"; import DialogHeader from "@/components/DialogHeader.vue"; const $q = useQuasar(); const route = useRoute(); const mixin = useCounterMixin(); +const itemsDevelopment = uselistDevelopmentDataStore(); const { showLoader, hideLoader, messageError } = mixin; /** @@ -42,68 +45,18 @@ const checkOtherBox13 = computed(() => { return development.value.includes("other3"); }); -const projectTechniquesOp1 = ref([ - { - value: "on_the_job_training", - label: "การฝึกปฏิบัติในงาน (On the job training)", - }, - { - value: "job_project_assignment", - label: "การมอบหมายงาน/โครงการ (Job/Project assignment)", - }, - { - value: "job_shadowing", - label: "การติดตามเรียนรู้รูปแบบการทำงานของผู้บริหาร (Job shadowing)", - }, - { - value: "job_enlargement", - label: "การมอบหมายงานเพิ่มขึ้น (Job enlargement)", - }, - { - value: "internal_trainer", - label: "การเป็นวิทยากรภายในหน่วยงาน (Internal trainer)", - }, - { value: "rotation", label: "การหมุนเวียนงาน (Rotation)" }, - { value: "activity", label: "การทำกิจกรรม (Activity)" }, - { value: "site_visit", label: "การศึกษาดูงานนอกสถานที่ (Site visit)" }, - { - value: "benchmarking", - label: "การแลกเปลี่ยน เทียบเคียงความรู้ ประสมการณ์ (Benchmarking)", - }, - { value: "problem_solving", label: "การแก้ปัญหา (Problem-solving)" }, - { value: "team_working", label: "การทำงานเป็นทีม (Team working)" }, - { value: "other1", label: "อื่น ๆ (ระบุ)" }, -]); -const projectTechniquesOp2 = ref([ - { value: "coaching", label: "การสอนงาน (Coaching)" }, - { value: "mentoring", label: "การเป็นพี่เลี้ยง (Mentoring)" }, - { value: "team_meeting", label: "การประชุมทีม (Team meeting)" }, - { value: "consulting", label: "การให้คำปรึกษา (Consulting)" }, - { value: "feedback", label: "การให้ข้อคิดเห็น/เสนอแนะ (Feedback)" }, - { value: "other2", label: "อื่น ๆ (ระบุ)" }, -]); -const projectTechniquesOp3 = ref([ - { - value: "self_learning", - label: "การเรียนรู้ด้วยตนเอง แบบ online/offline (Self–learning)", - }, - { value: "classroom_training", label: "การฝึกอบรม (Classroom training)" }, - { - value: "in_house_training", - label: "การฝึกอบรมภายในองค์กร (In–house training)", - }, - { - value: "public_training", - label: "การฝึกอบรมจากองค์กรภายนอก (Public training)", - }, - { - value: "e_training", - label: "การฝึกอบรมผ่าน online (e–training/e–learning)", - }, - { value: "meeting", label: "การประชุม (Meeting)" }, - { value: "seminar", label: "การสัมมนา (Seminar)" }, - { value: "other3", label: "อื่นๆ (ระบุ)" }, -]); +//70 การลงมือปฏิบัติ (โดยผู้บังคับบัญชามอบหมาย) +const projectTechniquesOp1 = ref( + itemsDevelopment.dataDevelopment70 +); +//20 การเรียนรู้จากผู้อื่น (Coach/Mentor/Consulting) +const projectTechniquesOp2 = ref( + itemsDevelopment.dataDevelopment20 +); +//10 การฝึกอบรมอื่นๆ +const projectTechniquesOp3 = ref( + itemsDevelopment.dataDevelopment10 +); const choice = ref("MANUAL"); const projectName = ref(""); @@ -301,6 +254,7 @@ watch( } ); + diff --git a/src/modules/04_registryPerson/components/requestEdit/Dialog01_EditStatus.vue b/src/modules/04_registryPerson/components/requestEdit/Dialog01_EditStatus.vue deleted file mode 100644 index e496ee49a..000000000 --- a/src/modules/04_registryPerson/components/requestEdit/Dialog01_EditStatus.vue +++ /dev/null @@ -1,192 +0,0 @@ - - - - - diff --git a/src/modules/04_registryPerson/components/requestEdit/Page02_DetailIDP.vue b/src/modules/04_registryPerson/components/requestEdit/Page02_DetailIDP.vue index 7b144b52e..9b658e735 100644 --- a/src/modules/04_registryPerson/components/requestEdit/Page02_DetailIDP.vue +++ b/src/modules/04_registryPerson/components/requestEdit/Page02_DetailIDP.vue @@ -5,14 +5,13 @@ import { useRouter, useRoute } from "vue-router"; import { useCounterMixin } from "@/stores/mixin"; import { useRequestEditStore } from "@/modules/04_registryPerson/stores/RequestEdit"; +import { uselistDevelopmentDataStore } from "@/modules/15_development/store/listDevelopment"; import config from "@/app.config"; import http from "@/plugins/http"; -import type { - DataOption, - DataItemsDevelopment, -} from "@/modules/04_registryPerson/interface/index/Main"; +import type { DataOption } from "@/modules/04_registryPerson/interface/index/Main"; import type { FormDataIDP } from "@/modules/04_registryPerson/interface/request/Main"; +import type { DataItemsDevelopment } from "@/modules/15_development/interface/index/Main"; import Workflow from "@/components/Workflow/Main.vue"; @@ -21,6 +20,7 @@ const router = useRouter(); const route = useRoute(); const routerName = ref(route.name as string); const store = useRequestEditStore(); +const itemsDevelopment = uselistDevelopmentDataStore(); const { dialogConfirm, showLoader, @@ -58,88 +58,17 @@ const isCheckData = computed(() => { }); //70 การลงมือปฏิบัติ (โดยผู้บังคับบัญชามอบหมาย) -const itemsDevelopment70 = ref([ - { - value: "on_the_job_training", - label: "การฝึกปฏิบัติในงาน (On the job training)", - }, - { - value: "job_project_assignment", - label: "การมอบหมายงาน/โครงการ (Job/Project assignment)", - }, - { - value: "job_shadowing", - label: "การติดตามเรียนรู้รูปแบบการทำงานของผู้บริหาร (Job shadowing)", - }, - { - value: "job_enlargement", - label: "การมอบหมายงานเพิ่มขึ้น (Job enlargement)", - }, - { - value: "internal_trainer", - label: "การเป็นวิทยากรภายในหน่วยงาน (Internal trainer)", - }, - { - value: "rotation", - label: "การหมุนเวียนงาน (Rotation)", - }, - { - value: "activity", - label: "การทำกิจกรรม (Activity)", - }, - { - value: "site_visit", - label: "การศึกษาดูงานนอกสถานที่ (Site visit)", - }, - { - value: "benchmarking", - label: "การแลกเปลี่ยน เทียบเคียงความรู้ ประสมการณ์ (Benchmarking)", - }, - { - value: "problem_solving", - label: "การแก้ปัญหา (Problem-solving)", - }, - { - value: "team_working", - label: "การทำงานเป็นทีม (Team working)", - }, - { - value: "other1", - label: "อื่น ๆ (ระบุ)", - }, -]); +const itemsDevelopment70 = ref( + itemsDevelopment.dataDevelopment70 +); //20 การเรียนรู้จากผู้อื่น (Coach/Mentor/Consulting) -const itemsDevelopment20 = ref([ - { value: "coaching", label: "การสอนงาน (Coaching)" }, - { value: "mentoring", label: "การเป็นพี่เลี้ยง (Mentoring)" }, - { value: "team_meeting", label: "การประชุมทีม (Team meeting)" }, - { value: "consulting", label: "การให้คำปรึกษา (Consulting)" }, - { value: "feedback", label: "การให้ข้อคิดเห็น/เสนอแนะ (Feedback)" }, - { value: "other2", label: "อื่น ๆ (ระบุ)" }, -]); +const itemsDevelopment20 = ref( + itemsDevelopment.dataDevelopment20 +); //10 การฝึกอบรมอื่นๆ -const itemsDevelopment10 = ref([ - { - value: "self_learning", - label: "การเรียนรู้ด้วยตนเอง แบบ online/offline (Self – learning)", - }, - { value: "classroom_training", label: "การฝึกอบรม (Classroom training)" }, - { - value: "in_house_training", - label: "การฝึกอบรมภายในองค์กร (In – house training)", - }, - { - value: "public_training", - label: "การฝึกอบรมจากองค์กรภายนอก (Public training)", - }, - { - value: "e_training", - label: "การฝึกอบรมผ่าน online (e – training / e – learning)", - }, - { value: "meeting", label: "การประชุม (Meeting)" }, - { value: "seminar", label: "การสัมมนา (Seminar)" }, - { value: "other3", label: "อื่น ๆ (ระบุ)" }, -]); +const itemsDevelopment10 = ref( + itemsDevelopment.dataDevelopment10 +); //ข้อมูลรายการสถานะ const statusOptionMain = ref( store.optionStatusIDP.filter((e: DataOption) => e.id !== "") diff --git a/src/modules/04_registryPerson/interface/index/Main.ts b/src/modules/04_registryPerson/interface/index/Main.ts index e34533956..d1e6f42ae 100644 --- a/src/modules/04_registryPerson/interface/index/Main.ts +++ b/src/modules/04_registryPerson/interface/index/Main.ts @@ -67,11 +67,6 @@ interface ItemTab { label: string; } -interface DataItemsDevelopment { - value: string; - label: string; -} - interface Request { createdAt: string; createdFullName: string; @@ -100,6 +95,5 @@ export type { ItemTab, DataOptionEducation, DataOptionEducationLevel, - DataItemsDevelopment, Request, }; diff --git a/src/modules/14_KPI/components/Tab/Dialog/DialogDevelop.vue b/src/modules/14_KPI/components/Tab/Dialog/DialogDevelop.vue index 1f491a6bd..a3604a60b 100644 --- a/src/modules/14_KPI/components/Tab/Dialog/DialogDevelop.vue +++ b/src/modules/14_KPI/components/Tab/Dialog/DialogDevelop.vue @@ -6,11 +6,13 @@ import { useQuasar } from "quasar"; import http from "@/plugins/http"; import config from "@/app.config"; import { useCounterMixin } from "@/stores/mixin"; +import { uselistDevelopmentDataStore } from "@/modules/15_development/store/listDevelopment"; import type { DataOptionTechnique, ProjectYearOp, } from "@/modules/14_KPI/interface/index/Main"; +import type { DataItemsDevelopment } from "@/modules/15_development/interface/index/Main"; import DialogHeader from "@/components/DialogHeader.vue"; @@ -20,6 +22,7 @@ const props = defineProps({ const $q = useQuasar(); const mixin = useCounterMixin(); +const itemsDevelopment = uselistDevelopmentDataStore(); const { showLoader, hideLoader, @@ -61,70 +64,17 @@ const isDevelopment10 = computed(() => { ); }); -const projectTechniquesOp1 = ref([ - { - value: "on_the_job_training", - label: "การฝึกปฏิบัติในงาน (On the job training)", - }, - { - value: "job_project_assignment", - label: "การมอบหมายงาน/โครงการ (Job/Project assignment)", - }, - { - value: "job_shadowing", - label: "การติดตามเรียนรู้รูปแบบการทำงานของผู้บริหาร (Job shadowing)", - }, - { - value: "job_enlargement", - label: "การมอบหมายงานเพิ่มขึ้น (Job enlargement)", - }, - { - value: "internal_trainer", - label: "การเป็นวิทยากรภายในหน่วยงาน (Internal trainer)", - }, - { value: "rotation", label: "การหมุนเวียนงาน (Rotation)" }, - { value: "activity", label: "การทำกิจกรรม (Activity)" }, - { value: "site_visit", label: "การศึกษาดูงานนอกสถานที่ (Site visit)" }, - { - value: "benchmarking", - label: "การแลกเปลี่ยน เทียบเคียงความรู้ ประสมการณ์ (Benchmarking)", - }, - { value: "problem_solving", label: "การแก้ปัญหา (Problem-solving)" }, - { value: "team_working", label: "การทำงานเป็นทีม (Team working)" }, - { value: "other1", label: "อื่น ๆ (ระบุ)" }, -]); +const projectTechniquesOp1 = ref( + itemsDevelopment.dataDevelopment70 +); -const projectTechniquesOp2 = ref([ - { value: "coaching", label: "การสอนงาน (Coaching)" }, - { value: "mentoring", label: "การเป็นพี่เลี้ยง (Mentoring)" }, - { value: "team_meeting", label: "การประชุมทีม (Team meeting)" }, - { value: "consulting", label: "การให้คำปรึกษา (Consulting)" }, - { value: "feedback", label: "การให้ข้อคิดเห็น/เสนอแนะ (Feedback)" }, - { value: "other2", label: "อื่น ๆ (ระบุ)" }, -]); +const projectTechniquesOp2 = ref( + itemsDevelopment.dataDevelopment20 +); -const projectTechniquesOp3 = ref([ - { - value: "self_learning", - label: "การเรียนรู้ด้วยตนเอง แบบ online/offline (Self–learning)", - }, - { value: "classroom_training", label: "การฝึกอบรม (Classroom training)" }, - { - value: "in_house_training", - label: "การฝึกอบรมภายในองค์กร (In–house training)", - }, - { - value: "public_training", - label: "การฝึกอบรมจากองค์กรภายนอก (Public training)", - }, - { - value: "e_training", - label: "การฝึกอบรมผ่าน online (e–training/e–learning)", - }, - { value: "meeting", label: "การประชุม (Meeting)" }, - { value: "seminar", label: "การสัมมนา (Seminar)" }, - { value: "other3", label: "อื่น ๆ (ระบุ)" }, -]); +const projectTechniquesOp3 = ref( + itemsDevelopment.dataDevelopment10 +); const choice = ref("MANUAL"); const projectName = ref(""); @@ -361,6 +311,7 @@ watch( } ); +