const Layout = () => import("@/layout/index.vue");

export default {
  path: "/statistic",
  name: "statistic",
  component: Layout,
  redirect: "/statistic/main",
  meta: {
    title: "质量数据统计",
    icon: "ChromeFilled",
  },
  children: [
    {
      path: "main",
      component: () => import("@/views/statistic/statistic/index.vue"),
      name: "StatisticMain",
      meta: {
        title: "质量统计",
        icon: "Refrigerator",
      },
    },
    {
      path: "first-pass-yield",
      component: () => import("@/views/statistic/firstPassYield/index.vue"),
      name: "FirstPassYield",
      meta: {
        title: "一次性合格率",
        icon: "CreditCard",
      },
    },
    {
      path: "report",
      component: () => import("@/views/statistic/report/index.vue"),
      name: "StatisticReport",
      meta: {
        title: "质量报告",
        icon: "CreditCard",
      },
    },
    {
      path: "sales",
      component: () => import("@/views/sales/index.vue"),
      name: "Sales",
      meta: {
        title: "销售反馈",
        icon: "Guide",
      },
    },
    {
      path: "unqualified",
      component: () => import("@/views/unqualified/index.vue"),
      name: "Unqualified",
      meta: {
        title: "不合格处置",
        icon: "Guide",
      },
    },
    {
      path: "qualityGoal",
      component: () => import("@/views/statistic/qualityGoal/index.vue"),
      name: "qualityGoal",
      meta: {
        title: "质量目标维护",
        icon: "Guide",
      },
    },
    {
      path: "inspectionReport",
      component: () => import("@/views/statistic/inspectionReport/index.vue"),
      name: "inspectionReport",
      meta: {
        title: "检验报告",
        icon: "Guide",
      },
    },
    {
      path: "consistencyInspection",
      component: () =>
        import("@/views/statistic/consistencyInspection/index.vue"),
      name: "consistencyInspection",
      meta: {
        title: "质量一致性检验",
        icon: "Guide",
      },
    },
  ],
};
