123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>清洁单列表</title>
- <meta name="description" content="">
- <meta name="keywords" content="">
- <link href="/css/ims/base.css" rel="stylesheet">
- <link rel="stylesheet" type="text/css" href="/css/ims/bootstrap.min.css"/>
- <link rel="stylesheet" type="text/css" href="/css/ims/jquery.datetimepicker.css"/>
- <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css"/>
- <style>
- .green {
- color: green;
- }
- .red {
- color: red;
- }
- .ims-box {
- margin: 20px;
- }
- .screen > div {
- float: left;
- margin-right: 8px;
- }
- .screen .date > input {
- height: 30px;
- border-radius: 4px;
- border: 1px solid #ccc;
- box-shadow: none;
- text-indent: 10px;
- }
- .screen .purposeOrderNo > input {
- height: 30px;
- border-radius: 4px;
- border: 1px solid #ccc;
- box-shadow: none;
- text-indent: 10px;
- }
- .screen button {
- padding: 4px 12px;
- }
- .table-box {
- margin-top: 30px;
- }
- .btn-formal-order {
- cursor: pointer;
- }
- .application-number-box {
- margin-top: 20px;
- text-align: center;
- }
- .application-number-box span {
- margin-right: 20px;
- }
- .layui-layer-btn .layui-layer-btn0 {
- border-color: #15ae68 !important;
- background-color: #15ae68 !important;
- color: #fff;
- }
- .btn-date_show{
- display: inline-block;width: 170px;overflow: hidden; text-overflow:ellipsis; white-space: nowrap;
- }
- </style>
- </head>
- <body>
- <div class="ims-box">
- <form action="<?php echo Yii::app()->createUrl('imsDevice/taskVerify'); ?>" method="get">
- <div class="screen">
- <div class="purposeOrderNo">
- <input type="text" placeholder="计划名称" id="epName" name="epName" value="<?php echo isset($_GET['epName'])?$_GET['epName']:'' ;?>"/>
- </div>
- <div class="diy_select">
- <input type="hidden" id="schoolsId" name="storageId" class="diy_select_input" value="<?php echo isset($storageId) ? $storageId : 0; ?>">
- <div class="diy_select_txt"><?php echo isset($storageId) && $storageId > 0 ? $page['school'][$storageId] : '请选择学校'; ?></div>
- <div class="diy_select_btn"></div>
- <ul class="diy_select_list" style="display: none;">
- <?php if ($page['school']): ?>
- <li val="" >请选择学校</li>
- <?php foreach ($page['school'] as $school_id => $school_name): ?>
- <li val="<?php echo $school_id ?>" <?php echo isset($storageId) && $storageId == $school_id ? 'class' : ''; ?>><?php echo $school_name ?></li>
- <?php endforeach; ?>
- <?php else: ?>
- <li val="">暂无学校</li>
- <?php endif; ?>
- </ul>
- </div>
- <div class="diy_select">
- <input type="hidden" id="schoolsId" name="taskStatus" class="diy_select_input" value="<?php echo (isset($status) && $status>=0) ? $status : -1; ?>">
- <div class="diy_select_txt"><?php echo (isset($status) && $status >= 0) ? $page['taskStatus'][$status] : '请选择任务状态'; ?></div>
- <div class="diy_select_btn"></div>
- <ul class="diy_select_list" style="display: none;">
- <li val="-1" >请选择任务状态</li>
- <li val="0" <?php echo isset($status) && $status == 0 ? 'class' : ''; ?>>未发布</li>
- <li val="1" <?php echo isset($status) && $status == 1 ? 'class' : ''; ?>>学管清洁中</li>
- <li val="2" <?php echo isset($status) && $status == 2 ? 'class' : ''; ?>>组长审核中</li>
- <li val="3" <?php echo isset($status) && $status == 3 ? 'class' : ''; ?>>组长审核完成</li>
- <li val="4" <?php echo isset($status) && $status == 4 ? 'class' : ''; ?>>设备部抽查中</li>
- <li val="5" <?php echo isset($status) && $status == 5 ? 'class' : ''; ?>>完成</li>
- <li val="6" <?php echo isset($status) && $status == 6 ? 'class' : ''; ?>>学管超时</li>
- <li val="7" <?php echo isset($status) && $status == 7 ? 'class' : ''; ?>>组长超时</li>
- </ul>
- </div>
- <div class="diy_select">
- <input type="hidden" id="schoolsId" name="checkResult" class="diy_select_input" value="<?php echo (isset($finalResult) && $finalResult>=0) ? $finalResult : -1; ?>">
- <div class="diy_select_txt"><?php echo (isset($finalResult) && $finalResult >= 0) ? $page['result'][$finalResult] : '请选择最终结果'; ?></div>
- <div class="diy_select_btn"></div>
- <ul class="diy_select_list" style="display: none;">
- <li val="-1" >请选择最终结果</li>
- <?php foreach ($page['result'] as $result_id => $result_name): ?>
- <li val="<?php echo $result_id ?>" <?php echo isset($finalResult) && $finalResult == $result_id ? 'class' : ''; ?>><?php echo $result_name ?></li>
- <?php endforeach; ?>
- </ul>
- </div>
- <button type="submit" class="label-primary-s bth-s">查询</button>
- </div>
- </form>
- <div class="table-box">
- <table id="intention-table"
- class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
- style="font-size:12px">
- <thead>
- <tr>
- <th>计划名称</th>
- <th>计划编号</th>
- <th>提交截止时间</th>
- <th>要求清洁日期</th>
- <th>设备编号</th>
- <th>设备名称</th>
- <th>设备状态</th>
- <th>任务提交时间</th>
- <th>状态</th>
- <th>最终审核结果</th>
- <th>组长</th>
- <th>组长审核意见</th>
- <th>学管部审核意见</th>
- <th>设备部审核意见</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <?php
- if ($list):
- if (isset($_GET['page'])) {
- $nowPage = $_GET['page'];
- }else{
- $nowPage = 1;
- }
- ?>
- <?php foreach ($list as $item): ?>
- <tr>
- <td><?php echo $item['epName'];?></td>
- <td><?php echo $item['epCode'];?></td>
- <td><?php echo $item['coachDate'];?></td>
- <td><?php echo $item['epDate'];?></td>
- <td><?php echo $item['fixedCode'];?></td>
- <td><?php echo $item['itemName'];?></td>
- <td><?php echo $item['fixedStatus'];?></td>
- <td><?php echo $item['coachRealDate'];?></td>
- <td><?php echo $item['statusName'];?></td>
- <td><?php echo $item['finalResultName'];?></td>
- <td><?php echo $item['groupName'];?></td>
- <td><?php echo $item['groupCheckResultName'];?></td>
- <td><?php echo $item['recheckResultName'];?></td>
- <td><?php echo $item['spotCheckResultName'];?></td>
- <td><?php if($item['status'] == 2)echo '<a href="'.$this->createUrl('imsDevice/taskView',array('epsId'=>$item['epsId'], 'isGroup'=>1,'page'=>$nowPage)).'">审核</a>' ;elseif($item['status'] > 2) echo '<a href="'.$this->createUrl('imsDevice/taskView',array('epsId'=>$item['epsId'], 'isGroup'=>2)).'">查看</a>';?></td>
- <input type="hidden" id="epsId" />
- </tr>
- <?php endforeach; ?>
- <?php endif; ?>
- </tbody>
- </table>
- <?php if ($page): ?>
- <div class="col-sm-12">
- <ul class="pagination">
- <?php
- $params = array();
- if (isset($_GET['epName']) && $_GET['epName']) {
- $params['epName'] = $_GET['epName'];
- }
- if (isset($_GET['storageId']) && $_GET['storageId']) {
- $params['storageId'] = $_GET['storageId'];
- }
- if (isset($_GET['taskStatus']) && $_GET['taskStatus']) {
- $params['taskStatus'] = $_GET['taskStatus'];
- }
- if (isset($_GET['checkResult']) && $_GET['checkResult']) {
- $params['checkResult'] = $_GET['checkResult'];
- }
- if (isset($_GET['page'])) {
- $params['page'] = $_GET['page'];
- }else{
- $params['page'] = 1;
- }
- echo formatPage($page, 'imsDevice/taskVerify', $params);
- ?>
- </ul>
- </div>
- <?php endif; ?>
- </div>
- </div>
- <script src="/js/productset/jquery.min.js"></script>
- <script src="/js/ims/jquery.datetimepicker.js"></script>
- <script src="/js/ims/xsgl.js"></script>
- <script src="/js/layer/layer.js"></script>
- <script>
- $(document).ready(function () {
- //筛选条件赋值
- <?php if(isset($_GET['beginTime'])):?>
- $("#some_class_1").attr("value","<?php echo $_GET['beginTime']?>");
- $("#some_class_2").attr("value", "<?php echo $_GET['endTime']?>");
- <?php endif;?>
- <?php if(isset($_GET['goodsId']) && $_GET['goodsId']):?>
- var goodsId = "<?php echo $_GET['goodsId'];?>";
- $('#goodsId').val(goodsId);
- var txt = $('.diy_select li[val='+goodsId+']').html();
- $('.diy_select_txt').html(txt);
- <?php endif;?>
- $('.some_class').datetimepicker({
- format: "Y-m-d", //格式化日期
- timepicker: false //关闭时间选项
- });
- $(".btn-date_show").on("click", function () {
- layer.alert($(this).text(), {
- title: '使用月份',
- area: ['420px', '240px']
- });
- });
- });
- $('body').on('focus', '#applicationNumber', function () {
- $('.alert-msg').css("display",'none');
- });
- </script>
- </body>
- </html>
|