flow-components.js
2.8 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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;
}
return componentPath;
};