hrms-mgt/src/modules/07_insignia/router.ts

154 lines
4 KiB
TypeScript
Raw Normal View History

2023-06-01 12:54:58 +07:00
/**
* Router (insignia)
*/
2024-09-25 16:44:07 +07:00
//รายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์
const insigniaProposals = () =>
import("@/modules/07_insignia/views/01_RoundMain.vue");
2023-06-01 12:54:58 +07:00
2024-09-25 16:44:07 +07:00
//รายชื่อข้าราชการสามัญฯ ที่มีสิทธิ์ยื่นขอพระราชทานเครื่องราชอิสริยาภรณ์
const listMange = () => import("@/modules/07_insignia/views/02_ManageMain.vue");
// บันทึกผลการได้รับพระราชทานเครื่องราชอิสริยาภรณ์/การจ่ายใบกำกับ
2023-07-17 17:00:50 +07:00
const RecordInsignia = () =>
2024-09-25 16:44:07 +07:00
import("@/modules/07_insignia/views/03_ResultMain.vue");
// จัดสรรเครื่องราชอิสริยาภรณ์
const listAllocate = () =>
2024-09-25 16:44:07 +07:00
import("@/modules/07_insignia/views/04_AllocateMain.vue");
2023-08-26 15:59:09 +07:00
const allocateOrdList = () =>
2024-09-25 16:44:07 +07:00
import("@/modules/07_insignia/components/4_Allocate/OrgAllocatePageList.vue");
2023-09-19 14:58:16 +07:00
// ยืม - คืนเครื่องราช
const insigniaBorrow = () =>
2024-09-25 16:44:07 +07:00
import("@/modules/07_insignia/views/05_BorrowMain.vue");
const ReportView = () => import("./views/06_ReportMain.vue");
const report_02 = () =>
2024-11-12 14:01:11 +07:00
import("@/modules/07_insignia/components/report/ReportDetail.vue");
2024-09-25 16:44:07 +07:00
2025-04-30 17:34:20 +07:00
const ReclaimMain = () =>
import("@/modules/07_insignia/views/07_ReclaimMain.vue");
// รายชื่อลูกจ้างประจำ ที่มีสิทธิ์ยื่นขอพระราชทานเครื่องราชอิสริยาภรณ์
const ManageEmpMain = () =>
import("@/modules/07_insignia/views/08_ManageEmpMain.vue");
const RecordInsigniaEmp = () =>
import("@/modules/07_insignia/views/09_ResultMainEmp.vue");
2023-06-01 12:54:58 +07:00
export default [
{
2024-08-01 15:25:48 +07:00
path: "/insignia/round",
2023-07-17 16:03:00 +07:00
name: "insigniaProposals",
component: insigniaProposals,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_ROUND",
Role: "STAFF",
2023-07-17 16:03:00 +07:00
},
},
2024-09-25 16:44:07 +07:00
{
path: "/insignia/manage/list-manage",
name: "insigniaManage",
component: listMange,
meta: {
Auth: true,
Key: "SYS_INSIGNIA_MANAGE",
Role: "STAFF",
},
},
2023-07-17 17:00:50 +07:00
2023-07-17 14:56:08 +07:00
{
2023-07-17 17:00:50 +07:00
path: "/insignia/record",
name: "insigniaRecord",
component: RecordInsignia,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_RECORD",
Role: "STAFF",
2023-07-17 14:56:08 +07:00
},
},
{
2023-07-17 16:00:29 +07:00
path: "/insignia/report",
2023-07-17 17:00:50 +07:00
name: "insigniaReport",
2023-07-17 16:00:29 +07:00
component: ReportView,
2023-07-17 14:56:08 +07:00
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_REPORT",
Role: "STAFF",
2023-07-17 14:56:08 +07:00
},
},
{
2024-09-25 16:44:07 +07:00
path: "/insignia/report/:type",
name: "report-report",
component: report_02,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_REPORT",
Role: "STAFF",
},
},
2024-09-25 16:44:07 +07:00
{
path: "/insignia/allocate",
name: "insigniaAllocate",
component: listAllocate,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_ALLOCATE",
Role: "STAFF",
},
},
{
path: "/insignia/allocate/org/:id",
2023-08-26 15:59:09 +07:00
name: "allocateOrdList",
component: allocateOrdList,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_ALLOCATE",
Role: "STAFF",
},
},
{
path: "/insignia/borrow",
name: "insigniaBorrow",
component: insigniaBorrow,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_BORROW",
Role: "STAFF",
},
},
2025-04-30 17:34:20 +07:00
{
path: "/insignia/reclaim",
name: "insigniaReclaim",
component: ReclaimMain,
meta: {
Auth: true,
Key: "SYS_INSIGNIA_RECLAIM",
Role: "STAFF",
},
},
{
path: "/insignia/manage-emp/list-manage",
name: "insigniaManageEmp",
component: ManageEmpMain,
meta: {
Auth: true,
Key: "SYS_INSIGNIA_MANAGE_EMP",
Role: "STAFF",
},
},
{
path: "/insignia/record-emp",
name: "insigniaRecordEmp",
component: RecordInsigniaEmp,
meta: {
Auth: true,
Key: "SYS_INSIGNIA_RECORD_EMP",
Role: "STAFF",
},
},
2023-06-01 12:54:58 +07:00
];