在提交的执行后脚本中
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);
process.doUpdate(doc);
在表单的动作提交后添加相应脚本
var type1=getParameter("_attitude");
var doc=getCurrentDocument();
var process=getDocumentProcess();
doc.findItem("主管意见").setValue(type1);
process.doUpdate(doc);