hrms-mgt/src/interface/request/main/main.ts

821 lines
20 KiB
TypeScript
Raw Normal View History

2023-06-01 12:54:58 +07:00
import { readonly } from "vue";
interface ScrollType {
position: number;
direction: string;
directionChanged: boolean;
inflectionPoint: number;
delta: number;
}
interface tabType {
key: number;
label: string;
tag: string;
}
interface childrenType {
key: number;
label: string;
path?: string;
}
interface menuType {
key: number;
icon: string;
activeIcon: string;
label: string;
path: string;
children?: childrenType[];
}
interface notiType {
id: string;
2023-06-01 12:54:58 +07:00
sender: string;
body: string;
timereceive: string;
isOpen: boolean;
2023-06-01 12:54:58 +07:00
}
interface optionType {
icon: string;
label: string;
value: string;
color: string;
}
const menuList = readonly<any[]>([
{
key: 1,
icon: "mdi-home-variant-outline",
label: "หน้าแรก",
path: "dashboard",
role: "dashboard",
},
// {
// key: 2,
// icon: "o_person",
// label: "ข้อมูลหลัก",
// path: "metadataNew",
// role: "metadata",
// children: [
// {
// key: 2.0,
// label: "ข้อมูลเกี่ยวกับบุคคล",
// path: "masterPersonal",
// },
// {
// key: 2.0,
// label: "ข้อมูลตำแหน่งข้าราชการ ฯ",
// path: "masterPosition",
// },
// {
// key: 2.0,
// label: "ข้อมูลตำแหน่งลูกจ้างประจำ",
// path: "masterPositionEmployee",
// },
// {
// key: 2.0,
// label: "ข้อมูลปฏิทินวันหยุด",
// path: "masterCalendarWork",
// },
// {
// key: 2.0,
// label: "ข้อมูลเครื่องราชอิสริยาภรณ์",
// path: "masterInsignia",
// },
// ],
// },
2024-05-28 10:05:16 +07:00
{
key: 2,
icon: "o_person",
label: "ข้อมูลการประเมิน",
path: "metadataNew",
role: "evaluateKPI",
children: [
{
key: 2.1,
label: "ตัวชี้วัด",
role: "evaluateKPI",
children: [
{
label: "ตามแผน",
path: "KPIIndicatorByPlan",
role: "evaluateKPI",
},
{
label: "ตามตำแหน่ง",
path: "KPIIndicatorByRole",
role: "evaluateKPI",
},
{
label: "งานที่ได้รับมอบหมาย",
path: "KPIAssignment",
role: "evaluateKPI",
},
],
},
{
key: 2.0,
label: "สมรรถนะ",
path: "KPICompetency",
role: "evaluateKPI",
},
2024-04-22 09:15:37 +07:00
{
key: 2.0,
label: "ยุทธศาสตร์",
path: "strategic",
2024-04-22 09:15:37 +07:00
role: "development",
},
],
},
{
key: 3,
icon: "o_groups",
label: "โครงสร้างอัตรากำลัง",
path: "organizationalNew",
role: "organization",
},
{
key: 3,
icon: "mdi-account-convert",
label: "รักษาการในตำแหน่ง",
path: "acting",
role: "organization",
},
{
key: 3,
icon: "o_groups",
label: "อัตรากำลังลูกจ้างประจำฯ",
path: "positionEmployee",
role: "positionEmployee",
},
{
key: 4,
icon: "o_contact_page",
label: "ทะเบียนประวัติ",
path: "registryNew",
2024-02-06 11:58:23 +07:00
role: "organization",
},
{
key: 4,
icon: "o_contact_page",
label: "ทะเบียนประวัติลูกจ้าง",
path: "registry-employee",
role: "registryEmployee",
},
{
key: 6,
icon: "mdi-file-certificate-outline",
label: "ออกคำสั่ง",
path: "order",
role: "order",
},
2023-06-01 12:54:58 +07:00
{
key: 7,
2023-06-01 12:54:58 +07:00
icon: "o_search",
label: "สรรหา",
path: "recruiting",
role: "recruit",
children: [
{
label: "ตั้งค่าเว็บสรรหา",
path: "editorweb",
key: 7.1,
2023-06-01 12:54:58 +07:00
role: "recruit",
},
{
label: "สอบแข่งขัน",
path: "",
key: 7.2,
2023-06-01 12:54:58 +07:00
role: "recruit",
children: [
{
label: "จัดการรอบสอบแข่งขัน" /* แข่งขัน */,
2023-06-01 12:54:58 +07:00
path: "competePeriod",
role: "recruit",
},
{
label: "สถิติสมัครสอบแข่งขัน" /* แข่งขัน */,
2023-06-01 12:54:58 +07:00
path: "competePeriodStat",
role: "recruit",
},
],
},
{
label: "คัดเลือก",
path: "",
key: 7.3,
2023-06-01 12:54:58 +07:00
role: "recruit",
children: [
{
label: "จัดการรอบคัดเลือก",
path: "qualifyPeriod",
role: "recruit",
},
{
label: "จัดการรอบคัดเลือกคนพิการ",
path: "disablePeriod",
role: "recruit",
},
{
label: "จัดการรายชื่อคัดเลือก",
path: "manage",
role: "recruit",
},
{
label: "สถิติสมัครคัดเลือก",
path: "qualifyPeriodStat",
role: "recruit",
},
{
label: "สถิติสมัครคัดเลือกคนพิการ",
path: "qualifyPeriodStatDisable",
role: "recruit",
},
],
},
],
},
{
key: 8,
2023-06-01 12:54:58 +07:00
path: "placement",
icon: "how_to_reg",
label: "บรรจุ แต่งตั้ง ย้าย โอน",
2023-06-01 12:54:58 +07:00
role: "placement",
children: [
{
label: "รายชื่อผู้สอบผ่าน",
path: "placement",
role: "placement",
},
// {
// label: "การทดลองปฏิบัติหน้าที่ราชการ",
// path: "probation",
// role: "probation",
// },
{
label: "รายการขอโอน",
2023-07-25 11:38:17 +07:00
path: "transfer",
role: "placement",
},
{
label: "รายการรับโอน",
path: "receive",
role: "placement",
},
{
label: "รายการช่วยราชการ",
path: "help-government",
role: "placement",
},
{
label: "รายการส่งตัวกลับ",
path: "repatriate",
role: "placement",
},
{
label: "รายการแต่งตั้ง-เลื่อน-ย้าย",
path: "appoint-promote",
role: "placement",
},
{
2023-10-24 14:29:59 +07:00
label: "ปรับระดับชั้นงาน-ย้ายลูกจ้าง",
path: "appoint-employee",
role: "placement",
},
// {
// label: "ออกคำสั่งย้ายสับเปลี่ยนตำแหน่ง",
// path: "changePositions",
// role: "placement",
// },
{
label: "รายการอื่นๆ",
path: "other",
role: "placement",
},
],
2023-06-01 12:54:58 +07:00
},
{
key: 81,
icon: "badge",
label: "ทดลองปฏิบัติหน้าที่ราชการ",
path: "probation",
role: "probation",
},
2023-06-01 12:54:58 +07:00
{
key: 9,
icon: "mdi-account-cancel-outline",
2023-06-01 12:54:58 +07:00
label: "พ้นจากราชการ",
path: "retirement",
role: "retirement",
children: [
{
label: "ประกาศเกษียณ",
path: "retirement",
role: "retirement",
},
{
label: "รายการลาออก",
path: "resign",
role: "retirement",
},
{
label: "Exit interview",
path: "exit-Interview",
role: "retirement",
},
{
label: "รายการบันทึกการถึงแก่กรรม",
path: "deceased",
role: "retirement",
},
{
label: "รายการให้ออก",
path: "dismiss-order",
role: "retirement",
},
],
2023-06-01 12:54:58 +07:00
},
{
key: 10,
icon: "mdi-medal-outline",
2023-07-19 15:29:59 +07:00
label: "เครื่องราชฯ",
2023-06-01 12:54:58 +07:00
path: "insignia",
role: "insignia",
children: [
{
label: "รอบการเสนอขอ",
path: "insigniaProposals",
role: "insignia",
},
{
label: "จัดการคำขอ",
path: "insigniaManage",
role: "insignia",
},
{
label: "บันทึกผลการเสนอขอ",
path: "insigniaRecord",
role: "insignia",
},
{
label: "จัดสรรเครื่องราชฯ",
path: "insigniaAllocate",
role: "insignia",
},
{
label: "ยืม-คืนเครื่องราชฯ",
path: "insigniaBorrow",
role: "insignia",
},
{
label: "รายงาน",
path: "insigniaReport",
role: "insignia",
2023-07-17 17:00:50 +07:00
},
],
},
{
key: 11,
icon: "mdi-calendar",
label: "การลา",
path: "leave",
role: "leave",
children: [
{
label: "รอบการปฏิบัติงาน",
2024-06-13 11:16:20 +07:00
path: "roundTime",
role: "leave",
},
{
label: "แก้ไขรอบการปฎิบัติงานผู้ใช้งาน",
2024-06-13 11:16:20 +07:00
path: "changeRound",
role: "leave",
},
{
label: "รายการลงเวลาปฏิบัติงาน",
2024-06-13 11:16:20 +07:00
path: "workList",
role: "leave",
},
{
label: "ลงเวลากรณีพิเศษ",
2024-06-13 11:16:20 +07:00
path: "timestampSpecial",
role: "leave",
},
{
label: "รายการลา",
2024-06-13 11:16:20 +07:00
path: "leave",
role: "leave",
},
{
2024-01-10 17:33:31 +07:00
label: "รายงานสถิติการลา",
2024-06-13 11:16:20 +07:00
path: "leaveReport",
role: "leave",
},
],
},
{
key: 12,
icon: "mdi-scale-balance",
label: "วินัย",
role: "discipline",
children: [
{
key: 12.0,
label: "เรื่องร้องเรียน",
2023-11-24 16:52:10 +07:00
path: "disciplineComplaints",
role: "discipline",
},
{
key: 12.0,
label: "สืบสวนข้อเท็จจริง",
2023-11-24 16:52:10 +07:00
path: "disciplineInvestigatefacts",
role: "discipline",
},
{
key: 12.0,
label: "สอบสวนความผิดทางวินัย",
2023-11-24 16:52:10 +07:00
path: "disciplineDisciplinary",
role: "discipline",
},
{
key: 12.0,
label: "สรุปผลการพิจารณาความผิดทางวินัย",
2023-11-24 16:52:10 +07:00
path: "disciplineResult",
role: "discipline",
},
{
key: 12.0,
label: "รายชื่อผู้ถูกพักราชการ",
path: "disciplineListSuspend",
role: "discipline",
},
{
key: 12.0,
label: "อุทธรณ์/ร้องทุกข์",
path: "appealComplain",
role: "discipline",
},
{
key: 12.0,
label: "ออกคำสั่งลงโทษทางวินัย",
path: "disciplineOrder",
role: "discipline",
},
{
label: "ข้อมูลพื้นฐาน",
path: "",
key: 12.1,
role: "discipline",
children: [
{
label: "กรรมการ",
2023-11-24 16:52:10 +07:00
path: "disciplineDirector",
role: "discipline",
},
{
label: "ช่องทางการร้องเรียน",
2023-11-24 16:52:10 +07:00
path: "disciplineChannel",
role: "discipline",
},
],
},
],
},
{
key: 13,
icon: "mdi-account-check",
label: "ประเมินบุคคล",
role: "evaluate",
2023-12-15 13:05:11 +07:00
children: [
{
key: 13.0,
2023-12-15 13:05:11 +07:00
label: "คำขอประเมิน",
path: "evaluate",
role: "discipline",
},
{
label: "กรรมการและการประชุม",
path: "",
key: 13.1,
role: "evaluate",
2023-12-15 13:05:11 +07:00
children: [
{
label: "กรรมการ",
path: "evaluateDirector",
role: "evaluate",
2023-12-15 13:05:11 +07:00
},
{
label: "การประชุม",
path: "evaluateMeeting",
role: "evaluate",
2023-12-15 13:05:11 +07:00
},
],
},
],
},
{
key: 14,
icon: "mdi-cash",
label: "เงินเดือน/ค่าจ้าง",
role: "salary",
children: [
{
2024-06-13 11:16:20 +07:00
label: "ผังบัญชีเงินเดือนข้าราชการฯ",
path: "salaryChart",
role: "salary",
},
{
label: "ผังบัญชีค่าจ้างลูกจ้างประจำ",
path: "salaryEmployeeChart",
role: "salary",
},
{
2024-04-22 09:15:37 +07:00
label: "รอบการเลื่อนเงินเดือน",
path: "salaryRound",
role: "salary",
},
{
2024-06-13 11:16:20 +07:00
label: "เลื่อนเงินเดือนข้าราชการฯ",
path: "salaryLists",
role: "salary",
},
{
label: "เลื่อนค่าจ้างลูกจ้างประจำ",
path: "salaryEmployeeLists",
role: "salary",
},
{
label: "ออกคำสั่งเลื่อนเงินเดือน/ค่าจ้าง",
path: "commandSalary",
role: "salary",
},
],
},
{
key: 15,
icon: "mdi-account-star",
label: "ประเมินผลการปฏิบัติราชการระดับบุคคล",
role: "evaluateKPI",
children: [
{
label: "รอบการประเมิน",
path: "KPIRound",
role: "evaluateKPI",
},
2024-04-26 14:47:52 +07:00
{
label: "รายการการประเมินผล",
path: "KPIList",
role: "evaluateKPI",
},
{
2024-06-20 09:45:58 +07:00
label: "รายงาน",
path: "KPIReport",
role: "evaluateKPI",
},
],
},
{
key: 16,
icon: "mdi-briefcase-account",
label: "พัฒนาบุคลากร",
role: "development",
children: [
{
label: "โครงการ/หลักสูตรการฝึกอบรม",
path: "developmentMain",
role: "development",
},
{
label: "ประวัติฝึกอบรม/ดูงาน ขรก.",
path: "developmentHistory",
role: "development",
},
{
label: "ประวัติฝึกอบรม/ดูงานลูกจ้าง",
path: "developmentEmployeeHistory",
role: "development",
},
{
label: "ทุนการศึกษา/ฝึกอบรม",
path: "developmentScholarship",
role: "development",
},
],
},
{
key: 13,
icon: "o_note",
label: "ระบบเดิม",
path: "registry",
role: "organization",
children: [
{
key: 13.0,
icon: "o_person",
label: "ข้อมูลหลัก",
path: "metadata",
role: "metadata",
},
{
key: 13.1,
icon: "o_groups",
label: "โครงสร้างอัตรากำลัง",
path: "organizational",
role: "organization",
children: [
{
key: 3.1,
label: "จัดการตำแหน่ง",
path: "organizationalMapping",
},
{
key: 3.2,
label: "แผนภูมิโครงสร้าง",
path: "organizationalStructChart",
},
{
key: 3.3,
label: "แผนภูมิองค์กร",
path: "organizationalOrgChart",
},
{
key: 3.4,
label: "ผังโครงสร้าง",
path: "organizationalTree",
},
{
key: 3.5,
label: "ผังโครงสร้างลูกจ้าง",
path: "organizationalEmployee",
},
{
key: 3.6,
label: "จัดการบัญชี 2",
path: "manageReport2",
},
{
key: 3.7,
label: "รายงานบัญชี",
path: "organizationalReport",
},
],
},
{
key: 13.0,
icon: "o_contact_page",
label: "ทะเบียนประวัติ",
path: "registry",
role: "registry",
},
],
},
{
key: 4,
icon: "o_contact_page",
label: "ทะเบียนประวัติ",
path: "registry",
role: "registry",
},
{
key: 4,
icon: "verified",
label: "รายการรอตรวจสอบ",
path: "verified",
role: "registryverify",
},
2023-06-01 12:54:58 +07:00
]);
const tabList = readonly<tabType[]>([
{
key: 1,
label: "ข้อมูลทั่วไป",
tag: "information",
},
{
key: 19,
label: "ประวัติการเปลี่ยนชื่อ",
tag: "oldName",
},
{
key: 16,
label: "ข้อมูลราชการ",
tag: "government",
},
{
key: 17,
label: "ข้อมูลที่อยู่",
tag: "address",
},
{
key: 18,
label: "ข้อมูลครอบครัว",
tag: "family",
},
2023-06-01 12:54:58 +07:00
{
key: 15,
2024-02-20 16:33:34 +07:00
label: "ใบอนุญาตประกอบวิชาชีพ",
2023-06-01 12:54:58 +07:00
tag: "certicate",
},
{
key: 2,
label: "ประวัติการศึกษา",
tag: "education",
},
{
key: 3,
label: "การฝึกอบรม/ดูงาน",
tag: "training",
},
{
key: 4,
label: "เครื่องราชอิสริยาภรณ์",
tag: "insignia",
},
{
key: 5,
label: "ประกาศเกียรติคุณ",
tag: "coined",
},
{
key: 6,
label: "ผลการประเมินปฏิบัติราชการ",
tag: "assessment",
},
{
key: 7,
label: "ตำแหน่ง/เงินเดือน/ค่าจ้าง",
2023-06-01 12:54:58 +07:00
tag: "position",
},
{
key: 8,
label: "วินัย",
tag: "rule",
},
{
key: 9,
label: "การลา",
tag: "leave",
},
{
key: 10,
label: "ความสามารถพิเศษ",
tag: "talent",
},
{
key: 11,
label: "ปฎิบัติราชการพิเศษ",
tag: "work",
},
{
key: 12,
label: "บันทึกวันที่ไม่ได้รับเงินเดือนฯ",
tag: "record",
},
{
key: 13,
label: "อื่นๆ",
tag: "other",
},
{
key: 14,
label: "เอกสารหลักฐาน",
tag: "document",
},
]);
const tabListPlacement = readonly<tabType[]>([
2023-06-19 10:18:11 +07:00
{
key: 1,
label: "ข้อมูลทั่วไป",
tag: "information",
},
{
key: 2,
label: "ใบอนุญาตประกอบอาชีพ",
tag: "certicate",
},
{
key: 3,
label: "ประวัติการศึกษา",
tag: "education",
2023-06-19 10:18:11 +07:00
},
{
key: 4,
2023-06-19 10:18:11 +07:00
label: "ผลการสอบ",
tag: "examresult",
},
{
key: 5,
2023-06-19 10:18:11 +07:00
label: "การคัดกรองคุณสมบัติ",
tag: "qualification",
},
2023-10-05 17:53:39 +07:00
{
key: 6,
label: "เอกสารหลักฐาน",
tag: "document",
},
2023-06-19 10:18:11 +07:00
]);
export { menuList, tabList, tabListPlacement };
2023-06-01 12:54:58 +07:00
export type { ScrollType, tabType, menuType, notiType, optionType };