File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed
Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -457,3 +457,9 @@ export const BpmProcessInstanceStatus = {
457457 REJECT : 3 , // 审批不通过
458458 CANCEL : 4 // 已取消
459459}
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 5858 </div >
5959 </div >
6060 </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 >
6178 </el-form >
6279</template >
6380
6481<script setup lang="ts">
6582import dayjs from ' dayjs'
83+ import { BpmAutoApproveType } from ' @/utils/constants'
6684
6785const modelData = defineModel <any >()
6886
@@ -130,6 +148,9 @@ const initData = () => {
130148 length: 5
131149 }
132150 }
151+ if (! modelData .value .autoApprovalType ) {
152+ modelData .value .autoApprovalType = BpmAutoApproveType .NONE
153+ }
133154}
134155defineExpose ({ initData })
135156 </script >
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ import * as FormApi from '@/api/bpm/form'
8686import { CategoryApi , CategoryVO } from ' @/api/bpm/category'
8787import * as UserApi from ' @/api/system/user'
8888import { useUserStoreWithOut } from ' @/store/modules/user'
89- import { BpmModelFormType , BpmModelType } from ' @/utils/constants'
89+ import { BpmModelFormType , BpmModelType , BpmAutoApproveType } from ' @/utils/constants'
9090import BasicInfo from ' ./BasicInfo.vue'
9191import FormDesign from ' ./FormDesign.vue'
9292import ProcessDesign from ' ./ProcessDesign.vue'
@@ -153,7 +153,8 @@ const formData: any = ref({
153153 infix: ' ' ,
154154 postfix: ' ' ,
155155 length: 5
156- }
156+ },
157+ autoApprovalType: BpmAutoApproveType .NONE
157158})
158159
159160// 流程数据
You can’t perform that action at this time.
0 commit comments