export const ORG_TYPE_OPTIONS = [
  { value: '1', label: '总部机构' },
  { value: '2', label: '资管中心' },
  { value: '3', label: '职能中心' },
  { value: '4', label: '分支机构' }
]

export const ENABLE_STATUS_OPTIONS = [
  { value: '0', label: '正常' },
  { value: '1', label: '停用' }
]

export const PROJECT_TYPE_OPTIONS = [
  { value: '1', label: '股权投资' },
  { value: '2', label: '债权投资' },
  { value: '3', label: '并购重组' },
  { value: '4', label: '基金投后' }
]

export const RISK_LEVEL_OPTIONS = [
  { value: '1', label: '低' },
  { value: '2', label: '中' },
  { value: '3', label: '高' }
]

export const PROJECT_STATUS_OPTIONS = [
  { value: '0', label: '立项中' },
  { value: '1', label: '评估中' },
  { value: '2', label: '复核中' },
  { value: '3', label: '已完成' }
]

export const REPORT_TYPE_OPTIONS = [
  { value: '1', label: '尽调报告' },
  { value: '2', label: '风险评估' },
  { value: '3', label: '投后跟踪' },
  { value: '4', label: '复核意见' }
]

export const REPORT_STATUS_OPTIONS = [
  { value: '0', label: '草稿' },
  { value: '1', label: '审核中' },
  { value: '2', label: '已发布' },
  { value: '3', label: '已归档' }
]

export const MATERIAL_TYPE_OPTIONS = [
  { value: '1', label: '基础资料' },
  { value: '2', label: '财务资料' },
  { value: '3', label: '法务资料' },
  { value: '4', label: '尽调附件' }
]

export const MATERIAL_STATUS_OPTIONS = [
  { value: '0', label: '待收集' },
  { value: '1', label: '补充中' },
  { value: '2', label: '已归档' }
]

export const TEMPLATE_TYPE_OPTIONS = [
  { value: '1', label: '尽调模板' },
  { value: '2', label: '评估模板' },
  { value: '3', label: '风控清单' },
  { value: '4', label: '标准函件' }
]

export const TEMPLATE_STATUS_OPTIONS = [
  { value: '0', label: '草稿' },
  { value: '1', label: '已发布' },
  { value: '2', label: '停用' }
]

export function findOptionLabel(options, value) {
  const match = options.find(item => item.value === `${value}`)
  return match ? match.label : '--'
}
