123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- <!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: 50px;
- 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/taskClean'); ?>" 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="date">
- <input type="text" placeholder="清洁开始时间" name="beginTime" class="some_class" value="<?php echo isset($_GET['beginTime'])?$_GET['beginTime']:'' ;?>" id="some_class_1"/>
- <span style="position: relative;left:-25px;cursor: pointer;color: red;" onclick="javascript:$(this).prev().val('');">x</span>
- --
- <input type="text" placeholder="清洁结束时间" name="endTime" class="some_class" value="<?php echo isset($_GET['endTime'])?$_GET['endTime']:'' ;?>" id="some_class_2"/>
- <span style="position: relative;left:-25px;cursor: pointer;color: red;" onclick="javascript:$(this).prev().val('');">x</span>
- </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):
- ?>
- <?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'] == 1) echo '<a href="'.$this->createUrl('imsDevice/taskSubmit',array('epsId'=>$item['epsId'])).'">提交</a>';
- elseif($item['status'] > 1) {
- // echo '<a onclick="submitOrder('.$item['epsId'].')" class="btn-review">中止</a>';
- if($item['status'] == 9 && !$item['finalResult']){
- echo '<a href="'.$this->createUrl('imsDevice/taskView',array('epsId'=>$item['epsId'], 'isGroup'=>0)).'">查看</a> '.'<a href="'.$this->createUrl('imsDevice/taskSubmit',array('epsId'=>$item['epsId'])).'">重新提交</a>' ;
- }elseif($item['status'] == 2){
- echo '<a href="'.$this->createUrl('imsDevice/taskView',array('epsId'=>$item['epsId'], 'isGroup'=>0)).'">查看</a> '.'<a style="cursor:pointer;" onclick="submitOrder(\''.$item['epsId'].'\')" class="btn-review">中止</a>' ;
- }else{
- echo '<a href="'.$this->createUrl('imsDevice/taskView',array('epsId'=>$item['epsId'], 'isGroup'=>0)).'">查看</a>' ;
- }
- }
- ?>
- </td>
- </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['beginTime']) && $_GET['beginTime']) {
- $params['beginTime'] = $_GET['beginTime'];
- }
- if (isset($_GET['endTime']) && $_GET['endTime']) {
- $params['endTime'] = $_GET['endTime'];
- }
- if (isset($_GET['page'])) {
- $params['page'] = $_GET['page'];
- }else{
- $params['page'] = 1;
- }
- echo formatPage($page, 'imsDevice/taskClean', $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['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 H:i:s", //格式化日期
- //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');
- });
- //确认提交
- function submitOrder(id) {
- layer.confirm('确认中止?', {
- btn: ['确定','取消'] //按钮
- }, function(){
- $.ajax({
- url: "<?php echo $this->createUrl('imsDevice/Suspend?epsId=');?>" + id,
- type: "post",
- dataType: "json",
- success: function (data) {
- if (data.status === 1) {
- layer.alert("操作成功", {icon: 1,closeBtn:0}, function () {
- location.reload();
- })
- }else {
- layer.msg(data.msg);
- }
- }
- });
- });
- }
- </script>
- </body>
- </html>
|