215 lines
9.1 KiB
Plaintext
215 lines
9.1 KiB
Plaintext
|
|
<!DOCTYPE html
|
||
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
|
||
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||
|
|
<style type="text/css">
|
||
|
|
.select2-container .select2-selection--single {
|
||
|
|
height: 34px;
|
||
|
|
line-height: 34px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.select2-selection__arrow {
|
||
|
|
margin-top: 3px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.select2-selection__arrow {
|
||
|
|
margin-top: 3px;
|
||
|
|
}
|
||
|
|
|
||
|
|
#tab1 {
|
||
|
|
border-left: 0px;
|
||
|
|
border-right: 0px;
|
||
|
|
}
|
||
|
|
|
||
|
|
#tab1 th {
|
||
|
|
border-left: 0px;
|
||
|
|
border-right: 0px;
|
||
|
|
}
|
||
|
|
|
||
|
|
#tab1 td {
|
||
|
|
border-left: 0px;
|
||
|
|
border-right: 0px;
|
||
|
|
}
|
||
|
|
.select2-container--default .select2-selection--multiple{
|
||
|
|
border: none;
|
||
|
|
}
|
||
|
|
.select2-container--default.select2-container--disabled .select2-selection--multiple{
|
||
|
|
background-color: #ffffff;
|
||
|
|
}
|
||
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice{
|
||
|
|
background-color: #ffffff;
|
||
|
|
}
|
||
|
|
.select2-container--default.select2-container--focus .select2-selection--multiple{
|
||
|
|
border: none;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
<script type="text/javascript">
|
||
|
|
$(function () {
|
||
|
|
initFileList();
|
||
|
|
//显示流程详情
|
||
|
|
initFlowList();
|
||
|
|
checkItemDropDownInit();
|
||
|
|
});
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
var fileDownload = function (id) {
|
||
|
|
window.location.href = ext.contextPath + '/safety/SafetyFiles/download.do?fileId=' + id;
|
||
|
|
};
|
||
|
|
|
||
|
|
function initFileList() {
|
||
|
|
$.post(ext.contextPath + '/safety/SafetyFiles/fileListShow.do',
|
||
|
|
{
|
||
|
|
bizId: '${bean.id}',
|
||
|
|
functionCode: 9,
|
||
|
|
statusCode: 1,
|
||
|
|
doNotUpload: true
|
||
|
|
}, function (data) {
|
||
|
|
$("#fileList").html(data);
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
function initFlowList() {
|
||
|
|
$.post(ext.contextPath + '/safety/SafetyFlowTask/showList.do', {
|
||
|
|
bizId: '${bean.id}',
|
||
|
|
}, function (data) {
|
||
|
|
$("#showView_view1").html(data);
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
// 检查项目
|
||
|
|
function checkItemDropDownInit() {
|
||
|
|
var select_Data = jQuery.parseJSON('${checkItemList}');
|
||
|
|
var select_3 = $("#checkResultDetail").select2({
|
||
|
|
data: select_Data,
|
||
|
|
cache: false,
|
||
|
|
placeholder: '请选择',//默认文字提示
|
||
|
|
allowClear: true,//允许清空
|
||
|
|
escapeMarkup: function (markup) {
|
||
|
|
return markup;
|
||
|
|
}, // 自定义格式化防止xss注入
|
||
|
|
language: "zh-CN",
|
||
|
|
minimumInputLength: 0,
|
||
|
|
minimumResultsForSearch: 10,//数据超过十个启用搜索框
|
||
|
|
multiple: true,
|
||
|
|
templateResult: function formatRepo(repo) {
|
||
|
|
return "【" + repo.group + "】 " + repo.text;
|
||
|
|
}, // 函数用来渲染结果
|
||
|
|
templateSelection: function formatRepoSelection(repo) {
|
||
|
|
return "【" + repo.group + "】 " + repo.text;
|
||
|
|
} // 函数用于呈现当前的选择
|
||
|
|
});
|
||
|
|
$(".select2-selection--single").css({'height': '30px', 'paddingTop': '4px'});
|
||
|
|
select_3.val('${bean.checkResultDetail}'.split(",")).trigger("change");
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
<div class="modal fade" id="subModal">
|
||
|
|
<div class="modal-dialog " style="width: 78%">
|
||
|
|
<div class="modal-content">
|
||
|
|
<div class="modal-header">
|
||
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
|
|
<span aria-hidden="true">×</span></button>
|
||
|
|
<h4 class="modal-title">综合安全浏览</h4>
|
||
|
|
</div>
|
||
|
|
<div class="modal-body">
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-md-7 col-xs-12">
|
||
|
|
<!-- 新增界面formid强制为subForm -->
|
||
|
|
<form class="form-horizontal" id="subForm" enctype="multipart/form-data">
|
||
|
|
<!-- 界面提醒div强制id为alertDiv -->
|
||
|
|
<div id="alertDiv"></div>
|
||
|
|
<input type="hidden" class="form-control" id="id" name="id" value="${abnormity.id}">
|
||
|
|
<div class="form-group">
|
||
|
|
<label class="col-sm-2 control-label">发起人:</label>
|
||
|
|
<div class="col-sm-4">
|
||
|
|
<p class="form-control-static">${bean.createUserName}</p>
|
||
|
|
</div>
|
||
|
|
<label class="col-sm-2 control-label">安全检查编号:</label>
|
||
|
|
<div class="col-sm-4">
|
||
|
|
<p class="form-control-static">${bean.checkCode}</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="form-group">
|
||
|
|
<label class="col-sm-2 control-label">检查类型</label>
|
||
|
|
<div class="col-sm-4">
|
||
|
|
<p class="form-control-static">${bean.checkType}</p>
|
||
|
|
</div>
|
||
|
|
<label class="col-sm-2 control-label">检查日期:</label>
|
||
|
|
<div class="col-sm-4">
|
||
|
|
<p class="form-control-static">${bean.checkDate.substring(0,10)}</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
</div>
|
||
|
|
<div class="form-group">
|
||
|
|
<label class="col-sm-2 control-label">检查地点:</label>
|
||
|
|
<div class="col-sm-4">
|
||
|
|
<p class="form-control-static">${bean.checkPlace}</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<label class="col-sm-2 control-label">检查人员:</label>
|
||
|
|
<div class="col-sm-4">
|
||
|
|
<p class="form-control-static">${bean.checkerName}</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="form-group">
|
||
|
|
<label class="col-sm-2 control-label">不相符内容</label>
|
||
|
|
<div class="col-sm-10 ">
|
||
|
|
<select class="form-control " name="checkResultDetail" id="checkResultDetail"
|
||
|
|
value="${bean.checkResultDetail}" readonly="true" disabled="true" style="width:100%;">
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
<label class="col-sm-2 control-label">附加说明:</label>
|
||
|
|
<div class="col-sm-4">
|
||
|
|
<p class="form-control-static">${bean.checkRemark}</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
<div class="form-group">
|
||
|
|
<label class="col-sm-2 control-label">整改负责部门:</label>
|
||
|
|
<div class="col-sm-10">
|
||
|
|
<p class="form-control-static">${bean.dutyDeptName}</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="form-group">
|
||
|
|
<label class="col-sm-2 control-label">整改负责人:</label>
|
||
|
|
<div class="col-sm-10">
|
||
|
|
<p class="form-control-static">${bean.dutyUserName}</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="form-group" >
|
||
|
|
<label class="col-sm-2 control-label">整改措施:</label>
|
||
|
|
<div class="col-sm-4">
|
||
|
|
|
||
|
|
<%-- <textarea class="form-control" id="correctiveAction" name="correctiveAction"--%>
|
||
|
|
<%-- placeholder="请输入" readonly style="border:none">${bean.correctiveAction}</textarea>--%>
|
||
|
|
<p class="form-control-static">${bean.correctiveAction}</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="form-group">
|
||
|
|
<label class="col-sm-2 control-label">验证人:</label>
|
||
|
|
<div class="col-sm-4">
|
||
|
|
<p class="form-control-static">${bean.confirmUserName}</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="form-group">
|
||
|
|
<div class="col-sm-4" id="fileList"></div>
|
||
|
|
</div>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
<div class="col-md-5 col-xs-12" id="showView_view1"></div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="modal-footer">
|
||
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|