Skip to content

Commit

Permalink
某公文,同一用户有2个待办(均为传阅),处理完 1条传阅后、另1传阅的待办点不进去了
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhaolin committed Mar 22, 2024
1 parent d2fe6c9 commit 63d67e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/workflow/engine/methods/trace_approve_cc.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ module.exports = {

var myTrace;

var is_finished; // 传阅正真结束的标记

for (let tidx = 0; tidx < traces.length; tidx++) {
const t = traces[tidx];
if (t.approves) {
Expand Down Expand Up @@ -236,13 +238,14 @@ module.exports = {
})
// 更新
update_instance_tasks(ins_id, a.trace, a._id, approveDoc)
is_finished = true;
}
}
}

}

if (myApprove) {
if (myApprove && is_finished) {

setObj.modified = new Date();
setObj.modified_by = this.userId;
Expand Down

0 comments on commit 63d67e4

Please sign in to comment.