Skip to content

Commit 0f58e96

Browse files
committed
feat: BPM-更多设置-自动去重
1 parent 187fa08 commit 0f58e96

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

src/utils/constants.ts

+6
Original file line numberDiff line numberDiff 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+
}

src/views/bpm/model/form/ExtraSettings.vue

+21
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,29 @@
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">
6582
import dayjs from 'dayjs'
83+
import { BpmAutoApproveType } from '@/utils/constants'
6684
6785
const 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
}
134155
defineExpose({ initData })
135156
</script>

src/views/bpm/model/form/index.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ const formData: any = ref({
153153
infix: '',
154154
postfix: '',
155155
length: 5
156-
}
156+
},
157+
autoApprovalType: 1
157158
})
158159
159160
//流程数据

0 commit comments

Comments
 (0)