| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 | 
							- <!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">
 
- </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"><i class="layui-icon"></i>返回</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" >
 
-                                     <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="riskCheckDefTitle"></td>
 
-                                                     <th width="150">检查类型</th>
 
-                                                     <td id="checkMode">
 
-                                                     </td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">执行部门</th>
 
-                                                     <td id="groupName" ></td>
 
-                                                     <th width="150">执行岗位</th>
 
-                                                     <td id="positionName"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">检查频率</th>
 
-                                                     <td id="checkType"></td>
 
-                                                     <th width="150">任务状态</th>
 
-                                                     <td id="status"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">开始时间</th>
 
-                                                     <td id="startTime"></td>
 
-                                                     <th width="150">截至时间</th>
 
-                                                     <td id="endTime"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">检查时间</th>
 
-                                                     <td id="executeTime"></td>
 
-                                                     <th width="150">完成时间</th>
 
-                                                     <td id="finishTime"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">参与人员</th>
 
-                                                     <td id="riskCheckParticipantName"></td>
 
-                                                     <th width="150">检查类型</th>
 
-                                                     <td id="riskCheckTypeName"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">描述</th>
 
-                                                     <td id="riskCheckDefDesc" colspan="3"></td>
 
-                                                 </tr>
 
-                                                 </tbody>
 
-                                             </table>
 
-                                         </div>
 
-                                     </div>
 
-                             </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>
 
-                                                     <th>完成时间</th>
 
-                                                     <th>操作</th>
 
-                                                 </tr>
 
-                                                 </thead>
 
-                                                 <tbody id="subTask">
 
-                                                 </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>
 
