涉密人员离职,审核。打印

master
dsh 1 year ago
parent a8090b6ad0
commit 4f6a059bda

@ -156,6 +156,8 @@ public class TdLeaveController extends BaseController
@GetMapping("/print/{userId}") @GetMapping("/print/{userId}")
public String paint(@PathVariable("userId") Long userId, ModelMap mmap) public String paint(@PathVariable("userId") Long userId, ModelMap mmap)
{ {
TdLeave leaveuser = tdLeaveService.selectTdLeaveById(userId);
mmap.put("leaveuser", leaveuser);
mmap.put("user",userService.selectUserById(userId)); mmap.put("user",userService.selectUserById(userId));
mmap.put("posts", postService.selectPostsByUserIds(userId)); mmap.put("posts", postService.selectPostsByUserIds(userId));
SysUser sysUser= getSysUser(); SysUser sysUser= getSysUser();

@ -8,10 +8,11 @@
<body class="white-bg"> <body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> <div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-leave-add" th:object="${addleave}"> <form class="form-horizontal m" id="form-leave-add" th:object="${addleave}">
<input name="userId" type="hidden" th:value="*{userId}" id="userId"/>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">提交人:</label> <label class="col-sm-3 control-label is-required">提交人:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input disabled name="username" class="form-control" th:field="*{userName}" type="text"> <input disabled name="userName" id="username" class="form-control" th:value="*{userName}" type="text">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -58,7 +59,10 @@
function submitHandler() { function submitHandler() {
if ($.validate.form()) { if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-leave-add').serialize()); var data = $("#form-leave-add").serializeArray();
var username = $("input[id='username']").val()
data.push({"name": "userName", "value": username});
$.operate.save(prefix + "/add",data);
} }
} }
/* 用户管理-新增-选择部门树 */ /* 用户管理-新增-选择部门树 */

@ -8,10 +8,11 @@
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> <div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-leave-edit" th:object="${tdLeave}"> <form class="form-horizontal m" id="form-leave-edit" th:object="${tdLeave}">
<input name="id" th:field="*{id}" type="hidden"> <input name="id" th:field="*{id}" type="hidden">
<input name="userId" type="hidden" th:value="*{userId}" id="userId"/>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">提交人:</label> <label class="col-sm-3 control-label">提交人:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input disabled name="username" th:field="*{username}" class="form-control" type="text"> <input readonly name="userName" th:field="*{userName}" class="form-control" type="text">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">

@ -12,7 +12,7 @@
<ul> <ul>
<li> <li>
<label>提交人:</label> <label>提交人:</label>
<input type="text" name="username"/> <input type="text" name="usernName"/>
</li> </li>
<li> <li>
<label>离职时间:</label> <label>离职时间:</label>
@ -64,6 +64,7 @@
<script th:inline="javascript"> <script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:leave:edit')}]]; var editFlag = [[${@permission.hasPermi('system:leave:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:leave:remove')}]]; var removeFlag = [[${@permission.hasPermi('system:leave:remove')}]];
var downloadFlag = [[${@permission.hasPermi('system:leave:examine')}]];
var examinestateDatas = [[${@dict.getType('sys_examine_state')}]]; var examinestateDatas = [[${@dict.getType('sys_examine_state')}]];
var leavestateData = [[${@dict.getType('sys_user_leave')}]]; var leavestateData = [[${@dict.getType('sys_user_leave')}]];
var workstateData = [[${@dict.getType('sys_examine_state')}]]; var workstateData = [[${@dict.getType('sys_examine_state')}]];
@ -86,7 +87,12 @@
visible: false visible: false
}, },
{ {
field: 'username', field: 'userId',
title: 'userId',
visible: false
},
{
field: 'usernName',
title: '提交人' title: '提交人'
}, },
{ {
@ -140,6 +146,8 @@
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> '); actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="leaveAuditing(\'' + row.id + '\')"><i class="fa fa-edit"></i>审核</a> ');
actions.push('<a class="btn btn-success btn-xs ' + downloadFlag + '" href="javascript:void(0)" onclick="auditingPrint(\'' + row.id + '\')"><i class="fa fa-download"></i>打印</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>'); actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join(''); return actions.join('');
} }
@ -147,6 +155,14 @@
}; };
$.table.init(options); $.table.init(options);
}); });
function leaveAuditing(id) {
var url ='/system/leave/examine/' + id;
$.modal.open("涉密人员离职审核", url);
}
function auditingPrint(id){
var url ='/system/leave/print/' + id;
$.modal.openTab("打印", url);
}
</script> </script>
</body> </body>
</html> </html>

