diff --git a/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffAllArchivesList.js b/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffAllArchivesList.js deleted file mode 100644 index 64a807df839c6e03b6bd844a3c12d9692aec2d95..0000000000000000000000000000000000000000 --- a/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffAllArchivesList.js +++ /dev/null @@ -1,116 +0,0 @@ - -var rowId = ""; - -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) { - winui.renderColor(); - var $ = layui.$, - form = layui.form, - table = layui.table; - - initTable(); - function initTable(){ - table.render({ - id: 'messageTable', - elem: '#messageTable', - method: 'post', - url: sysMainMation.ehrBasePath + 'sysstaffarchives001', - where: getTableParams(), - even: true, - page: true, - limits: getLimits(), - limit: getLimit(), - cols: [[ - { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, - { field: 'archivesNumber', title: '档案编号', align: 'left', width: 160 }, - { field: 'companyName', title: '管理单位', width: 150 }, - { field: 'custodyPlace', title: '档案保管地', width: 150 }, - { field: 'archivesCenter', title: '档案室', width: 150 }, - { field: 'educationName', title: '档案学历', width: 120}, - { field: 'archivesState', title: '状态', width: 60, align: 'center', templet: function (d) { - if(d.archivesState == '1'){ - return "有效"; - } else if (d.archivesState == '2'){ - return "失效"; - } - }}, - { field: 'jobNumber', title: '员工工号', align: 'left', width: 80 }, - { field: 'userName', title: '员工姓名', align: 'left', width: 100 }, - { field: 'state', title: '员工状态', align: 'center', width: 80, templet: function (d) { - if(d.state == '1'){ - return "在职"; - } else if (d.state == '2'){ - return "离职"; - } else if (d.state == '3'){ - return "见习"; - } else if (d.state == '4'){ - return "试用"; - } else if (d.state == '5'){ - return "退休"; - } - }}, - { field: 'archivesTime', title: '入档时间', align: 'center', width: 100 }, - { field: 'createTime', title: systemLanguage["com.skyeye.entryTime"][languageType], align: 'center', width: 100}, - { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 100, toolbar: '#tableBar'} - ]], - done: function(json) { - matchingLanguage(); - } - }); - - table.on('tool(messageTable)', function (obj) { - var data = obj.data; - var layEvent = obj.event; - if (layEvent === 'edit') { // 编辑 - edit(data); - } - }); - } - - form.render(); - - // 编辑 - function edit(data) { - rowId = data.id; - _openNewWindows({ - url: "../../tpl/sysStaffArchives/sysStaffArchivesEdit.html", - title: systemLanguage["com.skyeye.editPageTitle"][languageType], - pageId: "sysStaffArchivesEdit", - area: ['90vw', '90vh'], - callBack: function (refreshCode) { - winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); - loadTable(); - } - }); - } - - // 搜索表单 - $("body").on("click", "#formSearch", function() { - table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()}); - }); - - // 刷新数据 - $("body").on("click", "#reloadTable", function() { - loadTable(); - }); - - function loadTable() { - table.reloadData("messageTable", {where: getTableParams()}); - } - - function getTableParams() { - return { - archivesNumber: $("#archivesNumber").val(), - archivesState: $("#archivesState").val(), - userName: $("#userName").val(), - jobNumber: $("#jobNumber").val(), - state: $("#state").val() - }; - } - - exports('sysStaffAllArchivesList', {}); -}); diff --git a/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffArchivesAdd.js b/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffArchivesAdd.js deleted file mode 100644 index ab850382fd95d195393826372ecaa1f3c786003b..0000000000000000000000000000000000000000 --- a/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffArchivesAdd.js +++ /dev/null @@ -1,60 +0,0 @@ - -// 员工档案资料 -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'jquery', 'winui', 'textool', 'laydate'], function (exports) { - winui.renderColor(); - layui.use(['form'], function (form) { - var index = parent.layer.getFrameIndex(window.name); - var $ = layui.$, - laydate = layui.laydate, - textool = layui.textool; - // 下拉框模板 - var selTemplate = getFileContent('tpl/template/select-option.tpl'); - - laydate.render({elem: '#archivesTime', trigger: 'click'}); - - textool.init({eleId: 'remark', maxlength: 200}); - - // 学历 - sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["employeeEducation"]["key"], 'select', "educationId", '', form); - - systemCommonUtil.getSysCompanyList(function (json) { - // 加载企业数据 - $("#managementUnit").html(getDataUseHandlebars(selTemplate, json)); - }); - - skyeyeEnclosure.init('enclosureUpload'); - matchingLanguage(); - form.render(); - form.on('submit(formAddBean)', function (data) { - if (winui.verifyForm(data.elem)) { - var params = { - archivesNumber: $("#archivesNumber").val(), - managementUnit: $("#managementUnit").val(), - archivesCenter: $("#archivesCenter").val(), - custodyPlace: $("#custodyPlace").val(), - educationId: $("#educationId").val(), - archivesTime: $("#archivesTime").val(), - whetherArchives: $("#whetherArchives").val(), - archivesState: $("#archivesState").val(), - remark: $("#remark").val(), - staffId: parent.staffId, - enclosureInfo: skyeyeEnclosure.getEnclosureIdsByBoxId('enclosureUpload') - }; - AjaxPostUtil.request({url: sysMainMation.ehrBasePath + "sysstaffarchives005", 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 diff --git a/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffArchivesEdit.js b/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffArchivesEdit.js deleted file mode 100644 index db9342d1ebbbbfd1fe83073e08f592d6e2b8fb38..0000000000000000000000000000000000000000 --- a/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffArchivesEdit.js +++ /dev/null @@ -1,78 +0,0 @@ - -// 员工档案资料 -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'jquery', 'winui', 'textool', 'laydate'], function (exports) { - winui.renderColor(); - layui.use(['form'], function (form) { - var index = parent.layer.getFrameIndex(window.name); - var $ = layui.$, - laydate = layui.laydate, - textool = layui.textool; - // 下拉框模板 - var selTemplate = getFileContent('tpl/template/select-option.tpl'); - - showGrid({ - id: "showForm", - url: sysMainMation.ehrBasePath + "sysstaffarchives006", - params: {rowId: parent.rowId}, - pagination: false, - method: "GET", - template: $("#beanTemplate").html(), - ajaxSendLoadBefore: function(hdb) {}, - ajaxSendAfter:function (json) { - laydate.render({elem: '#archivesTime', trigger: 'click'}); - - textool.init({eleId: 'remark', maxlength: 200}); - - $("#whetherArchives").val(json.bean.whetherArchives); - $("#archivesState").val(json.bean.archivesState); - - // 附件回显 - skyeyeEnclosure.initTypeISData({'enclosureUpload': json.bean.enclosureInfo}); - - // 学历 - sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["employeeEducation"]["key"], 'select', "educationId", json.bean.educationId, form); - - systemCommonUtil.getSysCompanyList(function(companyList){ - // 加载企业数据 - $("#managementUnit").html(getDataUseHandlebars(selTemplate, companyList)); - $("#managementUnit").val(json.bean.managementUnit); - }); - - matchingLanguage(); - form.render(); - form.on('submit(formEditBean)', function (data) { - if (winui.verifyForm(data.elem)) { - var params = { - archivesNumber: $("#archivesNumber").val(), - managementUnit: $("#managementUnit").val(), - archivesCenter: $("#archivesCenter").val(), - custodyPlace: $("#custodyPlace").val(), - educationId: $("#educationId").val(), - archivesTime: $("#archivesTime").val(), - whetherArchives: $("#whetherArchives").val(), - archivesState: $("#archivesState").val(), - remark: $("#remark").val(), - rowId: parent.rowId, - enclosureInfo: skyeyeEnclosure.getEnclosureIdsByBoxId('enclosureUpload') - }; - AjaxPostUtil.request({url: sysMainMation.ehrBasePath + "sysstaffarchives007", params: params, type: 'json', callback: function (json) { - parent.layer.close(index); - parent.refreshCode = '0'; - }}); - } - return false; - }); - form.render(); - } - }); - - $("body").on("click", "#cancle", function() { - parent.layer.close(index); - }); - }); -}); \ No newline at end of file diff --git a/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffArchivesList.js b/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffArchivesList.js new file mode 100644 index 0000000000000000000000000000000000000000..d24e3fe167d1dc2cb53ac12f5e6f76405106179b --- /dev/null +++ b/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffArchivesList.js @@ -0,0 +1,135 @@ + +var objectKey = ""; +var objectId = ""; + +layui.config({ + base: basePath, + version: skyeyeVersion +}).extend({ + window: 'js/winui.window' +}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) { + winui.renderColor(); + var $ = layui.$, + form = layui.form, + table = layui.table; + objectKey = GetUrlParam("objectKey"); + objectId = GetUrlParam("objectId"); + if (isNull(objectKey) || isNull(objectId)) { + winui.window.msg("请传入适用对象信息", {icon: 2, time: 2000}); + return false; + } + + table.render({ + id: 'messageTable', + elem: '#messageTable', + method: 'post', + url: sysMainMation.ehrBasePath + 'querySysStaffArchivesList', + where: getTableParams(), + even: true, + page: true, + limits: getLimits(), + limit: getLimit(), + cols: [[ + { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, + { field: 'archivesNumber', title: '档案编号', align: 'left', width: 160 }, + { field: 'custodyPlace', title: '档案保管地', width: 150 }, + { field: 'archivesCenter', title: '档案室', width: 150 }, + { field: 'educationId', title: '档案学历', width: 120, templet: function (d) { + return sysDictDataUtil.getDictDataNameByCodeAndKey("EMPLOYEE_EDUCATION", d.educationId); + }}, + { field: 'state', title: '是否有效', width: 100, align: 'center', templet: function (d) { + return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("whetherEnum", 'id', d.state, 'name'); + }}, + { field: 'whetherArchives', title: '是否在档', width: 100, align: 'center', templet: function (d) { + return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("whetherEnum", 'id', d.state, 'name'); + }}, + { field: 'archivesTime', title: '入档时间', align: 'center', width: 100 }, + { field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], align: 'left', 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: 100, toolbar: '#tableBar'} + ]], + done: function(json) { + matchingLanguage(); + initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入档案编号", function () { + table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()}); + }); + } + }); + + table.on('tool(messageTable)', function (obj) { + var data = obj.data; + var layEvent = obj.event; + if (layEvent === 'edit') { //编辑 + edit(data); + } else if (layEvent === 'details') { //详情 + details(data); + } else if (layEvent === 'del') { //删除 + del(data); + } + }); + + // 新增 + $("body").on("click", "#addBean", function() { + parent._openNewWindows({ + url: systemCommonUtil.getUrl('FP2023112400001&objectId=' + objectId + '&objectKey=' + objectKey, null), + title: systemLanguage["com.skyeye.addPageTitle"][languageType], + pageId: "sysStaffArchivesAdd", + area: ['90vw', '90vh'], + callBack: function (refreshCode) { + winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); + loadTable(); + }}); + }); + + // 编辑 + function edit(data) { + parent._openNewWindows({ + url: systemCommonUtil.getUrl('FP2023112400002&objectId=' + objectId + '&objectKey=' + objectKey + '&id=' + data.id, null), + title: systemLanguage["com.skyeye.editPageTitle"][languageType], + pageId: "sysStaffArchivesEdit", + area: ['90vw', '90vh'], + callBack: function (refreshCode) { + winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); + loadTable(); + } + }); + } + + // 详情 + function details(data) { + parent._openNewWindows({ + url: systemCommonUtil.getUrl('FP2023112400003&objectId=' + objectId + '&objectKey=' + objectKey + '&id=' + data.id, null), + title: systemLanguage["com.skyeye.detailsPageTitle"][languageType], + pageId: "sysStaffArchivesDetails", + area: ['90vw', '90vh'], + callBack: function (refreshCode) { + }}); + } + + // 删除 + function del(data, obj) { + layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) { + layer.close(index); + AjaxPostUtil.request({url: sysMainMation.ehrBasePath + "deleteSysStaffArchivesById", params: {id: data.id}, type: 'json', method: 'DELETE', callback: function (json) { + winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); + loadTable(); + }}); + }); + } + + form.render(); + $("body").on("click", "#reloadTable", function() { + loadTable(); + }); + function loadTable() { + table.reloadData("messageTable", {where: getTableParams()}); + } + + function getTableParams() { + return $.extend(true, {objectKey: objectKey, objectId: objectId}, initTableSearchUtil.getSearchValue("messageTable")); + } + + exports('sysStaffArchivesList', {}); +}); diff --git a/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffLeaveArchivesList.js b/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffLeaveArchivesList.js deleted file mode 100644 index f1ffb14395b7b810ab868b8860f355e9c5997a17..0000000000000000000000000000000000000000 --- a/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffLeaveArchivesList.js +++ /dev/null @@ -1,116 +0,0 @@ - -var rowId = ""; - -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) { - winui.renderColor(); - var $ = layui.$, - form = layui.form, - table = layui.table; - - // 离职员工在档列表 - initTable(); - function initTable(){ - table.render({ - id: 'messageTable', - elem: '#messageTable', - method: 'post', - url: sysMainMation.ehrBasePath + 'sysstaffarchives002', - where: getTableParams(), - even: true, - page: true, - limits: getLimits(), - limit: getLimit(), - cols: [[ - { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, - { field: 'archivesNumber', title: '档案编号', align: 'left', width: 160 }, - { field: 'companyName', title: '管理单位', width: 150 }, - { field: 'custodyPlace', title: '档案保管地', width: 150 }, - { field: 'archivesCenter', title: '档案室', width: 150 }, - { field: 'educationName', title: '档案学历', width: 120}, - { field: 'archivesState', title: '状态', width: 60, align: 'center', templet: function (d) { - if(d.archivesState == '1'){ - return "有效"; - } else if (d.archivesState == '2'){ - return "失效"; - } - }}, - { field: 'jobNumber', title: '员工工号', align: 'left', width: 80 }, - { field: 'userName', title: '员工姓名', align: 'left', width: 100 }, - { field: 'state', title: '员工状态', align: 'center', width: 80, templet: function (d) { - if(d.state == '1'){ - return "在职"; - } else if (d.state == '2'){ - return "离职"; - } else if (d.state == '3'){ - return "见习"; - } else if (d.state == '4'){ - return "试用"; - } else if (d.state == '5'){ - return "退休"; - } - }}, - { field: 'archivesTime', title: '入档时间', align: 'center', width: 100 }, - { field: 'createTime', title: systemLanguage["com.skyeye.entryTime"][languageType], align: 'center', width: 100}, - { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 100, toolbar: '#tableBar'} - ]], - done: function(json) { - matchingLanguage(); - } - }); - - table.on('tool(messageTable)', function (obj) { - var data = obj.data; - var layEvent = obj.event; - if (layEvent === 'edit') { // 编辑 - edit(data); - } - }); - } - - form.render(); - - // 编辑 - function edit(data) { - rowId = data.id; - _openNewWindows({ - url: "../../tpl/sysStaffArchives/sysStaffArchivesEdit.html", - title: systemLanguage["com.skyeye.editPageTitle"][languageType], - pageId: "sysStaffArchivesEdit", - area: ['90vw', '90vh'], - callBack: function (refreshCode) { - winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); - loadTable(); - } - }); - } - - // 搜索表单 - $("body").on("click", "#formSearch", function() { - table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()}); - }); - - // 刷新数据 - $("body").on("click", "#reloadTable", function() { - loadTable(); - }); - - function loadTable() { - table.reloadData("messageTable", {where: getTableParams()}); - } - - function getTableParams() { - return { - archivesNumber: $("#archivesNumber").val(), - archivesState: $("#archivesState").val(), - userName: $("#userName").val(), - jobNumber: $("#jobNumber").val() - }; - } - - exports('sysStaffLeaveArchivesList', {}); -}); diff --git a/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffNoArchivesList.js b/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffNoArchivesList.js deleted file mode 100644 index 4ad6c035c1fe37e11343d4df7058da4c7dcbb39f..0000000000000000000000000000000000000000 --- a/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffNoArchivesList.js +++ /dev/null @@ -1,109 +0,0 @@ - -var rowId = ""; - -var staffId = ""; - -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) { - winui.renderColor(); - var $ = layui.$, - form = layui.form, - table = layui.table; - - authBtn('1599919580170'); - - // 员工无在档列表 - initTable(); - function initTable(){ - table.render({ - id: 'messageTable', - elem: '#messageTable', - method: 'post', - url: sysMainMation.ehrBasePath + 'sysstaffarchives004', - where: getTableParams(), - even: true, - page: true, - limits: getLimits(), - limit: getLimit(), - cols: [[ - { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, - { field: 'jobNumber', title: '员工工号', align: 'left', width: 80 }, - { field: 'userName', title: '员工姓名', align: 'left', width: 100 }, - { field: 'companyName', title: '所属企业', align: 'left', width: 150 }, - { field: 'departmentName', title: '所属部门', align: 'left', width: 150 }, - { field: 'jobName', title: '所属岗位', align: 'left', width: 150 }, - { field: 'state', title: '员工状态', align: 'center', width: 80, templet: function (d) { - if(d.state == '1'){ - return "在职"; - } else if (d.state == '2'){ - return "离职"; - } else if (d.state == '3'){ - return "见习"; - } else if (d.state == '4'){ - return "试用"; - } else if (d.state == '5'){ - return "退休"; - } - }}, - { field: 'entryTime', title: '入职时间', align: 'center', width: 100 }, - { field: 'workTime', title: '工作时间', align: 'center', width: 100}, - { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 100, toolbar: '#tableBar'} - ]], - done: function(json) { - matchingLanguage(); - } - }); - - table.on('tool(messageTable)', function (obj) { - var data = obj.data; - var layEvent = obj.event; - if (layEvent === 'add') { // 新增 - add(data); - } - }); - } - - form.render(); - - // 新增 - function add(data) { - staffId = data.id; - _openNewWindows({ - url: "../../tpl/sysStaffArchives/sysStaffArchivesAdd.html", - title: systemLanguage["com.skyeye.addPageTitle"][languageType], - pageId: "sysStaffArchivesAdd", - area: ['90vw', '90vh'], - callBack: function (refreshCode) { - winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); - loadTable(); - } - }); - } - - // 搜索表单 - $("body").on("click", "#formSearch", function() { - table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()}); - }); - - // 刷新数据 - $("body").on("click", "#reloadTable", function() { - loadTable(); - }); - - function loadTable() { - table.reloadData("messageTable", {where: getTableParams()}); - } - - function getTableParams() { - return { - userName: $("#userName").val(), - jobNumber: $("#jobNumber").val() - }; - } - - exports('sysStaffNoArchivesList', {}); -}); diff --git a/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffNotInArchivesList.js b/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffNotInArchivesList.js deleted file mode 100644 index bd3d7fa960bbb046f79afc3484b9fe579ae0b616..0000000000000000000000000000000000000000 --- a/ehr/src/main/resources/template/js/sysStaffArchives/sysStaffNotInArchivesList.js +++ /dev/null @@ -1,116 +0,0 @@ - -var rowId = ""; - -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) { - winui.renderColor(); - var $ = layui.$, - form = layui.form, - table = layui.table; - - // 员工不在档列表 - initTable(); - function initTable(){ - table.render({ - id: 'messageTable', - elem: '#messageTable', - method: 'post', - url: sysMainMation.ehrBasePath + 'sysstaffarchives003', - where: getTableParams(), - even: true, - page: true, - limits: getLimits(), - limit: getLimit(), - cols: [[ - { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, - { field: 'archivesNumber', title: '档案编号', align: 'left', width: 160 }, - { field: 'companyName', title: '管理单位', width: 150 }, - { field: 'custodyPlace', title: '档案保管地', width: 150 }, - { field: 'archivesCenter', title: '档案室', width: 150 }, - { field: 'educationName', title: '档案学历', width: 120}, - { field: 'archivesState', title: '状态', width: 60, align: 'center', templet: function (d) { - if(d.archivesState == '1'){ - return "有效"; - } else if (d.archivesState == '2'){ - return "失效"; - } - }}, - { field: 'jobNumber', title: '员工工号', align: 'left', width: 80 }, - { field: 'userName', title: '员工姓名', align: 'left', width: 100 }, - { field: 'state', title: '员工状态', align: 'center', width: 80, templet: function (d) { - if(d.state == '1'){ - return "在职"; - } else if (d.state == '2'){ - return "离职"; - } else if (d.state == '3'){ - return "见习"; - } else if (d.state == '4'){ - return "试用"; - } else if (d.state == '5'){ - return "退休"; - } - }}, - { field: 'archivesTime', title: '入档时间', align: 'center', width: 100 }, - { field: 'createTime', title: systemLanguage["com.skyeye.entryTime"][languageType], align: 'center', width: 100}, - { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 100, toolbar: '#tableBar'} - ]], - done: function(json) { - matchingLanguage(); - } - }); - - table.on('tool(messageTable)', function (obj) { - var data = obj.data; - var layEvent = obj.event; - if (layEvent === 'edit') { // 编辑 - edit(data); - } - }); - } - - form.render(); - - // 编辑 - function edit(data) { - rowId = data.id; - _openNewWindows({ - url: "../../tpl/sysStaffArchives/sysStaffArchivesEdit.html", - title: systemLanguage["com.skyeye.editPageTitle"][languageType], - pageId: "sysStaffArchivesEdit", - area: ['90vw', '90vh'], - callBack: function (refreshCode) { - winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); - loadTable(); - } - }); - } - - // 搜索表单 - $("body").on("click", "#formSearch", function() { - table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()}); - }); - - // 刷新数据 - $("body").on("click", "#reloadTable", function() { - loadTable(); - }); - - function loadTable() { - table.reloadData("messageTable", {where: getTableParams()}); - } - - function getTableParams() { - return { - archivesNumber: $("#archivesNumber").val(), - archivesState: $("#archivesState").val(), - userName: $("#userName").val(), - jobNumber: $("#jobNumber").val() - }; - } - - exports('sysStaffNotInArchivesList', {}); -}); diff --git a/ehr/src/main/resources/template/tpl/sysStaffArchives/sysStaffAllArchivesList.html b/ehr/src/main/resources/template/tpl/sysStaffArchives/sysStaffAllArchivesList.html deleted file mode 100644 index 0ec179f7e05460a32a7ba5d35873d19275695733..0000000000000000000000000000000000000000 --- a/ehr/src/main/resources/template/tpl/sysStaffArchives/sysStaffAllArchivesList.html +++ /dev/null @@ -1,70 +0,0 @@ - - -
- -