涉密文件销毁

master
dshclm 11 months ago
parent 4507f20dba
commit 96e5152975

@ -22,7 +22,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
/** /**
* Controller * Controller
* *
* @author ruoyi * @author ruoyi
* @date 2024-05-15 * @date 2024-05-15
*/ */
@ -92,6 +92,7 @@ public class TdFileDestoryController extends BaseController
TdFileProvide tdFileProvide = tdFileProvideService.selectTdFileProvideByFileId(fileId); TdFileProvide tdFileProvide = tdFileProvideService.selectTdFileProvideByFileId(fileId);
mmap.put("tdFileProvide", tdFileProvide); mmap.put("tdFileProvide", tdFileProvide);
mmap.put("tdFileReceive", tdFileReceive); mmap.put("tdFileReceive", tdFileReceive);
mmap.put("user",getSysUser());
return prefix + "/edit"; return prefix + "/edit";
} }

@ -0,0 +1,163 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改涉密文件接收')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-filereceive-edit" th:object="${tdFileProvide}">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-3 control-label">所属市州:</label>
<div class="col-sm-8">
<input name="frameworkId" readonly th:field="*{frameworkId}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-3 control-label">所属区县:</label>
<div class="col-sm-8">
<input name="areaid" readonly th:field="*{areaid}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-3 control-label">文件标题:</label>
<div class="col-sm-8">
<input name="fileName" readonly th:field="*{fileName}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-3 control-label">文号:</label>
<div class="col-sm-8">
<input name="fileNum" readonly th:field="*{fileNum}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-3 control-label">密级:</label>
<div class="col-sm-8">
<select name="fileSecret" disabled class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{fileSecret}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-3 control-label">紧急程度:</label>
<div class="col-sm-8">
<select name="instancyExtent" disabled class="form-control m-b" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{instancyExtent}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-3 control-label">定密依据:</label>
<div class="col-sm-8">
<input name="allianceFile" readonly th:field="*{allianceFile}" class="form-control" type="text">
</div>
</div>
</div>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
<div style="float: right">
<span>销毁人:[[${tdFileReceive.destoryUsername}]]</span>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/filedestory";
$(function() {
var options = {
url: prefix + "/list",
modalName: "涉密文件接收",
pagination:false,
showSearch: false,
showPageGo: false,
showRefresh: false,
showColumns: false,
showToggle: false,
columns: [
{
field: 'fileId',
title: '文件编号',
},
{
field: 'destoryDepart',
title: '销毁单位'
},
{
field: 'destoryCount',
title: '销毁份数'
},
{
field: 'destoryUsername',
title: '销毁人签字'
},
{
field: 'destoryDate',
title: '销毁时间'
}]
};
$.table.init(options);
});
var prefix = ctx + "system/filereceive";
$("#form-filereceive-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-filereceive-edit').serialize());
}
}
$("input[name='provideDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='receiveDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='extractDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='destoryDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -8,95 +8,65 @@
<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-filereceive-edit" th:object="${tdFileReceive}"> <form class="form-horizontal m" id="form-filereceive-edit" th:object="${tdFileReceive}">
<input name="receiveId" th:field="*{receiveId}" type="hidden"> <input name="receiveId" th:field="*{receiveId}" type="hidden">
<input name="destoryState" th:value="1" type="hidden">
<input name="destoryDepart" th:value="${user.dept.deptName}" type="hidden">
<input name="destoryUsername" th:value="${user.userName}" type="hidden">
<input name="destoryDate" type="hidden">
<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">
<input name="fileId" disabled th:field="*{fileId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">文件名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="fileName" disabled th:field="*{fileName}" class="form-control" type="text"> <input name="fileName" disabled th:field="*{fileName}" class="form-control" type="text">
</div> </div>
</div> </div>
<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">
<input name="provideDepart" disabled th:field="*{provideDepart}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">发文日期:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<div class="input-group date"> <input name="destoryCount" required th:field="*{destoryCount}" class="form-control" type="text">
<input name="provideDate" disabled th:value="${#dates.format(tdFileReceive.provideDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div> </div>
</div> </div>
<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 name="extractDepartid" disabled th:field="*{extractDepartid}" class="form-control" type="text"> <input name="releaseSecretid" readonly th:field="${tdFileProvide.releaseSecretid}" class="form-control" type="text">
</div> </div>
</div> </div>
<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">
<div class="input-group date"> <div class="radio-box" th:each="dict : ${@dict.getType('sys_file_miji')}">
<input name="extractDate" disabled th:value="${#dates.format(tdFileReceive.extractDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text"> <input type="radio" disabled th:id="${dict.dictCode}" name="fileSecret" th:value="${dict.dictValue}" th:field="${tdFileProvide.fileSecret}">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div> </div>
</div> </div>
</div> </div>
<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 name="destoryState" th:field="*{destoryState}" class="form-control" type="text"> <input name="provideDepart" readonly th:value="${tdFileProvide.fileNum}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">销毁地点:</label>
<div class="col-sm-8">
<input name="destoryAddress" th:field="*{destoryAddress}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">销毁部门:</label>
<div class="col-sm-8">
<input name="destoryDepart" th:field="*{destoryDepart}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">销毁人员:</label>
<div class="col-sm-8">
<input name="destoryUsername" th:field="*{destoryUsername}" class="form-control" type="text">
</div> </div>
</div> </div>
<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 name="destoryStyle" th:field="*{destoryStyle}" class="form-control" type="text"> <select name="destoryStyle" required class="form-control m-b" th:with="type=${@dict.getType('sys_destory_style')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{destoryStyle}"></option>
</select>
</div> </div>
</div> </div>
<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 name="destoryCount" th:field="*{destoryCount}" class="form-control" type="text"> <textarea name="allianceFile" readonly class="form-control">[[${tdFileProvide.allianceFile}]]</textarea>
</div> </div>
</div> </div>
<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">
<div class="input-group date"> <textarea name="destoryAddress" required class="form-control">[[*{destoryAddress}]]</textarea>
<input name="destoryDate" th:value="${#dates.format(tdFileReceive.destoryDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div> </div>
</div> </div>
<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">
<textarea name="remark" class="form-control">[[*{remark}]]</textarea> <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
</div> </div>
@ -116,30 +86,13 @@
$.operate.save(prefix + "/edit", $('#form-filereceive-edit').serialize()); $.operate.save(prefix + "/edit", $('#form-filereceive-edit').serialize());
} }
} }
function conversionDate(date){
$("input[name='provideDate']").datetimepicker({ var year = date.getFullYear();
format: "yyyy-mm-dd", var month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要加 1
minView: "month", var day = String(date.getDate()).padStart(2, '0'); // 日可能是个位数,需要补零
autoclose: true return year + '-' + month + '-' + day
}); }
$("input[name='destoryDate']").val(conversionDate(new Date()));
$("input[name='receiveDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='extractDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='destoryDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script> </script>
</body> </body>
</html> </html>

@ -48,19 +48,18 @@
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
<script th:inline="javascript"> <script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:filereceive:edit')}]]; var detaileFlag = [[${@permission.hasPermi('system:filedestory:detail')}]];
var removeFlag = [[${@permission.hasPermi('system:filereceive:remove')}]]; var removeFlag = [[${@permission.hasPermi('system:filedestory:edit')}]];
var receiveStateDatas = [[${@dict.getType('sys_file_receive')}]]; var receiveStateDatas = [[${@dict.getType('sys_file_receive')}]];
var extractStateDatas = [[${@dict.getType('sys_file_extract')}]]; var extractStateDatas = [[${@dict.getType('sys_file_extract')}]];
var destoryStateDatas = [[${@dict.getType('sys_destory_state')}]]; var destoryStateDatas = [[${@dict.getType('sys_destory_state')}]];
var prefix = ctx + "system/filereceive"; var prefix = ctx + "system/filedestory";
$(function() { $(function() {
var options = { var options = {
url: prefix + "/list", url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}", updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove", detailUrl:prefix + "/detail/{id}",
exportUrl: prefix + "/export", exportUrl: prefix + "/export",
modalName: "涉密文件接收", modalName: "涉密文件接收",
columns: [{ columns: [{
@ -119,8 +118,8 @@
align: 'center', align: 'center',
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.receiveId + '\')"><i class="fa fa-edit"></i>详情</a> '); actions.push('<a class="btn btn-success btn-xs ' + detaileFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.receiveId + '\')"><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.receiveId + '\')"><i class="fa fa-edit"></i>销毁</a> '); actions.push('<a class="btn btn-warning btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.receiveId + '\')"><i class="fa fa-remove"></i>销毁</a> ');
return actions.join(''); return actions.join('');
} }
}] }]
@ -129,4 +128,4 @@
}); });
</script> </script>
</body> </body>
</html> </html>

Loading…
Cancel
Save