flow-components.js
1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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;
};