hrms-mgt/src/modules/13_salary/router.ts
2024-11-21 13:56:50 +07:00

95 lines
2.3 KiB
TypeScript

// รายการผังบัญชีเงินเดือน
const salaryChart = () => import("@/modules/13_salary/views/01_salaryMain.vue");
const salaryRate = () =>
import("@/modules/13_salary/views/page01_salaryRate.vue");
// ผังบัญชีค่าจ้างลูกจ้างประจำ
const salaryEmployeeChart = () =>
import("@/modules/13_salary/views/02_salaryEmployeeMain.vue");
const salaryEmployeeRate = () =>
import("@/modules/13_salary/views/page02_salaryEmployeeRate.vue");
// รอบการขึ้นเงินเดือน
const salaryRound = () =>
import("@/modules/13_salary/views/03_salaryRound.vue");
// รายการเลื่อนเงินเดือนข้าราชการ ฯ
const salaryLists = () =>
import("@/modules/13_salary/views/04_salaryLists.vue");
// รายการเลื่อนค่าจ้างลูกจ้างประจำ
const salaryEmployeeLists = () =>
import("@/modules/13_salary/views/05_salaryListsEmployee.vue");
export default [
{
path: "/salary",
name: "salaryChart",
component: salaryChart,
meta: {
Auth: true,
Key: "SYS_SALARY_CHART_OFFICER",
Role: "STAFF",
},
},
{
path: "/salary/rate/:id",
name: "salaryRate",
component: salaryRate,
meta: {
Auth: true,
Key: "SYS_SALARY_CHART_OFFICER",
Role: "STAFF",
},
},
{
path: "/salary-employee",
name: "salaryEmployeeChart",
component: salaryEmployeeChart,
meta: {
Auth: true,
Key: "SYS_WAGE_CHART_EMP",
Role: "STAFF",
},
},
{
path: "/salary-employee/rate/:id",
name: "salaryEmployeeRate",
component: salaryEmployeeRate,
meta: {
Auth: true,
Key: "SYS_WAGE_CHART_EMP",
Role: "STAFF",
},
},
{
path: "/salary/round",
name: "salaryRound",
component: salaryRound,
meta: {
Auth: true,
Key: "SYS_SALARY_ROUND",
Role: "STAFF",
},
},
{
path: "/salary/lists",
name: "salaryLists",
component: salaryLists,
meta: {
Auth: true,
Key: "SYS_SALARY_OFFICER",
Role: "STAFF",
},
},
{
path: "/salary-employee/lists",
name: "salaryEmployeeLists",
component: salaryEmployeeLists,
meta: {
Auth: true,
Key: "SYS_WAGE",
Role: "STAFF",
},
},
];