438 lines
11 KiB
TypeScript
438 lines
11 KiB
TypeScript
/**
|
|
* Router บรรจุ แต่งตั้ง ย้าย โอน (Placement)
|
|
*/
|
|
|
|
const PlacementMain = () =>
|
|
import("@/modules/05_placement/components/Main.vue");
|
|
const PlacementDetail = () =>
|
|
import("@/modules/05_placement/components/PersonalList/Detail.vue");
|
|
const PlacementPersonalDetail = () =>
|
|
import("@/modules/05_placement/components/PersonalDetail/Detail.vue");
|
|
|
|
// ระบบทดลองงาน
|
|
const mainProbation = () =>
|
|
import("@/modules/05_placement/components/probation/MainProbation.vue");
|
|
|
|
const probationDetail = () =>
|
|
import("@/modules/05_placement/components/probation/ProbationDetail.vue");
|
|
|
|
const probationFormEvaluation = () =>
|
|
import("@/modules/05_placement/components/probation/MainDetail.vue");
|
|
const probationFormEvaluationDetail = () =>
|
|
import("@/modules/05_placement/components/probation/MainDetail.vue");
|
|
|
|
const probationWorkAdd = () =>
|
|
import("@/modules/05_placement/components/probation/MainDetail.vue");
|
|
const probationFormAssign = () =>
|
|
import("@/modules/05_placement/components/probation/FormAssign.vue");
|
|
const transfer = () =>
|
|
import("@/modules/05_placement/components/Transfer/transferMain.vue");
|
|
const transferbyId = () =>
|
|
import("@/modules/05_placement/components/Transfer/transferRegistry.vue");
|
|
const FormSaveResultAdd = () =>
|
|
import(
|
|
"@/modules/05_placement/components/probation/FormEvaluation/FormSaveResultAdd.vue"
|
|
);
|
|
const FormEvaluateAdd = () =>
|
|
import(
|
|
"@/modules/05_placement/components/probation/FormEvaluation/FormEvaluateAdd.vue"
|
|
);
|
|
const FormEvaluateScoreAdd = () =>
|
|
import(
|
|
"@/modules/05_placement/components/probation/FormEvaluation/FormEvaluateScoreAdd.vue"
|
|
);
|
|
const FormSaveResultAddCommander = () =>
|
|
import(
|
|
"./components/probation/FormEvaluation/FormSaveResultAddCommander.vue"
|
|
);
|
|
|
|
const helpgovernment = () =>
|
|
import("@/modules/05_placement/components/helpgovernment/mainHelp.vue");
|
|
const helpgovernmentbyId = () =>
|
|
import(
|
|
"@/modules/05_placement/components/helpgovernment/governmentDetail.vue"
|
|
);
|
|
const repatriate = () =>
|
|
import("@/modules/05_placement/components/Repatriate/RepatriateMain.vue");
|
|
const repatriatebyId = () =>
|
|
import("@/modules/05_placement/components/Repatriate/RepatriatebyId.vue");
|
|
const relocation = () =>
|
|
import("@/modules/05_placement/components/Relocation/RelocationMain.vue");
|
|
const relocationbyId = () =>
|
|
import("@/modules/05_placement/components/Relocation/RelocationbyId.vue");
|
|
//รับโอน
|
|
const receiveMain = () =>
|
|
import("@/modules/05_placement/components/Receive/receiveMain.vue");
|
|
|
|
// const receiveDetail = () =>
|
|
// import("@/modules/05_placement/components/Receive/receiveDetail.vue");
|
|
const receiveDetail2 = () =>
|
|
import("@/modules/05_placement/components/Receive/receiveDetail2.vue");
|
|
const ReceiveAdd = () =>
|
|
import("@/modules/05_placement/components/Receive/FormAdd.vue");
|
|
|
|
//แต่งตั้ง-เลื่อน
|
|
const AppointmentMain = () =>
|
|
import("@/modules/05_placement/components/AppointMent/Main.vue");
|
|
const AppointmentDetail = () =>
|
|
import("@/modules/05_placement/components/AppointMent/Detail.vue");
|
|
//แต่งตั้งลูกจ้างประจำ
|
|
const AppointEmployeeMain = () =>
|
|
import("@/modules/05_placement/components/AppointEmployee/Main.vue");
|
|
const AppointEmployeeDetail = () =>
|
|
import("@/modules/05_placement/components/AppointEmployee/Detail.vue");
|
|
//อื่นๆ
|
|
const OtherMain = () =>
|
|
import("@/modules/05_placement/components/Other/Main.vue");
|
|
const OthertDetail = () =>
|
|
import("@/modules/05_placement/components/Other/Detail.vue");
|
|
|
|
const ChangePositionMain = () =>
|
|
import("@/modules/05_placement/components/ChangePosition/Main.vue");
|
|
const ChangePersonalList = () =>
|
|
import("@/modules/05_placement/components/ChangePosition/PersonalList.vue");
|
|
const ChangePersonalDetail = () =>
|
|
import("@/modules/05_placement/components/ChangePosition/PersonalDetail.vue");
|
|
|
|
export default [
|
|
{
|
|
path: "/placement",
|
|
name: "placement",
|
|
component: PlacementMain,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PLACEMENT_PASS",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/personal-list/:examId",
|
|
name: "placementDetail",
|
|
component: PlacementDetail,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PLACEMENT_PASS",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/personal-detail/:personalId",
|
|
name: "PlacementPersonalDetail",
|
|
component: PlacementPersonalDetail,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PLACEMENT_PASS",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/probation",
|
|
name: "probation",
|
|
component: mainProbation,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PROBATION",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/probation/detail/:id",
|
|
name: "probationDetail",
|
|
component: probationDetail,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PROBATION",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/probation/detail/:personalId/:form",
|
|
name: "probationForm",
|
|
component: probationFormEvaluation,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PROBATION",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/probation/detail-view/:personalId/:form",
|
|
name: "probationFormDetail",
|
|
component: probationFormEvaluationDetail,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PROBATION",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/probation/detail/addresult/:id/:form",
|
|
name: "probationFormAddresult",
|
|
component: FormSaveResultAdd,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PROBATION",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/probation/detail/addevalua/:id/:form",
|
|
name: "probationFormAddevalua",
|
|
component: FormEvaluateAdd,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PROBATION",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/probation/detail/addevaluacommander/:id/:form",
|
|
name: "probationFormAddevaluaCommander",
|
|
component: FormSaveResultAddCommander,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PROBATION",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/probation/detail/addevaluascore/:id/:form",
|
|
name: "probationFormAddevaluascore",
|
|
component: FormEvaluateScoreAdd,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PROBATION",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/probation/work/add",
|
|
name: "probationWorkAdd",
|
|
component: probationWorkAdd,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PROBATION",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/probation/work/:id",
|
|
name: "probationWork",
|
|
component: probationWorkAdd,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PROBATION",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/probation/add/:personalId",
|
|
name: "probationWorkAdd",
|
|
component: probationFormAssign,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PROBATION",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/transfer",
|
|
name: "transfer",
|
|
component: transfer,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_TRANSFER_REQ",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/transfer/:id",
|
|
name: "transfer-id",
|
|
component: transferbyId,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_TRANSFER_REQ",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/receive",
|
|
name: "receive",
|
|
component: receiveMain,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_TRANSFER_RECEIVE",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/receive/add",
|
|
name: "receiveAdd",
|
|
component: ReceiveAdd,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_TRANSFER_RECEIVE",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/receive/:id",
|
|
name: "receiveDetail",
|
|
component: receiveDetail2,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_TRANSFER_RECEIVE",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/help-government",
|
|
name: "help-government",
|
|
component: helpgovernment,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_TEMPDUTY",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/help-government/detail/:id",
|
|
name: "help-governmentbyId",
|
|
component: helpgovernmentbyId,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_TEMPDUTY",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/repatriate",
|
|
name: "repatriate",
|
|
component: repatriate,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_TEMPDUTY2",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/repatriate/detail/:id",
|
|
name: "repatriatebyId",
|
|
component: repatriatebyId,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_TEMPDUTY2",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/appoint-promote",
|
|
name: "appoint-promote",
|
|
component: AppointmentMain,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PROMOTION_OFFICER",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/appoint-promote/detail/:id",
|
|
name: "appoint-promote-detail",
|
|
component: AppointmentDetail,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PROMOTION_OFFICER",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/appoint-employee",
|
|
name: "appoint-employee",
|
|
component: AppointEmployeeMain,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PROMOTION_EMP",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/appoint-employee/detail/:id",
|
|
name: "appoint-employee-detail",
|
|
component: AppointEmployeeDetail,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PROMOTION_EMP",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/other",
|
|
name: "other",
|
|
component: OtherMain,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PLACEMENT_OTHER",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
{
|
|
path: "/placement/other/detail/:id",
|
|
name: "other-detail",
|
|
component: OthertDetail,
|
|
meta: {
|
|
Auth: true,
|
|
Key: "SYS_PLACEMENT_OTHER",
|
|
Role: "STAFF",
|
|
},
|
|
},
|
|
// {
|
|
// path: "/relocation",
|
|
// name: "relocation",
|
|
// component: relocation,
|
|
// meta: {
|
|
// Auth: true,
|
|
// Key: [6.1],
|
|
// Role: "placement",
|
|
// },
|
|
// },
|
|
// {
|
|
// path: "/relocation/detail/:id",
|
|
// name: "relocationId",
|
|
// component: relocationbyId,
|
|
// meta: {
|
|
// Auth: true,
|
|
// Key: [6.9],
|
|
// Role: "placement",
|
|
// },
|
|
// },
|
|
// {
|
|
// path: "/change-positions",
|
|
// name: "changePositions",
|
|
// component: ChangePositionMain,
|
|
// meta: {
|
|
// Auth: true,
|
|
// Key: "",
|
|
// Role: "STAFF",
|
|
// },
|
|
// },
|
|
// {
|
|
// path: "/change-positions/:id",
|
|
// name: "changePersonalList",
|
|
// component: ChangePersonalList,
|
|
// meta: {
|
|
// Auth: true,
|
|
// Key: "",
|
|
// Role: "placement",
|
|
// },
|
|
// },
|
|
// {
|
|
// path: "/change-positions/personal/:id",
|
|
// name: "changePersonalId",
|
|
// component: ChangePersonalDetail,
|
|
// meta: {
|
|
// Auth: true,
|
|
// Key: "",
|
|
// Role: "placement",
|
|
// },
|
|
// },
|
|
];
|