flow-components.js 3.59 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 = 'CustomerCreditViewer'; // 客户资信-审批
      break;
    case 'STANDARD_CONTRACT': // 标准合同
      componentPath = 'StandardContractViewer'; // 标准合同-审批详情
      break;
    case 'STANDARD_CONTRACT_EDIT': // 标准合同
      componentPath = 'StandardContractViewer'; // 标准合同-审批
      break;
    case 'FORMAL_CONTRACT': // 正式合同
      componentPath = 'FormalContractViewer'; // 正式合同-审批详情
      break;
    case 'FORMAL_CONTRACT_EDIT': // 正式合同
      componentPath = 'FormalContractViewer'; // 正式合同-审批
      break;
    case 'PROCESS_STD_AGMT': // 处理标准合同
      componentPath = 'ProcessStdAgmtViewer'; // 处理标准合同-审批
      break;
    case 'PROCESS_STD_AGMT_EDIT': // 处理标准合同
      componentPath = 'ProcessStdAgmtViewer'; // 处理标准合同-审批
      break;
    case 'SPEC_LOCK_DELAY': // 特殊锁单延迟
      componentPath = 'SpecLockDelayViewer'; // 特殊锁单延迟-审批详情
      break;
    case 'SPEC_LOCK_DELAY_EDIT': // 特殊锁单延迟
      componentPath = 'SpecLockDelayViewer'; // 特殊锁单延迟-审批
      break;
    case 'PURCHASE_ORDER_EDIT': // 订货单
      componentPath = 'OrderListApprove'; // 订货单-审批
      break;
    case 'PURCHASE_ORDER': // 订货单
      componentPath = 'OrderListViewer'; // 订货单-审批详情
      break;
    case 'SPEC_CHANGE_SUBMIT': // 规格变更单提交
      componentPath = 'ChangeListViewer'; // 规格变更单-审批详情
      break;
    case 'SPEC_CHANGE_CONFIRM': // 规格变更单确认
      componentPath = 'ChangeListViewer'; // 规格变更单-审批详情
      break;
    case 'SPEC_CHANGE_SUBMIT_EDIT': // 规格变更单提交
      componentPath = 'ChangeListViewer'; // 规格变更单-审批
      break;
    case 'SPEC_CHANGE_CONFIRM_EDIT': // 规格变更单确认
      componentPath = 'ChangeListViewer'; // 规格变更单-审批
      break;
    case 'ORDER_CANCELLATION': // 订单撤销
      componentPath = 'RevokeListViewer'; // 订单撤销-审批详情
      break;
    case 'ORDER_CANCELLATION_EDIT': // 订单撤销
      componentPath = 'RevokeListViewer'; // 订单撤销-审批
      break;
    case 'RESTOCK_APPROVAL': // 补货单
      componentPath = 'RestockApprovalViewer'; // 补货单-审批详情
      break;
    case 'RESTOCK_APPROVAL_EDIT': // 补货单
      componentPath = 'RestockApprovalApprove'; // 补货单-审批
      break;
    case 'DRAFT_REQUEST_CAR': // 草稿要车单
      componentPath = 'DraftOrderViewer'; // 草稿要车单-审批详情
      break;
    case 'DRAFT_REQUEST_CAR_EDIT': // 草稿要车单
      componentPath = 'DraftOrderViewer'; // 草稿要车单-审批
      break;
    case 'DELAYED_SHIPMENT': // 延期发货单
      componentPath = 'DelayedShipmentViewer'; // 延期发货单-审批详情
      break;
    case 'DELAYED_SHIPMENT_EDIT': // 延期发货单
      componentPath = 'DelayedShipmentViewer'; // 延期发货单-审批
      break;
  }
  return componentPath;
};