export default {
  path: "/statistics",
  redirect: "/statistics/overview",
  meta: {
    icon: "ri:bar-chart-grouped-line",
    title: "统计报表",
    rank: 9,
    roles: ["admin", "operator", "viewer"]
  },
  children: [
    {
      path: "/statistics/overview",
      name: "StatisticsOverview",
      component: () => import("@/views/statistics/overview/index.vue"),
      meta: {
        title: "统计概览"
      }
    },
    {
      path: "/statistics/category",
      name: "CategoryStatistics",
      component: () => import("@/views/statistics/category/index.vue"),
      meta: {
        title: "品类销售统计"
      }
    },
    {
      path: "/statistics/product",
      name: "ProductStatistics",
      component: () => import("@/views/statistics/product/index.vue"),
      meta: {
        title: "商品销售统计",
        showLink: false
      }
    },
    {
      path: "/statistics/device",
      name: "DeviceStatistics",
      component: () => import("@/views/statistics/device/index.vue"),
      meta: {
        title: "设备销售统计",
        showLink: false
      }
    },
    {
      path: "/statistics/shop",
      name: "ShopStatistics",
      component: () => import("@/views/statistics/shop/index.vue"),
      meta: {
        title: "门店销售统计",
        showLink: false
      }
    },
    {
      path: "/statistics/profit",
      name: "ProfitStatistics",
      component: () => import("@/views/statistics/profit/index.vue"),
      meta: {
        title: "门店利润报表"
      }
    },
    {
      path: "/statistics/repurchase",
      name: "RepurchaseStatistics",
      component: () => import("@/views/statistics/repurchase/index.vue"),
      meta: {
        title: "用户复购统计"
      }
    }
  ]
} satisfies RouteConfigsTable;
