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([ { key: 1, icon: "mdi-home-variant-outline", activeIcon: "mdi-home-variant", label: "หน้าแรก", path: "dashboard", role: "dashboard", }, { key: 3, icon: "o_person", activeIcon: "person", label: "ข้อมูลหลัก (ใหม่)", path: "metadataNew", role: "metadata", children: [ { key: 3.1, label: "ข้อมูลเกี่ยวกับบุคคล", path: "masterPersonal", }, { key: 3.2, label: "ข้อมูลตำแหน่งข้าราชการฯ", path: "masterPosition", }, { key: 3.3, label: "ข้อมูลตำแหน่งลูกจ้างประจำ", path: "masterPositionEmployee", }, { key: 3.4, label: "ข้อมูลปฏิทินวันหยุด", path: "masterCalendarWork", }, { key: 3.5, label: "ข้อมูลเครื่องราชอิสริยาภรณ์", path: "masterInsignia", }, ], }, { key: 4, icon: "o_groups", activeIcon: "groups", label: "โครงสร้างอัตรากำลัง (ใหม่)", path: "organizationalNew", 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: 4, 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: 2, icon: "o_person", activeIcon: "person", label: "ข้อมูลหลัก", path: "metadata", role: "metadata", }, { key: 3, 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: 4, icon: "o_contact_page", activeIcon: "contact_page", label: "ทะเบียนประวัติ", path: "registry", role: "registry", }, { key: 4, icon: "verified", activeIcon: "verified", label: "รายการรอตรวจสอบ", path: "verified", role: "registryverify", }, { key: 10, icon: "o_contact_page", activeIcon: "registry_employee_page", label: "ทะเบียนประวัติลูกจ้าง", path: "registry-employee", role: "registryEmployee", }, { key: 10, icon: "mdi-file-certificate-outline", activeIcon: "order", label: "ออกคำสั่ง", path: "order", role: "order", }, { key: 5, icon: "o_search", activeIcon: "search", label: "สรรหา", path: "recruiting", role: "recruit", children: [ { label: "ตั้งค่าเว็บสรรหา", path: "editorweb", key: 5.1, role: "recruit", }, { label: "สอบแข่งขัน", path: "", key: 5.2, role: "recruit", children: [ { label: "จัดการรอบสอบแข่งขัน" /* แข่งขัน */, path: "competePeriod", role: "recruit", }, { label: "สถิติสมัครสอบแข่งขัน" /* แข่งขัน */, path: "competePeriodStat", role: "recruit", }, ], }, { label: "คัดเลือก", path: "", key: 5.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: 6, path: "placement", icon: "how_to_reg", activeIcon: "how_to_reg", label: "บรรจุ แต่งตั้ง ย้าย โอน", role: "placement", children: [ { key: 6.1, label: "รายชื่อผู้สอบผ่าน", path: "placement", role: "placement", }, // { // key: 6.2, // label: "ออกคำสั่ง", // path: "Orderplacement", // role: "placement", // }, { key: 6.3, label: "การทดลองปฏิบัติหน้าที่ราชการ", path: "probation", role: "probation", }, { key: 6.4, label: "รายการขอโอน", path: "transfer", role: "placement", }, { key: 6.5, label: "รายการรับโอน", path: "receive", role: "placement", }, { key: 6.6, label: "รายการช่วยราชการ", path: "help-government", role: "placement", }, { key: 6.7, label: "รายการส่งตัวกลับ", path: "repatriate", role: "placement", }, { key: 6.8, label: "รายการแต่งตั้ง-เลื่อน-ย้าย", path: "appoint-promote", role: "placement", }, { key: 6.8, label: "ปรับระดับชั้นงาน-ย้ายลูกจ้าง", path: "appoint-employee", role: "placement", }, // { // key: 6.9, // label: "รายการย้าย", // path: "relocation", // role: "placement", // }, { key: 6.1, label: "รายการอื่นๆ", path: "other", role: "placement", }, ], }, { key: 7, icon: "mdi-account-cancel-outline", activeIcon: "mdi-account-cancel", label: "พ้นจากราชการ", path: "retirement", role: "retirement", children: [ { key: 7.1, label: "ประกาศเกษียณ", path: "retirement", role: "retirement", }, { key: 7.2, label: "รายการลาออก", path: "resign", role: "retirement", }, { key: 7.3, label: "Exit interview", path: "exit-Interview", role: "retirement", }, { key: 7.4, label: "รายการบันทึกการถึงแก่กรรม", path: "deceased", role: "retirement", }, { key: 7.5, label: "รายการให้ออก", path: "dismiss-order", role: "retirement", }, // { // key: 7.6, // label: "รายการปลดออก", // path: "discharged", // role: "retirement", // }, // { // key: 7.7, // label: "รายการไล่ออก", // path: "expulsion", // role: "retirement", // }, ], }, { key: 8, icon: "mdi-medal-outline", activeIcon: "mdi-medal", label: "เครื่องราชฯ", path: "insignia", role: "insignia", children: [ { key: 8.1, label: "รอบการเสนอขอ", path: "insigniaProposals", role: "insignia", }, { key: 8.2, label: "จัดการคำขอ", path: "insigniaManage", role: "insignia", }, { key: 8.3, label: "บันทึกผลการเสนอขอ", path: "insigniaRecord", role: "insignia", }, { key: 8.4, label: "จัดสรรเครื่องราชฯ", path: "insigniaAllocate", role: "insignia", }, { key: 8.6, label: "ยืม-คืนเครื่องราชฯ", path: "insigniaBorrow", role: "insignia", }, { key: 8.5, label: "รายงาน", path: "insigniaReport", role: "insignia", }, ], }, { key: 9, icon: "mdi-calendar", activeIcon: "mdi-calendar", label: "การลา", path: "leave", role: "leave", children: [ { key: 9.1, label: "รอบการปฏิบัติงาน", path: "/round-time", role: "leave", }, { key: 9.2, label: "แก้ไขรอบการปฎิบัติงานผู้ใช้งาน", path: "/change-round", role: "leave", }, { key: 9.3, label: "รายการลงเวลาปฏิบัติงาน", path: "/work-list", role: "leave", }, { key: 9.4, label: "ลงเวลากรณีพิเศษ", path: "/timestamp-special", role: "leave", }, { key: 9.5, label: "รายการลา", path: "/leave", role: "leave", }, { key: 9.6, label: "รายงานสถิติการลา", path: "/leave-report", role: "leave", }, ], }, { key: 11, icon: "mdi-scale-balance", activeIcon: "mdi-scale-balance", label: "วินัย", role: "discipline", children: [ { key: 11.1, label: "เรื่องร้องเรียน", path: "disciplineComplaints", role: "discipline", }, { key: 11.2, label: "สืบสวนข้อเท็จจริง", path: "disciplineInvestigatefacts", role: "discipline", }, { key: 11.3, label: "สอบสวนความผิดทางวินัย", path: "disciplineDisciplinary", role: "discipline", }, { key: 11.4, label: "สรุปผลการพิจารณาความผิดทางวินัย", path: "disciplineResult", role: "discipline", }, { key: 11.5, label: "รายชื่อผู้ถูกพักราชการ", path: "disciplineListSuspend", role: "discipline", }, // { // key: 11.5, // label: "รายงาน", // path: "disciplineReport", // role: "discipline", // }, { key: 11.5, label: "อุทธรณ์/ร้องทุกข์", path: "appealComplain", role: "discipline", }, { key: 11.5, label: "ออกคำสั่งลงโทษทางวินัย", path: "disciplineOrder", role: "discipline", }, { label: "ข้อมูลพื้นฐาน", path: "", key: 11.7, role: "discipline", children: [ { label: "กรรมการ", path: "disciplineDirector", role: "discipline", }, { label: "ช่องทางการร้องเรียน", path: "disciplineChannel", role: "discipline", }, ], }, ], }, { key: 11, icon: "mdi-account-check", activeIcon: "mdi-account-check", label: "ประเมินบุคคล", role: "evaluate", children: [ { key: 11.1, label: "คำขอประเมิน", path: "evaluate", role: "discipline", }, { label: "กรรมการและการประชุม", path: "", key: 11.7, role: "evaluate", children: [ { label: "กรรมการ", path: "evaluateDirector", role: "evaluate", }, { label: "การประชุม", path: "evaluateMeeting", role: "evaluate", }, ], }, ], }, { key: 12, icon: "mdi-cash", activeIcon: "mdi-cash", label: "เงินเดือน/ค่าจ้าง", role: "salary", children: [ { key: 12.1, label: "ผังบัญชีเงินเดือนข้าราชการฯ", path: "salaryChart", role: "salary", }, { key: 12.2, label: "ผังบัญชีค่าจ้างลูกจ้างประจำ", path: "salaryEmployeeChart", role: "salary", }, { key: 12.3, label: "รอบการขึ้นเงินเดือน", path: "salaryRound", role: "salary", }, { key: 12.4, label: "เลื่อนเงินเดือนข้าราชการฯ", path: "salaryLists", role: "salary", }, { key: 12.5, label: "เลื่อนค่าจ้างลูกจ้างประจำ", path: "salaryEmployeeLists", role: "salary", }, ], }, { key: 13, icon: "mdi-account-star", activeIcon: "mdi-account-star", label: "ประเมินผลการปฏิบัติราชการระดับบุคคล", role: "evaluateKPI", path: "KPIMain", }, { key: 14, icon: "mdi-briefcase-account", activeIcon: "mdi-briefcase-account", label: "พัฒนาบุคลากร/การศึกษาต่อ", role: "development", path: "developmentMain", }, // { // key: 99, // icon: "mdi-chat", // activeIcon: "mdi-chat", // label: "ถาม-ตอบ", // role: "support", // path: "support", // }, ]); const tabList = readonly([ { 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([ { 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 };