export default {
  path: "/product",
  redirect: "/product/list",
  meta: {
    icon: "ri:inbox-line",
    title: "商品管理",
    rank: 4,
    roles: ["admin", "operator"]
  },
  children: [
    {
      path: "/product/list",
      name: "ProductList",
      component: () => import("@/views/product/index.vue"),
      meta: {
        icon: "ri:inbox-line",
        title: "商品列表"
      }
    },
    {
      path: "/product/new-apply",
      name: "NewProductApply",
      component: () => import("@/views/product/new-apply/index.vue"),
      meta: {
        icon: "ri:add-box-line",
        title: "新品申请"
      }
    },
    {
      path: "/product/master-library",
      name: "MasterLibrary",
      component: () => import("@/views/product/master-library/index.vue"),
      meta: {
        icon: "ri:archive-line",
        title: "商品总库"
      }
    },
    {
      path: "/product/erp-goods",
      name: "ErpGoodsList",
      component: () => import("@/views/erp-goods/index.vue"),
      meta: {
        icon: "ri:links-line",
        title: "ERP商品关联"
      }
    }
  ]
} satisfies RouteConfigsTable;
