export const metricBlueprints = [
  {
    key: 'pendingCount',
    label: '待审批单据',
    unit: '单',
    accent: 'var(--theme-primary)',
    icon: 'mdi mdi-file-document-outline',
    trend: 'down',
    change: '12.5%',
    delta: '较昨日 -18 单'
  },
  {
    key: 'pendingAmount',
    label: '待处理金额',
    accent: 'var(--chart-blue)',
    icon: 'mdi mdi-wallet',
    trend: 'up',
    change: '8.3%',
    delta: '较昨日 +¥27,400'
  },
  {
    key: 'avgSla',
    label: '平均审批时长',
    unit: 'h',
    accent: 'var(--chart-purple)',
    icon: 'mdi mdi-clock-outline',
    trend: 'down',
    change: '14.8%',
    delta: '较昨日 -1.2h'
  },
  {
    key: 'autoPassRate',
    label: '自动审单通过率',
    unit: '%',
    accent: 'var(--success)',
    icon: 'mdi mdi-shield-outline',
    trend: 'up',
    change: '6.2%',
    delta: '较昨日 +4.6%'
  },
  {
    key: 'riskCount',
    label: '异常预警单',
    unit: '单',
    accent: 'var(--danger)',
    icon: 'mdi mdi-alert',
    trend: 'up',
    change: '16.7%',
    delta: '较昨日 +2 单'
  },
  {
    key: 'slaRate',
    label: 'SLA 达成率',
    unit: '%',
    accent: 'var(--success)',
    icon: 'mdi mdi-check-circle',
    trend: 'up',
    change: '3.1%',
    delta: '较昨日 +2.9%'
  }
]

export const trendRanges = ['近12天', '近7天', '近30天']

export const trendSeries = {
  '近12天': {
    labels: ['07-01', '07-02', '07-03', '07-04', '07-05', '07-06', '07-07', '07-08', '07-09', '07-10', '07-12'],
    applications: [140, 105, 175, 195, 155, 70, 65, 60, 185, 200, 220],
    approved: [110, 85, 130, 125, 110, 60, 55, 50, 145, 150, 170],
    avgHours: [10, 8, 9, 7, 7, 6.8, 6, 6.5, 7, 8, 7.5]
  },
  '近7天': {
    labels: ['04-23', '04-24', '04-25', '04-26', '04-27', '04-28', '04-29'],
    applications: [72, 68, 109, 121, 134, 142, 128],
    approved: [58, 54, 92, 101, 116, 121, 110],
    avgHours: [6.9, 6.5, 6.8, 7.1, 7.4, 7.0, 6.8]
  },
  '近30天': {
    labels: ['03-31', '04-03', '04-06', '04-09', '04-12', '04-15', '04-18', '04-21', '04-24', '04-27'],
    applications: [82, 90, 96, 114, 120, 111, 126, 132, 119, 138],
    approved: [68, 76, 80, 95, 100, 93, 102, 110, 101, 117],
    avgHours: [9.2, 8.8, 8.4, 8.0, 7.7, 7.4, 7.2, 6.9, 6.8, 6.7]
  }
}

export const spendByCategory = [
  { name: '机票', value: 182000, color: 'var(--theme-primary)' },
  { name: '酒店', value: 146000, color: 'var(--chart-blue)' },
  { name: '火车/用车', value: 78600, color: 'var(--chart-amber)' },
  { name: '餐补及杂费', value: 55000, color: 'var(--chart-purple)' }
]

export const exceptionMix = [
  { name: '住宿超标', value: 5, color: 'var(--danger)' },
  { name: '重复报销', value: 3, color: 'var(--warning)' },
  { name: '行程缺失', value: 3, color: 'var(--chart-purple)' },
  { name: '发票异常', value: 3, color: 'var(--chart-blue)' }
]

export const departmentRangeOptions = ['本周', '本月', '本季度']

export const bottlenecks = [
  {
    name: '李文静',
    role: '财务经理',
    duration: '12.4 h',
    status: '较慢',
    tone: 'danger',
    avatar: '李'
  },
  {
    name: '王志强',
    role: '财务专员',
    duration: '8.7 h',
    status: '偏慢',
    tone: 'warning',
    avatar: '王'
  },
  {
    name: '刘思雨',
    role: '费用审核员',
    duration: '5.2 h',
    status: '正常',
    tone: 'success',
    avatar: '刘'
  }
]

export const budgetSummary = {
  ratio: 76,
  total: '¥2,800,000',
  used: '¥2,128,000',
  left: '¥672,000'
}
