diff --git a/src/api/11_discipline/api.discipline.ts b/src/api/11_discipline/api.discipline.ts index 7c5db13d3..19aafbbb6 100644 --- a/src/api/11_discipline/api.discipline.ts +++ b/src/api/11_discipline/api.discipline.ts @@ -4,6 +4,7 @@ const discipline = `${env.API_URI}/discipline/disciplinary`; const investigate = `${env.API_URI}/discipline/investigate`; const suspend = `${env.API_URI}/discipline/suspend`; const appeal = `${env.API_URI}/discipline/complaint_appeal`; +const disciplineReport = `${env.API_URI}/discipline/report`; export default { directorList: (page: number, pageSize: number, keyword: string,path?:string) => @@ -124,4 +125,6 @@ export default { complaintbyGetId: (id: string,page?:string) => `${disciplineMain}/complaint/${page}/${id}`, investigateByGetId: (id: string,page?:string) => `${investigate}/${page}/${id}`, disciplineDisciplinaryByGetId: (id: string,page?:string) => `${discipline}/${page}/${id}`, + + disciplineReportByType: (type:string) => `${disciplineReport}/${type}`, }; diff --git a/src/modules/11_discipline/components/9_DisciplineReport/Main.vue b/src/modules/11_discipline/components/9_DisciplineReport/Main.vue new file mode 100644 index 000000000..5516a122a --- /dev/null +++ b/src/modules/11_discipline/components/9_DisciplineReport/Main.vue @@ -0,0 +1,670 @@ + + + + + จำนวนและรายชื่อที่กระทำความผิดทางวินัย + + + + + + + + + + + + + + + + ไฟล์ .pdf + + + + ไฟล์ .docx + + + + ไฟล์ .xlsx + + + + + + + + + + + + {{ year + 543 }} + {{ + parseInt(value + 543) + }} + + + + + + + + + + + + + + + + + + + + + (onUpdateFilter,updateLevel(value))" + @filter="(inputValue:any, doneFn:Function) => + filterOption(inputValue, doneFn,'type') + " + /> + + + + filterOption(inputValue, doneFn,'level') + " + /> + + + + + + + + + + + + + + + + + + + + + + + + {{ 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/11_discipline/interface/index/Main.ts b/src/modules/11_discipline/interface/index/Main.ts index 3830033c0..6e5928187 100644 --- a/src/modules/11_discipline/interface/index/Main.ts +++ b/src/modules/11_discipline/interface/index/Main.ts @@ -102,6 +102,26 @@ interface PersonType { organization: string; } +interface PosLevel { + id: string; + posLevelName: string; + posLevelRank: number; + posLevelAuthority: string; + createdAt: Date | null; + lastUpdatedAt: Date | null; + lastUpdateFullName: string; +} + +interface PosType { + id: string; + posTypeName: string; + posTypeRank: number; + posLevels: PosLevel[]; + createdAt: Date | null; + lastUpdatedAt: Date | null; + lastUpdateFullName: string; +} + export type { DataOption, InvestigatefactsDataRowType, @@ -114,4 +134,6 @@ export type { DataOptionYear, HistoryResultCommand, DataPerson, + PosLevel, + PosType, }; diff --git a/src/modules/11_discipline/router.ts b/src/modules/11_discipline/router.ts index 1af08177c..8c906b20a 100644 --- a/src/modules/11_discipline/router.ts +++ b/src/modules/11_discipline/router.ts @@ -71,6 +71,8 @@ const appealComplainEdit = () => import("@/modules/11_discipline/components/8_AppealComplain/EditPage.vue"); const appealComplainDetail = () => import("@/modules/11_discipline/components/8_AppealComplain/EditPage.vue"); +const disciplineReport = () => + import("@/modules/11_discipline/components/9_DisciplineReport/Main.vue"); export default [ { @@ -355,4 +357,14 @@ export default [ Role: "STAFF", }, }, + { + path: "/disciplineReport", + name: "disciplineReport", + component: disciplineReport, + meta: { + Auth: true, + Key: "SYS_DISCIPLINE_REPORT", + Role: "STAFF", + }, + }, ];