| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442 | 
							- <!DOCTYPE html>
 
- <html>
 
- <head>
 
-     <meta charset="utf-8"/>
 
-     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
 
-     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
 
-     <title>隐患详情</title>
 
-     <link rel="stylesheet" href="../../../assets/libs/layui/css/layui.css"/>
 
-     <link rel="stylesheet" href="../../../assets/module/formSelects/formSelects-v4.css"/>
 
-     <link rel="stylesheet" href="../../../assets/module/admin.css?v=312"/>
 
-     <link rel="stylesheet" href="../../../assets/module/uParas.css?v=312"/>
 
- </head>
 
- <body>
 
- <style type="text/css">
 
-     /*table th{*/
 
-       /*color: #ffb800;*/
 
-     /*}*/
 
- </style>
 
- <!-- 加载动画 -->
 
- <div class="page-loading">
 
-     <div class="ball-loader">
 
-         <span></span><span></span><span></span><span></span>
 
-     </div>
 
- </div>
 
- <!-- 正文开始 -->
 
- <div class="layui-fluid">
 
-     <div class="layui-card">
 
-         <div class="layui-card-body">
 
-             <div class="layui-card-header">
 
-                 隐患详情
 
-                 <div class="layui-inline pull-right">
 
-                     <button onclick="history.back()" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-normal">返回</button>
 
-                 </div>
 
-                 <div class="layui-inline pull-right">
 
-                     <button id="handleBtn" style="display: none" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-warm">关闭隐患</button>
 
-                 </div>
 
-             </div>
 
-             <div class="layui-card-body">
 
-                 <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
 
-                     <div class="layui-tab-content" style="height: auto;">
 
-                         <div class="layui-tab-item layui-show">
 
-                             <fieldset class="layui-elem-field layui-field-title">
 
-                                 <legend>基本信息</legend>
 
-                             </fieldset>
 
-                             <div class="layui-row" >
 
-                                 <!--<script type="text/html">-->
 
-                                     <div class="layui-col-xs12">
 
-                                         <div class="layui-form">
 
-                                             <table class="layui-table">
 
-                                                 <!--<colgroup>-->
 
-                                                     <!--<col width="150">-->
 
-                                                     <!--<col width="150">-->
 
-                                                     <!--<col width="200">-->
 
-                                                     <!--<col>-->
 
-                                                 <!--</colgroup>-->
 
-                                                 <thead>
 
-                                                 </thead>
 
-                                                 <tbody>
 
-                                                 <tr>
 
-                                                     <th width="150" >隐患名称</th>
 
-                                                     <td id="hdangerTitle"></td>
 
-                                                     <th width="150">隐患等级</th>
 
-                                                     <td id="hdangerLevelName"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">检查对象</th>
 
-                                                     <td id="acceptCheckname" ></td>
 
-                                                     <th width="150">整改状态</th>
 
-                                                     <td id="hdangerStatus"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">检查名称</th>
 
-                                                     <td id="checkName"></td>
 
-                                                     <th width="150">检查内容</th>
 
-                                                     <td id="checkContent"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">提交人</th>
 
-                                                     <td id="createName"></td>
 
-                                                     <th width="150">参与人员</th>
 
-                                                     <td id="checkPerson"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
- <!--                                                    <th width="150">整改期限</th>-->
 
- <!--                                                    <td id="hdangerRetifyDeadline"></td>-->
 
-                                                     <th width="150">创建日期</th>
 
-                                                     <td id="createdTime"  colspan="3"></td>
 
-                                                 </tr>
 
- <!--                                                <tr>-->
 
- <!--                                                    <th width="150">企业整改状态</th>-->
 
- <!--                                                    <td id="status" colspan="3"></td>-->
 
- <!--                                                </tr>-->
 
-                                                 <tr>
 
-                                                     <th width="150">现场描述</th>
 
-                                                     <td id="hdangerDesc" colspan="3"></td>
 
