/*****************
var authorname = getWebUser().getName();
var starttime = getCurDate("yyyy-MM-dd HH:mm:ss");
var doc = getCurrentDocument();
var author =doc.getAuthor().getName();
var rtn="";
rtn=authorname+"于"+ starttime + "向您提交了《"+author+"的订货申请单》,请办理!";
rtn;
********************/
报错为 TypeError cannot call method "getName" of null