提交 3ad0320f 编写于 作者: Skyeye云's avatar Skyeye云

离职申请完成

上级 cfb81c35
...@@ -121,12 +121,12 @@ layui.config({ ...@@ -121,12 +121,12 @@ layui.config({
} }
layer.confirm('确定撤销该流程吗?', { icon: 3, title: '撤销操作' }, function (index) { layer.confirm('确定撤销该流程吗?', { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + data.revokeMapping, params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + data.revokeMapping, params:{processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){ if (json.returnCode == 0) {
winui.window.msg("撤销成功", {icon: 1,time: 2000}); winui.window.msg("撤销成功", {icon: 1, time: 2000});
reloadMyStartTable(); reloadMyStartTable();
}else{ } else {
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}); });
......
...@@ -24,6 +24,13 @@ layui.config({ ...@@ -24,6 +24,13 @@ layui.config({
tools: ['count', 'copy', 'reset'] tools: ['count', 'copy', 'reset']
}); });
if(!systemCommonUtil.judgeCurrentUserQuit()) {
winui.window.msg('您已提交离职申请,无法重复提交', {icon: 5, time: 2000}, function(){
parent.layer.close(index);
parent.refreshCode = '-9999';
});
}
// 获取当前登录员工信息 // 获取当前登录员工信息
systemCommonUtil.getSysCurrentLoginUserMation(function (data) { systemCommonUtil.getSysCurrentLoginUserMation(function (data) {
$("#applyUser").html(data.bean.jobNumber + '_' + data.bean.userName); $("#applyUser").html(data.bean.jobNumber + '_' + data.bean.userName);
......
...@@ -43,6 +43,21 @@ var systemCommonUtil = { ...@@ -43,6 +43,21 @@ var systemCommonUtil = {
return result; return result;
}, },
/**
* 判断当前登录用户是否可以申请离职
*/
judgeCurrentUserQuit: function () {
var result = false;
AjaxPostUtil.request({url: flowableBasePath + "judgeCurrentUserQuit", params: {}, type: 'json', method: "GET", callback: function(json) {
if(json.returnCode == 0) {
result = json.bean.canApply;
} else {
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}, async: false});
return result;
},
/** /**
* 获取当前登录用户所属企业的所有部门信息 * 获取当前登录用户所属企业的所有部门信息
* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册