export default {
  path: "/inventory",
  redirect: "/inventory/list",
  meta: {
    icon: "ri:stack-line",
    title: "库存管理",
    rank: 5,
    roles: ["admin", "operator"]
  },
  children: [
    {
      path: "/inventory/list",
      name: "InventoryList",
      component: () => import("@/views/inventory/index.vue"),
      meta: {
        icon: "ri:stack-line",
        title: "库存列表"
      }
    },
    {
      path: "/inventory/logs",
      name: "InventoryLogs",
      component: () => import("@/views/inventory/logs/index.vue"),
      meta: {
        icon: "ri:history-line",
        title: "库存变动"
      }
    },
    {
      path: "/inventory/records",
      name: "StockRecords",
      component: () => import("@/views/inventory/records/index.vue"),
      meta: {
        icon: "ri:file-text-line",
        title: "上货记录"
      }
    },
    {
      path: "/inventory/replenishment-order/detail",
      name: "ReplenishmentOrderDetail",
      component: () => import("@/views/replenishment-order/detail.vue"),
      meta: {
        title: "补货单详情",
        showLink: false
      }
    }
  ]
} satisfies RouteConfigsTable;
