chenhaozhe
2025-11-14 7570f18ad0164dcb9bb71808f68e89053aaa2bbf
src/router/index.js
@@ -41,31 +41,26 @@
      },
    ],
  },
  //登录
  {
    path: "/login",
    component: () => import("@/views/login"),
    hidden: true,
  },
  //注册
  {
    path: "/register",
    component: () => import("@/views/register"),
    hidden: true,
  },
  //404
  {
    path: "/404",
    component: () => import("@/views/error/404"),
    hidden: true,
  },
  //401
  {
    path: "/401",
    component: () => import("@/views/error/401"),
    hidden: true,
  },
  //首页
  {
    path: "",
    component: Layout,
@@ -79,7 +74,6 @@
      },
    ],
  },
  //个人中心
  {
    path: "/user",
    component: Layout,
@@ -94,43 +88,27 @@
      },
    ],
  },
  // //登录跳转页
  // {
  //   path: "/indexPage",
  //   component: () => import("@/views/indexPage"),
  //   hidden: true,
  // },
  //销售出库单
  // {
  //   path: "/sales/salesOUt/sellOutBill",
  //   component: () => import("@/views/sellOutBill/index"),
  //   hidden: true,
  // },
  {
    path: "/sales/salesOUt/sellOutBill",
    path: "/sell/sellOut/sellOutBill",
    component: Layout,
    hidden: true,
    // permissions: ["system:goods:add"],
    redirect: "noredirect",
    meta: {
      breadcrumb: false, // 如果设置为false,则不会在breadcrumb面包屑中显示
      activeMenu: "/sales/salesOUt", // 当路由设置了该属性,则会高亮相对应的侧边栏。
      activeMenu: "/sell/sellOut", // 当路由设置了该属性,则会高亮相对应的侧边栏。
    },
    children: [
      {
        path: "/sales/salesOUt/sellOutBill",
        component: () => import("@/views/sell/sellOutBill"),
        path: "/sell/sellOut/sellOutBill",
        component: () => import("@/views/sell/sellOut/sellOutBill"),
        name: "SellOutBill",
        meta: { title: "销售出库单", activeMenu: "sales/salesOUt" },
        meta: { title: "销售出库单", activeMenu: "sell/sellOut" },
      },
    ],
  },
  //销售出库单编辑页面
  // {
  //   path: "/sellOutBillEdit",
  //   component: () => import("@/views/sales/salesOUt/sellOutBill/edit/index"),
  //   hidden: true,
  // },
  {
    path: "/sell/sellOut/sellOutBillEdit",
    component: Layout,
@@ -168,61 +146,23 @@
      },
    ],
  },
  //采购入库单
  {
    path: "/CaiGouGuanLi/CaiGouRuKu/Kf_POStockInBillList",
    component: Layout,
    hidden: true,
    // permissions: ["system:goods:add"],
    redirect: "noredirect",
    meta: {
      breadcrumb: false, // 如果设置为false,则不会在breadcrumb面包屑中显示
      activeMenu: "/CaiGouGuanLi/CaiGouRuKu", // 当路由设置了该属性,则会高亮相对应的侧边栏。
    },
    children: [
      {
        path: "/CaiGouGuanLi/CaiGouRuKu/Kf_POStockInBillList",
        component: () => import("@/views/CaiGouGuanLi/CaiGouRuKu/Kf_POStockInBillList.vue"),
        name: "Kf_POStockInBillList",
        meta: { title: "采购入库单", activeMenu: "CaiGouGuanLi/CaiGouRuKu" },
      },
    ],
  },
  //采购入库单编辑页面
  {
    path: "/CaiGouGuanLi/CaiGouRuKu/Kf_POStockInBillEdit",
    component: Layout,
    hidden: true,
    redirect: "noredirect",
    meta: {
      breadcrumb: false, // 如果设置为false,则不会在breadcrumb面包屑中显示
      activeMenu: "/CaiGouGuanLi/CaiGouRuKu/Kf_POStockInBillEdit", // 当路由设置了该属性,则会高亮相对应的侧边栏。
    },
    children: [
      {
        path: "/CaiGouGuanLi/CaiGouRuKu/Kf_POStockInBillEdit",
        component: () => import("@/views/CaiGouGuanLi/CaiGouRuKu/Kf_POStockInBillEdit.vue"),
        name: "SellOutBillEdit",
        meta: { title: "采购入库单编辑", activeMenu: "/CaiGouGuanLi/CaiGouRuKu" },
      },
    ],
  },
  //生产资源
  {
    path: "/basic/gy/gySource",
    path: "/basic/production/gySource",
    component: Layout,
    hidden: true,
    redirect: "noredirect",
    meta: {
      breadcrumb: false, // 如果设置为false,则不会在breadcrumb面包屑中显示
      activeMenu: "/basic/gy/gySource", // 当路由设置了该属性,则会高亮相对应的侧边栏。
      activeMenu: "/basic/production/gySource", // 当路由设置了该属性,则会高亮相对应的侧边栏。
    },
    children: [
      {
        path: "/basic/gy/gySource",
        component: () => import("@/views/basic/gySource"),
        path: "/basic/production/gySource",
        component: () => import("@/views/basic/production/gySource.vue"),
        name: "GySource",
        meta: { title: "生产资源列表", activeMenu: "basic/gy" },
        meta: { title: "生产资源列表", activeMenu: "basic/production" },
      },
    ],
  },
@@ -431,6 +371,25 @@
    component: () => import("@/views/ICMO/ScICMOBillList.vue"),
    hidden: true,
  },
  //供应商列表
  {
    path: "/basic/gy/gySupplier",
    component: Layout,
    hidden: true,
    redirect: "noredirect",
    meta: {
      breadcrumb: false, // 如果设置为false,则不会在breadcrumb面包屑中显示
      activeMenu: "/basic/gy/gySupplier", // 当路由设置了该属性,则会高亮相对应的侧边栏。
    },
    children: [
      {
        path: "/basic/gy/gySupplier",
        component: () => import("@/views/basic/gy/gySupplier.vue"),
        name: "GySupplier",
        meta: { title: "供应商列表", activeMenu: "basic/gy" },
      },
    ],
  },
];
// 动态路由,基于用户权限动态去加载