flow-components.js
5.79 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
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 'CUSTOMER_CREDIT_IN': // 客户资信(内贸)
componentPath = 'DomesticCustomerCreditViewer'; // 客户资信(内贸)-审批详情
break;
case 'CUSTOMER_CREDIT_IN_EDIT': // 客户资信(内贸)
componentPath = 'DomesticCustomerCreditViewer'; // 客户资信(内贸)-审批
break;
case 'CUSTOMER_CREDIT_OUT': // 客户资信(外贸)
componentPath = 'ForeignTradeCreditViewer'; // 客户资信(外贸)-审批详情
break;
case 'CUSTOMER_CREDIT_OUT_EDIT': // 客户资信(外贸)
componentPath = 'ForeignTradeCreditViewer'; // 客户资信(外贸)-审批
break;
case 'STANDARD_CONTRACT': // 标准合同
componentPath = 'StandardContractViewer'; // 标准合同-审批详情
break;
case 'DISTRIB_STD': // 经销标准合同
componentPath = 'RetailViewer'; // 经销标准合同-审批修改
break;
case 'INTL_STD_CONTRACT': // 外贸标准合同
componentPath = 'ForeignStdViewer'; // 外贸标准合同-审批修改
break;
case 'DIST_STOCK_CONTRACT': // 经销库存合同
componentPath = 'StockViewer'; // 经销库存合同-审批修改
break;
case 'INTL_INVENTORY_AGMT': // 外贸库存合同
componentPath = 'ForeignStockViewer'; // 外贸库存合同-审批修改
break;
case 'INTL_OPEN_SPEC_AGMT': // 外贸未锁规合同
componentPath = 'ForeignDraftDistAgmtViewer'; // 外贸未锁规合同-审批修改
break;
case 'DRAFT_DIST_AGMT': // 经销未锁规合同
componentPath = 'DraftDistAgmtViewer'; // 经销未锁规合同-审批修改
break;
case 'AGMT_VIEW': // 加工标准合同
componentPath = 'AgmtViewer'; // 加工标准合同-审批详情
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'; // 延期发货单-审批
case 'CONFIRMATION_SLIP': // 产品试样确认单
componentPath = 'ConfirmationFormViewer'; // 产品试样确认单-审批详情
break;
case 'CONFIRMATION_SLIP_EDIT': // 产品试样确认单
componentPath = 'ConfirmationFormApprove'; // 产品试样确认单-审批
break;
case 'RESULT_TRACKING': // 产品试样跟踪单
componentPath = 'FollowUpFormViewer'; // 产品试样跟踪单-审批详情
break;
case 'RESULT_TRACKING_EDIT': // 产品试样跟踪单
componentPath = 'FollowUpFormViewer'; // 产品试样跟踪单-审批
break;
}
return componentPath;
};