!700 fix: 修复流程预测功能

Merge pull request !700 from SamllNorth_Lee/fix/bpm
This commit is contained in:
芋道源码
2025-02-19 05:15:38 +00:00
committed by Gitee
6 changed files with 58 additions and 15 deletions

View File

@ -703,6 +703,12 @@ const handleAudit = async (pass: boolean, formRef: FormInstance | undefined) =>
// 校验表单
if (!formRef) return
await formRef.validate()
//校验流程表单必填字段
const valid = await validateNormalForm()
if (!valid) {
message.warning('表单校验不通过,请先完善表单!!')
return
}
if (pass) {
// 获取修改的流程变量, 暂时只支持流程表单
const variables = getUpdatedProcessInstanceVariables()