// 审核卡片数据
const reviewCardMap = {
  "origin-entry": [
    {
      id: "draftPurchase",
      title: "待提交草稿",
      count: 0,
      unit: "采购单",
      iconColor: "var(--color-blue-600)",
      icon: "folder",
    },
    {
      id: "pendingPurchase",
      title: "审核中",
      count: 10,
      unit: "采购单",
      iconColor: "var(--color-green-600)",
      icon: "clipboard-list",
    },
    {
      id: "rejectPurchase",
      title: "被驳回",
      count: 10,
      unit: "采购单",
      iconColor: "var(--color-red-600)",
      icon: "file-signature",
    },
    {
      id: "pendingInvoiceUpload",
      title: "待上传发票",
      count: 10,
      unit: "瓜农",
      iconColor: "var(--color-orange-600)",
      icon: "file-invoice",
    },
  ],
  "market-buyer": [
    {
      id: "draftPurchase",
      title: "我的草稿",
      count: 0,
      unit: "采购单",
      iconColor: "var(--color-blue-600)",
      icon: "folder",
    },
  ],
  reviewer: [
    {
      id: "pending",
      title: "待我审核",
      count: 12,
      unit: "采购单",
      iconColor: "var(--color-primary)",
      icon: "file-invoice",
    },
    {
      id: "bossPending",
      title: "待老板审核",
      count: 5,
      unit: "采购单",
      iconColor: "var(--color-yellow-500)",
      icon: "user-tie",
    },
    {
      id: "profit",
      title: "今日利润预估",
      count: "¥8,450",
      unit: "较昨日 ↑12%",
      iconColor: "var(--color-green-500)",
      icon: "chart-line",
    },
  ],
  boss: [
    // 今日综合利润
    {
      id: "profit",
      title: "今日综合利润",
      count: "¥8,450",
      unit: "较昨日 ↑12%",
      iconColor: "var(--color-green-500)",
      icon: "chart-line",
    },
    // 应收账款总额
    {
      id: "receivables",
      title: "应收账款总额",
      count: "¥8,450",
      unit: "较昨日 ↑12%",
      iconColor: "var(--color-green-500)",
      icon: "chart-line",
    },
    // 待我审批
    {
      id: "pending",
      title: "待我审批",
      count: 12,
      unit: "采购单",
      iconColor: "var(--color-primary)",
      icon: "file-invoice",
    },
  ],
};

// 角色标识
const roleSlugMap = {
  "origin-entry": "产地采购员",
  "market-buyer": "市场采购员",
  reviewer: "审核员",
  boss: "老板",
};

// 快捷功能数据
const quickActionMap = {
  "origin-entry": [
    {
      id: "myDraft",
      title: "待提交的采购单",
      icon: "folder",
      iconColor: "var(--color-blue-600)",
      bgColorClass: "bg-blue-100",
      path: "/pages/purchase/made/drafts",
    },
    {
      id: "history",
      title: "我的采购单",
      icon: "clipboard-list",
      iconColor: "var(--color-green-600)",
      bgColorClass: "bg-green-100",
      path: "/pages/purchase/made/all",
    },
    {
      id: "invoiceUpload",
      title: "上传瓜农发票",
      icon: "file-invoice",
      iconColor: "var(--color-orange-600)",
      bgColorClass: "bg-orange-100",
      path: "/pages/invoice/upload",
    },
    {
      id: "supplierManage",
      title: "瓜农管理",
      icon: "clipboard-list",
      iconColor: "var(--color-green-600)",
      bgColorClass: "bg-green-100",
      path: "/pages/supplier/all",
    },
  ],
  "market-buyer": [
    {
      id: "myDraft",
      title: "待提交的采购单",
      icon: "folder",
      iconColor: "var(--color-blue-600)",
      bgColorClass: "bg-blue-100",
      path: "/pages/purchase/market/drafts",
    },
    {
      id: "history",
      title: "我的采购单",
      icon: "clipboard-list",
      iconColor: "var(--color-green-600)",
      bgColorClass: "bg-green-100",
      path: "/pages/purchase/market/all",
    },
    {
      id: "supplierManage",
      title: "档口管理",
      icon: "clipboard-list",
      iconColor: "var(--color-green-600)",
      bgColorClass: "bg-green-100",
      path: "/pages/stall/all",
    },
  ],
  reviewer: [
    {
      id: "audit",
      title: "采购审核",
      icon: "file-signature",
      iconColor: "var(--color-primary)",
      bgColorClass: "bg-primary/10",
      path: "/pages/audit/pending",
    },
    {
      id: "history",
      title: "采购记录",
      icon: "clipboard-list",
      iconColor: "var(--color-green-600)",
      bgColorClass: "bg-green-100",
      path: "/pages/purchase/made/all",
    },
    {
      id: "orderShip",
      title: "发货单",
      icon: "print",
      iconColor: "var(--color-yellow-600)",
      bgColorClass: "bg-yellow-100",
      path: "/pages/delivery/all",
    },
    {
      id: "dailyExpense",
      title: "日常花销",
      icon: "receipt",
      iconColor: "var(--color-purple-600)",
      bgColorClass: "bg-purple-100",
      path: "/pages/expenses/statistics",
    },
    // {
    //   id: "reschedule",
    //   title: "改签处理",
    //   icon: "right-left",
    //   iconColor: "var(--color-orange-600)",
    //   bgColorClass: "bg-orange-100",
    // },
    // {
    //   id: "return",
    //   title: "退货单",
    //   icon: "rotate-left",
    //   iconColor: "var(--color-rose-600)",
    //   bgColorClass: "bg-rose-100",
    // },
    // {
    //   id: "profitBoard",
    //   title: "利润看板",
    //   icon: "chart-pie",
    //   iconColor: "var(--color-blue-600)",
    //   bgColorClass: "bg-blue-100",
    // },
  ],
  boss: [
    {
      id: "purchaseReview",
      title: "采购审批",
      icon: "file-signature",
      iconColor: "var(--color-primary)",
      bgColorClass: "bg-primary/10",
      path: "/pages/approval/pending",
    },
    {
      id: "history",
      title: "采购记录",
      icon: "clipboard-list",
      iconColor: "var(--color-green-600)",
      bgColorClass: "bg-green-100",
      path: "/pages/purchase/made/all",
    },
    {
      id: "orderShip",
      title: "发货单",
      icon: "print",
      iconColor: "var(--color-yellow-600)",
      bgColorClass: "bg-yellow-100",
      path: "/pages/delivery/all",
    },
    {
      id: "dailyExpense",
      title: "录花销",
      icon: "receipt",
      iconColor: "var(--color-purple-600)",
      bgColorClass: "bg-purple-100",
      path: "/pages/expenses/create",
    },
    // {
    //   id: "reschedule",
    //   title: "看利润",
    //   icon: "chart-line",
    //   iconColor: "var(--color-orange-600)",
    //   bgColorClass: "bg-orange-100",
    // },
    // {
    //   id: "profitBoard",
    //   title: "查客户",
    //   icon: "user",
    //   iconColor: "var(--color-blue-600)",
    //   bgColorClass: "bg-blue-100",
    // },
  ],
};

const workbench = {
  roleSlugMap,
  reviewCardMap,
  quickActionMap,
};

export default workbench;
