/**
 * 流程字典， 流程代号：流程id-对应表单中的formId
 */
export enum SCHEDULE {
  FILE_APPROVAL = 'jlglwjsp', // 文件审批,
  TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批
  SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批
  STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请
  STANDARD_PAUSE_APPROVAL = 'sbglbzzzztsq', // 标准装置暂停申请
  STANDARD_REVERT_APPROVAL = 'sbglbzzzcxsq', // 标准装置撤销申请
  STANDARD_RESUME_APPROVAL = 'sbglbzzzhfsq', // 标准装置恢复申请
  STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请
  DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请
  DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请
  DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请
  DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请
  DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请
  DEVICE_CONSUMING_APPROVAL = 'clsblysp', // 设备领用申请
  DEVICE_BORROW_APPROVAL = 'clsbjysp', // 设备借用申请
  DEVICE_FIX_APPROVAL = 'sbglsbjxsq', // 设备检修申请
  DEVICE_FIX_ACCEPTANCE = 'sbglsbjxbyysd', // 设备检修保养验收单
  BUSINESS_CERT_PRINT = 'ywglzsdy', // 证书打印
  BUSINESS_REPORT_ON_CREDENTIALS = 'ywglzsbg', // 证书报告
  BUSINESS_SUBPACKAGE_APPLY = 'ywglfbxmsq', // 分包项目申请
  BUSINESS_SUBPACKAGE_CHECK = 'ywglfbxmys', // 分包项目验收
  BUSINESS_SUBPACKAGE_RECORD = 'ywglfbfda', // 分包方档案
  BUSINESS_SUBPACKAGE_APPROVE = 'ywglfbfzg', // 分包方资格资格审批
  BUSINESS_SUBPACKAGE_MANAGE = 'ywglfbzsgl', // 分包方证书管理
  BUSINESS_FIELDTEST_APPROVE = 'ywglxcjc', // 现场检测审批
  BUSINESS_FINANCE_CONTRACT_APPROVE = 'cwczht', // 合同审批
}

/**
 * 字典，申请流程对应的页面url地址  一个formId对应一个url
 */
export const formUrl: { [key: string]: string } = {
  [SCHEDULE.FILE_APPROVAL]: '/file/approve', // 文件审批,
  [SCHEDULE.TRAIN_APPROVAL]: '/train/trainPlanApprove', // 培训计划审批,
  [SCHEDULE.SUPPLIER_APPROVAL]: '/source/approve', // 溯源供方审批,
  [SCHEDULE.STANDARD_CHANGE_APPROVAL]: '/standard/changeApply', // 标准装置更换申请,
  [SCHEDULE.STANDARD_PAUSE_APPROVAL]: '/standard/pauseApply', // 标准装置暂停申请,
  [SCHEDULE.STANDARD_REVERT_APPROVAL]: '/standard/cancelApply', // 标准装置撤销申请,
  [SCHEDULE.STANDARD_RESUME_APPROVAL]: '/standard/resumeApply', // 标准装置恢复申请,
  [SCHEDULE.STANDARD_CHECK_APPROVAL]: '/standard/checkApply', // 标准装置复查申请,
  [SCHEDULE.DEVICE_UNUSED_APPROVAL]: '/stateManage/unusedApply', // 设备闲置申请,
  [SCHEDULE.DEVICE_SEALED_APPROVAL]: '/stateManage/sealupApply', // 设备封存申请,
  [SCHEDULE.DEVICE_UNSEALED_APPROVAL]: '/stateManage/openApply', // 设备启封申请,
  [SCHEDULE.DEVICE_SCRAPPED_ROVAL]: '/stateManage/scrapApply', // 设备报废申请,
  [SCHEDULE.DEVICE_HANDLE_APPROVAL]: '/stateManage/handleApply', // 设备处置申请,
  [SCHEDULE.DEVICE_CONSUMING_APPROVAL]: '/receive/applyList', // 设备领用申请,
  [SCHEDULE.DEVICE_BORROW_APPROVAL]: '/borrow/borrowapply', // 设备借用申请,
  [SCHEDULE.DEVICE_FIX_APPROVAL]: '/maintenance/maintenanceList', // 设备检修申请,
  [SCHEDULE.DEVICE_FIX_ACCEPTANCE]: '/maintenance/maintenanceCheckList', // 设备检修保养验收单,
  [SCHEDULE.BUSINESS_CERT_PRINT]: '/schedule/certPrintList', // 证书打印,
  [SCHEDULE.BUSINESS_REPORT_ON_CREDENTIALS]: '/lab/measureDataList', // 证书报告,
  [SCHEDULE.BUSINESS_SUBPACKAGE_APPLY]: '/subpackage/itemApply', // 分包项目申请,
  [SCHEDULE.BUSINESS_SUBPACKAGE_CHECK]: '/subpackage/itemCheck', // 分包项目验收,
  [SCHEDULE.BUSINESS_SUBPACKAGE_RECORD]: '/subpackage/archives', // 分包方档案,
  [SCHEDULE.BUSINESS_SUBPACKAGE_APPROVE]: '/subpackage/qualificationApprove', // 分包方资格资格审批,
  [SCHEDULE.BUSINESS_SUBPACKAGE_MANAGE]: '/subpackage/certificate', // 分包方证书管理,
  [SCHEDULE.BUSINESS_FIELDTEST_APPROVE]: '/fieldTest/approve', // 现场检测审批,
  [SCHEDULE.BUSINESS_FINANCE_CONTRACT_APPROVE]: '/contractManagement/list', // 合同审批,
}

