359 lines
8.3 KiB
TypeScript
359 lines
8.3 KiB
TypeScript
/**
|
|
* Router พ้นจากราชการ (Retirement)
|
|
*/
|
|
|
|
/** ประกาศเกษียณอายุราชการ*/
|
|
const Main = () => import("@/modules/06_retirement/views/01_retirement.vue");
|
|
const Listretirement = () =>
|
|
import(
|
|
"@/modules/06_retirement/components/01_retirement/RetirementDetail.vue"
|
|
);
|
|
const ListretirementDetail = () =>
|
|
import(
|
|
"@/modules/06_retirement/components/01_retirement/RetirementDetail.vue"
|
|
);
|
|
|
|
/** รายการลาออก*/
|
|
const resign = () => import("@/modules//06_retirement/views/02_resign.vue");
|
|
const resignByid = () =>
|
|
import("@/modules/06_retirement/components/02_resign/ResignByid.vue");
|
|
const resignReject = () =>
|
|
import("@/modules/06_retirement/components/02_resign/ResignReject.vue");
|
|
|
|
/** รายการลาออกลูกจ้าง*/
|
|
const resign_EMP = () =>
|
|
import("@/modules/06_retirement/views/03_resignEmp.vue");
|
|
const resignByidEMP = () =>
|
|
import("@/modules/06_retirement/components/03_resignEmp/ResignByid.vue");
|
|
const resignRejectEMP = () =>
|
|
import("@/modules/06_retirement/components/03_resignEmp/ResignReject.vue");
|
|
|
|
/** รายการ Exit interview*/
|
|
const exitInterviewMain = () =>
|
|
import("@/modules/06_retirement/views/04_exitInterview.vue");
|
|
const exitInterviewDetails = () =>
|
|
import(
|
|
"@/modules/06_retirement/components/04_exitInterview/ExitInterviewDetail.vue"
|
|
);
|
|
const exitInterviewDetailsOnly = () =>
|
|
import(
|
|
"@/modules/06_retirement/components/04_exitInterview/ExitInterviewDetail.vue"
|
|
);
|
|
const exitInterviewEditQuestion = () =>
|
|
import(
|
|
"@/modules/06_retirement/components/04_exitInterview/EditQuestion.vue"
|
|
);
|
|
|
|
/** รายการบันทึกเวียนแจ้งการถึงแก่กรรม*/
|
|
const deceased = () => import("@/modules/06_retirement/views/05_deceased.vue");
|
|
const detaildeceased = () =>
|
|
import("@/modules/06_retirement/components/05_deceased/DetailDeceased.vue");
|
|
const detaildeceasedByid = () =>
|
|
import("@/modules/06_retirement/components/05_deceased/SendCircularPage.vue");
|
|
|
|
/** รายการให้ออก*/
|
|
const dismissOrder = () =>
|
|
import("@/modules/06_retirement/views/06_dismissOrder.vue");
|
|
const dismissOrderEmp = () =>
|
|
import("@/modules/06_retirement/views/08_dismissOrderEmp.vue");
|
|
const outDetail = () =>
|
|
import("@/modules/06_retirement/components/06_dismissOrder/Detail.vue");
|
|
const outDetailEmp = () =>
|
|
import("@/modules/06_retirement/components/06_dismissOrder/DetailEMP.vue");
|
|
const outDetailOnly = () =>
|
|
import("@/modules/06_retirement/components/06_dismissOrder/Detail.vue");
|
|
const outDetailOnlyEmp = () =>
|
|
import("@/modules/06_retirement/components/06_dismissOrder/DetailEMP.vue");
|
|
|
|
/** รายงาน*/
|
|
|
|
const ReportView = () => import("@/modules/06_retirement/views/07_report.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: "/retirementEmployee",
|
|
name: "dismiss-order-emp",
|
|
component: dismissOrderEmp,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_DISMISS_EMP",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/dismiss-order/:id",
|
|
name: "outDetail",
|
|
component: outDetail,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_DISMISS",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirementEmployee/dismiss-order/:id",
|
|
name: "outDetailEmp",
|
|
component: outDetailEmp,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_DISMISS_EMP",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirement/dismiss-order-detail/:id",
|
|
name: "outDetailOnly",
|
|
component: outDetailOnly,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_DISMISS",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/retirementEmployee/dismiss-order-detail/:id",
|
|
name: "outDetailOnlyEmp",
|
|
component: outDetailOnlyEmp,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_DISMISS_EMP",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
|
|
{
|
|
path: "/retirement/report",
|
|
name: "retireReport",
|
|
component: ReportView,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_DISMISSAL_REPORT",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
];
|