陈婷婷
2025-11-12 b9b929cee338523de30ba0db4e77c50b1ef03583
src/store/modules/permission.js
@@ -44,8 +44,8 @@
              title: "销售管理",
            },
            hidden: false,
            name: "Sell",
            path: "/sell",
            name: "Sales",
            path: "/sales",
            redirect: "noRedirect",
            children: [
              {
@@ -56,8 +56,8 @@
                  title: "销售出库单",
                },
                hidden: false,
                name: "SellOut",
                path: "sellOut",
                name: "SalesOUt",
                path: "salesOUt",
                redirect: "noRedirect",
                component: "Layout",
                children: [
@@ -68,7 +68,8 @@
                      noCache: false,
                      title: "销售出库单维护",
                    },
                    component: () =>import("@/views/sell/sellOut/sellOutBill.vue"),
                    component: () =>
                      import("@/views/sell/sellOut/sellOutBill.vue"),
                    hidden: false,
                    name: "SellOutBill",
                    path: "sellOutBill",
@@ -80,15 +81,101 @@
                      noCache: false,
                      title: "销售出库单",
                    },
                    component: () => import('@/views/sell/sellOut/sellOutBillEdit.vue'),
                    component: () =>
                      import("@/views/sell/sellOut/sellOutBillEdit.vue"),
                    hidden: false,
                    name: "SellOutBillEdit",
                    path: "sellOutBillEdit",
                  },
                ],
              },
              {
                meta: {
                  icon: "build",
                  link: null,
                  noCache: false,
                  title: "销售订单",
                },
                hidden: false,
                name: "SeOrder",
                path: "seOrder",
                redirect: "noRedirect",
                component: "Layout",
                children: [
                  {
                    meta: {
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "销售订单维护",
                    },
                    component: () =>
                      import("@/views/sell/xsSeOrderBill/xsSeOrderBill.vue"),
                    hidden: false,
                    name: "XsSeOrderBill",
                    path: "xsSeOrderBill",
                  },
                ],
              },
              {
                meta: {
                  icon: "build",
                  link: null,
                  noCache: false,
                  title: "发货通知单",
                },
                hidden: false,
                name: "SeOutStock",
                path: "seOutStock",
                redirect: "noRedirect",
                component: "Layout",
                children: [
                  {
                    meta: {
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "发货通知单维护",
                    },
                    component: () =>
                      import("@/views/sell/XsSeOutStockBill.vue"),
                    hidden: false,
                    name: "XsSeOutStockBill",
                    path: "xsSeOutStockBill",
                  },
                ],
              },
              {
                meta: {
                  icon: "build",
                  link: null,
                  noCache: false,
                  title: "退货通知单",
                },
                hidden: false,
                name: "SeOutStockBack",
                path: "seOutStockBack",
                redirect: "noRedirect",
                component: "Layout",
                children: [
                  {
                    meta: {
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "退货通知单维护",
                    },
                    component: () =>
                      import("@/views/sell/XsSeOutStockBackBillList.vue"),
                    hidden: false,
                    name: "XsSeOutStockBackBillList",
                    path: "xsSeOutStockBackBillList",
                  },
                ],
              },
            ],
          },{
          },
          {
            alwaysShow: true,
            component: "Layout",
            meta: {
@@ -110,8 +197,8 @@
                  title: "生产资料",
                },
                hidden: false,
                name: "Production",
                path: "production",
                name: "Gy",
                path: "gy",
                redirect: "noRedirect",
                component: "Layout",
                children: [
@@ -122,52 +209,23 @@
                      noCache: false,
                      title: "生产资料列表",
                    },
                    component: () =>
                      import("@/views/basic/production/gySource.vue"),
                    component: () => import("@/views/basic/gySource/index.vue"),
                    hidden: false,
                    name: "GySource",
                    path: "gySource",
                  },
                  // {
                  //   meta: {
                  //     icon: "build",
                  //     link: null,
                  //     noCache: false,
                  //     title: "生产资料列表",
                  //   },
                  //   component: () =>
                  //     import("@/views/basic/production/gySource.vue"),
                  //   hidden: false,
                  //   name: "GySource",
                  //   path: "gySource",
                  // }
                ],
              },
            ],
          },{
            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: "用户管理",
                  title: "公用资料",
                },
                hidden: false,
                name: "User",
                path: "user",
                name: "Gy",
                path: "gy",
                redirect: "noRedirect",
                component: "Layout",
                children: [
@@ -176,20 +234,206 @@
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "用户列表",
                      title: "仓库列表",
                    },
                    component: () =>
                      import("@/views/system/user/xtUserList.vue"),
                      import("@/views/basic/gyWarehouse/gyWarehouse.vue"),
                    hidden: false,
                    name: "XtUserList",
                    path: "xtUserList",
                    name: "GyWarehouse",
                    path: "gyWarehouse",
                  },
                  {
                    meta: {
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "仓位列表",
                    },
                    component: () =>
                      import("@/views/basic/gyStockPlace/gyStockPlace.vue"),
                    hidden: false,
                    name: "GyStockPlace",
                    path: "gyStockPlace",
                  },
                  {
                    meta: {
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "职员列表",
                    },
                    component: () =>
                      import("@/views/basic/gyEmployee/gyEmployee.vue"),
                    hidden: false,
                    name: "GyEmployee",
                    path: "gyEmployee",
                  },
                ],
              },
            ],
          },
          {
            alwaysShow: true,
            component: "Layout",
            meta: {
              icon: "build",
              link: null,
              noCache: false,
              title: "采购管理",
            },
            hidden: false,
            name: "Purchase",
            path: "/purchase",
            redirect: "noRedirect",
            children: [
              {
                meta: {
                  icon: "build",
                  link: null,
                  noCache: false,
                  title: "采购订单",
                },
                hidden: false,
                name: "PoOrder",
                path: "poOrder",
                redirect: "noRedirect",
                component: "Layout",
                children: [
                  {
                    meta: {
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "采购订单列表",
                    },
                    component: () =>
                      import("@/views/purchase/cgPoOrderBill/cgPoOrderBill"),
                    hidden: false,
                    name: "CgPoOrderBill",
                    path: "cgPoOrderBill",
                  },
                ],
              },
              {
                meta: {
                  icon: "build",
                  link: null,
                  noCache: false,
                  title: "收料通知单",
                },
                hidden: false,
                name: "PoInStock",
                path: "PoInStock",
                redirect: "noRedirect",
                component: "Layout",
                children: [
                  {
                    meta: {
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "收料通知单列表",
                    },
                    component: () =>
                      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",
                      },
                    ],
                  },
                ],
              },
            ],
          },
          {
            alwaysShow: true,
            component: "Layout",
            meta: {
              icon: "build",
              link: null,
              noCache: false,
              title: "生产管理",
            },
            hidden: false,
            name: "ICMO",
            path: "/icmo",
            redirect: "noRedirect",
            children: [
              {
                meta: {
                  icon: "build",
                  link: null,
                  noCache: false,
                  title: "生产订单",
                },
                hidden: false,
                name: "ScIcmoBill",
                path: "scIcmoBill",
                redirect: "noRedirect",
                component: "Layout",
                children: [
                  {
                    meta: {
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "生产订单列表",
                    },
                    component: () => import("@/views/ICMO/ScICMOBillList.vue"),
                    hidden: false,
                    name: "ScICMOBillList",
                    path: "scICMOBillList",
                  },
                ],
              },
            ],
          },
        ];
        console.log(data)
        const sdata = JSON.parse(JSON.stringify(data));
        const rdata = JSON.parse(JSON.stringify(data));
        const sidebarRoutes = filterAsyncRouter(sdata);
@@ -201,7 +445,6 @@
        commit("SET_SIDEBAR_ROUTERS", constantRoutes.concat(sidebarRoutes));
        commit("SET_DEFAULT_ROUTES", sidebarRoutes);
        commit("SET_TOPBAR_ROUTES", sidebarRoutes);
        console.log(11, rewriteRoutes);
        resolve(rewriteRoutes);
      });
    },