File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
src/components/SimpleProcessDesignerV2/src Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ const addNode = (type: number) => {
81
81
name: NODE_DEFAULT_NAME .get (NodeType .USER_TASK_NODE ) as string ,
82
82
showText: ' ' ,
83
83
type: NodeType .USER_TASK_NODE ,
84
- approveMethod: ApproveMethodType .RRANDOM_SELECT_ONE_APPROVE ,
84
+ approveMethod: ApproveMethodType .SEQUENTIAL_APPROVE ,
85
85
// 超时处理
86
86
rejectHandler: {
87
87
type: RejectHandlerType .FINISH_PROCESS
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export enum ApproveMethodType {
147
147
/**
148
148
* 随机挑选一人审批
149
149
*/
150
- RRANDOM_SELECT_ONE_APPROVE = 1 ,
150
+ RANDOM_SELECT_ONE_APPROVE = 1 ,
151
151
152
152
/**
153
153
* 多人会签(按通过比例)
@@ -421,10 +421,10 @@ export const APPROVE_TYPE: DictDataVO[] = [
421
421
]
422
422
423
423
export const APPROVE_METHODS : DictDataVO [ ] = [
424
- { label : '随机挑选一人审批 ' , value : ApproveMethodType . RRANDOM_SELECT_ONE_APPROVE } ,
425
- { label : '多人会签(按通过比例%) ' , value : ApproveMethodType . APPROVE_BY_RATIO } ,
426
- { label : '多人或签(一人通过或拒绝 )' , value : ApproveMethodType . ANY_APPROVE } ,
427
- { label : '依次审批(按顺序依次审批) ' , value : ApproveMethodType . SEQUENTIAL_APPROVE }
424
+ { label : '按顺序依次审批 ' , value : ApproveMethodType . SEQUENTIAL_APPROVE } ,
425
+ { label : '会签(可同时审批,至少 % 人必须审批通过) ' , value : ApproveMethodType . APPROVE_BY_RATIO } ,
426
+ { label : '或签(可同时审批,有一人通过即可 )' , value : ApproveMethodType . ANY_APPROVE } ,
427
+ { label : '随机挑选一人审批 ' , value : ApproveMethodType . RANDOM_SELECT_ONE_APPROVE }
428
428
]
429
429
430
430
export const CONDITION_CONFIG_TYPES : DictDataVO [ ] = [
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ export function useNodeForm(nodeType: NodeType) {
190
190
if ( nodeType === NodeType . USER_TASK_NODE ) {
191
191
configForm . value = {
192
192
candidateStrategy : CandidateStrategy . USER ,
193
- approveMethod : ApproveMethodType . RRANDOM_SELECT_ONE_APPROVE ,
193
+ approveMethod : ApproveMethodType . SEQUENTIAL_APPROVE ,
194
194
approveRatio : 100 ,
195
195
rejectHandlerType : RejectHandlerType . FINISH_PROCESS ,
196
196
assignStartUserHandlerType : AssignStartUserHandlerType . START_USER_AUDIT ,
Original file line number Diff line number Diff line change 188
188
:value =" item.value"
189
189
:label =" item.value"
190
190
:disabled ="
191
- item.value !== ApproveMethodType.RRANDOM_SELECT_ONE_APPROVE &&
191
+ item.value !== ApproveMethodType.RANDOM_SELECT_ONE_APPROVE &&
192
192
notAllowedMultiApprovers
193
193
"
194
194
>
@@ -547,7 +547,7 @@ const changeCandidateStrategy = () => {
547
547
configForm .value .postIds = []
548
548
configForm .value .userGroups = []
549
549
configForm .value .deptLevel = 1
550
- configForm .value .approveMethod = ApproveMethodType .RRANDOM_SELECT_ONE_APPROVE
550
+ configForm .value .approveMethod = ApproveMethodType .SEQUENTIAL_APPROVE
551
551
if (
552
552
configForm .value .candidateStrategy === CandidateStrategy .START_USER ||
553
553
configForm .value .candidateStrategy === CandidateStrategy .USER
@@ -564,7 +564,7 @@ const changedCandidateUsers = () => {
564
564
configForm .value .userIds ?.length <= 1 &&
565
565
configForm .value .candidateStrategy === CandidateStrategy .USER
566
566
) {
567
- configForm .value .approveMethod = ApproveMethodType .RRANDOM_SELECT_ONE_APPROVE
567
+ configForm .value .approveMethod = ApproveMethodType .RANDOM_SELECT_ONE_APPROVE
568
568
configForm .value .rejectHandlerType = RejectHandlerType .FINISH_PROCESS
569
569
notAllowedMultiApprovers .value = true
570
570
} else {
You can’t perform that action at this time.
0 commit comments