提交 acb30103 编写于 作者: S st

【考勤管理】修复申诉打开bug

上级 de82bf0b
...@@ -776,14 +776,17 @@ MWF.xApplication.Attendance.MyDetail.Document = new Class({ ...@@ -776,14 +776,17 @@ MWF.xApplication.Attendance.MyDetail.Document = new Class({
}.bind(this)}); }.bind(this)});
}, },
seeAppeal : function(){ seeAppeal : function(){
if(!this.data.appealInfos){
var form = new MWF.xApplication.Attendance.MyDetail.Appeal( this.explorer, this.data ); if(this.data.appealInfos[0].appealAuditInfo){
form.open(); if(this.data.appealInfos[0].appealAuditInfo.workId){
}else{
var workid = this.data.appealInfos[0].appealAuditInfo.workId; var workid = this.data.appealInfos[0].appealAuditInfo.workId;
var options = {"workId":workid, "appId": "process.Work"+workid}; var options = {"workId":workid, "appId": "process.Work"+workid};
this.app.desktop.openApplication(null, "process.Work", options); this.app.desktop.openApplication(null, "process.Work", options);
return;
}
} }
var form = new MWF.xApplication.Attendance.MyDetail.Appeal( this.explorer, this.data );
form.open();
} }
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册