fix: [bpm] 并行分支后的审批人自选问题修复,https://t.zsxq.com/daxv1

master-bpm-bug-fix
jason 2026-06-20 22:22:16 +08:00
parent e55613edc6
commit 026f7e9b10
1 changed files with 3 additions and 2 deletions

View File

@ -816,7 +816,8 @@ const initNextAssigneesFormField = async () => {
isEmpty(node.candidateUsers) && isEmpty(node.candidateUsers) &&
CandidateStrategy.START_USER_SELECT === node.candidateStrategy) || CandidateStrategy.START_USER_SELECT === node.candidateStrategy) ||
// //
CandidateStrategy.APPROVE_USER_SELECT === node.candidateStrategy (isEmpty(node.candidateUsers) &&
CandidateStrategy.APPROVE_USER_SELECT === node.candidateStrategy)
) { ) {
nextAssigneesActivityNode.value.push(node) nextAssigneesActivityNode.value.push(node)
} }
@ -849,7 +850,7 @@ const validateNextAssignees = () => {
} }
// //
for (const item of nextAssigneesActivityNode.value) { for (const item of nextAssigneesActivityNode.value) {
if (isEmpty(approveReasonForm.nextAssignees[item.id])) { if (isEmpty(item.candidateUsers) && isEmpty(approveReasonForm.nextAssignees[item.id])) {
message.warning('下一个节点的审批人不能为空!') message.warning('下一个节点的审批人不能为空!')
return false return false
} }