-     layui.use(['layer', 'form', 'table', 'util', 'zTree', 'admin', 'uParas'], function () {
 
-         var $ = layui.jquery;
 
-         var layer = layui.layer;
 
-         var form = layui.form;
 
-         var util = layui.util;
 
-         var admin = layui.admin;
 
-         var uParas = layui.uParas;
 
-         //debugger;
 
-         var scheduleId = uParas.getUrlParam("scheduleId");
 
-         admin.req(uParas.baseUrl + '/ent/riskCheckedSchdule/myDetail/' + scheduleId, null, function (res) {
 
-             if (res.code == 1) {
 
-                 var schduleDto = res.data.schduleDto;
 
-                 if(schduleDto != null){
 
-                     $("#riskCheckDefTitle").text(schduleDto.riskCheckDefTitle);
 
-                     if (schduleDto.checkMode == '1'){
 
-                         $("#checkMode").text("现场检查");
 
-                     }else{
 
-                         $("#checkMode").text("基础检查");
 
-                     }
 
-                     $("#groupName").text(schduleDto.groupName);
 
-                     $("#positionName").text(schduleDto.riskCheckPositionName);
 
-                     //检查频率
 
-                     var checkCycle = "";
 
-                     if (schduleDto.checkType == 'random'){
 
-                         checkCycle = "临时性检查,无固定频率";
 
-                     }else{
 
-                         if (schduleDto.scheduleFrequency == 'year' ){
 
-                             checkCycle = schduleDto.scheduleCount + "次/年";
 
-                         }else if (schduleDto.scheduleFrequency == 'half_year'){
 
-                             checkCycle = schduleDto.scheduleCount + "次/半年";
 
-                         }else if (schduleDto.scheduleFrequency == 'quarter') {
 
-                             checkCycle = schduleDto.scheduleCount + "次/季度";
 
-                         }else if (schduleDto.scheduleFrequency == 'month') {
 
-                             checkCycle = schduleDto.scheduleCount + "次/月";
 
-                         }else if (schduleDto.scheduleFrequency == 'week') {
 
-                             checkCycle = schduleDto.scheduleCount + "次/周";
 
-                         }else if (schduleDto.scheduleFrequency == 'day'){
 
-                             checkCycle = schduleDto.scheduleCount + "次/天";
 
-                         }
 
-                     }
 
-                     $("#checkType").text(checkCycle);
 
-                     //任务状态
 
-                     var statusStr = "";
 
-                     if (schduleDto.status === 2) {
 
-                         statusStr = "已检查";
 
-                     } else if (schduleDto.status === 1) {
 
-                         statusStr = "进行中";
 
-                     } else if (schduleDto.status === 0) {
 
-                         statusStr = "未检查";
 
-                         if (schduleDto.checkType === "random"){
 
-                             var curTime = new Date();
 
-                             var endtime = new Date(schduleDto.endTime);
 
-                             if (curTime >= endtime) {
 
-                                 statusStr = "已逾期";
 
-                             }
 
-                         }
 
-                     } else if (schduleDto.status === 3) {
 
-                         statusStr = "已逾期";
 
-                     } else {
 
-                         statusStr = "未知"
 
-                     }
 
-                     $("#status").text(statusStr);
 
-                     $("#startTime").text(schduleDto.startTime);
 
-                     $("#endTime").text(schduleDto.endTime);
 
-                     if (schduleDto.executeTime != null){
 
-                         $("#executeTime").text(schduleDto.executeTime);
 
-                     }else{
 
-                         $("#executeTime").text("-");
 
-                     }
 
-                     if (schduleDto.finishTime != null){
 
-                         $("#finishTime").text(schduleDto.finishTime);
 
-                     }else{
 
-                         $("#finishTime").text("-");
 
-                     }
 
-                     //$("#finishTime").text(schduleDto.finishTime);
 
-                     $("#riskCheckParticipantName").text(schduleDto.riskCheckParticipantName);
 
-                     $("#riskCheckTypeName").text(schduleDto.riskCheckTypeName);
 
-                     $("#riskCheckDefDesc").text(schduleDto.riskCheckDefDesc);
 
-                     var subList = res.data.subList;
 
-                     if (subList != null && subList.length > 0){
 
-                         var html = "";
 
-                         $.each(subList,function (i, item) {
 
-                                 html += "<tr>";
 
-                                 html += "<td>" + (i+1) + "</td>";
 
-                                 html += "<td>" + item.groupName + "</td>";
 
-                                 html += "<td>" + item.riskCheckPositionName + "</td>";
 
-                                 html += "<td>" + item.executorName + "</td>";
 
-                                 var subStatus = "";
 
-                                 if (item.status == 0 ){
 
-                                     subStatus = "未检查";
 
-                                 }else if (item.status == 1 ){
 
-                                     subStatus = "进行中";
 
-                                 }else if (item.status == 2 ){
 
-                                     subStatus = "已检查";
 
-                                 }
 
-                                 html += "<td>" + subStatus + "</td>";
 
-                                 if (item.executeTime != null){
 
-                                     html += "<td>" + item.executeTime + "</td>";
 
-                                 }else{
 
-                                     html += "<td>-</td>";
 
-                                 }
 
-                                 if (item.finishTime != null){
 
-                                     html += "<td>" + item.finishTime + "</td>";
 
-                                 }else{
 
-                                     html += "<td>-</td>";
 
-                                 }
 
-                                 html += "<td>" + "<a href=''>检查记录</a>" + "</td>";
 
-                                 html += "</tr>";
 
-                         });
 
-                         $('#subTask ').html(html);
 
-                     }
 
-                 }
 
-             }
 
-         }, 'get');
 
-         /*验收记录*/
 
-         /*admin.req(uParas.baseUrl + '/ent/hiddenDanger/getAcceptRecord?hdangerId=' + hdangerId, null, function (res) {
 
-             if (res.code == 1) {
 
-                 var records = res.data;
 
-                 if (records.length > 0) {
 
-                     $("#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);
 
-                 }
 
-             }
 
-         }, 'get');*/
 
-     });
 
- </script>
 
- </body>
 
- </html>
 
 
  |