export default {
  path: "/operation",
  redirect: "/operation/shop",
  meta: {
    icon: "ri:briefcase-4-line",
    title: "运营管理",
    rank: 3,
    roles: ["admin", "operator"]
  },
  children: [
    {
      path: "/operation/shop",
      name: "ShopList",
      component: () => import("@/views/shop/index.vue"),
      meta: {
        icon: "ri:store-3-line",
        title: "门店管理"
      }
    },
    {
      path: "/operation/device",
      name: "DeviceList",
      component: () => import("@/views/device/index.vue"),
      meta: {
        icon: "ri:computer-line",
        title: "设备管理"
      }
    },
    {
      path: "/operation/distribution-map",
      name: "DistributionMap",
      component: () => import("@/views/distribution/index.vue"),
      meta: {
        icon: "ri:map-pin-line",
        title: "门店分布地图"
      }
    },
    {
      path: "/operation/replenisher",
      name: "ReplenisherList",
      component: () => import("@/views/replenisher/index.vue"),
      meta: {
        icon: "ri:user-star-line",
        title: "补货员管理"
      }
    },
    {
      path: "/operation/erp-shop",
      name: "ErpShopList",
      component: () => import("@/views/erp-shop/index.vue"),
      meta: {
        icon: "ri:store-2-line",
        title: "ERP店铺管理"
      }
    },
    {
      path: "/operation/shop-archive",
      name: "ShopArchiveList",
      component: () => import("@/views/shop-archive/index.vue"),
      meta: {
        icon: "ri:file-text-line",
        title: "门店档案管理",
        keepAlive: true
      }
    },
    {
      path: "/operation/shop-archive/detail/:id?",
      name: "ShopArchiveDetail",
      component: () => import("@/views/shop-archive/detail.vue"),
      meta: {
        icon: "ri:file-text-line",
        title: "门店档案详情",
        showLink: false
      }
    }
  ]
} satisfies RouteConfigsTable;
