Skip to content

Commit

Permalink
如果填写了意见,则显示最新意见,原来的意见不显示。无需考虑用户是否手动开启过意见 ;不想显示任何意见:打开签批意见,手动关闭目前显示中的意见
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhaolin committed Apr 2, 2024
1 parent 7cedf63 commit fdd2665
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/workflow/engine/methods/instance_approve.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ module.exports = {
// upObj[`traces.$.approves.${idx}.modified_by`] = session_userId;
// return upObj[`traces.$.approves.${idx}.read_date`] = new Date();
approveDoc[`description`] = description;
approveDoc[`sign_show`] = trimDescription || showBlankApproveDescription ? true : false;
if (trimDescription || showBlankApproveDescription) {
approveDoc[`sign_show`] = true;
}
approveDoc[`modified`] = new Date();
approveDoc[`modified_by`] = session_userId;
approveDoc[`read_date`] = new Date();
Expand Down

0 comments on commit fdd2665

Please sign in to comment.