-                                                 </tr>
 
-                                                 <tr class="hidden-danger-img display-none">
 
-                                                     <th colspan="4" style="border-bottom: 0px">隐患现场照片
 
-                                                         <p id="hdangerAtt" class="m-top10px"></p>
 
-                                                     </th>
 
-                                                 </tr>
 
-                                                 <tr class="hidden-danger-video display-none">
 
-                                                     <th colspan="4" style="border-bottom: 0px">隐患现场视频
 
-                                                         <p id="hdangerVideo" class="m-top10px"></p>
 
-                                                         <!--<div id="video" style="width: 300px;height: 200px;"></div>-->
 
-                                                     </th>
 
-                                                 </tr>
 
-                                                 <tr style="border-left: 0px;border-right: 0px;" >
 
-                                                     <td  style="border-left: 0px;border-right: 0px;"  colspan="4"></td>
 
-                                                 </tr>
 
-                                                 </tbody>
 
-                                             </table>
 
-                                         </div>
 
-                                     </div>
 
-                                 <!--// </script>-->
 
-                             </div>
 
-                             <div class="getAcceptRecord display-none">
 
-                                 <fieldset class="layui-elem-field layui-field-title">
 
-                                     <legend>验收记录</legend>
 
-                                 </fieldset>
 
-                                 <div class="layui-row">
 
-                                     <div class="layui-col-xs12">
 
-                                         <div class="layui-form">
 
-                                             <table class="layui-table">
 
-                                                 <colgroup>
 
-                                                     <col width="80">
 
-                                                     <col width="200">
 
-                                                     <col width="200">
 
-                                                     <col>
 
-                                                     <col>
 
-                                                     <col>
 
-                                                 </colgroup>
 
-                                                 <thead>
 
-                                                 <tr>
 
-                                                     <th>序号</th>
 
-                                                     <th>时间</th>
 
-                                                     <th>部门</th>
 
-                                                     <th>处理人员</th>
 
-                                                     <th>处理结果</th>
 
-                                                     <th>说明</th>
 
-                                                 </tr>
 
-                                                 </thead>
 
-                                                 <tbody id="acceptRecord">
 
-                                                 </tbody>
 
-                                             </table>
 
-                                         </div>
 
-                                     </div>
 
-                                 </div>
 
-                             </div>
 
-                             <div class="getRetifyRecord display-none">
 
-                                 <fieldset class="layui-elem-field layui-field-title">
 
-                                     <legend>整改记录</legend>
 
-                                 </fieldset>
 
-                                 <div class="layui-row">
 
-                                     <div class="layui-col-xs12">
 
-                                         <div class="layui-form">
 
-                                             <table class="layui-table">
 
-                                                 <colgroup>
 
-                                                     <col width="80">
 
-                                                     <col width="200">
 
-                                                     <col width="200">
 
-                                                     <col>
 
-                                                     <col>
 
-                                                     <col>
 
-                                                     <col>
 
-                                                     <col>
 
-                                                     <col>
 
-                                                 </colgroup>
 
-                                                 <thead>
 
-                                                 <tr>
 
-                                                     <th>序号</th>
 
-                                                     <th>时间</th>
 
-                                                     <th>部门</th>
 
-                                                     <th>处理人员</th>
 
-                                                     <th>类型</th>
 
-                                                     <th>整改协助单位</th>
 
-                                                     <th>整改费用(元)</th>
 
-                                                     <th>原因分析</th>
 
-                                                     <th>整改措施</th>
 
-                                                 </tr>
 
-                                                 </thead>
 
-                                                 <tbody id="retifyRecord">
 
-                                                 </tbody>
 
-                                             </table>
 
-                                         </div>
 
-                                     </div>
 
-                                 </div>
 
-                             </div>
 
-                         </div>
 
-                     </div>
 
-                 </div>
 
-             </div>
 
-         </div>
 
-     </div>
 
- </div>
 
