From 5b1b68b40a6708441622f0b972eccbb81fca87c0 Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Fri, 15 Apr 2022 10:28:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EHR=E4=BA=BA=E5=91=98=E9=9C=80?= =?UTF-8?q?=E6=B1=82=E7=94=B3=E8=AF=B7=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bossPersonRequireAllList.js | 134 ++++++++++++++++++ .../bossPersonRequireList.js | 21 --- .../bossPersonRequireAllList.html | 55 +++++++ .../bossPersonRequireList.html | 3 - 4 files changed, 189 insertions(+), 24 deletions(-) create mode 100644 boss/src/main/resources/template/js/bossPersonRequire/bossPersonRequireAllList.js create mode 100644 boss/src/main/resources/template/tpl/bossPersonRequire/bossPersonRequireAllList.html diff --git a/boss/src/main/resources/template/js/bossPersonRequire/bossPersonRequireAllList.js b/boss/src/main/resources/template/js/bossPersonRequire/bossPersonRequireAllList.js new file mode 100644 index 000000000..5f4557d63 --- /dev/null +++ b/boss/src/main/resources/template/js/bossPersonRequire/bossPersonRequireAllList.js @@ -0,0 +1,134 @@ +var rowId = ""; + +// 获取所有审批通过状态之后的人员需求申请列表 +layui.config({ + base: basePath, + version: skyeyeVersion +}).extend({ + window: 'js/winui.window' +}).define(['window', 'table', 'jquery', 'winui', 'form', 'laydate'], function (exports) { + winui.renderColor(); + var $ = layui.$, + form = layui.form, + laydate = layui.laydate, + table = layui.table; + + laydate.render({ + elem: '#createTime', + range: '~' + }); + + table.render({ + id: 'messageTable', + elem: '#messageTable', + method: 'post', + url: flowableBasePath + 'queryAllBossPersonRequireList', + where: getTableParams(), + even: true, + page: true, + limits: getLimits(), + limit: getLimit(), + cols: [[ + { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'}, + { field: 'createName', title: '申请人', width: 140}, + { field: 'applyDepartmentName', title: '申请人部门', width: 140}, + { field: 'recruitJobName', title: '需求岗位', width: 150 }, + { field: 'recruitDepartmentName', title: '需求部门', width: 140 }, + { field: 'wages', title: '薪资', width: 120 }, + { field: 'recruitNum', title: '需求人数', width: 100 }, + { field: 'processInstanceId', title: '流程ID', width: 100, templet: function(d){ + return '' + d.processInstanceId + ''; + }}, + { field: 'stateName', title: '状态', width: 90, templet: function(d){ + if(d.state == 6){ + return '招聘中'; + } else if(d.state == 7){ + return '招聘结束'; + } else{ + return activitiUtil.showStateName2(d.state, 1); + } + }}, + { field: 'createTime', title: systemLanguage["com.skyeye.entryTime"][languageType], width: 150}, + { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 257, toolbar: '#messageTableBar'} + ]], + done: function(){ + matchingLanguage(); + } + }); + + table.on('tool(messageTable)', function (obj) { + var data = obj.data; + var layEvent = obj.event; + if (layEvent === 'details') { // 详情 + details(data); + }else if(layEvent === 'processDetails') { // 流程详情 + activitiUtil.activitiDetails(data); + }else if(layEvent === 'setPersonLiable') { // 设置责任人 + setPersonLiable(data); + } + }); + + // 设置责任人 + function setPersonLiable(data){ + rowId = data.id; + _openNewWindows({ + url: "../../tpl/bossPersonRequire/bossPersonRequirePersonLiable.html", + title: '设置责任人', + pageId: "bossPersonRequirePersonLiable", + 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 details(data){ + rowId = data.id; + _openNewWindows({ + url: "../../tpl/bossPersonRequire/bossPersonRequireDetails.html", + title: systemLanguage["com.skyeye.detailsPageTitle"][languageType], + pageId: "bossPersonRequireDetails", + area: ['90vw', '90vh'], + callBack: function(refreshCode){ + } + }); + } + + form.render(); + form.on('submit(formSearch)', function (data) { + if (winui.verifyForm(data.elem)) { + table.reload("messageTable", {page: {curr: 1}, where: getTableParams()}); + } + return false; + }); + + // 刷新 + $("body").on("click", "#reloadTable", function(){ + loadTable(); + }); + + function loadTable(){ + table.reload("messageTable", {where: getTableParams()}); + } + + function getTableParams(){ + var startTime = "", endTime = ""; + if(!isNull($("#createTime").val())){ + startTime = $("#createTime").val().split('~')[0].trim() + ' 00:00:00'; + endTime = $("#createTime").val().split('~')[1].trim() + ' 23:59:59'; + } + return { + state: $("#state").val(), + startTime: startTime, + endTime: endTime + }; + } + + exports('bossPersonRequireAllList', {}); +}); diff --git a/boss/src/main/resources/template/js/bossPersonRequire/bossPersonRequireList.js b/boss/src/main/resources/template/js/bossPersonRequire/bossPersonRequireList.js index 335003a9b..806f3de0e 100644 --- a/boss/src/main/resources/template/js/bossPersonRequire/bossPersonRequireList.js +++ b/boss/src/main/resources/template/js/bossPersonRequire/bossPersonRequireList.js @@ -74,8 +74,6 @@ layui.config({ activitiUtil.activitiDetails(data); }else if(layEvent === 'revoke') { // 撤销申请 revoke(data); - }else if(layEvent === 'setPersonLiable') { // 设置责任人 - setPersonLiable(data); } }); @@ -130,25 +128,6 @@ layui.config({ }); } - // 设置责任人 - function setPersonLiable(data){ - rowId = data.id; - _openNewWindows({ - url: "../../tpl/bossPersonRequire/bossPersonRequirePersonLiable.html", - title: '设置责任人', - pageId: "bossPersonRequirePersonLiable", - 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 subApproval(data){ layer.confirm(systemLanguage["com.skyeye.approvalOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.approvalOperation"][languageType]}, function (index) { diff --git a/boss/src/main/resources/template/tpl/bossPersonRequire/bossPersonRequireAllList.html b/boss/src/main/resources/template/tpl/bossPersonRequire/bossPersonRequireAllList.html new file mode 100644 index 000000000..dd63e9cce --- /dev/null +++ b/boss/src/main/resources/template/tpl/bossPersonRequire/bossPersonRequireAllList.html @@ -0,0 +1,55 @@ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ +
+ +
+ + +
+
+
+
+
+
+ +
+
+
+
+ +
+
+ + + + + \ No newline at end of file diff --git a/boss/src/main/resources/template/tpl/bossPersonRequire/bossPersonRequireList.html b/boss/src/main/resources/template/tpl/bossPersonRequire/bossPersonRequireList.html index 492a68b14..aaf7ae0db 100644 --- a/boss/src/main/resources/template/tpl/bossPersonRequire/bossPersonRequireList.html +++ b/boss/src/main/resources/template/tpl/bossPersonRequire/bossPersonRequireList.html @@ -63,9 +63,6 @@ 撤销 {{# } }} {{# } }} - {{# if((d.state == 2 || d.state == 6) && auth('1649855857921')){ }} - 责任人 - {{# } }} 详情 -- GitLab