Files
MrleeAdmin/backend/plugin/produce/resource/template/admin/routes/index.ts
T

216 lines
5.2 KiB
TypeScript

import { AppRouteRecord } from "@/types/router";
import { RoutesAlias } from "@/router/routesAlias";
export default {
path: "/produce",
name: "Produce",
component: RoutesAlias.Layout,
meta: {
title: "生产管理",
icon: "ri:plugin-line",
module: "produce",
},
children: [
{
path: "material-category",
name: "ProduceMaterialCategory",
component: "/produce/material-category/index",
meta: {
title: "物料分类",
icon: "ri:folder-2-line",
keepAlive: false,
module: "produce",
},
},
{
path: "material",
name: "ProduceMaterial",
component: "/produce/material/index",
meta: {
title: "物料库",
icon: "ri:archive-2-line",
keepAlive: false,
module: "produce",
},
},
{
path: "config",
name: "ProduceConfig",
component: "/produce/config/index",
meta: {
title: "生产配置",
icon: "ri:settings-3-line",
keepAlive: false,
module: "produce",
},
},
{
path: "process",
name: "ProduceProcess",
component: "/produce/process/index",
meta: {
title: "工序管理",
icon: "ri:stack-line",
keepAlive: false,
module: "produce",
},
},
{
path: "process-step",
name: "ProduceProcessStep",
component: "/produce/process-step/index",
meta: {
title: "工序步骤",
icon: "ri:list-check-3",
keepAlive: false,
module: "produce",
},
},
{
path: "step-status",
name: "ProduceStepStatus",
component: "/produce/step-status/index",
meta: {
title: "步骤状态",
icon: "ri:flag-2-line",
keepAlive: false,
module: "produce",
},
},
{
path: "step-relation",
name: "ProduceStepRelation",
component: "/produce/step-relation/index",
meta: {
title: "步骤关系",
icon: "ri:git-branch-line",
keepAlive: false,
module: "produce",
},
},
{
path: "status-transition",
name: "ProduceStatusTransition",
component: "/produce/status-transition/index",
meta: {
title: "状态转换",
icon: "ri:share-forward-line",
keepAlive: false,
module: "produce",
},
},
{
path: "product-record",
name: "ProduceProductRecord",
component: "/produce/product-record/index",
meta: {
title: "整机数据",
icon: "ri-product-hunt-line",
keepAlive: false,
module: "produce",
},
},
{
path: "scan-data",
name: "ProduceScanData",
component: "/produce/scan-data/index",
meta: {
title: "扫码数据",
icon: "ri:qr-scan-2-line",
keepAlive: false,
module: "produce",
},
},
{
path: "transition-log",
name: "ProduceTransitionLog",
component: "/produce/transition-log/index",
meta: {
title: "转换日志",
icon: "ri:file-list-3-line",
keepAlive: false,
module: "produce",
},
},
{
path: "repair",
name: "ProduceRepair",
meta: {
title: "维修管理",
icon: "ri:tools-line",
keepAlive: false,
module: "produce",
},
children: [
{
path: "repair-data",
name: "ProduceRepairData",
component: "/produce/repair/repair-data/index",
meta: {
title: "维修数据",
icon: "ri:file-list-3-line",
keepAlive: false,
module: "produce",
},
},
{
path: "repair-setting",
name: "ProduceRepairSetting",
component: "/produce/repair/repair-setting/index",
meta: {
title: "维修设置",
icon: "ri:settings-3-line",
keepAlive: false,
module: "produce",
},
},
{
path: "hardware-fault-description",
name: "ProduceHardwareFaultDescription",
component: "/produce/repair/hardware-fault-description/index",
meta: {
title: "硬件故障描述",
icon: "ri:tools-line",
keepAlive: false,
module: "produce",
},
},
],
},
{
path: "statistics",
name: "ProduceStatistics",
meta: {
title: "数据统计",
icon: "ri:bar-chart-2-line",
keepAlive: false,
module: "produce",
},
children: [
{
path: "monthly",
name: "ProduceMonthlyWorkStatistics",
component: "/produce/statistics/monthly/index",
meta: {
title: "月工作统计",
icon: "ri:calendar-2-line",
keepAlive: false,
module: "produce",
},
},
{
path: "daily",
name: "ProduceDailyWorkStatistics",
component: "/produce/statistics/daily/index",
meta: {
title: "日工作统计",
icon: "ri:time-line",
keepAlive: false,
module: "produce",
},
},
],
},
],
} as AppRouteRecord;