export const COLOR_DATA_LIST = [
  '#E49357',
  '#FFFF00',
  '#00FF00',
  '#00FFFF',
  '#0000FF',
  '#FF00FF',
  '#D0DF9F',
  '#B4D39E',
  '#DD6F4C',
  '#64C3A4',
  '#FFF376',
  '#BAD174',
  '#42B5E9',
  '#6848FF',
  '#A3639D',
  '#DB71A1',
  '#DC7079',
  '#E79B2F',
  '#9BC144',
  '#FF0004',
  '#00954D',
  '#009FE2',
  '#9CE8E8',
  '#0C74E4',
  '#86227F',
  '#5CC8C8',
  '#B05959',
  '#B6AA37'
];

// 上传类型
export const UPLOAD_TYPE_MAP = {
  COMMON: 'COMMON',
  COMMONV2: 'COMMONV2',
  BASE: 'BASE',
  BLOCK: 'BLOCK',
  CROP: 'CROP',
  SUPPLIER_CRE: 'SUPPLIER_CRE',
  FARMING_RECORD: 'FARMING_RECORD',
  FARMING_TASK: 'FARMING_TASK',
  SYINFO_AVATAR: 'SYINFO_AVATAR',
  SYINFO_QUALITY: 'SYINFO_QUALITY',
  SYINFO_PERIOD: 'SYINFO_PERIOD',
  SYINFO_FIGURE: 'SYINFO_FIGURE',
  PACKAGE: 'PACKAGE',
  QUALITYCHECK: 'QUALITYCHECK'
};

// 上传API
export const UPDALOD_API_MAP = {
  [UPLOAD_TYPE_MAP['COMMON']]: '/common/upload', // 通用上传
  [UPLOAD_TYPE_MAP['COMMONV2']]: '/common/v2/upload', // 通用上传请求（单个)
  // UploadParam{"resMediatype": "IMG",  文件类型：IMG，VIDEO，FILE
  // "resBiztype": "POLICY"， 文件路径前缀}

  // resMediatype: IMG，VIDEO，FILE
  // resBiztype：
  // CROP 作物
  // LAND 基地
  // BLOCK 地块
  // TASKRCD 任务记录
  // SUPPLY 供应商
  // SYSLINK 子系统
  // AVATAR 头像
  // SYSTHEME 系统主题
  // TUTORIAL 教程图片
  // TUTORIAL 教程视频
  // POLICY 农事决策
  [UPLOAD_TYPE_MAP['BASE']]: '/fms/land/preview/upload', // 基地上传
  [UPLOAD_TYPE_MAP['BLOCK']]: '/fms/block/preview/upload', // 地块上传
  [UPLOAD_TYPE_MAP['CROP']]: '/fms/crop/preview/upload', // 作物上传
  [UPLOAD_TYPE_MAP['SUPPLIER_CRE']]: '/wms/supplier/upload', // 供应商资质
  [UPLOAD_TYPE_MAP['FARMING_RECORD']]: '/fms/task/preview/upload', // 农事记录
  [UPLOAD_TYPE_MAP['FARMING_TASK']]: '/fms/task/uploadCropPreview', // 农事任务
  [UPLOAD_TYPE_MAP['SYINFO_AVATAR']]: '/tss/sourceinfo/avatar/upload', // 溯源-溯源信息 头像上传 avatar
  [UPLOAD_TYPE_MAP['SYINFO_QUALITY']]: '/tss/sourceinfo/quality/upload', // 溯源-溯源信息 体检报告 quality
  [UPLOAD_TYPE_MAP['SYINFO_PERIOD']]: '/tss/sourceinfo/period/upload', // 溯源-溯源信息 生长过程 figure
  [UPLOAD_TYPE_MAP['SYINFO_FIGURE']]: '/tss/sourceinfo/figure/upload', // 溯源-溯源信息 形象 figure
  [UPLOAD_TYPE_MAP['PACKAGE']]: '/wms/finishgoods/period/upload', // 包装-包装过程图片
  [UPLOAD_TYPE_MAP['QUALITYCHECK']]: '/mpp/qualitycheck/upload' // 质检图片上传
};

// 农事审核类型
export const FARMING_REVIEW_TYPE = {
  FARMING_TASK: 'FARMING_TASK',
  FARMING_PICK: 'FARMING_PICK',
  FARMING_PATROL: 'FARMING_PATROL'
};

// 农事任务类型
export const FARMING_TASK_TYPE = {
  FARMING_TASK: 'FARMING_TASK',
  FARMING_PICK: 'FARMING_PICK',
  FARMING_PATROL: 'FARMING_PATROL',
  FARMING_WARN: 'FARMING_WARN'
};

export const FARMING_TASK_TYPE_VALUE = {
  [FARMING_TASK_TYPE['FARMING_PICK']]: -1,
  [FARMING_TASK_TYPE['FARMING_PATROL']]: -2
};

export const ENMU_BLOB_TYPE = {
  DOC: 'doc',
  DOCX: 'docx',
  GIF: 'gif',
  PNG: 'png',
  SVG: 'svg',
  HTM: 'htm',
  HTML: 'html',
  JSON: 'json',
  PDF: 'pdf',
  PPT: 'ppt',
  PPTX: 'pptx',
  RAR: 'rar',
  TXT: 'txt',
  XLS: 'xls',
  XLSX: 'xlsx',
  ZIP: 'zip'
};

export const BLOB_TYPE = {
  doc: 'application/msword',
  docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
  gif: 'image/gif',
  png: 'image/png',
  svg: 'image/svg+xml',
  htm: 'text/html',
  html: 'text/html',
  json: 'application/json',
  pdf: 'application/pdf',
  ppt: 'application/vnd.ms-powerpoint',
  pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
  rar: 'application/x-rar-compressed',
  txt: 'text/plain',
  xls: 'application/vnd.ms-excel',
  xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
  zip: 'application/zip'
};
