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

812 lines
20 KiB
TypeScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
sender: string;
body: string;
timereceive: string;
isOpen: boolean;
}
interface optionType {
icon: string;
label: string;
value: string;
color: string;
}
const menuList = readonly<any[]>([
{
key: 1,
icon: "mdi-home-variant-outline",
activeIcon: "mdi-home-variant",
label: "หน้าแรก",
path: "dashboard",
role: "dashboard",
},
{
key: 2,
icon: "o_person",
activeIcon: "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",
},
],
},
{
key: 2,
icon: "o_person",
activeIcon: "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",
},
{
key: 2.0,
label: "ยุทธศาสตร์",
path: "strategic",
role: "development",
},
],
},
{
key: 3,
icon: "o_groups",
activeIcon: "groups",
label: "โครงสร้างอัตรากำลัง",
path: "organizationalNew",
role: "organization",
},
{
key: 3,
icon: "o_groups",
activeIcon: "groups",
label: "อัตรากำลังลูกจ้างประจำฯ",
path: "positionEmployee",
role: "positionEmployee",
},
{
key: 4,
icon: "o_contact_page",
activeIcon: "contact_page",
label: "ทะเบียนประวัติ",
path: "registryNew",
role: "organization",
},
{
key: 4,
icon: "o_contact_page",
activeIcon: "registry_employee_page",
label: "ทะเบียนประวัติลูกจ้าง",
path: "registry-employee",
role: "registryEmployee",
},
{
key: 4,
icon: "verified",
activeIcon: "verified",
label: "รายการรอตรวจสอบ",
path: "verified",
role: "registryverify",
},
{
key: 6,
icon: "mdi-file-certificate-outline",
activeIcon: "order",
label: "ออกคำสั่ง",
path: "order",
role: "order",
},
{
key: 7,
icon: "o_search",
activeIcon: "search",
label: "สรรหา",
path: "recruiting",
role: "recruit",
children: [
{
label: "ตั้งค่าเว็บสรรหา",
path: "editorweb",
key: 7.1,
role: "recruit",
},
{
label: "สอบแข่งขัน",
path: "",
key: 7.2,
role: "recruit",
children: [
{
label: "จัดการรอบสอบแข่งขัน" /* แข่งขัน */,
path: "competePeriod",
role: "recruit",
},
{
label: "สถิติสมัครสอบแข่งขัน" /* แข่งขัน */,
path: "competePeriodStat",
role: "recruit",
},
],
},
{
label: "คัดเลือก",
path: "",
key: 7.3,
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,
path: "placement",
icon: "how_to_reg",
activeIcon: "how_to_reg",
label: "บรรจุ แต่งตั้ง ย้าย โอน",
role: "placement",
children: [
{
label: "รายชื่อผู้สอบผ่าน",
path: "placement",
role: "placement",
},
{
label: "การทดลองปฏิบัติหน้าที่ราชการ",
path: "probation",
role: "probation",
},
{
label: "รายการขอโอน",
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",
},
{
label: "ปรับระดับชั้นงาน-ย้ายลูกจ้าง",
path: "appoint-employee",
role: "placement",
},
{
label: "รายการอื่นๆ",
path: "other",
role: "placement",
},
],
},
{
key: 9,
icon: "mdi-account-cancel-outline",
activeIcon: "mdi-account-cancel",
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",
},
],
},
{
key: 10,
icon: "mdi-medal-outline",
activeIcon: "mdi-medal",
label: "เครื่องราชฯ",
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",
},
],
},
{
key: 11,
icon: "mdi-calendar",
activeIcon: "mdi-calendar",
label: "การลา",
path: "leave",
role: "leave",
children: [
{
label: "รอบการปฏิบัติงาน",
path: "/round-time",
role: "leave",
},
{
label: "แก้ไขรอบการปฎิบัติงานผู้ใช้งาน",
path: "/change-round",
role: "leave",
},
{
label: "รายการลงเวลาปฏิบัติงาน",
path: "/work-list",
role: "leave",
},
{
label: "ลงเวลากรณีพิเศษ",
path: "/timestamp-special",
role: "leave",
},
{
label: "รายการลา",
path: "/leave",
role: "leave",
},
{
label: "รายงานสถิติการลา",
path: "/leave-report",
role: "leave",
},
],
},
{
key: 12,
icon: "mdi-scale-balance",
activeIcon: "mdi-scale-balance",
label: "วินัย",
role: "discipline",
children: [
{
key: 12.0,
label: "เรื่องร้องเรียน",
path: "disciplineComplaints",
role: "discipline",
},
{
key: 12.0,
label: "สืบสวนข้อเท็จจริง",
path: "disciplineInvestigatefacts",
role: "discipline",
},
{
key: 12.0,
label: "สอบสวนความผิดทางวินัย",
path: "disciplineDisciplinary",
role: "discipline",
},
{
key: 12.0,
label: "สรุปผลการพิจารณาความผิดทางวินัย",
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: "กรรมการ",
path: "disciplineDirector",
role: "discipline",
},
{
label: "ช่องทางการร้องเรียน",
path: "disciplineChannel",
role: "discipline",
},
],
},
],
},
{
key: 13,
icon: "mdi-account-check",
activeIcon: "mdi-account-check",
label: "ประเมินบุคคล",
role: "evaluate",
children: [
{
key: 13.0,
label: "คำขอประเมิน",
path: "evaluate",
role: "discipline",
},
{
label: "กรรมการและการประชุม",
path: "",
key: 13.1,
role: "evaluate",
children: [
{
label: "กรรมการ",
path: "evaluateDirector",
role: "evaluate",
},
{
label: "การประชุม",
path: "evaluateMeeting",
role: "evaluate",
},
],
},
],
},
{
key: 14,
icon: "mdi-cash",
activeIcon: "mdi-cash",
label: "เงินเดือน/ค่าจ้าง",
role: "salary",
children: [
{
label: "ผังบัญชีเงินเดือนข้าราชการ ฯ",
path: "salaryChart",
role: "salary",
},
{
label: "ผังบัญชีค่าจ้างลูกจ้างประจำ",
path: "salaryEmployeeChart",
role: "salary",
},
{
label: "รอบการเลื่อนเงินเดือน",
path: "salaryRound",
role: "salary",
},
{
label: "เลื่อนเงินเดือนข้าราชการ ฯ",
path: "salaryLists",
role: "salary",
},
{
label: "เลื่อนค่าจ้างลูกจ้างประจำ",
path: "salaryEmployeeLists",
role: "salary",
},
{
label: "ออกคำสั่งเลื่อนเงินเดือน/ค่าจ้าง",
path: "commandSalary",
role: "salary",
},
],
},
{
key: 15,
icon: "mdi-account-star",
activeIcon: "mdi-account-star",
label: "ประเมินผลการปฏิบัติราชการระดับบุคคล",
role: "evaluateKPI",
children: [
{
label: "รอบการประเมิน",
path: "KPIRound",
role: "evaluateKPI",
},
{
label: "รายการการประเมินผล",
path: "KPIList",
role: "evaluateKPI",
},
],
},
{
key: 16,
icon: "mdi-briefcase-account",
activeIcon: "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",
activeIcon: "contact_page",
label: "ระบบเดิม",
path: "registry",
role: "registry",
children: [
{
key: 13.0,
icon: "o_person",
activeIcon: "person",
label: "ข้อมูลหลัก",
path: "metadata",
role: "metadata",
},
{
key: 13.1,
icon: "o_groups",
activeIcon: "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",
activeIcon: "contact_page",
label: "ทะเบียนประวัติ",
path: "registry",
role: "registry",
},
],
},
]);
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",
},
{
key: 15,
label: "ใบอนุญาตประกอบวิชาชีพ",
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: "ตำแหน่ง/เงินเดือน/ค่าจ้าง",
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[]>([
{
key: 1,
label: "ข้อมูลทั่วไป",
tag: "information",
},
{
key: 2,
label: "ใบอนุญาตประกอบอาชีพ",
tag: "certicate",
},
{
key: 3,
label: "ประวัติการศึกษา",
tag: "education",
},
{
key: 4,
label: "ผลการสอบ",
tag: "examresult",
},
{
key: 5,
label: "การคัดกรองคุณสมบัติ",
tag: "qualification",
},
{
key: 6,
label: "เอกสารหลักฐาน",
tag: "document",
},
]);
export { menuList, tabList, tabListPlacement };
export type { ScrollType, tabType, menuType, notiType, optionType };