mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 16:32:43 +08:00
feat: BPM-更多设置-自动去重
This commit is contained in:
parent
187fa08524
commit
0f58e968b1
@ -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, // 仅针对连续审批的节点自动通过
|
||||||
|
}
|
||||||
|
@ -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>
|
||||||
|
@ -153,7 +153,8 @@ const formData: any = ref({
|
|||||||
infix: '',
|
infix: '',
|
||||||
postfix: '',
|
postfix: '',
|
||||||
length: 5
|
length: 5
|
||||||
}
|
},
|
||||||
|
autoApprovalType: 1
|
||||||
})
|
})
|
||||||
|
|
||||||
//流程数据
|
//流程数据
|
||||||
|
Loading…
x
Reference in New Issue
Block a user