将脚本,放在提交的执行后脚本
- //1、判断提交还是回退
- var t =doc.getLastFlowOperation();//t=80表示提交;t=81表示回退。
- //如果回退,将自动填写的字段清空;
- var type1=getParameter("_flowType");
- var doc=getCurrentDocument();
- var process=getDocumentProcess();
- if(type1=="81"){
- doc.findItem("managr").setValue("");
- doc.findItem("sign_date").setValue("");
- process.doUpdate(doc);
- }
复制代码
确认没有问题,请回复帖子,说明问题已解决,我们需要作为结贴依据,谢谢! |