301 lines
15 KiB
Plaintext
301 lines
15 KiB
Plaintext
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<%@ page language="java" pageEncoding="utf-8" %>
|
|
<%@ 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;
|
|
border: none;
|
|
}
|
|
|
|
.select2-selection__arrow {
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.form-horizontal {
|
|
padding-top: 20px;
|
|
padding-right: 30px;
|
|
}
|
|
|
|
.select2-container--default .select2-selection--multiple {
|
|
border: none;
|
|
}
|
|
|
|
.select2-container--default.select2-container--disabled .select2-selection--multiple {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
.select2-container--default.select2-container--disabled .select2-selection--single {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
.select2-container--default.select2-container--focus .select2-selection--multiple{
|
|
border: none;
|
|
}
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
|
background-color: #ffffff;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
|
|
// 初始化
|
|
$(function () {
|
|
// 初始化 专项检查下拉
|
|
checkItemDropDownInit()
|
|
|
|
// 初始化 附件列表
|
|
initFileList();
|
|
// 初始化 时间轴组件
|
|
initFlowList();
|
|
});
|
|
|
|
// 专项检查
|
|
function checkItemDropDownInit() {
|
|
var select_Data = jQuery.parseJSON('${checkItemList}');
|
|
var select_3 = $("#checkItem").select2({
|
|
data: select_Data,
|
|
cache: false,
|
|
placeholder: '请选择',//默认文字提示
|
|
allowClear: false,//允许清空
|
|
escapeMarkup: function (markup) {
|
|
return markup;
|
|
}, // 自定义格式化防止xss注入
|
|
language: "zh-CN",
|
|
minimumInputLength: 0,
|
|
minimumResultsForSearch: 10,//数据超过十个启用搜索框
|
|
multiple: false,
|
|
templateResult: function formatRepo(repo) {
|
|
return repo.text;
|
|
}, // 函数用来渲染结果
|
|
templateSelection: function formatRepoSelection(repo) {
|
|
return repo.text;
|
|
} // 函数用于呈现当前的选择
|
|
});
|
|
$(".select2-selection--single").css({'height': '30px', 'paddingTop': '4px'});
|
|
|
|
select_3.on('change', function () {
|
|
let checkItem = $("#checkItem").val()
|
|
if (checkItem) {
|
|
checkItemDetailDropDownInit(checkItem)
|
|
}
|
|
})
|
|
|
|
select_3.val('${bean.checkItem}').trigger("change");
|
|
}
|
|
|
|
// 检查项目
|
|
var checkItemDetail = null;
|
|
|
|
function checkItemDetailDropDownInit(checkItemValue) {
|
|
if (checkItemDetail) {
|
|
$("#checkResultDetail").empty();
|
|
// $("#checkResultDetail").select2("destroy");
|
|
}
|
|
$.post(ext.contextPath + '/safety/SafetyCheckSpecial/checkItemChange.do',
|
|
{checkItem: checkItemValue},
|
|
function (data) {
|
|
var select_Data = jQuery.parseJSON(data);
|
|
checkItemDetail = $("#checkResultDetail").select2({
|
|
data: select_Data,
|
|
cache: false,
|
|
placeholder: '请选择',//默认文字提示
|
|
allowClear: false,//允许清空
|
|
escapeMarkup: function (markup) {
|
|
return markup;
|
|
}, // 自定义格式化防止xss注入
|
|
language: "zh-CN",
|
|
minimumInputLength: 0,
|
|
minimumResultsForSearch: 10,//数据超过十个启用搜索框
|
|
multiple: true,
|
|
templateResult: function formatRepo(repo) {
|
|
return repo.text;
|
|
}, // 函数用来渲染结果
|
|
templateSelection: function formatRepoSelection(repo) {
|
|
return repo.text;
|
|
} // 函数用于呈现当前的选择
|
|
});
|
|
$(".select2-selection--single").css({'height': '34px', 'paddingTop': '4px'});
|
|
checkItemDetail.val('${bean.checkResultDetail}'.split(",")).trigger("change");
|
|
});
|
|
}
|
|
|
|
// 加载附件
|
|
function initFileList() {
|
|
// SAFETY_CHECK_COMPREHENSIVE(9, "综合安全检查","ZH"),
|
|
$.post(ext.contextPath + '/safety/SafetyFiles/fileListShow.do',
|
|
{
|
|
bizId: '${bean.id}',
|
|
functionCode: 10,
|
|
statusCode: 3,
|
|
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);
|
|
});
|
|
};
|
|
</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强制为addForm -->
|
|
<form class="form-horizontal" id="addForm" enctype="multipart/form-data">
|
|
<div id="alertDiv"></div>
|
|
<div id="alertDiv"></div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label "> *发起人</label>
|
|
<div class="col-sm-4 ">
|
|
<input type="text" class="form-control" id="createUserName" name="createUserName"
|
|
placeholder="请选择.." value="${bean.createUserName}" readonly
|
|
style="border:none;background-color: #ffffff"/>
|
|
<input type="hidden" class="form-control" id="createUserId" name="createUserId"
|
|
placeholder="请选择.." value="${bean.createUserId}" readonly/>
|
|
<input type="hidden" class="form-control" id="id" name="id"
|
|
placeholder="请选择.." value="${bean.id}" readonly/>
|
|
</div>
|
|
|
|
<label class="col-sm-2 control-label">*安全检查编号</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" id="checkCode" name="checkCode" class="form-control"
|
|
placeholder="请选择.." value="${bean.checkCode}" readonly
|
|
style="border:none;background-color: #ffffff"/>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">专项检查</label>
|
|
<div class="col-sm-10">
|
|
<select class="form-control select2" name="checkItem" id="checkItem"
|
|
style="width: 100%; border:none;background-color: #ffffff"
|
|
disabled="disabled">
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label ">检查日期</label>
|
|
<div class="col-sm-4 ">
|
|
<div class="input-group date">
|
|
<input type="text" class="form-control" id="checkDate" name="checkDate"
|
|
placeholder="请选择.." value="${bean.checkDate.substring(0,10)}" readonly
|
|
style="border:none;background-color: #ffffff"/>
|
|
</div>
|
|
</div>
|
|
|
|
<label class="col-sm-2 control-label">检查地点</label>
|
|
<div class="col-sm-4 ">
|
|
<input type="text" id="checkPlace" name="checkPlace" class="form-control"
|
|
placeholder="请输入.." value="${bean.checkPlace}" readonly
|
|
style="border:none;background-color: #ffffff">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">检查人员</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" id="checkerName" name="checkerName" class="form-control"
|
|
placeholder="请选择.." value="${bean.checkerName}" readonly
|
|
style="border:none;background-color: #ffffff">
|
|
<input type="hidden" id="checkerId" name="checkerId" class="form-control"
|
|
placeholder="请选择.." value="${bean.checkerId}">
|
|
</div>
|
|
|
|
<label class="col-sm-2 control-label">记录人</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" id="recorderName" name="recorderName" class="form-control"
|
|
placeholder="请输入.." value="${bean.recorderName}" readonly
|
|
style="border:none;background-color: #ffffff">
|
|
<input type="hidden" id="recorderId" name="recorderId" class="form-control"
|
|
placeholder="请选择.." readonly value="${bean.recorderId}">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">不相符内容</label>
|
|
<div class="col-sm-10">
|
|
<select class="form-control select2" name="checkResultDetail" id="checkResultDetail"
|
|
style="width: 100%; border:none" disabled="disabled"
|
|
value="${bean.checkResultDetail}">
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label ">附加说明</label>
|
|
<div class="col-sm-10">
|
|
<textarea class="form-control" id="checkRemark" name="checkRemark" placeholder="请选择"
|
|
readonly
|
|
style="border:none;background-color: #ffffff">${bean.checkRemark}</textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label ">整改负责部门</label>
|
|
<div class="col-sm-4">
|
|
<input type="hidden" class="form-control" id="dutyDeptId" name="dutyDeptId"
|
|
value="${bean.dutyDeptId}"/>
|
|
<input type="text" class="form-control" id="dutyDeptName" name="dutyDeptName"
|
|
placeholder="请选择.." value="${bean.dutyDeptName}" readonly
|
|
style="border:none;background-color: #ffffff"/>
|
|
</div>
|
|
|
|
<label class="col-sm-2 control-label ">整改负责人</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="dutyUserName" name="dutyUserName"
|
|
placeholder="请选择.." value="${bean.dutyUserName}" readonly
|
|
style="border:none;background-color: #ffffff">
|
|
<input type="hidden" class="form-control" id="dutyUserId" name="dutyUserId"
|
|
placeholder="请选择" value="${bean.dutyUserId}"/>
|
|
<input type="hidden" class="form-control" id="dutyUserBean" name="dutyUserBean"
|
|
placeholder="请选择"/>
|
|
</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.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-10" 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>
|
|
<!-- /.modal-content -->
|
|
</div>
|
|
<!-- /.modal-dialog -->
|
|
</div>
|