@ -1,10 +1,125 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head> <head>
<meta charset="UTF-8"> <th:block th:include="include :: header('修改人员离职')" />
<title>Title</title> <th:block th:include="include :: select2-css" />
<th:block th:include="include :: datetimepicker-css" />
</head> </head>
<body> <body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-leave-edit" th:object="${leaveuser}">
<input name="id" th:field="*{id}" type="hidden">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">提交人:</label>
<div class="col-sm-8">
<input disabled name="username" th:field="*{username}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">离职状态:</label>
<div class="col-sm-8">
<select name="leavestate" class="form-control m-b" th:with="type=${@dict.getType('sys_user_leave')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{leavestate}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">脱密期:</label>
<div class="col-sm-8">
<input name="username" th:field="*{username}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">工作交接:</label>
<div class="col-sm-8">
<select name="workstate" class="form-control m-b" th:with="type=${@dict.getType('sys_user_work')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{workstate}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">领导意见:</label>
<div class="col-sm-8">
<select name="workstate" class="form-control m-b" th:with="type=${@dict.getType('sys_user_opinions')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{workstate}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-xs-2 control-label">离职原因:</label>
<div class="col-xs-10">
<textarea name="leavereason" readonly class="form-control">[[*{leavereason}]]</textarea>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/leave";
$("#form-leave-edit").validate({
focusCleanup: true
});
/* 用户管理-新增-选择部门树 */
function selectDeptTree() {
var treeId = $("#treeId").val();
var deptId = $.common.isEmpty(treeId) ? "100" : $("#treeId").val();
var url = ctx + "system/user/selectDeptTree/" + deptId;
var options = {
title: '选择部门',
width: "380",
url: url,
callBack: doSubmit
};
$.modal.openOptions(options);
}
function doSubmit(index, layero){
var body = $.modal.getChildFrame(index);
$("#treeId").val(body.find('#treeId').val());
$("#treeName").val(body.find('#treeName').val());
$.modal.close(index);
}
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-leave-edit').serialize());
}
}
$("input[name='leavedate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='examinedate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body> </body>
</html> </html>

@ -1,10 +1,732 @@
<!DOCTYPE html>
<html lang="en"> <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/TR/REC-html40">
<head> <head>
<meta charset="UTF-8"> <th:block th:include="include :: header('离职登记表')" />
<title>Title</title> <meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Aspose.Cell ">
<link rel=File-List href="a6gjh-s69dj_files/filelist.xml">
<link rel=Edit-Time-Data href="a6gjh-s69dj_files/editdata.mso">
<link rel=OLE-Object-Data href="a6gjh-s69dj_files/oledata.mso">
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>波强 赵</o:Author>
<o:LastPrinted>2024-04-16T18:40:58Z</o:LastPrinted>
<o:Created>2024-04-16T18:36:06Z</o:Created>
<o:LastSaved>2024-04-16T18:41:36Z</o:LastSaved>
</o:DocumentProperties>
</xml><![endif]-->
<style>
<!--table
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";}
@page
{
mso-header-data:"";
mso-footer-data:"";
margin:0.75in 0.7in 0.75in 0.7in;
mso-header-margin:0.3in;
mso-footer-margin:0.3in;
mso-page-orientation:Portrait;
}
tr
{mso-height-source:auto;
mso-ruby-visibility:none;}
col
{mso-width-source:auto;
mso-ruby-visibility:none;}
br
{mso-data-placement:same-cell;}
ruby
{ruby-align:left;}
.style0
{
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border:none;
mso-protection:locked visible;
mso-style-name:Normal;
mso-style-id:0;}
.font0
{
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif"; }
.font1
{
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif"; }
.font2
{
color:#000000;
font-size:9pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif"; }
.font3
{
color:#000000;
font-size:16pt;
font-weight:700;
font-style:normal;
font-family:"等线","monospace"; }
td
{mso-style-parent:style0;
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border:none;
mso-protection:locked visible;
mso-ignore:padding;}
.style0
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
mso-style-name:"Normal";
}
.style1
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style2
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style3
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style4
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style5
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style6
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style7
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style8
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style9
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style10
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style11
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style12
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style13
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style14
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.x15
{
mso-style-parent:style0;
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
.style16
{
mso-number-format:"0%";
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Percent";
}
.style17
{
mso-number-format:"_\(\0022$\0022* \#\,\#\#0\.00_\)\;_\(\0022$\0022* \(\#\,\#\#0\.00\)\;_\(\0022$\0022* \0022-\0022??_\)\;_\(\@_\)";
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Currency";
}
.style18
{
mso-number-format:"_\(\0022$\0022* \#\,\#\#0_\)\;_\(\0022$\0022* \(\#\,\#\#0\)\;_\(\0022$\0022* \0022-\0022_\)\;_\(\@_\)";
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Currency [0]";
}
.style19
{
mso-number-format:"_\(* \#\,\#\#0\.00_\)\;_\(* \(\#\,\#\#0\.00\)\;_\(* \0022-\0022??_\)\;_\(\@_\)";
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Comma";
}
.style20
{
mso-number-format:"_\(* \#\,\#\#0_\)\;_\(* \(\#\,\#\#0\)\;_\(* \0022-\0022_\)\;_\(\@_\)";
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Comma [0]";
}
.x21
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:1px solid windowtext;
border-bottom:1px solid windowtext;
border-left:1px solid windowtext;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x22
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:none;
border-bottom:1px solid windowtext;
border-left:1px solid windowtext;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x23
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:none;
border-bottom:1px solid windowtext;
border-left:none;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x24
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:1px solid windowtext;
border-bottom:1px solid windowtext;
border-left:none;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x25
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border-top:none;
border-right:1px solid windowtext;
border-bottom:1px solid windowtext;
border-left:1px solid windowtext;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x26
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:16pt;
font-weight:700;
font-style:normal;
font-family:"等线","monospace";
mso-protection:locked visible;
}
.x27
{
mso-style-parent:style0;
mso-number-format:General;
text-align:left;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border-top:none;
border-right:none;
border-bottom:1px solid windowtext;
border-left:none;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x28
{
mso-style-parent:style0;
mso-number-format:General;
text-align:right;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
-->
</style>
<!--[if gte mso 9]><xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>Sheet1</x:Name>
<x:WorksheetOptions>
<x:StandardWidth>2304</x:StandardWidth>
<x:Print>
<x:ValidPrinterInfo/>
<x:PaperSizeIndex>9</x:PaperSizeIndex>
<x:HorizontalResolution>600</x:HorizontalResolution>
<x:VerticalResolution>600</x:VerticalResolution>
</x:Print>
<x:Selected/>
</x:WorksheetOptions>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
<x:WindowHeight>15500</x:WindowHeight>
<x:WindowWidth>25820</x:WindowWidth>
<x:WindowTopX>-110</x:WindowTopX>
<x:WindowTopY>-110</x:WindowTopY>
<x:RefModeR1C1/>
<x:TabRatio>600</x:TabRatio>
<x:ActiveSheet>0</x:ActiveSheet>
</x:ExcelWorkbook>
</xml><![endif]-->
</head> </head>
<body> <body link=blue vlink=purple >
<table border=0 cellpadding=0 cellspacing=0 width=666 style='border-collapse:
collapse;table-layout:fixed;width:499pt;margin: 0 auto;'>
<col width=111 span=6 style='mso-width-source:userset;width:83.25pt'>
<tr height=38 style='mso-height-source:userset;height:28.5pt' id='r0'>
<td colspan=6 height=38 class=x26 width=666 style='height:28.5pt;'>人员离职登记表</td>
</tr>
<tr height=37 style='mso-height-source:userset;height:28pt' id='r1'>
<td colspan=6 height=36 class=x27 style='border-bottom:1px solid windowtext;height:27.25pt;' id="leavedate">[[${leaveuser.leavedate}]]</td>
</tr>
<tr height=37 style='mso-height-source:userset;height:28pt' id='r2'>
<td height=35 class=x25 style='height:26.5pt;'>姓名</td>
<td class=x25>[[${leaveuser.username}]]</td>
<td class=x25>单位</td>
<td class=x25>[[${leaveuser.depart}]]</td>
<td class=x25>入职日期</td>
<td class=x25 id="entryDate">[[${leaveuser.leavedate}]]</td>
</tr>
<tr height=75 style='mso-height-source:userset;height:56.5pt' id='r3'>
<td height=73 class=x21 style='height:55pt;'>离职原因</td>
<td colspan=5 class=x22 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${leaveuser.leavereason}]]</td>
</tr>
<tr height=84 style='mso-height-source:userset;height:63.5pt' id='r4'>
<td height=82 class=x21 style='height:62pt;'>领导意见</td>
<td colspan=5 class=x22 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;' id="examinestate">[[${leaveuser.examinestate}]]</td>
</tr>
<tr height=73 style='mso-height-source:userset;height:55pt' id='r5'>
<td height=71 class=x21 style='height:53.5pt;'>工作交接</td>
<td colspan=5 class=x22 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;' id="workstate">[[${leaveuser.workstate}]]</td>
</tr>
<tr height=77 style='mso-height-source:userset;height:58pt' id='r6'>
<td height=75 class=x21 style='height:56.5pt;'>备注</td>
<td colspan=5 class=x22 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'></td>
</tr>
<tr height=37 style='mso-height-source:userset;height:28pt' id='r7'>
<td height=35 class=x21 style='height:26.5pt;'>审批人</td>
<td colspan=5 class=x22 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${leaveuser.examinename}]]</td>
</tr>
<tr height=37 style='mso-height-source:userset;height:28pt' id='r8'>
<td height=37 style='height:28pt;'></td>
<td></td>
<td></td>
<td></td>
<td class=x28><span style='float:right' class="liquidate">[[${leaveuser.leavedate}]]</span></td>
<td></td>
</tr>
<tr>
<!-- 打印网页时通过hidden-print隐藏元素 -->
<div class="text-right hidden-print" style="position: absolute;bottom: 20px;right: 50%;">
<button class="btn btn-primary" onclick="printPage()"><i class="fa fa-print"></i> 打印</button>
</div>
</tr>
</table>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
function printPage() {
window.print();
}
function conversionDate(date){
var year = date.getFullYear();
var month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要加 1
var day = String(date.getDate()).padStart(2, '0'); // 日可能是个位数,需要补零
return year + '-' + month + '-' + day
}
document.querySelector('#leavedate').innerHTML ='申请日期:' + conversionDate(new Date(document.querySelector('#leavedate').innerHTML))
document.querySelector('#entryDate').innerHTML =conversionDate(new Date(document.querySelector('#entryDate').innerHTML))
document.querySelector('.liquidate').innerHTML ='离职日期:' + conversionDate(new Date(document.querySelector('.liquidate').innerHTML))
//领导意见
var examinestateDatas = [[${@dict.getType(' sys_user_opinions')}]];
var examinestateToFind = document.querySelector('#examinestate').innerHTML;
const foundObject = examinestateDatas.find(obj => obj.dictValue === examinestateToFind);
const result = foundObject ? foundObject.dictLabel : "";
document.querySelector('#examinestate').innerHTML = result
//工作交接
var workstateData = [[${@dict.getType('sys_examine_state')}]];
var workstateToFind = document.querySelector('#workstate').innerHTML;
var workstateObject = workstateData.find(obj => obj.dictValue === workstateToFind);
var workstateresult = workstateObject ? workstateObject.dictLabel : "";
document.querySelector('#workstate').innerHTML = workstateresult
// document.querySelector('#birthday').innerHTML = formattedDate
// document.querySelector('.revalidate').innerHTML = new Date().toLocaleDateString().replace(/\//g, '-')
// document.querySelector('.liquidate').innerHTML ='离职日期:' + new Date().toLocaleDateString().replace(/\//g, '-')
// var date = new Date(document.querySelector('#birthday').innerHTML);
// var year = date.getFullYear();
// var month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要加 1
// var day = String(date.getDate()).padStart(2, '0'); // 日可能是个位数,需要补零
// var formattedDate = year + '-' + month + '-' + day;
// document.querySelector('#birthday').innerHTML = formattedDate
// document.querySelector('#politics').innerHTML = document.querySelector('#politics').innerHTML === '1' ? '党员' : document.querySelector('#politics').innerHTML === '2' ? '团员' : '群众';
// document.querySelector('#sex').innerHTML = document.querySelector('#sex').innerHTML === '0' ? '男' : '女'
// var postHtml = document.querySelector("#posts").innerHTML;
// const dataArray = postHtml.split("], ");
// const postsArray = dataArray.map(item => {
// const trimmedItem = item.replace("[", "").replace("]", "").trim();
// const lines = trimmedItem.split("\n");
// const postObject = {};
// lines.forEach(line => {
// const [key, value] = line.split("=");
// if (key && value) {
// postObject[key.trim()] = value.trim();
// }
// });
// return postObject;
// });
// document.querySelector("#posts").innerHTML = ''
// document.querySelector("#posts").innerHTML = postsArray[0].postName !== undefined ? postsArray[0].postName : ''
function ChangeRowspanHiddenData()
{
var node;
var params=["r2","r7","r9","r13"];
for (var i = 0;i < params.length; i++)
{
node = document.getElementById(params[i]);
if (node != null)
{
node.style.display = "";
}
}
}
ChangeRowspanHiddenData();
</script>
</body> </body>
</html> </html>
Loading…
Cancel
Save