diff --git a/src/modules/15_development/components/history/AddPage.vue b/src/modules/15_development/components/history/AddPage.vue index 824e7e155..1d30cec80 100644 --- a/src/modules/15_development/components/history/AddPage.vue +++ b/src/modules/15_development/components/history/AddPage.vue @@ -87,11 +87,13 @@ function fetchData() { formMainProject.trainingStart = data.dateStart ? data.dateStart : null; formMainProject.trainingEnd = data.dateEnd ? data.dateEnd : null; formMainProject.totalTraining = data.totalDate ? data.totalDate : null; - formMainProject.location = data.addressAcademic ? data.addressAcademic : null; + formMainProject.location = data.addressAcademic + ? data.addressAcademic + : null; formMainProject.topic = data.topicAcademic ? data.topicAcademic : null; // formMainProject.studyStart = data.dateStudyStart; // formMainProject.studyEnd = data.dateStudyEnd; - formMainProject.organizingTraining = data.org? data.org : null; + formMainProject.organizingTraining = data.org ? data.org : null; dateOrder.value = data.dateOrder; order.value = data.order; @@ -133,68 +135,76 @@ onMounted(() => { ข้อมูลข้าราชการฯ
-
-
-
- เลขประจําตัวประชาชน -
+
+
+
+
+
+ เลขประจําตัวประชาชน +
-
- {{ formMain.citizenId ?? "-" }} +
+ {{ formMain.citizenId ?? "-" }} +
+
+
+
+ ชื่อ - นามสกุล +
+ +
+ {{ formMain.name ?? "-" }} +
+
+
+
+ ตําแหน่ง +
+ +
+ {{ formMain.position ?? "-" }} +
+
+
+
+ ประเภทตําแหน่ง +
+ +
+ {{ formMain.type ?? "-" }} +
+
-
-
- ระดับตําแหน่ง -
+
+
+
+
+ ระดับตําแหน่ง +
-
- {{ formMain.level ?? "-" }} -
-
-
-
- ชื่อ - นามสกุล -
+
+ {{ formMain.level ?? "-" }} +
+
+
+
+ ตําแหน่งทางการบริหาร +
-
- {{ formMain.name ?? "-" }} -
-
-
-
- ตําแหน่งทางการบริหาร -
+
+ {{ formMain.positionSide ?? "-" }} +
+
+
+
+ หน่วยงานที่สังกัด +
-
- {{ formMain.positionSide ?? "-" }} -
-
-
-
- ตําแหน่ง -
- -
- {{ formMain.position ?? "-" }} -
-
-
-
- หน่วยงานที่สังกัด -
- -
- {{ formMain.oc ?? "-" }} -
-
-
-
- ประเภทตําแหน่ง -
- -
- {{ formMain.type ?? "-" }} +
+ {{ formMain.oc ?? "-" }} +
+
@@ -206,85 +216,93 @@ onMounted(() => { ข้อมูลโครงการ
-
-
-
- ชื่อโครงการ/หลักสูตรการฝึกอบรม -
+
+
+
+
+
+ ชื่อโครงการ/หลักสูตรการฝึกอบรม +
-
- {{ formMainProject.project ?? "-" }} +
+ {{ formMainProject.project ?? "-" }} +
+
+
+
+ ปีงบประมาณที่เข้ารับการฝึกอบรม/ศึกษาดูงาน +
+ +
+ {{ Number(formMainProject.year) + 543 ?? "-" }} +
+
+
+
+ หัวข้อการไปฝึกอบรม/ศึกษาดูงาน +
+ +
+ {{ formMainProject.topic ?? "-" }} +
+
+
+
+ สถานที่ไปฝึกอบรม/ศึกษาดูงาน +
+ +
+ {{ formMainProject.location ?? "-" }} +
+
-
-
- วันเริ่มต้นการฝึกอบรม/ศึกษาดูงาน -
+
+
+
+
+ วันเริ่มต้นการฝึกอบรม/ศึกษาดูงาน +
-
- {{ - formMainProject.trainingStart - ? date2Thai(formMainProject.trainingStart) - : "-" - }} -
-
-
-
- ปีงบประมาณที่เข้ารับการฝึกอบรม/ศึกษาดูงาน -
+
+ {{ + formMainProject.trainingStart + ? date2Thai(formMainProject.trainingStart) + : "-" + }} +
+
+
+
+ วันสิ้นสุดการฝึกอบรม/ศึกษาดูงาน +
-
- {{ formMainProject.year ?? "-" }} -
-
-
-
- วันสิ้นสุดการฝึกอบรม/ศึกษาดูงาน -
+
+ {{ + formMainProject.trainingEnd + ? date2Thai(formMainProject?.trainingEnd) + : "-" + }} +
+
+
+
+ รวมระยะเวลาในการฝึกอบรม/ศึกษาดูงาน +
-
- {{ - formMainProject.trainingEnd - ? date2Thai(formMainProject?.trainingEnd) - : "-" - }} -
-
-
-
- หัวข้อการไปฝึกอบรม/ศึกษาดูงาน -
+
+ {{ formMainProject.totalTraining ?? "-" }} +
+
+
+
+ หน่วยงานที่รับผิดชอบ +
-
- {{ formMainProject.topic ?? "-" }} -
-
-
-
- รวมระยะเวลาในการฝึกอบรม/ศึกษาดูงาน -
- -
- {{ formMainProject.totalTraining ?? "-" }} -
-
-
-
- สถานที่ไปฝึกอบรม/ศึกษาดูงาน -
- -
- {{ formMainProject.location ?? "-" }} -
-
-
-
- หน่วยงานที่รับผิดชอบ -
- -
- {{ formMainProject.organizingTraining ?? "-" }} +
+ {{ formMainProject.organizingTraining ?? "-" }} +
+
diff --git a/src/modules/15_development/components/historyEmployee/AddPage.vue b/src/modules/15_development/components/historyEmployee/AddPage.vue index bdc937a19..d2a96f87e 100644 --- a/src/modules/15_development/components/historyEmployee/AddPage.vue +++ b/src/modules/15_development/components/historyEmployee/AddPage.vue @@ -1,33 +1,27 @@ @@ -212,206 +131,234 @@ onMounted(() => { class="q-mr-sm" @click="router.go(-1)" /> - {{ - id - ? `แก้ไขประวัติฝึกอบรม/ดูงานลูกจ้าง` - : `เพิ่มประวัติฝึกอบรม/ดูงานลูกจ้าง` - }} + ประวัติฝึกอบรม/ดูงานลูกจ้าง
- - - -
- ข้อมูลลูกจ้าง - - -
-
-
-
-
-
- {{ - fieldLabels[field as keyof typeof fieldLabels] - }} + + + +
+ ข้อมูลลูกจ้าง +
+
+
+
+
+
+
+ เลขประจําตัวประชาชน
-
- {{ formMain[field] ? formMain[field] : "-" }} + +
+ {{ formMain.citizenId ?? "-" }}
-
- -
-
-
- {{ - fieldLabels[field as keyof typeof fieldLabels] - }} +
+
+ ชื่อ - นามสกุล
-
- {{ formMain[field] ? formMain[field] : "-" }} + +
+ {{ formMain.name ?? "-" }} +
+
+
+
+ ตำแหน่ง +
+ +
+ {{ formMain.position ?? "-" }} +
+
+
+
+ กลุ่มงาน +
+ +
+ {{ formMain.type ?? "-" }}
- - - -
- ข้อมูลโครงการ - -
-
-
-
-
-
- {{ - fieldLabelsProject[field as keyof typeof fieldLabelsProject] - }} +
+
+
+
+ ระดับชั้นงาน
-
- {{ - formMainProject[field] ? formMainProject[field] + 543 : "-" - }} - {{ - formMainProject[field] - ? date2Thai(formMainProject[field]) - : "-" - }} - {{ - formMainProject[field] ? formMainProject[field] : "-" - }} + +
+ {{ formMain.level ?? "-" }} +
+
+
+
+ หน่วยงานที่สังกัด +
+ +
+ {{ formMain.oc ?? "-" }}
- -
-
-
- {{ - fieldLabelsProject[field as keyof typeof fieldLabelsProject] - }} -
-
- {{ - formMainProject[field] ? formMainProject[field] : "-" - }} -
-
-
-
- - -
-
- -
-
- - - - -
- - - - + - - + + +
+ ข้อมูลโครงการ +
+
+
+
+
+
+
+ ชื่อโครงการ/หลักสูตรการฝึกอบรม +
+ +
+ {{ formMainProject.project ?? "-" }} +
+
+
+
+ ปีงบประมาณที่เข้ารับการฝึกอบรม/ศึกษาดูงาน +
+ +
+ {{ Number(formMainProject.year) + 543 ?? "-" }} +
+
+
+
+ หัวข้อการไปฝึกอบรม/ศึกษาดูงาน +
+ +
+ {{ formMainProject.topic ?? "-" }} +
+
+
+
+ สถานที่ไปฝึกอบรม/ศึกษาดูงาน +
+ +
+ {{ formMainProject.location ?? "-" }} +
+
+
+
+
+
+
+
+ วันเริ่มต้นการฝึกอบรม/ศึกษาดูงาน +
+ +
+ {{ + formMainProject.trainingStart + ? date2Thai(formMainProject.trainingStart) + : "-" + }} +
+
+
+
+ วันสิ้นสุดการฝึกอบรม/ศึกษาดูงาน +
+ +
+ {{ + formMainProject.trainingEnd + ? date2Thai(formMainProject?.trainingEnd) + : "-" + }} +
+
+
+
+ รวมระยะเวลาในการฝึกอบรม/ศึกษาดูงาน +
+ +
+ {{ formMainProject.totalTraining ?? "-" }} +
+
+
+
+ หน่วยงานที่รับผิดชอบ +
+ +
+ {{ formMainProject.organizingTraining ?? "-" }} +
+
+
+
+
+
+ +
+
+ +
+
+ + + + + +
+
+ + diff --git a/src/modules/15_development/views/EmployeeHistory.vue b/src/modules/15_development/views/EmployeeHistory.vue index 9e1305eac..105e6cf85 100644 --- a/src/modules/15_development/views/EmployeeHistory.vue +++ b/src/modules/15_development/views/EmployeeHistory.vue @@ -6,11 +6,6 @@ import config from "@/app.config"; import genReportXLSX from "@/plugins/genreportxlsx"; import { useRouter } from "vue-router"; -import type { - DataOption, - FormFilter, -} from "@/modules/15_development/interface/index/Main"; - /** importStore*/ import { useDevelopmentDataStore } from "@/modules/15_development/store/developmentStore"; import { useCounterMixin } from "@/stores/mixin"; @@ -27,7 +22,7 @@ const pagination = ref({ }); const maxPage = ref(1); const formFilter = reactive({ - root: "", + root: null, page: 1, pageSize: 20, keyword: "", @@ -35,7 +30,6 @@ const formFilter = reactive({ }); const rows = ref([]); -const agency = ref(""); const agencyOp = ref<[]>([]); const visibleColumns = ref([ @@ -111,9 +105,10 @@ function fetchListOrg() { http .get(config.API.developmentHistoryListOrg("employee", formFilter.year)) .then((res) => { - formFilter.root = ""; + formFilter.root = null; rows.value = []; agencyOp.value = res.data.result; + getData(); }) .catch((err) => { messageError($q, err); @@ -148,14 +143,6 @@ function onEdit(id: string) { } function getData() { - let queryParams: any = { - page: formFilter.page, - pageSize: formFilter.pageSize, - keyword: formFilter.keyword, - year: formFilter.year, - root: formFilter.root, - }; - showLoader(); http .post(config.API.developmentHistoryList("employee"), formFilter) @@ -184,10 +171,6 @@ function getData() { }); } -function yearAll() { - formFilter.year = 0; - // getData(); -} onMounted(() => { fetchListOrg(); }); diff --git a/src/modules/15_development/views/History.vue b/src/modules/15_development/views/History.vue index 63d321182..033785c87 100644 --- a/src/modules/15_development/views/History.vue +++ b/src/modules/15_development/views/History.vue @@ -116,6 +116,7 @@ function fetchListOrg() { .get(config.API.developmentHistoryListOrg("officer", formFilter.year)) .then((res) => { formFilter.root = null; + rows.value = []; agencyOp.value = res.data.result; getData(); })