File tree 3 files changed +29
-1
lines changed
3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -457,3 +457,9 @@ export const BpmProcessInstanceStatus = {
457
457
REJECT : 3 , // 审批不通过
458
458
CANCEL : 4 // 已取消
459
459
}
460
+
461
+ export const BpmAutoApproveType = {
462
+ NONE : 1 , // 不自动通过
463
+ APPROVE_ALL : 2 , // 仅审批一次,后续重复的审批节点均自动通过
464
+ APPROVE_SEQUENT : 3 , // 仅针对连续审批的节点自动通过
465
+ }
Original file line number Diff line number Diff line change 58
58
</div >
59
59
</div >
60
60
</el-form-item >
61
+ <el-form-item class =" mb-20px" >
62
+ <template #label >
63
+ <el-text size =" large" tag =" b" >自动去重</el-text >
64
+ </template >
65
+ <div class =" flex flex-col" >
66
+ <div >
67
+ <el-text > 同一审批人在流程中重复出现时: </el-text >
68
+ </div >
69
+ <el-radio-group v-model =" modelData.autoApprovalType" >
70
+ <div class =" flex flex-col" >
71
+ <el-radio :value =" 1" >不自动通过</el-radio >
72
+ <el-radio :value =" 2" >仅审批一次,后续重复的审批节点均自动通过</el-radio >
73
+ <el-radio :value =" 3" >仅针对连续审批的节点自动通过</el-radio >
74
+ </div >
75
+ </el-radio-group >
76
+ </div >
77
+ </el-form-item >
61
78
</el-form >
62
79
</template >
63
80
64
81
<script setup lang="ts">
65
82
import dayjs from ' dayjs'
83
+ import { BpmAutoApproveType } from ' @/utils/constants'
66
84
67
85
const modelData = defineModel <any >()
68
86
@@ -130,6 +148,9 @@ const initData = () => {
130
148
length: 5
131
149
}
132
150
}
151
+ if (! modelData .value .autoApprovalType ) {
152
+ modelData .value .autoApprovalType = BpmAutoApproveType .NONE
153
+ }
133
154
}
134
155
defineExpose ({ initData })
135
156
</script >
Original file line number Diff line number Diff line change @@ -153,7 +153,8 @@ const formData: any = ref({
153
153
infix: ' ' ,
154
154
postfix: ' ' ,
155
155
length: 5
156
- }
156
+ },
157
+ autoApprovalType: 1
157
158
})
158
159
159
160
// 流程数据
You can’t perform that action at this time.
0 commit comments