diff --git a/src/modules/03_recruiting/views/01_compete/CompeteReport.vue b/src/modules/03_recruiting/views/01_compete/CompeteReport.vue index 2749a1866..6f703d586 100644 --- a/src/modules/03_recruiting/views/01_compete/CompeteReport.vue +++ b/src/modules/03_recruiting/views/01_compete/CompeteReport.vue @@ -1,6 +1,6 @@ + - รายงานสถิติสำหรับการสอบแข่งขัน + {{ + $route.name == "reportExam" + ? "รายงานสรรหา" + : "รายงานสถิติสำหรับการสอบแข่งขัน" + }} diff --git a/src/modules/05_placement/views/09_reportMain.vue b/src/modules/05_placement/views/09_reportMain.vue index 541261971..5ccf31edf 100644 --- a/src/modules/05_placement/views/09_reportMain.vue +++ b/src/modules/05_placement/views/09_reportMain.vue @@ -206,7 +206,7 @@ onMounted(() => { - รายงานบรรจุ แต่งตั้ง ย้าย โอน + รายงานการบรรจุ แต่งตั้ง ย้าย โอน diff --git a/src/modules/06_retirement/views/07_report.vue b/src/modules/06_retirement/views/07_report.vue index de4fcb3f8..d1c4f5b46 100644 --- a/src/modules/06_retirement/views/07_report.vue +++ b/src/modules/06_retirement/views/07_report.vue @@ -228,7 +228,7 @@ onMounted(() => { - รายงานพ้นจากราชการ + รายงานการพ้นจากราชการ diff --git a/src/modules/07_insignia/views/06_ReportMain.vue b/src/modules/07_insignia/views/06_ReportMain.vue index 0b95585ca..20fb6bb39 100644 --- a/src/modules/07_insignia/views/06_ReportMain.vue +++ b/src/modules/07_insignia/views/06_ReportMain.vue @@ -349,13 +349,13 @@ onMounted(async () => { - + import("@/modules/09_leave/views/04_SpecialTimeMain.vue"); const leaveReport = () => import("@/modules/09_leave/views/06_ReportMain.vue"); -const CheckinReport = () => - import("@/modules/09_leave/views/07_ReportCheckin.vue"); +// const CheckinReport = () => +// import("@/modules/09_leave/views/!07_ReportCheckin.vue"); export default [ { path: "/round-time", @@ -96,9 +96,9 @@ export default [ }, { - path: "/checkinReport", + path: "/checkin-report", name: "checkinReport", - component: CheckinReport, + component: leaveReport, meta: { Auth: true, Key: "SYS_WORK_REPORT", diff --git a/src/modules/09_leave/views/07_ReportCheckin.vue b/src/modules/09_leave/views/!07_ReportCheckin.vue similarity index 100% rename from src/modules/09_leave/views/07_ReportCheckin.vue rename to src/modules/09_leave/views/!07_ReportCheckin.vue diff --git a/src/modules/09_leave/views/06_ReportMain.vue b/src/modules/09_leave/views/06_ReportMain.vue index e248b24c8..eb6d78fbd 100644 --- a/src/modules/09_leave/views/06_ReportMain.vue +++ b/src/modules/09_leave/views/06_ReportMain.vue @@ -45,26 +45,49 @@ const dateMonth = ref({ year: new Date().getFullYear(), }); +const pageName = ref(route.name as string); + const dateWeek = ref(getCurrentWeek()); const date = ref(new Date()); const typeReport = ref(""); const optionReport = ref([]); -const optionReportMain = ref([ - { - id: "3", - name: "รายงานการเข้างาน", - }, - { - id: "4", - name: "รายงานการเข้างานสาย", - }, - { id: "1", name: "รายงานการลางานตามประเภทการลา" }, - { - id: "2", - name: "รายงานการลางาน จำแนกตามเพศ ประเภทการลา หน่วยงาน/ส่วนราชการ", - }, -]); +const optionReportMain = ref( + route.name?.toString() === "reportLeave" + ? [ + { + id: "3", + name: "รายงานการเข้างาน", + }, + { + id: "4", + name: "รายงานการเข้างานสาย", + }, + { id: "1", name: "รายงานการลางานตามประเภทการลา" }, + { + id: "2", + name: "รายงานการลางาน จำแนกตามเพศ ประเภทการลา หน่วยงาน/ส่วนราชการ", + }, + ] + : route.name?.toString() === "leaveReport" + ? [ + { id: "1", name: "รายงานการลางานตามประเภทการลา" }, + { + id: "2", + name: "รายงานการลางาน จำแนกตามเพศ ประเภทการลา หน่วยงาน/ส่วนราชการ", + }, + ] + : [ + { + id: "3", + name: "รายงานการเข้างาน", + }, + { + id: "4", + name: "รายงานการเข้างานสาย", + }, + ] +); const employeeClass = ref("officer"); const yearType = ref("FULL"); @@ -380,14 +403,22 @@ onMounted(() => { - บัญชีแสดงวันลา + + {{ + pageName === "reportLeave" + ? "รายงานบันทึกเวลาและการลา" + : pageName === "leaveReport" + ? "รายงานสถิติการลา" + : "รายงานสถิติการลงเวลา" + }} + - + { เลือกช่วงเวลา - { - รายงานวินัย + + รายงานการดำเนินการทางวินัย + - + { - รายงานประเมินผลการปฏิบัติราชการระดับบุคคล + รายงานการประเมินผลฯ ระดับบุคคล @@ -655,7 +655,7 @@ onMounted(() => { - + { " /> - - + + (""); // ID ประวัติโครงสร const labelHistory = ref("ประวัติโครงสร้าง"); // ชื่อประวัติโครงสร้าง const count = ref(0); -const modalCommand = ref(false); //ส่งไปออกคำสั่ง -const modalRemark = ref(false); // หมายเหตุ +// const modalCommand = ref(false); //ส่งไปออกคำสั่ง +// const modalRemark = ref(false); // หมายเหตุ /** * function เรียกข้อมูลโครงสร้าง แบบปัจุบันและ แบบร่าง @@ -99,19 +99,19 @@ async function fetchHistory() { }); } -/** - * function openPopup เพิ่มโครงสร้าง - * @param type ประเภทการเพิ่มโครงาสร้าง - */ -function ocClickAddStructure(type: string) { - modalNewStructure.value = !modalNewStructure.value; - typeStructure.value = type; -} +// /** +// * function openPopup เพิ่มโครงสร้าง +// * @param type ประเภทการเพิ่มโครงาสร้าง +// */ +// function ocClickAddStructure(type: string) { +// modalNewStructure.value = !modalNewStructure.value; +// typeStructure.value = type; +// } -/** function openPopup ตั้งเวลาเผยแพร่ */ -function onClickDateTime() { - modalDateTime.value = !modalDateTime.value; -} +// /** function openPopup ตั้งเวลาเผยแพร่ */ +// function onClickDateTime() { +// modalDateTime.value = !modalDateTime.value; +// } /** * function เปิดประวัติโครงสร้าง @@ -125,18 +125,18 @@ function onClickHistory(id: string, name: string) { count.value++; } -async function workflowSystem() { - http - .get(config.API.workflowKeycloakSystem("SYS_ORG")) - .then((res) => { - const data = res.data.result; - store.isOfficer = data.isOfficer; - store.isStaff = data.isStaff; - }) - .catch((e) => { - messageError($q, e); - }); -} +// async function workflowSystem() { +// http +// .get(config.API.workflowKeycloakSystem("SYS_ORG")) +// .then((res) => { +// const data = res.data.result; +// store.isOfficer = data.isOfficer; +// store.isStaff = data.isStaff; +// }) +// .catch((e) => { +// messageError($q, e); +// }); +// } async function fetchCheckIslock(id: string) { http @@ -150,20 +150,20 @@ async function fetchCheckIslock(id: string) { }); } -watch( - () => store.typeOrganizational, - () => { - if ( - store.typeOrganizational === "draft" && - store.isOfficer === null && - store.isStaff === null - ) { - workflowSystem(); - } else if (store.typeOrganizational === "draft") { - store.rootId = ""; - } - } -); +// watch( +// () => store.typeOrganizational, +// () => { +// if ( +// store.typeOrganizational === "draft" && +// store.isOfficer === null && +// store.isStaff === null +// ) { +// workflowSystem(); +// } else if (store.typeOrganizational === "draft") { +// store.rootId = ""; +// } +// } +// ); /** * lifecycleHook ทำงานเมื่อมีการเรียกใช้ Components @@ -177,11 +177,11 @@ onMounted(async () => { - รายงานโครงสร้างอัตรากำลัง + รายงานโครงสร้างและกรอบอัตรากำลัง - @@ -202,11 +202,11 @@ onMounted(async () => { @click="onClickDateTime" > - + --> - + + + + + + + + + + + {{ item.orgRevisionCreatedAt }} + {{ item.name }} + + + + + + + - - + + + + + + + + + + + + - - - - - - - - - - - - + - - - + + + - - - - - - - + + + + + + + - + diff --git a/src/modules/21_report/views/02_reportRegistry.vue b/src/modules/21_report/views/02_reportRegistry.vue index edc82f9f5..4e173b3b8 100644 --- a/src/modules/21_report/views/02_reportRegistry.vue +++ b/src/modules/21_report/views/02_reportRegistry.vue @@ -832,7 +832,7 @@ watch( - + { - รายงานโครงการ/หลักสูตรการฝึกอบรมที่หน่วยงานของกรุงเทพมหานครเป็นผู้จัด + รายงานการพัฒนาบุคลากร/การศึกษาต่อ diff --git a/src/modules/21_report/views/04_reportEvaluate.vue b/src/modules/21_report/views/04_reportEvaluate.vue index 5ab574cce..d3a7ec907 100644 --- a/src/modules/21_report/views/04_reportEvaluate.vue +++ b/src/modules/21_report/views/04_reportEvaluate.vue @@ -161,7 +161,7 @@ onMounted(() => { - รายงานประเมินบุคคล + รายงานระบบประเมินบุคคล diff --git a/src/modules/21_report/views/05_reportSalary.vue b/src/modules/21_report/views/05_reportSalary.vue index 7a24dfc8c..2acaf6ff6 100644 --- a/src/modules/21_report/views/05_reportSalary.vue +++ b/src/modules/21_report/views/05_reportSalary.vue @@ -301,20 +301,22 @@ onMounted(() => { - รายงานเงินเดือน + + รายงานระบบเงินเดือน + - +