提交 f2e8cca0 编写于 作者: doc_wei's avatar doc_wei

新增入职功能,包含同意入职以及拒绝入职

上级 9eb1ee58
......@@ -21,15 +21,28 @@ layui.config({
ajaxSendLoadBefore: function(hdb, json){
json.bean.basicResume = stringManipulation.textAreaShow(json.bean.basicResume);
json.bean.evaluation = stringManipulation.textAreaShow(json.bean.evaluation);
json.bean.reason = stringManipulation.textAreaShow(json.bean.reason);
if (type == 'interviewerResult') {
// 面试官查看
json.bean.stateName = bossUtil.showArrangeInterviewerStateName(json.bean.state);
} else {
// HR以及部门经理查看
json.bean.stateName = bossUtil.showStateName(json.bean.state);
// 入职信息的状态
json.bean.inductionResultStateName = bossUtil.showInductionResultStateName(json.bean.state);
}
},
ajaxSendAfter: function (json) {
skyeyeEnclosure.showDetails({'enclosureUpload': json.bean.enclosureInfo});
console.log(type)
if (type == 'interviewerResult') {
// 面试官查看
$("#inductionResultMation").hide();
} else {
// HR以及部门经理查看
}
matchingLanguage();
form.render();
}
......
......@@ -60,6 +60,8 @@ layui.config({
sub(data);
}else if(layEvent === 'cancellation') { // 作废
cancellation(data);
}else if(layEvent === 'inductionResult') { // 入职
inductionResult(data);
}
});
......@@ -99,6 +101,25 @@ layui.config({
});
}
// 入职
function inductionResult(data){
rowId = data.id;
_openNewWindows({
url: "../../tpl/bossInterviewArrangement/inductionResult.html",
title: '入职',
pageId: "inductionResult",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1,time: 2000});
loadTable();
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}
});
}
// 提交
function sub(data){
layer.confirm('确认提交该数据吗?', {icon: 3, title: '提交操作'}, function (index) {
......
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'form'], function(exports) {
winui.renderColor();
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form;
showGrid({
id: "showForm",
url: flowableBasePath + "queryBossInterviewArrangementById",
params: {id: parent.rowId},
pagination: false,
method: "GET",
template: $("#beanTemplate").html(),
ajaxSendLoadBefore: function(hdb, json){
json.bean.basicResume = stringManipulation.textAreaShow(json.bean.basicResume);
json.bean.stateName = bossUtil.showStateName(json.bean.state);
},
ajaxSendAfter: function (json) {
skyeyeEnclosure.showDetails({'enclosureUpload': json.bean.enclosureInfo});
$("#reasonBox").hide();
form.on('radio(state)', function(data) {
var thisRowValue = data.value;
if(thisRowValue == 6){ // 同意入职
$("#reasonBox").hide();
}else if(thisRowValue == 7){ // 拒绝入职
$("#reasonBox").show();
}
});
matchingLanguage();
form.render();
// 提交
form.on('submit(formSubBean)', function(data) {
if(winui.verifyForm(data.elem)) {
var params = {
id: parent.rowId,
state: $("input[name='state']:checked").val(),
reason: $("#reason").val()
};
AjaxPostUtil.request({url: flowableBasePath + "setInductionResult", params: params, type: 'json', method: "PUT", callback: function(json) {
if(json.returnCode == 0) {
parent.layer.close(index);
parent.refreshCode = '0';
} else {
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}});
}
return false;
});
}
});
});
\ No newline at end of file
......@@ -60,7 +60,7 @@ layui.config({
function interview(data){
rowId = data.id;
_openNewWindows({
url: "../../tpl/bossInterviewer/interviewerResult.html?type=interviewerResult",
url: "../../tpl/bossInterviewer/interviewerResult.html",
title: '面试',
pageId: "interviewerResult",
area: ['90vw', '90vh'],
......@@ -79,7 +79,7 @@ layui.config({
function details(data){
rowId = data.id;
_openNewWindows({
url: "../../tpl/bossInterviewArrangement/bossInterviewArrangementDetails.html",
url: "../../tpl/bossInterviewArrangement/bossInterviewArrangementDetails.html?type=interviewerResult",
title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
pageId: "bossInterviewArrangementDetails",
area: ['90vw', '90vh'],
......
......@@ -95,6 +95,23 @@
{{{evaluation}}}
</div>
</div>
<div id="inductionResultMation">
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">入职信息</span><hr>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">入职状态</label>
<div class="layui-input-block ver-center">
{{{inductionResultStateName}}}
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">拒绝入职的原因</label>
<div class="layui-input-block ver-center">
{{{reason}}}
</div>
</div>
</div>
{{/bean}}
</script>
......
......@@ -54,6 +54,9 @@
{{# if(d.state == '1' && auth('1649929364723')){ }}
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# if(d.state == '4' && auth('1650189947768')){ }}
<a class="layui-btn layui-btn-xs" lay-event="inductionResult">入职</a>
{{# } }}
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="details">详情</a>
</script>
</div>
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
</form>
</div>
<script type="text/x-handlebars-template" id="beanTemplate">
{{#bean}}
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">面试者信息</span><hr>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">面试者</label>
<div class="layui-input-block ver-center">
{{interviewName}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">面试时间</label>
<div class="layui-input-block ver-center">
{{interviewTime}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">联系方式</label>
<div class="layui-input-block ver-center">
{{phone}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">工作年限</label>
<div class="layui-input-block ver-center">
{{workYears}}
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">心仪岗位</label>
<div class="layui-input-block ver-center">
{{favoriteJob}}
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">基本简历</label>
<div class="layui-input-block ver-center">
{{{basicResume}}}
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">附件资料</label>
<div class="layui-input-block ver-center" id="enclosureUpload">
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">人员需求信息</span><hr>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">需求部门</label>
<div class="layui-input-block ver-center">
{{departmentName}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">需求岗位</label>
<div class="layui-input-block ver-center">
{{jobName}}
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">入职信息</span><hr>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">入职结果<i class="red">*</i></label>
<div class="layui-input-block winui-radio" win-verify="required">
<input type="radio" name="state" lay-filter="state" value="6" title="同意入职" checked="checked"/>
<input type="radio" name="state" lay-filter="state" value="7" title="拒绝入职"/>
</div>
</div>
<div class="layui-form-item layui-col-xs12" id="reasonBox">
<label class="layui-form-label">拒绝原因<i class="red">*</i></label>
<div class="layui-input-block">
<textarea id="reason" name="reason" placeholder="请输入拒绝原因" class="layui-textarea" style="height: 100px;" maxlength="400"></textarea>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formSubBean">提交</button>
</div>
</div>
{{/bean}}
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/bossInterviewArrangement/'}).use('inductionResult');
</script>
</body>
</html>
\ No newline at end of file
......@@ -53,6 +53,21 @@ var bossUtil = {
}
},
/**
* 入职信息的状态
*
* @param state
* @returns {string}
*/
showInductionResultStateName: function (state){
if (state == '6') {
return "<span class='state-success'>同意入职</span>";
} else if (state == '7') {
return "<span class='state-error'>拒绝入职</span>";
}
return '';
},
/**
* 面试官列表展示的面试状态
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册