- <!-- js部分 -->
 
- <script type="text/javascript" src="../../../assets/libs/layui/layui.js"></script>
 
- <script type="text/javascript" src="../../../assets/js/common.js?v=312"></script>
 
- <script type="text/javascript" src="../../../assets/libs/ckplayer/ckplayer.js"></script>
 
- <script>
 
-     var hdangerId;
 
-     layui.use(['layer', 'form', 'table', 'util', 'zTree', 'admin', 'uParas', 'element', 'laytpl'], function () {
 
-         var $ = layui.jquery;
 
-         var layer = layui.layer;
 
-         var form = layui.form;
 
-         var util = layui.util;
 
-         var admin = layui.admin;
 
-         var uParas = layui.uParas;
 
-         var element = layui.element, laytpl = layui.laytpl;
 
-         var hdangerId = uParas.getUrlParam("hdangerId");
 
-         var hdangerStatus = uParas.getUrlParam("hdangerStatus");
 
-         if (hdangerStatus != null && hdangerStatus != '2'){
 
-             $("#handleBtn").show();
 
-         }
 
-         $("#handleBtn").click(function () {
 
-             $.ajax({
 
-                 url: uParas.baseUrl + "/org/hiddenDanger/updateStatus/"+hdangerId,
 
-                 dataType: "json",
 
-                 success: function (resp) {
 
-                     if (resp.code == 1) {
 
-                         location.href = "./index.html";
 
-                     } else {
 
-                         layer.msg(resp.msg);
 
-                     }
 
-                 }
 
-             });
 
-         });
 
-         admin.req(uParas.baseUrl + '/org/hiddenDanger/details?hdangerId=' + hdangerId, null, function (res) {
 
-             if (res.code == 1) {
 
-                 var hd = res.data;
 
-                 if(hd != null){
 
-                     $("#hdangerTitle").text(hd.hdangerTitle);
 
-                     $("#hdangerLevelName").text(setHdangerLevel(hd.hdangerLevel));
 
-                     $("#acceptCheckname").text(hd.acceptCheckname);
 
-                     var hdangerStatusStr = "";
 
-                     if (hd.hdangerStatus == "0"){
 
-                         hdangerStatusStr = "待整改";
 
-                     } else if (hd.hdangerStatus == "1"){
 
-                         hdangerStatusStr = "企业完成整改";
 
-                     }else{
 
-                         hdangerStatusStr = "已关闭";
 
-                     }
 
-                     $("#hdangerStatus").text(hdangerStatusStr);
 
-                     $("#checkName").text(hd.checkName);
 
-                     $("#checkContent").text(hd.checkContent);
 
-                     $("#createName").text(hd.createName);
 
-                     $("#checkPerson").text(hd.checkPerson);
 
-                     $("#hdangerDesc").text(hd.hdangerDesc);
 
-                     $("#hdangerRetifyDeadline").text(hd.hdangerRetifyDeadline);
 
-                     $("#status").text(setStatus(hd.status));
 
-                     $("#createdTime").text(hd.createdTime);
 
-                     var hiddendangerAtt = hd.attachList;
 
-                     if(hiddendangerAtt.length > 0) {
 
-                         var htmlImg = '';
 
-                         var htmlVideo = '';
 
-                         for (var i = 0; i < hiddendangerAtt.length; i++) {
 
-                             var att = hiddendangerAtt[i];
 
-                             if(att.fileType == "image"){
 
-                                 /*图片*/
 
-                                 htmlImg += '<a target ="_blank" href="'+att.filePath+'" style="margin-right: 10px;">';
 
-                                 htmlImg += '<img style="width: 60px;height: 80px;" src="'+att.filePath+'">';
 
-                                 htmlImg += '</a>';
 
-                             }else if(att.fileType == "video"){
 
-                                 /*视频*/
 
-                                 htmlVideo += '<a onclick="videoPlayer(\''+ att.filePath +'\');" >';
 
-                                 htmlVideo += '<div style="margin-right: 10px;width: 80px;height: 60px;">点击播放';
 
-                                 htmlVideo += '</div>';
 
-                                 htmlVideo += '</a>';
 
-                             }
 
-                         }
 
-                         if(htmlImg != ''){
 
-                             $('.hidden-danger-img').show();
 
-                             $('#hdangerAtt').html(htmlImg);
 
-                         }
 
-                         if(htmlVideo != ''){
 
-                             $('.hidden-danger-video').show();
 
-                             $('#hdangerVideo ').html(htmlVideo);
 
-                         }
 
-                     }
 
-                     var retifyList = hd.retifyList;
 
-                     if (retifyList != null && retifyList.length>0){
 
-                         retifyData(retifyList);
 
-                     }
 
-                     var acceptList = hd.acceptList;
 
-                     if (acceptList != null && acceptList.length>0){
 
-                         acceptData(acceptList);
 
-                     }
 
-                 }
 
-             }
 
-         }, 'get');
 
-         //企业隐患状态
 
-         function setStatus(status) {
 
-             var val = status;
 
-             if (val == '0') {
 
-                 return '不存在隐患'
 
-             } else if (val == '1') {
 
-                 return '待评审'
 
-             } else if (val == '2') {
 
-                 return '待整改';
 
-             } else if (val == '3') {
 
-                 return '待验收';
 
-             } else if (val == '4') {
 
-                 return '验收通过';
 
-             } else if (val == '5') {
 
-                 return '验收不通过';
 
-             } else if (val == '6') {
 
-                 return '已撤消';
 
-             } else if (val == '7') {
 
-                 return '已删除';
 
-             }else {
 
-                 return '待整改';
 
-             }
 
-         }
 
-         function setHdangerLevel(hdangerLevel) {
 
-             var title = '';
 
-             if (hdangerLevel == 1) {
 
-                 title = '重大';
 
-             }else if (hdangerLevel == 2) {
 
-                 title = '较大';
 
-             }else if (hdangerLevel == 3) {
 
-                 title = '一般';
 
-             }else if (hdangerLevel == 4) {
 
-                 title = '较低';
 
-             }else{
 
-                 return '未知';
 
-             }
 
-             return title;
 
-         }
 
-         //整改记录数据
 
-         function retifyData(records){
 
-             $('.getRetifyRecord').show();
 
-             $("#hdangerRetifyAmountspent").text((records[0].hdangerRetifyAmountspent) != null ? (records[0].hdangerRetifyAmountspent + ' 元'):'-');
 
-             $("#hdangerRetifyTypeName").text((records[0].hdangerRetifyTypeName) != null ? (records[0].hdangerRetifyTypeName):'-');
 
-             $("#hdangerRetifyMeasures").text((records[0].hdangerRetifyMeasures) != null ? (records[0].hdangerRetifyMeasures):'-');
 
-             $("#hdangerRetifyReasons").text(((records[0].hdangerRetifyReasons) != null && (records[0].hdangerRetifyReasons) != '') ? (records[0].hdangerRetifyReasons):'-');
 
-             $("#hdangerRetifycreatedTime").text((records[0].createdTime) != null ? (records[0].createdTime):'-');
 
-             $("#hdangerRetifyAssistingunit").text((records[0].hdangerRetifyAssistingunit) != null ? (records[0].hdangerRetifyAssistingunit):'-');
 
-             var retifyAtt = records[0].attachList;
 
-             if(retifyAtt.length > 0){
 
-                 $('#retifyAtt ').html('');
 
-                 $('.retify-img').show();
 
-                 var atthtml = '';
 
-                 for (var i = 0; i < retifyAtt.length; i++) {
 
-                     var att = retifyAtt[i];
 
-                     if(att.attachType == "image"){
 
-                         atthtml += '<a target ="_blank" href="'+att.attachPath+'" style="margin-right: 10px;">';
 
-                         atthtml += '<img style="width: 60px;height: 80px;" src="'+att.attachPath+'">';
 
-                         atthtml += '</a>';
 
-                     }
 
-                 }
 
-                 $('#retifyAtt ').html(atthtml);
 
-             }
 
-             $('.getRetifyRecord').show();
 
-             var html = "";
 
-             for (var i = 0; i < records.length; i++) {
 
-                 html += "<tr>";
 
-                 var record = records[i];
 
-                 html += "<td>" + (i+1) + "</td>";
 
-                 html += "<td>" + record.createdTime + "</td>";
 
-                 html += "<td>" + record.hdangerRetifyGroupName + "</td>";
 
-                 html += "<td>" + record.hdangerRetifyByName + "</td>";
 
-                 html += "<td>" + record.hdangerRetifyTypeName + "</td>";
 
-                 html += "<td>" + record.hdangerRetifyAssistingunit + "</td>";
 
-                 html += "<td>" + record.hdangerRetifyAmountspent + "</td>";
 
-                 html += "<td>" + record.hdangerRetifyReasons + "</td>";
 
-                 html += "<td>" + record.hdangerRetifyMeasures + "</td>";
 
-                 html += "</tr>";
 
-             }
 
-             $('#retifyRecord ').html(html);
 
-         }
 
-         //验收记录
 
-         function acceptData(records){
 
-             $('.getAcceptRecord').show();
 
-             $("#hdangerAcceptedResult").text((records[0].hdangerAcceptedResult) != null ? (records[0].hdangerAcceptedResult):'-');
 
-             $("#hdangerAcceptedRemark").text((records[0].hdangerAcceptedRemark) != null ? (records[0].hdangerAcceptedRemark):'-');
 
-             $("#hdangerAcceptedTime").text((records[0].hdangerAcceptedTime) != null ? (records[0].hdangerAcceptedTime):'-');
 
-             var acceptAtt = records[0].attachList;
 
-             if(acceptAtt.length > 0){
 
-                 $('#acceptAtt ').html('');
 
-                 $('.accept-img').show();
 
-                 var atthtml = '';
 
-                 for (var i = 0; i < acceptAtt.length; i++) {
 
-                     var att = acceptAtt[i];
 
-                     if(att.attachType == "image"){
 
-                         atthtml += '<a target ="_blank" href="'+att.attachPath+'" style="margin-right: 10px;">';
 
-                         atthtml += '<img style="width: 60px;height: 80px;" src="'+att.attachPath+'">';
 
-                         atthtml += '</a>';
 
-                     }
 
-                 }
 
-                 $('#acceptAtt ').html(atthtml);
 
-             }
 
-             $('.getAcceptRecord').show();
 
-             var html = "";
 
-             for (var i = 0; i < records.length; i++) {
 
-                 html += "<tr>";
 
-                 var record = records[i];
 
-                 html += "<td>" + (i+1) + "</td>";
 
-                 html += "<td>" + record.createdTime + "</td>";
 
-                 html += "<td>" + record.groupName + "</td>";
 
-                 html += "<td>" + record.hdangerAcceptedByName + "</td>";
 
-                 html += "<td>" + record.hdangerAcceptedResult + "</td>";
 
-                 html += "<td>" + record.hdangerAcceptedRemark + "</td>";
 
-                 html += "</tr>";
 
-             }
 
-             $('#acceptRecord ').html(html);
 
-         }
 
-     });
 
-     function videoPlayer(url) {
 
-         layer.open({
 
-             type: 2,
 
-             zIndex: 1000,
 
-             title: "视频播放",
 
-             shadeClose: true,
 
-             area: ['650px', '530px'],
 
-             content: "./videoPlayer.html?ipCameraUrl=" + url,
 
-             fixed: false
 
-         });
 
-     }
 
- </script>
 
- </body>
 
- </html>
 
 
  |