天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

 找回密码
 注册成为天翎用户
查看: 3356|回复: 0

[流程] 提交流程时获取审批意见显示在表单

[复制链接]
myApps 发表于 2016-7-6 21:23:53 | 显示全部楼层 |阅读模式
Q:如何在流程提交时将审批意见显示在表单中?
意见.png
A:在表单操作流程提交动作执行前放如下脚本,就可以在表单中显示审批意见了
var type1=getParameter("_attitude");
var doc=getCurrentDocument();
var process=getDocumentProcess();
var statelabel=doc.getStateLabel();
if("总经理审批".equals(statelabel)&&type1!=""&&type1!=null){
      doc.findItem("attitude").setValue(type1);//attitude为表单字段
           process.doUpdate(doc);

}

本版积分规则

QQ|手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-12 03:52

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表