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

pull/368/head
jason 2026-06-20 13:45:19 +08:00
parent 8f9bd94f58
commit e2185793c3
3 changed files with 9 additions and 6 deletions

View File

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

View File

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

View File

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