Explorar el Código

feat: 库存管理 - 路由+侧边栏

Xiaogang Liao hace 3 meses
padre
commit
c08211a507
Se han modificado 2 ficheros con 13 adiciones y 0 borrados
  1. 12 0
      cfc-web/src/router/index.js
  2. 1 0
      cfc-web/src/views/Layout.vue

+ 12 - 0
cfc-web/src/router/index.js

@@ -222,6 +222,18 @@ const routes = [
         component: () => import('@/views/admin/ProductManage.vue'),
         meta: { title: '商品管理', perm: 'commerce:products' }
       },
+      {
+        path: 'inventory',
+        name: 'InventoryManage',
+        component: () => import('@/views/admin/InventoryManage.vue'),
+        meta: { title: '库存管理', perm: 'commerce:products' }
+      },
+      {
+        path: 'inventory/inbound-create',
+        name: 'InventoryInboundCreate',
+        component: () => import('@/views/admin/InventoryInboundCreate.vue'),
+        meta: { title: '创建入库单', perm: 'commerce:products' }
+      },
       {
         path: 'product-edit',
         name: 'ProductEdit',

+ 1 - 0
cfc-web/src/views/Layout.vue

@@ -194,6 +194,7 @@ export default {
         { title: '商城营销', icon: 'el-icon-s-goods', perm: 'commerce',
           children: [
             { path: '/product-manage', label: '商品管理', icon: 'el-icon-s-goods', perm: 'commerce:products' },
+            { path: '/inventory', label: '库存管理', icon: 'el-icon-document', perm: 'commerce:products' },
             { path: '/order-manage', label: '订单管理', icon: 'el-icon-s-order', perm: 'commerce:orders' },
             { path: '/pending-refund', label: '待退款管理', icon: 'el-icon-warning', perm: 'commerce:orders' },
             { path: '/product-profit-rate', label: '产品利润率', icon: 'el-icon-data-line', perm: 'commerce:profit' },