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

表单布局组件新增监听属性,人员需求列表修改

上级 4019dd8e
var rowId = "";
// 人员需求申请
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'form', 'laydate'], function (exports) {
}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor();
var $ = layui.$,
form = layui.form,
laydate = layui.laydate,
table = layui.table;
var serviceClassName = sysServiceMation["bossPersonRequire"]["key"];
// 新增
authBtn('1649569413156');
laydate.render({elem: '#createTime', range: '~'});
table.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: flowableBasePath + 'queryBossPersonRequireList',
url: sysMainMation.bossBasePath + 'queryBossPersonRequireList',
where: getTableParams(),
even: true,
page: true,
......@@ -31,29 +26,28 @@ layui.config({
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: 'oddNumber', title: '单据编号', align: 'left', width: 200, templet: function (d) {
return '<a lay-event="details" class="notice-title-click">' + d.oddNumber + '</a>';
}},
{ field: 'processInstanceId', title: '流程ID', width: 100, templet: function (d) {
return '<a lay-event="processDetails" class="notice-title-click">' + d.processInstanceId + '</a>';
}},
{ field: 'stateName', title: '状态', width: 90, templet: function (d) {
if(d.state == 6){
return '<span class="state-new">招聘中</span>';
} else if(d.state == 7){
return '<span class="state-new">招聘结束</span>';
} else{
return activitiUtil.showStateName2(d.state, 1);
}
{ field: 'state', title: '状态', align: 'left', width: 80, templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("bossPersonRequireState", 'id', d.state, 'name');
}},
{ field: 'createTime', title: systemLanguage["com.skyeye.entryTime"][languageType], width: 150 },
{ field: 'wages', title: '薪资范围', width: 120 },
{ field: 'recruitNum', title: '需求人数', width: 100 },
{ field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], width: 120 },
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
{ field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 },
{ field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 257, toolbar: '#messageTableBar'}
]],
done: function(json) {
matchingLanguage();
initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入单据编号", function () {
refreshTable();
});
}
});
......@@ -78,7 +72,7 @@ layui.config({
// 添加
$("body").on("click", "#addBean", function() {
_openNewWindows({
url: "../../tpl/bossPersonRequire/bossPersonRequireAdd.html",
url: systemCommonUtil.getUrl('', null),
title: systemLanguage["com.skyeye.addPageTitle"][languageType],
pageId: "bossPersonRequireAdd",
area: ['90vw', '90vh'],
......@@ -88,22 +82,10 @@ layui.config({
}});
});
// 撤销
function revoke(data) {
layer.confirm('确认撤销该申请吗?', { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "revokeBossPersonRequire", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function (json) {
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable();
}});
});
}
// 编辑申请
function edit(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/bossPersonRequire/bossPersonRequireEdit.html",
url: systemCommonUtil.getUrl('&id=' + data.id, null),
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "bossPersonRequireEdit",
area: ['90vw', '90vh'],
......@@ -114,6 +96,29 @@ layui.config({
});
}
// 详情
function details(data) {
_openNewWindows({
url: systemCommonUtil.getUrl('&id=' + data.id, null),
title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
pageId: "bossPersonRequireDetails",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
}
});
}
// 撤销
function revoke(data) {
layer.confirm('确认撤销该申请吗?', { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "revokeBossPersonRequire", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function (json) {
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable();
}});
});
}
// 提交审批
function subApproval(data) {
layer.confirm(systemLanguage["com.skyeye.approvalOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.approvalOperation"][languageType]}, function (index) {
......@@ -142,28 +147,7 @@ layui.config({
});
}
// 详情
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.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
}
return false;
});
// 刷新
$("body").on("click", "#reloadTable", function() {
loadTable();
});
......@@ -172,17 +156,12 @@ layui.config({
table.reloadData("messageTable", {where: getTableParams()});
}
function refreshTable() {
table.reloadData("messageTable", {page: {curr: 1}, 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
};
return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable"));
}
exports('bossPersonRequireList', {});
......
......@@ -7,66 +7,34 @@
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin:0 auto; height: 100%;">
<div class="txtcenter" style="margin:0 auto; padding-top: 10px;">
<form class="layui-form layui-form-pane" action="" autocomplete="off">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">状态</label>
<div class="layui-input-inline">
<select id="state">
<option value="">全部</option>
<option value="0">草稿</option>
<option value="1">审核中</option>
<option value="2">审核通过</option>
<option value="3">审核不通过</option>
<option value="4">作废</option>
<option value="5">撤销</option>
<option value="6">招聘中</option>
<option value="7">招聘结束</option>
</select>
</div>
<label class="layui-form-label">录入时间</label>
<div class="layui-input-inline">
<input type="text" id="createTime" name="createTime" placeholder="请选择录入时间" class="layui-input" />
</div>
<button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button>
<button class="layui-btn list-form-search" lay-submit lay-filter="formSearch"><language showName="com.skyeye.search2"></language></button>
</div>
</div>
</form>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn search-table-btn-right" auth="1649569413156"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language></button>
</div>
<div class="winui-toolbar">
<div class="winui-tool" style="text-align: left;">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn" auth="1649569413156"><i class="fa fa-plus" aria-hidden="true"></i>录入申请</button>
</div>
</div>
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="messageTableBar">
{{# if(d.editRow == '1'){ }}
{{# if(auth('1649569422475')){ }}
<a class="layui-btn layui-btn-xs" lay-event="subApproval">提交审批</a>
{{# } }}
{{# if(auth('1649569431934')){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="cancellation">作废</a>
{{# } }}
</div>
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="messageTableBar">
{{# if(d.editRow == '1'){ }}
{{# if(auth('1649569422475')){ }}
<a class="layui-btn layui-btn-xs" lay-event="subApproval">提交审批</a>
{{# } }}
{{# if(d.editRow == '1' || d.editRow == '2'){ }}
{{# if(auth('1649569440944')){ }}
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# if(auth('1649569413156')){ }}
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# if(d.editRow == '2'){ }}
{{# if(auth('1649569448876')){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="revoke">撤销</a>
{{# } }}
{{# if(auth('1649569431934')){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="cancellation">作废</a>
{{# } }}
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="details">详情</a>
</script>
</div>
{{# } }}
{{# if(d.editRow == '2'){ }}
{{# if(auth('1649569448876')){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="revoke">撤销</a>
{{# } }}
{{# } }}
</script>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
......
......@@ -200,6 +200,12 @@ layui.config({
<button id="afterHtmlConfig" type="button" class="winui-toolbtn writeScript">编写脚本</button>
</div>
</div>`,
'dataChangeBox': `<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label" style="width: 70%;">数据变化监听的JS:</label>
<div class="layui-input-block" script="// 入参为:data \n\n">
<button id="dataChangeConfig" type="button" class="winui-toolbtn writeScript">编写脚本</button>
</div>
</div>`,
};
// 详情类布局才展示的组件属性
var detailsPageAttr = ['attrKeyBox', 'titleBox', 'widthBox', 'tableAttrBox'];
......@@ -299,6 +305,7 @@ layui.config({
$("#editEchoScriptConfig").parent().attr('script', data.editEchoScript);
$("#dataEchoAfterScriptConfig").parent().attr('script', data.dataEchoAfterScript);
$("#afterHtmlConfig").parent().attr('script', data.afterHtml);
$("#dataChangeConfig").parent().attr('script', data.dataChange);
$("body").on("click", "#attrTransformTableListConfig", function() {
parent.temData = $("#attrTransformTableListConfig").parent().attr('data');
......@@ -373,6 +380,7 @@ layui.config({
newParams.editEchoScript = $("#editEchoScriptConfig").parent().attr('script');
newParams.dataEchoAfterScript = $("#dataEchoAfterScriptConfig").parent().attr('script');
newParams.afterHtml = $("#afterHtmlConfig").parent().attr('script');
newParams.dataChange = $("#dataChangeConfig").parent().attr('script');
if (!isNull($("#attrKey").val())) {
newParams.attrDefinition = getInPoingArr(parent.attrList, 'attrKey', $("#attrKey").val());
......
......@@ -128,7 +128,7 @@
<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" type="button" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formAddBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
......
......@@ -134,7 +134,7 @@
<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" type="button" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formEditBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
......
var rowId = "";
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -116,7 +114,6 @@ layui.config({
// 详情
function details(data) {
rowId = data.id;
_openNewWindows({
url: systemCommonUtil.getUrl('FP2023032200001&id=' + data.id, null),
title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
......@@ -129,7 +126,7 @@ layui.config({
// 删除
function deleteIncome(data) {
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) {
AjaxPostUtil.request({url: sysMainMation.ifsBasePath + "income005", params: {rowId: data.id}, type: 'json', method: "DELETE", callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.ifsBasePath + "income005", params: {id: data.id}, type: 'json', method: "DELETE", callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}});
......
......@@ -2,13 +2,13 @@
"commonEnable": {"name": "启用/禁用", "className": "skyeye-pro#com.skyeye.common.enumeration.EnableEnum"},
"commonIsDefault": {"name": "是否默认", "className": "skyeye-pro#com.skyeye.common.enumeration.IsDefaultEnum"},
"httpMethodEnum": {"name": "http请求方式", "className": "skyeye-pro#com.skyeye.common.enumeration.HttpMethodEnum"},
"verificationParams": {"name": "字段校验枚举", "className": "skyeye-pro#com.skyeye.common.enumeration.VerificationParamsEnum"},
"isUsed": {"name": "是否使用的枚举", "className": "skyeye-pro#com.skyeye.common.enumeration.IsUsedEnum"},
"whetherEnum": {"name": "是否的枚举", "className": "skyeye-pro#com.skyeye.common.enumeration.WhetherEnum"},
"verificationParams": {"name": "字段校验", "className": "skyeye-pro#com.skyeye.common.enumeration.VerificationParamsEnum"},
"isUsed": {"name": "是否使用", "className": "skyeye-pro#com.skyeye.common.enumeration.IsUsedEnum"},
"whetherEnum": {"name": "是否", "className": "skyeye-pro#com.skyeye.common.enumeration.WhetherEnum"},
"dateTimeType": {"name": "日期类型", "className": "skyeye-pro#com.skyeye.dsform.classenum.DateTimeType"},
"payTypeEnum": {"name": "付款类型", "className": "skyeye-pro#com.skyeye.common.enumeration.PayTypeEnum"},
"bossInterviewArrangementState": {"name": "面试安排状态枚举类", "className": "skyeye-boss#com.skyeye.arrangement.classenum.ArrangementState"},
"bossInterviewArrangementState": {"name": "面试安排状态", "className": "skyeye-boss#com.skyeye.arrangement.classenum.ArrangementState"},
"bossInterviewArrangementState1": {
"name": "面试安排状态枚举类-获取我录入的人员需求关联的面试者信息列表",
"className": "skyeye-boss#com.skyeye.arrangement.classenum.ArrangementState",
......@@ -21,24 +21,27 @@
"filterKey": "id",
"filterValue": "3,4,5"
},
"bossIntervieweeStatus": {"name": "面试者状态", "className": "skyeye-boss#com.skyeye.interviewee.classenum.IntervieweeStatusEnum"},
"bossUserTransferType": {"name": "员工转岗类型", "className": "skyeye-boss#com.skyeye.interviewee.classenum.UserTransferType"},
"bossPersonRequireState": {"name": "人员需求申请单状态", "className": "skyeye-boss#com.skyeye.personrequire.classenum.PersonRequireStateEnum"},
"materialFromType": {"name": "商品来源类型枚举类", "className": "skyeye-erp#com.skyeye.material.classenum.MaterialFromType"},
"materialType": {"name": "商品类型枚举类", "className": "skyeye-erp#com.skyeye.material.classenum.MaterialType"},
"materialUnit": {"name": "规格类型枚举类", "className": "skyeye-erp#com.skyeye.material.classenum.MaterialUnit"},
"materialNormsStockType": {"name": "商品规格库存类型枚举类", "className": "skyeye-erp#com.skyeye.material.classenum.MaterialNormsStockType"},
"materialFromType": {"name": "商品来源类型", "className": "skyeye-erp#com.skyeye.material.classenum.MaterialFromType"},
"materialType": {"name": "商品类型", "className": "skyeye-erp#com.skyeye.material.classenum.MaterialType"},
"materialUnit": {"name": "规格类型", "className": "skyeye-erp#com.skyeye.material.classenum.MaterialUnit"},
"materialNormsStockType": {"name": "商品规格库存类型", "className": "skyeye-erp#com.skyeye.material.classenum.MaterialNormsStockType"},
"materialInOrderType": {"name": "商品在单据中的类型", "className": "skyeye-erp#com.skyeye.material.classenum.MaterialInOrderType"},
"depotPutOutType": {"name": "出入库类型枚举类", "className": "skyeye-erp#com.skyeye.depot.classenum.DepotPutOutType"},
"erpOrderStateEnum": {"name": "ERP单据状态枚举类", "className": "skyeye-erp#com.skyeye.classenum.ErpOrderStateEnum"},
"depotPutOutType": {"name": "出入库类型", "className": "skyeye-erp#com.skyeye.depot.classenum.DepotPutOutType"},
"erpOrderStateEnum": {"name": "ERP单据状态", "className": "skyeye-erp#com.skyeye.classenum.ErpOrderStateEnum"},
"skyeyeView": {"name": "视图枚举", "className": "skyeye-pro#com.skyeye.common.SkyeyeViewEnum"},
"widthScale": {"name": "宽度比例枚举", "className": "skyeye-pro#com.skyeye.attr.classenum.WidthScale"},
"dsFormShowType": {"name": "组件展示类型枚举", "className": "skyeye-pro#com.skyeye.attr.classenum.DsFormShowType"},
"alignment": {"name": "对齐方式枚举", "className": "skyeye-pro#com.skyeye.attr.classenum.Alignment"},
"fixedType": {"name": "表格列固定位置枚举", "className": "skyeye-pro#com.skyeye.dsform.classenum.FixedType"},
"skyeyeView": {"name": "视图类型", "className": "skyeye-pro#com.skyeye.common.SkyeyeViewEnum"},
"widthScale": {"name": "宽度比例", "className": "skyeye-pro#com.skyeye.attr.classenum.WidthScale"},
"dsFormShowType": {"name": "组件展示类型", "className": "skyeye-pro#com.skyeye.attr.classenum.DsFormShowType"},
"alignment": {"name": "对齐方式", "className": "skyeye-pro#com.skyeye.attr.classenum.Alignment"},
"fixedType": {"name": "表格列固定位置", "className": "skyeye-pro#com.skyeye.dsform.classenum.FixedType"},
"tenantEnum": {"name": "租户枚举", "className": "skyeye-pro#com.skyeye.common.enumeration.TenantEnum"},
"tenantEnum": {"name": "租户类型", "className": "skyeye-pro#com.skyeye.common.enumeration.TenantEnum"},
"teamObjectType": {"name": "团队适用对象枚举", "className": "skyeye-pro#com.skyeye.team.classenum.TeamObjectTypeEnum"},
"teamObjectType": {"name": "团队适用对象", "className": "skyeye-pro#com.skyeye.team.classenum.TeamObjectTypeEnum"},
"contactsAuthEnum": {"name": "联系人权限", "className": "skyeye-pro#com.skyeye.contacts.classenum.ContactsAuthEnum", "pageUrl": "../../tpl/contacts/contactsList.html"},
"catalogAuthEnum": {"name": "目录权限", "className": "skyeye-pro#com.skyeye.catalog.classenum.CatalogAuthEnum"},
"documentAuthEnum": {"name": "文档权限", "className": "skyeye-pro#com.skyeye.document.classenum.DocumentAuthEnum"},
......
......@@ -58,10 +58,10 @@
"incomeOrder": {"name": "财务明细账", "key": "com.skyeye.order.service.impl.IncomeOrderServiceImpl"},
"bossPersonRequire": {"name": "人员需求申请", "key": "com.skyeye.service.impl.BossPersonRequireServiceImpl"},
"bossInterviewRegularWorker": {"name": "转正申请", "key": "com.skyeye.service.impl.BossInterviewRegularWorkerServiceImpl"},
"bossInterviewQuit": {"name": "离职申请", "key": "com.skyeye.service.impl.BossInterviewQuitServiceImpl"},
"bossInterviewJobTransfer": {"name": "岗位调动申请", "key": "com.skyeye.service.impl.BossInterviewJobTransferServiceImpl"},
"bossPersonRequire": {"name": "人员需求申请", "key": "com.skyeye.personrequire.service.impl.PersonRequireServiceImpl"},
"bossInterviewRegularWorker": {"name": "转正申请", "key": "com.skyeye.regularworker.service.impl.RegularWorkerServiceImpl"},
"bossInterviewQuit": {"name": "离职申请", "key": "com.skyeye.quit.service.impl.QuitServiceImpl"},
"bossInterviewJobTransfer": {"name": "岗位调动申请", "key": "com.skyeye.jobtransfer.service.impl.JobTransferServiceImpl"},
"userInfo": {"name": "用户信息", "key": "com.skyeye.personnel.service.impl.SysEveUserServiceImpl"},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册