本帖最后由 karrman 于 2015-3-24 17:54 编辑
在提交动作前加入如下代码,无法提交成功
if("审核".equals(statelabel) || "审批".equals(statelabel)){
//setApproveOpinion("Approve_Opinion","Approve_Opinion_Text");
var signature = " " + getWebUser().getName() + " " + getCurDate("yyyy-MM-dd") +"; ";
var process = getDocProcess(getApplication());
var doc =getCurrentDocument();
doc.findItem("Approve_Opinion").setValue(doc.findItem("Approve_Opinion").getValue() + getItemValueAsString("Approve_Opinion_Text") + signature);
doc.findItem("Approve_Opinion_Text").setValue("");
process.doUpdate(doc);
}
提示错误如下:
Uncaught TypeError: Cannot set property 'value' of undefined document.js:1463
|