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

153 lines
4 KiB
TypeScript

/**
* Router เครื่องราชอิสริยาภรณ์ (insignia)
*/
//รายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์
const insigniaProposals = () =>
import("@/modules/07_insignia/views/01_RoundMain.vue");
//รายชื่อข้าราชการสามัญฯ ที่มีสิทธิ์ยื่นขอพระราชทานเครื่องราชอิสริยาภรณ์
const listMange = () => import("@/modules/07_insignia/views/02_ManageMain.vue");
// บันทึกผลการได้รับพระราชทานเครื่องราชอิสริยาภรณ์/การจ่ายใบกำกับ
const RecordInsignia = () =>
import("@/modules/07_insignia/views/03_ResultMain.vue");
// จัดสรรเครื่องราชอิสริยาภรณ์
const listAllocate = () =>
import("@/modules/07_insignia/views/04_AllocateMain.vue");
const allocateOrdList = () =>
import("@/modules/07_insignia/components/4_Allocate/OrgAllocatePageList.vue");
// ยืม - คืนเครื่องราช
const insigniaBorrow = () =>
import("@/modules/07_insignia/views/05_BorrowMain.vue");
const ReportView = () => import("./views/06_ReportMain.vue");
const report_02 = () =>
import("@/modules/07_insignia/components/report/ReportDetail.vue");
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");
export default [
{
path: "/insignia/round",
name: "insigniaProposals",
component: insigniaProposals,
meta: {
Auth: true,
Key: "SYS_INSIGNIA_ROUND",
Role: "STAFF",
},
},
{
path: "/insignia/manage/list-manage",
name: "insigniaManage",
component: listMange,
meta: {
Auth: true,
Key: "SYS_INSIGNIA_MANAGE",
Role: "STAFF",
},
},
{
path: "/insignia/record",
name: "insigniaRecord",
component: RecordInsignia,
meta: {
Auth: true,
Key: "SYS_INSIGNIA_RECORD",
Role: "STAFF",
},
},
{
path: "/insignia/report",
name: "insigniaReport",
component: ReportView,
meta: {
Auth: true,
Key: "SYS_INSIGNIA_REPORT",
Role: "STAFF",
},
},
{
path: "/insignia/report/:type",
name: "report-report",
component: report_02,
meta: {
Auth: true,
Key: "SYS_INSIGNIA_REPORT",
Role: "STAFF",
},
},
{
path: "/insignia/allocate",
name: "insigniaAllocate",
component: listAllocate,
meta: {
Auth: true,
Key: "SYS_INSIGNIA_ALLOCATE",
Role: "STAFF",
},
},
{
path: "/insignia/allocate/org/:id",
name: "allocateOrdList",
component: allocateOrdList,
meta: {
Auth: true,
Key: "SYS_INSIGNIA_ALLOCATE",
Role: "STAFF",
},
},
{
path: "/insignia/borrow",
name: "insigniaBorrow",
component: insigniaBorrow,
meta: {
Auth: true,
Key: "SYS_INSIGNIA_BORROW",
Role: "STAFF",
},
},
{
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",
},
},
];