| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325 | 
							- <!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" id="itemTable" lay-filter="itemTable">
 
-                                             </table>
 
-                                             <!--<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', 'treetable'], 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 treetable = layui.treetable;
 
-         //debugger;
 
-         var scheduleId = uParas.getUrlParam("scheduleId");
 
-         var bizCheckDefId = "";
 
-         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);
 
-                     bizCheckDefId = schduleDto.bizCheckDefId;
 
-                     renderTable();
 
-                     //var subList = schduleDto.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');
 
-         // 渲染检查项表格
 
-         function renderTable() {
 
-             var url  = uParas.baseUrl+'/ent/schduleChecked/getSchduleCheckedItems';
 
-             layer.load();
 
-             treetable.render({
 
-                 elem: '#itemTable',
 
-                 treeColIndex: 0,//树形图标显示在第几列
 
-                 treeSpid: 0,//最上级的父级id
 
-                 page: false,
 
-                 totalRow:false,
 
-                 treeIdName: 'checkItemDefId',
 
-                 treePidName: 'parentId',
 
-                 url: url,
 
-                 where: {
 
-                     "checkDefId":bizCheckDefId,
 
-                     "scheduleId":scheduleId
 
-                 },
 
-                 cellMinWidth: 100,
 
-                 cols: [[
 
-                     {type  :'numbers'  ,title :'#'},
 
-                     // {field  :'checkItemDefId'  ,title :'选择',width:58,align :'center',
 
-                     //     templet: function (d) {
 
-                     //         if(d.parentId != 0 && d.checkResult === CHECK_RESULT_WJC){
 
-                     //             return "<input type='checkbox' lay-skin='primary' name='layTableCheckbox' value='" + d.checkItemDefId + "'>";
 
-                     //         }else{
 
-                     //             return '';
 
-                     //         }
 
-                     //     }
 
-                     // },
 
-                     {field :'checkItemDefName' ,title :'检查项 / 检查内容名称' ,align :'left' ,width:250 ,minWidth: 120},
 
-                     {field : 'checkItemDefDesc'  ,title :'具体检查内容' ,align :'left' },
 
-                     {field : 'checkItemDefMethod'  ,title :'检查方法' ,align :'left' },
 
-                     {field : 'checkItemDefRule'  ,title :'检查依据' ,align :'left' },
 
-                     {field : 'punishItemDefRule'  ,title :'处罚依据' ,align :'left' },
 
-                     /*{field: 'checkResult', align: 'center',sort: false, title: '检查结果', width: 100,
 
-                         templet: function (d) {return setCheckResult(d);}
 
-                     },
 
-                     {title:'操作', width: 250,
 
-                         templet: function (d) {return setOperation(d.checkResult,d.parentId);}
 
-                     }*/
 
-                 ]],
 
-                 done : function(){
 
-                     layer.closeAll('loading');
 
-                 }
 
-             });
 
-         }
 
-     });
 
- </script>
 
- </body>
 
- </html>
 
 
  |