332 lines
7.6 KiB
TypeScript
332 lines
7.6 KiB
TypeScript
/**
|
|
* Router พ้นจากราชการ (Retirement)
|
|
*/
|
|
|
|
const Main = () => import("@/modules/06_retirement/views/Main.vue");
|
|
const Listretirement = () =>
|
|
import("@/modules/06_retirement/components/ListRetirement/TableList.vue");
|
|
const ListretirementDetail = () =>
|
|
import("@/modules/06_retirement/components/ListRetirement/TableList.vue");
|
|
const deceased = () =>
|
|
import("@/modules/06_retirement/components/Deceased/Deceased.vue");
|
|
const detaildeceased = () =>
|
|
import("@/modules/06_retirement/components/Deceased/DetailDeceased.vue");
|
|
const dismissOrder = () =>
|
|
import("@/modules/06_retirement/components/DismissOrder/DismissOrder.vue");
|
|
const outDetail = () =>
|
|
import("@/modules/06_retirement/components/DismissOrder/outRegistry.vue");
|
|
const outDetailOnly = () =>
|
|
import("@/modules/06_retirement/components/DismissOrder/outRegistry.vue");
|
|
const exitInterviewMain = () =>
|
|
import("@/modules/06_retirement/components/ExitInterview/exitMain.vue");
|
|
const exitInterviewDetails = () =>
|
|
import("@/modules/06_retirement/components/ExitInterview/exitRegistry.vue");
|
|
const exitInterviewDetailsOnly = () =>
|
|
import("@/modules/06_retirement/components/ExitInterview/exitRegistry.vue");
|
|
const exitInterviewEditQuestion = () =>
|
|
import("@/modules/06_retirement/components/ExitInterview/EditQuestion.vue");
|
|
const detaildeceasedByid = () =>
|
|
import("@/modules/06_retirement/components/Deceased/DetailByidDeceased.vue");
|
|
|
|
/** รายการลาออก */
|
|
const resign = () =>
|
|
import("@/modules/06_retirement/components/resign/Main.vue");
|
|
const resign_EMP = () =>
|
|
import("@/modules/06_retirement/components/resignEMP/Main.vue");
|
|
|
|
const resignByid = () =>
|
|
import("@/modules/06_retirement/components/resign/ResignByid.vue");
|
|
const resignByidEMP = () =>
|
|
import("@/modules/06_retirement/components/resignEMP/ResignByid.vue");
|
|
const resignReject = () =>
|
|
import("@/modules/06_retirement/components/resign/ResignReject.vue");
|
|
const resignRejectEMP = () =>
|
|
import("@/modules/06_retirement/components/resignEMP/ResignReject.vue");
|
|
|
|
export default [
|
|
{
|
|
path: "/retirement",
|
|
name: "retirement",
|
|
component: Main,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/:retirementId",
|
|
name: "retirementid",
|
|
component: Listretirement,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement-detail/:retirementId",
|
|
name: "retirementidDetail",
|
|
component: ListretirementDetail,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/listretire/:id/:type",
|
|
name: "retirement/list/id/type",
|
|
component: Listretirement,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/exit-interview",
|
|
name: "exit-Interview",
|
|
component: exitInterviewMain,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN_INTERVIEW",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/exit-interview/questionnair/:id",
|
|
name: "exit-Interview-details",
|
|
component: exitInterviewDetails,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN_INTERVIEW",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/exit-interview/questionnair-detail/:id",
|
|
name: "exit-Interview-detailsOnly",
|
|
component: exitInterviewDetailsOnly,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN_INTERVIEW",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/exit-interview/edit-question",
|
|
name: "ExitInterviewEditQuestion",
|
|
component: exitInterviewEditQuestion,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN_INTERVIEW",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
/** รายการลาออก */
|
|
{
|
|
path: "/retirement/resign",
|
|
name: "resign",
|
|
component: resign,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/resign-employee",
|
|
name: "resignEmployee",
|
|
component: resign_EMP,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN_EMP",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/resign/:id",
|
|
name: "resignbyid",
|
|
component: resignByid,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/resign-detail/:id",
|
|
name: "resignDetailbyid",
|
|
component: resignByid,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
|
|
{
|
|
path: "/retirement/resign-employee/:id",
|
|
name: "resignbyidEMP",
|
|
component: resignByidEMP,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN_EMP",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/resign-employee-detail/:id",
|
|
name: "resignDetailbyidEMP",
|
|
component: resignByidEMP,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN_EMP",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
|
|
{
|
|
path: "/retirement/resign-reject/:id",
|
|
name: "resignReject",
|
|
component: resignReject,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/resign-detail-reject/:id",
|
|
name: "resignDetailreject",
|
|
component: resignReject,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
|
|
{
|
|
path: "/retirement/resign-employee-reject/:id",
|
|
name: "resignRejectEMP",
|
|
component: resignRejectEMP,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN_EMP",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/resign-employee-detail-reject/:id",
|
|
name: "resignDetailrejectEMP",
|
|
component: resignRejectEMP,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_RESIGN_EMP",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
|
|
{
|
|
path: "/retirement/deceased",
|
|
name: "deceased",
|
|
component: deceased,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PASSAWAY",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/deceased/:id",
|
|
name: "deceased-detail",
|
|
component: detaildeceased,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PASSAWAY",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/deceased/detail/:id",
|
|
name: "deceased-detailByid",
|
|
component: detaildeceasedByid,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PASSAWAY",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/dismiss-order",
|
|
name: "dismiss-order",
|
|
component: dismissOrder,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_DISMISS",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/dismiss-order/:id",
|
|
name: "outDetail",
|
|
component: outDetail,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_DISMISS",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/dismiss-order-detail/:id",
|
|
name: "outDetailOnly",
|
|
component: outDetailOnly,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_DISMISS",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
// {
|
|
// path: "/retirement/discharged",
|
|
// name: "discharged",
|
|
// component: dischargedMain,
|
|
// meta: {
|
|
// Auth: true,
|
|
// Key: [7.6],
|
|
// Role: "retirement",
|
|
// },
|
|
// },
|
|
// {
|
|
// path: "/retirement/discharged/:id",
|
|
// name: "dischargedDetails",
|
|
// component: dischargedDetails,
|
|
// meta: {
|
|
// Auth: true,
|
|
// Key: [7.6],
|
|
// Role: "retirement",
|
|
// },
|
|
// },
|
|
// {
|
|
// path: "/retirement/expulsion",
|
|
// name: "expulsion",
|
|
// component: expulsionMain,
|
|
// meta: {
|
|
// Auth: true,
|
|
// Key: [7.7],
|
|
// Role: "retirement",
|
|
// },
|
|
// },
|
|
// {
|
|
// path: "/retirement/expulsion/:id",
|
|
// name: "expulsionDetails",
|
|
// component: expulsionDetails,
|
|
// meta: {
|
|
// Auth: true,
|
|
// Key: [7.7],
|
|
// Role: "retirement",
|
|
// },
|
|
// },
|
|
];
|