flow-components.js 1.76 KB
export const getSysFlowComponentPath = (bizFlag) => {
  console.log('bizFlag', bizFlag)
  let componentPath = '';
  switch (bizFlag) {
    case 'CUSTOMER_DEVELOP': // 客户开发
      componentPath = 'CustomerDevelopViewer'; // 客户开发-审批详情
      break;
    case 'CUSTOMER_DEVELOP_EDIT': // 客户开发
      componentPath = 'CustomerDevelopViewer'; // 客户开发-审批
      break;
    case 'CUSTOMER_CREDIT': // 客户资信
      componentPath = 'CustomerCreditViewer'; // 客户资信-审批详情
      break;
    case 'CUSTOMER_CREDIT_EDIT': // 客户资信
      componentPath = 'CustomerCreditApprove'; // 客户资信-审批
      break;
    case 'STANDARD_CONTRACT': // 标准合同
      componentPath = 'StandardContractViewer'; // 标准合同-审批详情
      break;
    case 'STANDARD_CONTRACT_EDIT': // 标准合同
      componentPath = 'StandardContractApprove'; // 标准合同-审批
      break;
    case 'FORMAL_CONTRACT': // 正式合同
      componentPath = 'FormalContractViewer'; // 正式合同-审批详情
      break;
    case 'FORMAL_CONTRACT_EDIT': // 正式合同
      componentPath = 'FormalContractApprove'; // 正式合同-审批
      break;
    case 'PROCESS_STD_AGMT': // 处理标准合同
      componentPath = 'ProcessStdAgmtViewer'; // 处理标准合同-审批
      break;
    case 'PROCESS_STD_AGMT_EDIT': // 处理标准合同
      componentPath = 'ProcessStdAgmtApprove'; // 处理标准合同-审批
      break;
    case 'SPEC_LOCK_DELAY': // 特殊锁单延迟
      componentPath = 'SpecLockDelayViewer'; // 特殊锁单延迟-审批详情
      break;
    case 'SPEC_LOCK_DELAY_EDIT': // 特殊锁单延迟
      componentPath = 'SpecLockDelayApprove'; // 特殊锁单延迟-审批
      break;
  }
  return componentPath;
};