diff --git a/src/api/05_placement/api.placement.ts b/src/api/05_placement/api.placement.ts index 9272786ba..3fee87d90 100644 --- a/src/api/05_placement/api.placement.ts +++ b/src/api/05_placement/api.placement.ts @@ -11,6 +11,7 @@ const placemenRelocation = `${placement}/relocation`; const placemenOther = `${env.API_URI}/retirement/other`; const placemenAppointment = `${placement}/appointment`; const orgSearchCommand = `${env.API_URI}/org/profile/search/profile/command`; +const report = `${env.API_PLACEMENT_URI}/placement/report`; export default { MainDetail: (year: number) => `${placement}/exam/${year}`, @@ -178,4 +179,7 @@ export default { appointEmployeeOrder: (typeId: string) => `${placement}/appointment/temp/report/${typeId}`, apppointmentPositionUse: () => `${placement}/appointment/temp/use`, + + //รายงาน + placementReport: `${report}`, }; diff --git a/src/api/05_placement/api.probation.ts b/src/api/05_placement/api.probation.ts index 77496ecde..f03e243fa 100644 --- a/src/api/05_placement/api.probation.ts +++ b/src/api/05_placement/api.probation.ts @@ -7,6 +7,7 @@ const evaluate = `${env.API_PROBATION_URI}`; const appointMain = `${env.API_PROBATION_URI}/appoint`; const orgProfile = `${env.API_URI}/org`; const probation = `${env.API_URI}/probation`; +const report = `${env.API_URI}/probation/report`; export default { competencyOptions: (personalId: string) => @@ -87,9 +88,12 @@ export default { `${orgProfile}/profile/probation/${profileId}`, appointMain, - appointMainList:(id:string)=>`${appointMain}/list/${id}`, + appointMainList: (id: string) => `${appointMain}/list/${id}`, - orgProfileDirector:`${orgProfile}/profile/commander-director`, + orgProfileDirector: `${orgProfile}/profile/commander-director`, - permissionsCheck:(id:string)=>`${probation}/permissions/${id}` + permissionsCheck: (id: string) => `${probation}/permissions/${id}`, + + //รายงาน + probationReport: `${report}`, }; diff --git a/src/modules/05_placement/interface/index/Main.ts b/src/modules/05_placement/interface/index/Main.ts index 591a62635..8bb806ded 100644 --- a/src/modules/05_placement/interface/index/Main.ts +++ b/src/modules/05_placement/interface/index/Main.ts @@ -14,6 +14,12 @@ interface DataOption1 { name: string | null; disable?: boolean; } + +interface DataTypeReport { + id: string; + name: string; + type: string; +} interface DataOptionInsignia { id: string; name: string; @@ -484,6 +490,7 @@ export type { DataPermissions, TabPermissions, MainData, + DataTypeReport, }; export { AddressDataDefualt, FamilyDataDefualt }; diff --git a/src/modules/05_placement/views/09_reportMain.vue b/src/modules/05_placement/views/09_reportMain.vue index e9348fe81..0276de6b3 100644 --- a/src/modules/05_placement/views/09_reportMain.vue +++ b/src/modules/05_placement/views/09_reportMain.vue @@ -1,23 +1,65 @@ @@ -55,11 +185,10 @@ function backPage() { v-model="reportType" :options="optionReport" label="รายงาน" - emit-value map-options option-label="name" - option-value="id" style="width: 500px" + @update:model-value="fetchDataReport" > @@ -73,106 +202,286 @@ function backPage() { > + + + + + + + {{ year + 543 }} + {{ + parseInt(value + 543) + }} + + + + + + + + + + + + + + {{ year + 543 }} + {{ + parseInt(value + 543) + }} + + + + + + + + + + + + + {{ year + 543 }} + {{ + parseInt(value + 543) + }} + + + + + + + + + + + + + - - - - - - - - - - - หน้าที่ {{ page }} จาก {{ numOfPages }} - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - - - หน้าที่ {{ page }} จาก {{ numOfPages }} + + + + + + + {{ prop.node.orgTreeName }} + + + {{ prop.node.orgCode == null ? null : prop.node.orgCode }} + {{ + prop.node.orgTreeShortName == null + ? null + : prop.node.orgTreeShortName + }} + + + + + + + + + + + + + + + + + + + + + หน้าที่ {{ page }} จาก {{ numOfPages }} + + + + - - + + + + + + + + + + + + + + + + + + หน้าที่ {{ page }} จาก {{ numOfPages }} + + + + + - - - + + + - + diff --git a/src/modules/09_leave/views/06_ReportMain.vue b/src/modules/09_leave/views/06_ReportMain.vue index 3d31c2c4f..aabd5dbd9 100644 --- a/src/modules/09_leave/views/06_ReportMain.vue +++ b/src/modules/09_leave/views/06_ReportMain.vue @@ -34,7 +34,7 @@ const { } = useCounterMixin(); const year = ref(new Date().getFullYear()); -const dateStart = ref(new Date(year.value, 9, 1)); +const dateStart = ref(new Date(year.value - 1, 9, 1)); const dateEnd = ref(new Date(year.value + 1, 8, 30)); const dateMonth = ref({