chenhaozhe
2025-11-13 c4b85acdfce7b6db334faaa4832418a0bcba1719
src/store/modules/permission.js
@@ -69,7 +69,7 @@
                      title: "销售出库单维护",
                    },
                    component: () =>
                      import("@/views/sell/sellOutBill/index.vue"),
                      import("@/views/sell/sellOut/sellOutBill.vue"),
                    hidden: false,
                    name: "SellOutBill",
                    path: "sellOutBill",
@@ -81,7 +81,8 @@
                      noCache: false,
                      title: "销售出库单",
                    },
                    component: () => import('@/views/sell/sellOutBill/edit/index.vue'),
                    component: () =>
                      import("@/views/sell/sellOut/sellOutBillEdit.vue"),
                    hidden: false,
                    name: "SellOutBillEdit",
                    path: "sellOutBillEdit",
@@ -108,7 +109,8 @@
                      noCache: false,
                      title: "销售订单维护",
                    },
                    component: () => import("@/views/sell/xsSeOrderBill/xsSeOrderBill.vue"),
                    component: () =>
                      import("@/views/sell/xsSeOrderBill/xsSeOrderBill.vue"),
                    hidden: false,
                    name: "XsSeOrderBill",
                    path: "xsSeOrderBill",
@@ -135,7 +137,8 @@
                      noCache: false,
                      title: "发货通知单维护",
                    },
                    component: () => import("@/views/sell/XsSeOutStockBill.vue"),
                    component: () =>
                      import("@/views/sell/XsSeOutStockBill.vue"),
                    hidden: false,
                    name: "XsSeOutStockBill",
                    path: "xsSeOutStockBill",
@@ -162,7 +165,8 @@
                      noCache: false,
                      title: "退货通知单维护",
                    },
                    component: () => import("@/views/sell/XsSeOutStockBackBillList.vue"),
                    component: () =>
                      import("@/views/sell/XsSeOutStockBackBillList.vue"),
                    hidden: false,
                    name: "XsSeOutStockBackBillList",
                    path: "xsSeOutStockBackBillList",
@@ -205,8 +209,7 @@
                      noCache: false,
                      title: "生产资料列表",
                    },
                    component: () =>
                      import("@/views/basic/gySource/index.vue"),
                    component: () => import("@/views/basic/gySource/index.vue"),
                    hidden: false,
                    name: "GySource",
                    path: "gySource",
@@ -246,7 +249,8 @@
                      noCache: false,
                      title: "仓位列表",
                    },
                    component: () => import('@/views/basic/gyStockPlace/gyStockPlace.vue'),
                    component: () =>
                      import("@/views/basic/gyStockPlace/gyStockPlace.vue"),
                    hidden: false,
                    name: "GyStockPlace",
                    path: "gyStockPlace",
@@ -258,7 +262,8 @@
                      noCache: false,
                      title: "职员列表",
                    },
                    component: () => import('@/views/basic/gyEmployee/gyEmployee.vue'),
                    component: () =>
                      import("@/views/basic/gyEmployee/gyEmployee.vue"),
                    hidden: false,
                    name: "GyEmployee",
                    path: "gyEmployee",
@@ -301,12 +306,12 @@
                      noCache: false,
                      title: "采购订单列表",
                    },
                    component: () => import("@/views/purchase/cgPoOrderBill/cgPoOrderBill"),
                    component: () =>
                      import("@/views/purchase/cgPoOrderBill/cgPoOrderBill"),
                    hidden: false,
                    name: "CgPoOrderBill",
                    path: "cgPoOrderBill",
                  },
                ],
              },
              {
@@ -330,13 +335,59 @@
                      title: "收料通知单列表",
                    },
                    component: () =>
                      import("@/views/purchase/cgPoInStockBill/cgPoInStockBill.vue"),
                      import(
                        "@/views/purchase/cgPoInStockBill/cgPoInStockBill.vue"
                      ),
                    hidden: false,
                    name: "CgPoInStockBill",
                    path: "cgPoInStockBill",
                  },
                ]
              }
                ],
              },
              {
                alwaysShow: true,
                component: "Layout",
                meta: {
                  icon: "build",
                  link: null,
                  noCache: false,
                  title: "系统管理",
                },
                hidden: false,
                name: "System",
                path: "/system",
                redirect: "noRedirect",
                children: [
                  {
                    meta: {
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "用户管理",
                    },
                    hidden: false,
                    name: "User",
                    path: "user",
                    redirect: "noRedirect",
                    component: "Layout",
                    children: [
                      {
                        meta: {
                          icon: "build",
                          link: null,
                          noCache: false,
                          title: "用户列表",
                        },
                        component: () =>
                          import("@/views/system/user/xtUserList.vue"),
                        hidden: false,
                        name: "XtUserList",
                        path: "xtUserList",
                      },
                    ],
                  },
                ],
              },
            ],
          },
          {
@@ -392,10 +443,8 @@
        router.addRoutes(asyncRoutes);
        commit("SET_ROUTES", rewriteRoutes);
        commit("SET_SIDEBAR_ROUTERS", constantRoutes.concat(sidebarRoutes));
        commit("SET_SIDEBAR_ROUTERS", constantRoutes.concat(sidebarRoutes));
        commit("SET_DEFAULT_ROUTES", sidebarRoutes);
        commit("SET_TOPBAR_ROUTES", sidebarRoutes);
        console.log(11, rewriteRoutes);
        resolve(rewriteRoutes);
      });
    },