feat: BPM-更多设置-自动去重

This commit is contained in:
Lesan 2025-01-21 08:25:09 +08:00
parent 187fa08524
commit 0f58e968b1
3 changed files with 29 additions and 1 deletions

View File

@ -457,3 +457,9 @@ export const BpmProcessInstanceStatus = {
REJECT: 3, // 审批不通过 REJECT: 3, // 审批不通过
CANCEL: 4 // 已取消 CANCEL: 4 // 已取消
} }
export const BpmAutoApproveType = {
NONE: 1, // 不自动通过
APPROVE_ALL: 2, // 仅审批一次,后续重复的审批节点均自动通过
APPROVE_SEQUENT: 3, // 仅针对连续审批的节点自动通过
}

View File

@ -58,11 +58,29 @@
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item class="mb-20px">
<template #label>
<el-text size="large" tag="b">自动去重</el-text>
</template>
<div class="flex flex-col">
<div>
<el-text> 同一审批人在流程中重复出现时 </el-text>
</div>
<el-radio-group v-model="modelData.autoApprovalType">
<div class="flex flex-col">
<el-radio :value="1">不自动通过</el-radio>
<el-radio :value="2">仅审批一次后续重复的审批节点均自动通过</el-radio>
<el-radio :value="3">仅针对连续审批的节点自动通过</el-radio>
</div>
</el-radio-group>
</div>
</el-form-item>
</el-form> </el-form>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { BpmAutoApproveType } from '@/utils/constants'
const modelData = defineModel<any>() const modelData = defineModel<any>()
@ -130,6 +148,9 @@ const initData = () => {
length: 5 length: 5
} }
} }
if (!modelData.value.autoApprovalType) {
modelData.value.autoApprovalType = BpmAutoApproveType.NONE
}
} }
defineExpose({ initData }) defineExpose({ initData })
</script> </script>

View File

@ -153,7 +153,8 @@ const formData: any = ref({
infix: '', infix: '',
postfix: '', postfix: '',
length: 5 length: 5
} },
autoApprovalType: 1
}) })
// //