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

考勤申诉托管到表单布局

上级 7189d1b4
var workId = "";
var appealType = "1";
var appealReasonId = "";
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'tableSelect'], function (exports) {
winui.renderColor();
layui.use(['form'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
tableSelect = layui.tableSelect;
var ids = "";
tableSelect.render({
elem: '#approvalId', //定义输入框input对象
checkedKey: 'id', //表格的唯一键值,非常重要,影响到选中状态 必填
searchKey: 'userName', //搜索输入框的name值 默认keyword
searchPlaceholder: '审批人搜索', //搜索输入框的提示文字 默认关键词搜索
table: { //定义表格参数,与LAYUI的TABLE模块一致,只是无需再定义表格elem
url: flowableBasePath + 'checkwork008',
where: {userName: $("#userName").val()},
method: 'post',
page: true,
limits: [8, 16, 24, 32, 40, 48, 56],
limit: 8,
cols: [[
{ type: 'radio'},
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'userName', title: '审批人', width: 100 },
{ field: 'userSex', title: '性别', width: 60, templet: function (d) {
if(d.userSex == '0'){
return "保密";
} else if (d.userSex == '1'){
return "";
} else if (d.userSex == '2'){
return "";
} else {
return "参数错误";
}
}},
{ field: 'departmentName', title: '所在部门', width: 100 },
]]
},
done: function (elem, data) {
var newJson = data.data[0].userName;
ids = data.data[0].id;
elem.val(newJson);
elem.attr('ts-selected', ids);
}
})
initAppealReasonId();
//初始化申诉内容
function initWorkId(){
showGrid({
id: "workId",
url: flowableBasePath + "checkwork004",
params: {appealType: appealType},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
ajaxSendLoadBefore: function(hdb) {},
ajaxSendAfter:function (json) {
form.render('select');
}
});
}
function initAppealReasonId() {
// 考勤申诉原因
sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["hrCheckWorkReason"]["key"], 'select', "appealReasonId", '', form);
initWorkId();
}
//申诉类型监听事件
form.on('select(appealType)', function(data) {
appealType = data.value;
workId = '';
initWorkId();
});
//申诉内容监听事件
form.on('select(workId)', function(data) {
workId = data.value;
});
//申诉原因类型监听事件
form.on('select(appealReasonId)', function(data) {
appealReasonId = data.value;
});
matchingLanguage();
form.render();
form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) {
if(isNull(workId)){
winui.window.msg('请选择申诉内容', {icon: 2, time: 2000});
return false;
}
if(isNull(appealReasonId)){
winui.window.msg('请选择申诉原因类型', {icon: 2, time: 2000});
return false;
}
var params = {
appealType: appealType,
workId: workId,
appealReasonId: appealReasonId,
appealReason: encodeURIComponent($("#appealReason").val()),
approvalId: ids
};
if (!isNull($("#approvalId").val()) && !isNull(ids)){
AjaxPostUtil.request({url: flowableBasePath + "checkwork005", params: params, type: 'json', callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
} else {
winui.window.msg("请选择审批人!", {icon: 2, time: 2000});
}
}
return false;
});
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
});
\ No newline at end of file
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui'], function (exports) {
winui.renderColor();
layui.use(['form'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$;
showGrid({
id: "showForm",
url: flowableBasePath + "checkwork012",
params: {rowId:parent.rowId},
pagination: false,
template: getFileContent('tpl/checkWorkAbnormalAttendance/checkWorkAbnormalAttendanceDetailsTemplate.tpl'),
ajaxSendAfter:function (json) {
if(json.bean.state == "申诉中"){
$("#approvalTime").hide();
$("#appealRemark").hide();
}
matchingLanguage();
form.render();
}
});
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
});
\ No newline at end of file
var rowId = "";
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'laydate', 'form', 'tableSelect'], function (exports) {
}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor();
var $ = layui.$,
table = layui.table,
form = layui.form,
laydate = layui.laydate,
tableSelect = layui.tableSelect;
// 新增申诉
form = layui.form;
var serviceClassName = sysServiceMation["checkWorkAppeal"]["key"];
authBtn('1597502935353');
// 审批日期选取时间段表格
laydate.render({elem: '#checkDate', range: '~'});
// 考勤申诉原因
sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["hrCheckWorkReason"]["key"], 'select', "appealReasonId", '', form);
// 我的考勤申诉列表
table.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: sysMainMation.checkworkBasePath + 'queryAppealList',
where: getTableParams(),
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'oddNumber', title: '单号', width: 200, align: 'center', templet: function (d) {
return '<a lay-event="details" class="notice-title-click">' + d.oddNumber + '</a>';
}},
{ field: 'processInstanceId', title: '流程ID', width: 80, align: 'center', templet: function (d) {
return '<a lay-event="processDetails" class="notice-title-click">' + d.processInstanceId + '</a>';
}},
{ field: 'state', title: '状态', width: 90, align: 'center', templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
}},
{ 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 () {
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
});
}
});
var ids = "";
tableSelect.render({
elem: '#approvalId', //定义输入框input对象
checkedKey: 'id', //表格的唯一键值,非常重要,影响到选中状态 必填
searchKey: 'userName', //搜索输入框的name值 默认keyword
searchPlaceholder: '审批人搜索', //搜索输入框的提示文字 默认关键词搜索
table: { //定义表格参数,与LAYUI的TABLE模块一致,只是无需再定义表格elem
url: flowableBasePath + 'checkwork008',
where: {userName: $("#userName").val()},
method: 'post',
page: true,
limits: [8, 16, 24, 32, 40, 48, 56],
limit: 8,
cols: [[
{ type: 'radio'},
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'userName', title: '审批人', width: 100 },
{ field: 'userSex', title: '性别', width: 60, templet: function (d) {
if(d.userSex == '0'){
return "保密";
} else if (d.userSex == '1'){
return "";
} else if (d.userSex == '2'){
return "";
} else {
return "参数错误";
}
}},
{ field: 'departmentName', title: '所在部门', width: 100 }
]]
},
done: function (elem, data) {
var newJson = data.data[0].userName;
ids = data.data[0].id;
elem.val(newJson);
elem.attr('ts-selected', ids);
}
})
initMyAppealTable();
// 我的申诉申请列表
function initMyAppealTable(){
table.render({
id: 'myAppealTable',
elem: '#myAppealTable',
method: 'post',
url: flowableBasePath + 'checkwork006',
where: getTableParams(),
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'checkDate', title: '申诉内容', align: 'left', width: 160, templet: function (d) {
var text = d.checkDate;
return text += d.situation;
}},
{ field: 'appealName', title: '申诉原因', align: 'center', width: 100 },
{ field: 'appealReason', title: '申诉具体原因', align: 'left', width: 170 },
{ field: 'createTime', title: '申诉时间', align: 'center', width: 150 },
{ field: 'state', title: '申诉状态', width: 100, align: 'center', templet: function (d) {
if(d.state == '0'){
return "<span class='state-new'>申诉中</span>";
} else if (d.state == '1'){
return "<span class='state-up'>申诉通过</span>";
} else if (d.state == '2'){
return "<span class='state-down'>申诉不通过</span>";
} else {
return "参数错误";
}
}},
{ field: 'userName', title: '审批人', align: 'center', width: 80},
{ field: 'approvalTime', title: '审批时间', align: 'center', width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 100, toolbar: '#tableBar1'}
]],
done: function(json) {
matchingLanguage();
}
});
}
form.render();
table.on('tool(myAppealTable)', function (obj) {
table.on('tool(messageTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
if (layEvent === 'details') { //我的申诉申请详情
details(data);
}
if (layEvent === 'details') { // 详情
details(data);
} else if (layEvent === 'edit') { // 编辑
edit(data);
} else if (layEvent === 'subApproval') { // 提交审批
subApproval(data);
} else if (layEvent === 'cancellation') {// 作废
cancellation(data);
} else if (layEvent === 'processDetails') {// 流程详情
activitiUtil.activitiDetails(data);
} else if (layEvent === 'revoke') {// 撤销申请
revoke(data);
}
});
// 新增申诉
$("body").on("click", "#addBean", function() {
_openNewWindows({
url: "../../tpl/checkWorkAbnormalAttendance/checkWorkAbnormalAttendanceAdd.html",
title: "新增申诉",
url: systemCommonUtil.getUrl('FP2023071800009', null),
title: systemLanguage["com.skyeye.addPageTitle"][languageType],
pageId: "checkWorkAbnormalAttendanceAdd",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
reloadMyAppealTable();
loadTable();
}});
});
function revoke(data) {
layer.confirm('确认撤销该申请吗?', { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: sysMainMation.checkworkBasePath + "revokeAppeal", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function (json) {
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable();
}});
});
}
function edit(data) {
_openNewWindows({
url: systemCommonUtil.getUrl('FP2023071800010&id=' + data.id, null),
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "checkWorkAbnormalAttendanceEdit",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {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) {
layer.close(index);
activitiUtil.startProcess(serviceClassName, null, function (approvalId) {
var params = {
id: data.id,
approvalId: approvalId
};
AjaxPostUtil.request({url: sysMainMation.checkworkBasePath + "submitAppeal", params: params, type: 'json', method: "POST", callback: function (json) {
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable();
}});
});
});
}
// 出差申请作废
function cancellation(data) {
layer.confirm('确认作废该申请吗?', { icon: 3, title: '作废操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: sysMainMation.checkworkBasePath + "invalidAppeal", params: {id: data.id}, type: 'json', method: "POST", callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}});
});
}
// 我的申诉申请详情
function details(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/checkWorkAbnormalAttendance/checkWorkAbnormalAttendanceDetails.html",
url: systemCommonUtil.getUrl('FP2023071800011&id=' + data.id, null),
title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
pageId: "checkWorkAbnormalAttendanceDetails",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
}});
}
// 搜索我的申诉申请
$("body").on("click", "#searchForm1", function() {
table.reloadData("myAppealTable", {page: {curr: 1}, where: getTableParams()});
form.render();
$("body").on("click", "#reloadTable", function() {
loadTable();
});
// 刷新我的申诉申请
$("body").on("click", "#reloadTable", function() {
reloadMyAppealTable();
});
function reloadMyAppealTable(){
table.reloadData("myAppealTable", {where: getTableParams()});
}
function getTableParams() {
if(isNull($("#approvalId").val())) {
ids = "";
}
var startTime = "", endTime = "";
if (!isNull($("#checkDate").val())) {
startTime = $("#checkDate").val().split('~')[0].trim() + ' 00:00:00';
endTime = $("#checkDate").val().split('~')[1].trim() + ' 23:59:59';
}
return {
firstTime: startTime,
lastTime: endTime,
approvalId: ids,
state: $("#state").val(),
appealReasonId: $("#appealReasonId").val()
};
}
function loadTable() {
table.reloadData("messageTable", {where: getTableParams()});
}
function getTableParams() {
return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable"));
}
exports('checkWorkAbnormalAttendanceList', {});
});
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui'], function (exports) {
winui.renderColor();
layui.use(['form'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$;
showGrid({
id: "showForm",
url: flowableBasePath + "checkwork010",
params: {rowId:parent.rowId},
pagination: false,
template: getFileContent('tpl/checkWorkApprove/checkWorkApproveTemplate.tpl'),
ajaxSendAfter:function (json) {
matchingLanguage();
form.render();
form.on('submit(formEditBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = {
rowId: parent.rowId,
state: $("input[name='appealstate']:checked").val(),
appealRemark: $("#appealRemark").val()
};
AjaxPostUtil.request({url: flowableBasePath + "checkwork011", params: params, type: 'json', callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
}
return false;
});
}
});
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
});
\ No newline at end of file
var rowId = "";
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'laydate', 'form', 'tableSelect'], function (exports) {
winui.renderColor();
var $ = layui.$,
table = layui.table,
form = layui.form,
laydate = layui.laydate,
tableSelect = layui.tableSelect;
// 审批日期选取时间段表格
laydate.render({elem: '#checkDate', range: '~'});
// 考勤申诉原因
sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["hrCheckWorkReason"]["key"], 'select', "appealReasonId", '', form);
var createid = "";
tableSelect.render({
elem: '#createId', //定义输入框input对象
checkedKey: 'id', //表格的唯一键值,非常重要,影响到选中状态 必填
searchKey: 'userName', //搜索输入框的name值 默认keyword
searchPlaceholder: '审批人搜索', //搜索输入框的提示文字 默认关键词搜索
table: { //定义表格参数,与LAYUI的TABLE模块一致,只是无需再定义表格elem
url: flowableBasePath + 'checkwork008',
where: {userName: $("#userName").val()},
method: 'post',
page: true,
limits: [8, 16, 24, 32, 40, 48, 56],
limit: 8,
cols: [[
{ type: 'radio'},
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'userName', title: '申诉人', width: 100 },
{ field: 'userSex', title: '性别', width: 60, templet: function (d) {
if(d.userSex == '0'){
return "保密";
} else if (d.userSex == '1'){
return "";
} else if (d.userSex == '2'){
return "";
} else {
return "参数错误";
}
}},
{ field: 'departmentName', title: '所在部门', width: 100 }
]]
},
done: function (elem, data) {
var newJson = data.data[0].userName;
createid = data.data[0].id;
elem.val(newJson);
elem.attr('ts-selected', createid);
}
})
initMyGetTable();
// 员工考勤申诉审批列表
function initMyGetTable(){
table.render({
id: 'myGetTable',
elem: '#myGetTable',
method: 'post',
url: flowableBasePath + 'checkwork007',
where: getTableParams(),
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'checkDate', title: '申诉内容', align: 'left', width: 160, templet: function (d) {
var text = d.checkDate;
return text + d.situation;
}},
{ field: 'appealName', title: '申诉原因', align: 'center', width: 100 },
{ field: 'appealReason', title: '申诉具体原因', align: 'left', width: 170 },
{ field: 'createTime', title: '申诉时间', align: 'center', width: 150 },
{ field: 'state', title: '申诉状态', align: 'left', width: 100, templet: function (d) {
if(d.state == '0'){
return "<span class='state-new'>申诉中</span>";
} else if (d.state == '1'){
return "<span class='state-up'>申诉通过</span>";
} else if (d.state == '2'){
return "<span class='state-down'>申诉不通过</span>";
} else {
return "参数错误";
}
}},
{ field: 'userName', title: '申诉人', align: 'left', width: 80},
{ field: 'approvalTime', title: '审批时间', align: 'center', width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 140, toolbar: '#tableBar2'}
]],
done: function(json) {
matchingLanguage();
}
});
table.on('tool(myGetTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
if (layEvent === 'approve') { //审批员工的申诉申请
approve(data);
} else if (layEvent === 'appealdetails'){ //员工的申诉申请详情
appealdetails(data);
}
});
}
form.render();
// 审批员工的申诉申请
function approve(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/checkWorkApprove/checkWorkApprove.html",
title: "审批申诉申请",
pageId: "checkWorkApprove",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
reloadMyGetTable();
}});
}
// 员 工的申诉申请详情
function appealdetails(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/checkWorkAbnormalAttendance/checkWorkAbnormalAttendanceDetails.html",
title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
pageId: "checkWorkAbnormalAttendanceDetails",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
}});
}
// 搜索员工考勤申诉审批
$("body").on("click", "#searchForm2", function() {
table.reloadData("myGetTable", {page: {curr: 1}, where: getTableParams()});
});
// 刷新员工考勤申诉审批
$("body").on("click", "#reloadGetTable", function() {
reloadMyGetTable();
});
function reloadMyGetTable(){
table.reloadData("myGetTable", {where: getTableParams()});
}
function getTableParams(){
if(isNull($("#createId").val())) {
createid = "";
}
var startTime = "", endTime = "";
if (!isNull($("#checkDate").val())) {
startTime = $("#checkDate").val().split('~')[0].trim() + ' 00:00:00';
endTime = $("#checkDate").val().split('~')[1].trim() + ' 23:59:59';
}
return {
firstTime: startTime,
lastTime: endTime,
createId: createid,
state: $("#state").val(),
appealReasonId: $("#appealReasonId").val()
};
}
exports('checkWorkApproveList', {});
});
......@@ -44,6 +44,9 @@ layui.config({
]],
done: function(json) {
matchingLanguage();
initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入单号,标题", function () {
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
});
}
});
......
......@@ -44,6 +44,9 @@ layui.config({
]],
done: function(json) {
matchingLanguage();
initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入单号,标题", function () {
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
});
}
});
......
......@@ -149,15 +149,6 @@ layui.config({
form.render();
// 个人考勤情况导出
$("body").on("click", "#download", function() {
postDownLoadFile({
url : flowableBasePath + 'checkwork017',
params: getTableParams(),
method : 'post'
});
});
// 搜索我的考勤统计
$("body").on("click", "#searchForm", function() {
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
......
......@@ -12,11 +12,10 @@ layui.config({
window: 'js/winui.window',
echarts: '../echarts/echarts',
echartsTheme: '../echarts/echartsTheme'
}).define(['window', 'table', 'jquery', 'winui', 'form', 'laydate', 'echarts'], function (exports) {
}).define(['window', 'table', 'jquery', 'winui', 'form', 'echarts'], function (exports) {
winui.renderColor();
var $ = layui.$,
form = layui.form,
laydate = layui.laydate,
table = layui.table;
var selTemplate = getFileContent('tpl/template/select-option.tpl');
......@@ -37,139 +36,91 @@ layui.config({
}
});
//初始化统计时间
var day = getTodayDay();
endTime = getYesterdayYMDFormatDate();//结束日期为今天的前一天
if(day === "1" || day == 1){//如果当前为本月一号,则查询上个月的
startTime = getTOneYMDFormatDate();//开始日期为上个月一号
} else {
startTime = getOneYMDFormatDate();//开始日期为本月一号
}
//'统计表'页面的选取时间段表格
laydate.render({
elem: '#checkTime', //指定元素
max: getYesterdayYMDFormatDate(),// 设置最大可选的日期
range: '~',
value: startTime + " ~ " + endTime,//初始化统计日期
done: function(value, date, endDate){
if(isNull(value)){
startTime = "";
endTime = "";
} else {
startTime = value.split("~")[0].trim();
endTime = value.split("~")[1].trim();
}
table.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: sysMainMation.checkworkBasePath + 'checkwork015',
where: getTableParams(),
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'userId', title: 'ID', width: 50,style:'display:none;'},
{ field: 'companyName', title: '公司', align: 'left', width: 200 },
{ field: 'departmentName', title: '部门', align: 'left', width: 120 },
{ field: 'jobName', title: '职位', align: 'left', width: 120 },
{ field: 'userName', title: '姓名', align: 'left', width: 80 },
{ field: 'shouldTime', title: '应出勤(次)', align: 'center', width: 100 },
{ field: 'fullTime', title: '全勤(次)', align: 'center', width: 100, templet: function (d) {
if(d.fullTime != '0'){
return "<a class='checkwork-a'><span class='state-up' lay-event='fullTime'>" + d.fullTime + "</span></a>";
} else {
return d.fullTime;
}
}},
{ field: 'absenteeism', title: '缺勤(次)', align: 'center', width: 100, templet: function (d) {
if(d.absenteeism != '0'){
return "<a class='checkwork-a'><span class='state-down' lay-event='absenteeism'>" + d.absenteeism + "</span></a>";
} else {
return d.absenteeism;
}
}},
{ field: 'lackTime', title: '工时不足(次)', align: 'center', width: 100, templet: function (d) {
if(d.lackTime != '0'){
return "<a class='checkwork-a'><span class='state-down' lay-event='lackTime'>" + d.lackTime + "</span></a>";
} else {
return d.lackTime;
}
}},
{ field: 'late', title: '迟到(次)', align: 'center', width: 100, templet: function (d) {
if(d.late != '0'){
return "<a class='checkwork-a'><span class='state-down' lay-event='late'>" + d.late + "</span></a>";
} else {
return d.late;
}
}},
{ field: 'leaveEarly', title: '早退(次)', align: 'center', width: 100, templet: function (d) {
if(d.leaveEarly != '0'){
return "<a class='checkwork-a'><span class='state-down' lay-event='leaveEarly'>" + d.leaveEarly + "</span></a>";
} else {
return d.leaveEarly;
}
}},
{ field: 'missing', title: '漏签(次)', align: 'center', width: 100, templet: function (d) {
if(d.missing != '0'){
return "<a class='checkwork-a'><span class='state-down' lay-event='missing'>" + d.missing + "</span></a>";
} else {
return d.missing;
}
}}
]
],
done: function(json) {
matchingLanguage();
$('table.layui-table thead tr th:eq(1)').addClass('layui-hide');
}
});
// 加载考勤班次
/*showGrid({
id: "timeId",
url: sysMainMation.checkworkBasePath + "queryEnableCheckWorkTimeList",
params: {},
method: 'GET',
pagination: false,
template: selTemplate,
ajaxSendLoadBefore: function(hdb, json){
$.each(json.rows, function(i, item) {
item.name = item.title + ' [' + item.startTime + ' ~ ' + item.endTime + ']';
});
},
ajaxSendAfter:function (json) {
initCompany();
}
});*/
initCompany();
function initTable(){
$("#title").text(startTime + "" + endTime + " 考勤情况统计");
table.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: flowableBasePath + 'checkwork015',
where: getTableParams(),
even: true,
page: true,
limits: [10, 20, 30, 40, 50, 100],
limit: 10,
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{field: 'userId', title: 'ID', width: 50,style:'display:none;'},
{ field: 'companyName', title: '公司', align: 'left', width: 200 },
{ field: 'departmentName', title: '部门', align: 'left', width: 120 },
{ field: 'jobName', title: '职位', align: 'left', width: 120 },
{ field: 'userName', title: '姓名', align: 'left', width: 80 },
{ field: 'shouldTime', title: '应出勤(次)', align: 'center', width: 100 },
{ field: 'fullTime', title: '全勤(次)', align: 'center', width: 100, templet: function (d) {
if(d.fullTime != '0'){
return "<a class='checkwork-a'><span class='state-up' lay-event='fullTime'>" + d.fullTime + "</span></a>";
} else {
return d.fullTime;
}
}},
{ field: 'absenteeism', title: '缺勤(次)', align: 'center', width: 100, templet: function (d) {
if(d.absenteeism != '0'){
return "<a class='checkwork-a'><span class='state-down' lay-event='absenteeism'>" + d.absenteeism + "</span></a>";
} else {
return d.absenteeism;
}
}},
{ field: 'lackTime', title: '工时不足(次)', align: 'center', width: 100, templet: function (d) {
if(d.lackTime != '0'){
return "<a class='checkwork-a'><span class='state-down' lay-event='lackTime'>" + d.lackTime + "</span></a>";
} else {
return d.lackTime;
}
}},
{ field: 'late', title: '迟到(次)', align: 'center', width: 100, templet: function (d) {
if(d.late != '0'){
return "<a class='checkwork-a'><span class='state-down' lay-event='late'>" + d.late + "</span></a>";
} else {
return d.late;
}
}},
{ field: 'leaveEarly', title: '早退(次)', align: 'center', width: 100, templet: function (d) {
if(d.leaveEarly != '0'){
return "<a class='checkwork-a'><span class='state-down' lay-event='leaveEarly'>" + d.leaveEarly + "</span></a>";
} else {
return d.leaveEarly;
}
}},
{ field: 'missing', title: '漏签(次)', align: 'center', width: 100, templet: function (d) {
if(d.missing != '0'){
return "<a class='checkwork-a'><span class='state-down' lay-event='missing'>" + d.missing + "</span></a>";
} else {
return d.missing;
}
}}
]
],
done: function(json) {
matchingLanguage();
$('table.layui-table thead tr th:eq(1)').addClass('layui-hide');
}
});
table.on('tool(messageTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
if (layEvent === 'fullTime') {
detail(data, '1');
} else if (layEvent === 'absenteeism'){
detail(data, '2');
} else if (layEvent === 'lackTime'){
detail(data, '3');
} else if (layEvent === 'late'){
detail(data, '4');
} else if (layEvent === 'leaveEarly'){
detail(data, '5');
} else if (layEvent === 'missing'){
detail(data, '6');
}
});
}
table.on('tool(messageTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
if (layEvent === 'fullTime') {
detail(data, '1');
} else if (layEvent === 'absenteeism'){
detail(data, '2');
} else if (layEvent === 'lackTime'){
detail(data, '3');
} else if (layEvent === 'late'){
detail(data, '4');
} else if (layEvent === 'leaveEarly'){
detail(data, '5');
} else if (layEvent === 'missing'){
detail(data, '6');
}
});
function detail(data, detailType){
var userName = data.userName;
var title = "";
......@@ -273,15 +224,6 @@ layui.config({
}
});
//导出
$("body").on("click", "#download", function() {
postDownLoadFile({
url : flowableBasePath + 'checkwork020',
params: getTableParams(),
method : 'post'
});
});
function loadTable() {
if(isNull($("#checkTime").val())) {//一定要记得,当createTime为空时
winui.window.msg("请选择时间段", {icon: 2, time: 2000});
......
<!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">
<div class="layui-form-item">
<label class="layui-form-label">审批人</label>
<div class="layui-input-block">
<input type="text" id="approvalId" name="approvalId" placeholder="审批人" class="layui-input" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">申诉类型</label>
<div class="layui-input-block">
<select lay-filter="appealType" lay-search="" id="appealType">
<option value="1" selected = "selected">针对考勤状态申诉</option>
<option value="2">针对上班打卡状态申诉</option>
<option value="3">针对下班打卡状态申诉</option>
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">申诉内容</label>
<div class="layui-input-block">
<select lay-filter="workId" lay-search="" id="workId">
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">申诉原因类型</label>
<div class="layui-input-block">
<select lay-filter="appealReasonId" lay-search="" id="appealReasonId">
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">申诉原因<i class="red">*</i></label>
<div class="layui-input-block">
<textarea id="appealReason" name="appealReason" win-verify="required" placeholder="请输入具体的申诉原因" class="layui-textarea"></textarea>
</div>
</div>
<div class="layui-form-item">
<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="formAddBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</form>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/checkWorkAbnormalAttendance/'}).use('checkWorkAbnormalAttendanceAdd');
</script>
</body>
</html>
\ No newline at end of file
<!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="padding:20px; margin:0 auto;">
<form class="layui-form" action="" id="showForm">
</form>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/checkWorkAbnormalAttendance/'}).use('checkWorkAbnormalAttendanceDetails');
</script>
</body>
</html>
\ No newline at end of file
{{#bean}}
<div class="layui-form-item">
<label class="layui-form-label">申请人:</label>
<div class="layui-input-block ver-center">
{{userName}}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">申诉内容:</label>
<div class="layui-input-block ver-center">
{{checkDate}}{{situation}}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">原因类型:</label>
<div class="layui-input-block ver-center">
{{appealName}}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">具体原因:</label>
<div class="layui-input-block ver-center">
{{appealReason}}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">申诉时间:</label>
<div class="layui-input-block ver-center">
{{createTime}}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">申诉状态:</label>
<div class="layui-input-block ver-center {{stateColor}}">
{{state}}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">审批人:</label>
<div class="layui-input-block ver-center">
{{userName}}
</div>
</div>
<div class="layui-form-item" id="approvalTime">
<label class="layui-form-label">审批时间:</label>
<div class="layui-input-block ver-center">
{{approvalTime}}
</div>
</div>
<div class="layui-form-item" id="appealRemark">
<label class="layui-form-label">审核意见:</label>
<div class="layui-input-block ver-center">
{{appealRemark}}
</div>
</div>
{{/bean}}
\ No newline at end of file
......@@ -5,56 +5,33 @@
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
<style type="text/css">
.scheduleContent .ui-widget-content .fc-day-number{
color: black !important;
}
</style>
</head>
<body>
<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">
<input type="text" id="approvalId" name="approvalId" placeholder="请选择审批人" class="layui-input" />
</div>
<label class="layui-form-label">审批时间</label>
<div class="layui-input-inline">
<input type="text" id="checkDate" name="checkDate" placeholder="请选择审批时间" class="layui-input" />
</div>
<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>
</select>
</div>
<label class="layui-form-label">申诉原因</label>
<div class="layui-input-inline">
<select lay-filter="appealReasonId" lay-search="" id="appealReasonId">
</select>
</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" type="button" id="searchForm1"><language showName="com.skyeye.search2"></language></button>
</div>
</div>
</form>
</div>
<div class="winui-toolbar">
<div class="winui-tool">
<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="1597502935353"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language></button>
<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="1597502935353"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language></button>
</div>
</div>
<div style="margin:auto 0px;">
<table id="myAppealTable" lay-filter="myAppealTable"></table>
<script type="text/html" id="tableBar1">
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="details">详情</a>
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="messageTableBar">
{{# if(d.editRow == '1') { }}
{{# if(auth('1689686508784')) { }}
<a class="layui-btn layui-btn-xs" lay-event="subApproval">提交审批</a>
{{# } }}
{{# if(auth('1689686519573')) { }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="cancellation">作废</a>
{{# } }}
{{# if(auth('1597502935353')) { }}
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# } }}
{{# if(d.editRow == '2'){ }}
{{# if(auth('1689686527533')) { }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="revoke">撤销</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="padding:20px; margin:0 auto;">
<form class="layui-form" action="" id="showForm">
</form>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/checkWorkApprove/'}).use('checkWorkApprove');
</script>
</body>
</html>
\ No newline at end of file
<!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" />
<style type="text/css">
.scheduleContent .ui-widget-content .fc-day-number{
color: black !important;
}
</style>
</head>
<body>
<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">
<input type="text" id="createId" name="createId" placeholder="请选择申诉人" class="layui-input" />
</div>
<label class="layui-form-label">申诉时间</label>
<div class="layui-input-inline">
<input type="text" id="checkDate" name="checkDate" placeholder="请选择申诉时间" class="layui-input" />
</div>
<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>
</select>
</div>
<label class="layui-form-label">申诉原因</label>
<div class="layui-input-inline">
<select lay-filter="appealReasonId" lay-search="" id="appealReasonId">
</select>
</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" type="button" id="searchForm2"><language showName="com.skyeye.search2"></language></button>
</div>
</div>
</form>
</div>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadGetTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
</div>
</div>
<div style="margin:auto 10px;">
<table id="myGetTable" lay-filter="myGetTable"></table>
<script type="text/html" id="tableBar2">
{{# if(d.state == 0){ }}
{{# if(auth('1597504410247')){ }}
<a class="layui-btn layui-btn-xs" lay-event="approve">审批</a>
{{# } }}
{{# } }}
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="appealdetails">详情</a>
</script>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/checkWorkApprove/'}).use('checkWorkApproveList');
</script>
</body>
</html>
\ No newline at end of file
{{#bean}}
<div class="layui-form-item" id="leaveTime">
<label class="layui-form-label">申诉人:</label>
<div class="layui-input-block ver-center">
{{userName}}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">申诉内容:</label>
<div class="layui-input-block ver-center">
{{checkDate}}{{situation}}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">原因类型:</label>
<div class="layui-input-block ver-center">
{{appealName}}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">具体原因:</label>
<div class="layui-input-block ver-center">
{{appealReason}}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">申诉时间:</label>
<div class="layui-input-block ver-center">
{{createTime}}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">审核结果:</label>
<div class="layui-input-block winui-radio">
<input type="radio" name="appealstate" value="1" title="通过" checked="checked"/>
<input type="radio" name="appealstate" value="2" title="不通过" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">审核意见:</label>
<div class="layui-input-block">
<textarea id="appealRemark" name="appealRemark" placeholder="请输入审核意见" class="layui-textarea" style="height: 100px;" maxlength="200"></textarea>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<div class="layui-input-block">
<button class="winui-btn" id="cancle">关闭</button>
<button class="winui-btn" lay-submit lay-filter="formEditBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
{{/bean}}
\ No newline at end of file
......@@ -70,7 +70,6 @@
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadMyDkTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="download" class="winui-toolbtn" type="button"><i class="fa fa-download" aria-hidden="true"></i>导出考勤表</button>
</div>
</div>
<div style="margin:auto 10px;">
......
......@@ -7,49 +7,6 @@
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<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 lay-filter="timeId" lay-search="" id="timeId">
</select>
</div> -->
<label class="layui-form-label">时间</label>
<div class="layui-input-inline">
<input type="text" id="checkTime" name="checkTime" placeholder="请选择时间段" class="layui-input" />
</div>
<label class="layui-form-label">公司</label>
<div class="layui-input-inline">
<select lay-filter="companyList" lay-search="" id="companyList">
</select>
</div>
<label class="layui-form-label">部门</label>
<div class="layui-input-inline">
<select lay-filter="departmentList" lay-search="" id="departmentList">
</select>
</div>
<label class="layui-form-label">职位</label>
<div class="layui-input-inline">
<select lay-filter="jobList" lay-search="" id="jobList">
</select>
</div>
<label class="layui-form-label">姓名</label>
<div class="layui-input-inline">
<input type="text" id="userName" name="userName" placeholder="请输入姓名" class="layui-input" />
</div>
<button class="layui-btn list-form-search" type="button" id="formSearch"><language showName="com.skyeye.search2"></language></button>
</div>
</div>
</form>
</div>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="download" class="winui-toolbtn" type="button" auth="1563415739069"><i class="fa fa-download" aria-hidden="true"></i>导出考勤报表</button>
</div>
</div>
<div class="layui-col-xs12" style="padding: 0px 15px; font-size: 12px; color: grey; float: left;">
应出勤:选中时间段内除去节假日后的实际应上班天数;<br/>
全勤:上班和下班都打了卡;<br/>
......@@ -58,7 +15,13 @@
迟到:超过上班的打卡时间才打卡;<br/>
早退:还没到下班的打卡时间就打卡;<br/>
漏签:早卡和晚卡两个当中缺少一个的;
</div>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
</div>
</div>
<div style="margin: auto 10px; float: left; width: calc(100% - 20px);">
<form class="layui-form" action="">
<div class="layui-input-block" style="height: 35px;">
......@@ -70,7 +33,7 @@
<div id="tableList">
<table id="messageTable" lay-filter="messageTable"></table>
</div>
<div id="echartsPie" style="width: 1000px;height:600px;margin:0 auto;overflow-x:auto"></div>
<div id="echartsPie" style="width: 1000px; height: 600px; margin:0 auto; overflow-x: auto"></div>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
......
......@@ -32,7 +32,6 @@ var customerJS = {
"threeUtil": "../../assets/lib/layui/customer/threeUtil.js", // 3D编辑器相关工具类
"reportModelTypeUtil": "../../assets/lib/layui/customer/reportModelTypeUtil.js", // 模型分类工具类
"schoolUtil": "../../assets/lib/layui/customer/skyeye/schoolUtil.js", // 学校模块工具类
"checkWorkUtil": "../../assets/lib/layui/customer/checkWorkUtil.js", // 考勤模块工具类
"arrayUtil": "../../assets/lib/layui/customer/arrayUtil.js", // 集合工具类
"initTableChooseUtil": "../../assets/lib/layui/customer/tableUtil/initTableChooseUtil.js", // 加载表格选择的表格插件
"sysDictDataUtil": "../../assets/lib/layui/customer/skyeye/sysDictDataUtil.js", // 数据字典插件
......
// 考勤相关工具类
var checkWorkUtil = {
/**
* 获取当前登陆人的考勤班次
*
* @param callback 回执函数
*/
getCurrentUserCheckWorkTimeList: function (callback) {
AjaxPostUtil.request({url: flowableBasePath + "checkworktime007", params: {}, type: 'json', method: "GET", callback: function(json) {
if(typeof(callback) == "function") {
callback(json);
}
}, async: false});
},
};
\ No newline at end of file
......@@ -25,4 +25,23 @@ var sysCustomerUtil = {
}});
},
}
\ No newline at end of file
};
// 考勤相关工具类
var checkWorkUtil = {
/**
* 获取当前登陆人的考勤班次
*
* @param callback 回执函数
*/
getCurrentUserCheckWorkTimeList: function (callback) {
AjaxPostUtil.request({url: flowableBasePath + "checkworktime007", params: {}, type: 'json', method: "GET", callback: function(json) {
if(typeof(callback) == "function") {
callback(json);
}
}, async: false});
},
};
\ No newline at end of file
......@@ -35,6 +35,7 @@
"checkWorkLeave": {"name": "请假申请", "key": "com.skyeye.leave.service.impl.LeaveServiceImpl"},
"checkWorkCancelLeave": {"name": "销假申请", "key": "com.skyeye.cancleleave.service.impl.CancelLeaveServiceImpl"},
"checkWorkBusinessTrip": {"name": "出差申请", "key": "com.skyeye.trip.service.impl.BusinessTripServiceImpl"},
"checkWorkAppeal": {"name": "考勤申诉", "key": "com.skyeye.appeal.service.impl.AppealServiceImpl"},
"assetManageUse": {"name": "资产领用", "key": "com.skyeye.eve.assets.service.impl.AssetUseServiceImpl"},
"assetManageReturn": {"name": "资产归还", "key": "com.skyeye.eve.assets.service.impl.AssetReturnServiceImpl"},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册