提交 744d2384 编写于 作者: Skyeye云's avatar Skyeye云

转正申请新加个人状态限制

上级 1d777538
...@@ -20,6 +20,22 @@ layui.config({ ...@@ -20,6 +20,22 @@ layui.config({
tools: ['count', 'copy', 'reset'] tools: ['count', 'copy', 'reset']
}); });
if(!systemCommonUtil.judgeCurrentUserRegularWorker()) {
winui.window.msg('您已提交转正申请,无法重复提交', {icon: 5, time: 2000}, function(){
parent.layer.close(index);
parent.refreshCode = '-9999';
});
}
// 获取当前登录员工信息
systemCommonUtil.getSysCurrentLoginUserMation(function (data) {
$("#regularWorkerId").html(data.bean.jobNumber + '_' + data.bean.userName);
$("#departmentId").attr("departmentId", data.bean.departmentId);
$("#departmentId").html(data.bean.departmentName);
$("#jobId").attr("jobId", data.bean.jobId);
$("#jobId").html(data.bean.jobName);
});
skyeyeEnclosure.init('enclosureUpload'); skyeyeEnclosure.init('enclosureUpload');
matchingLanguage(); matchingLanguage();
// 保存为草稿 // 保存为草稿
......
...@@ -28,6 +28,21 @@ var systemCommonUtil = { ...@@ -28,6 +28,21 @@ var systemCommonUtil = {
}, async: false}); }, async: false});
}, },
/**
* 判断当前登录用户是否可以申请转正
*/
judgeCurrentUserRegularWorker: function () {
var result = false;
AjaxPostUtil.request({url: flowableBasePath + "judgeCurrentUserRegularWorker", 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.
先完成此消息的编辑!
想要评论请 注册