123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <?php
- $repairType_arr = array(0=>'远程维修',1=>'上门维修');
- $allocationType_arr = array(0=>'内部派单',1=>'外部派单');
- $repairResult_arr = array(0=>'确认已修好',1=>'未修好',2=>'申请已修好');
- ?>
- <!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/ace.min.css"/>
- <style>
- .ims-box {
- margin: 20px;
- }
- .screen > div {
- margin: 0 5px;
- line-height: 30px;
- }
- .yellow {
- color: #FF9900;
- }
- .screen > 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-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/repairRecord'); ?>" method="get">
- <div class="screen">
- <span class="fl">派单类型:</span>
- <div class="diy_select">
- <input type="hidden" id="allocationType" name="allocationType" class="diy_select_input" value="<?php echo isset($_GET['allocationType'])?$_GET['allocationType']:-1;?>">
- <div class="diy_select_txt pm_status_txt"><?php echo isset($_GET['repairType'])? (isset($allocationType_arr[$_GET['allocationType']])?$allocationType_arr[$_GET['allocationType']]:'请选择') :'请选择';?></div>
- <div class="diy_select_btn"></div>
- <ul class="diy_select_list pm_status" style="display: none;">
- <li val="-1">请选择</li>
- <li val="0">内部派单</li>
- <li val="1">外部派单</li>
- </ul>
- </div>
- <span class="fl">维修方式:</span>
- <div class="diy_select">
- <input type="hidden" id="repairType" name="repairType" class="diy_select_input" value="<?php echo isset($_GET['repairType'])?$_GET['repairType']:-1;?>">
- <div class="diy_select_txt pm_status_txt"><?php echo isset($_GET['repairType'])? (isset($repairType_arr[$_GET['repairType']])?$repairType_arr[$_GET['repairType']]:'请选择') :'请选择';?></div>
- <div class="diy_select_btn"></div>
- <ul class="diy_select_list pm_status" style="display: none;">
- <li val="-1">请选择</li>
- <li val="0">远程维修</li>
- <li val="1">上门维修</li>
- </ul>
- </div>
- <span class="fl">维修结果:</span>
- <div class="diy_select">
- <input type="hidden" id="repairResult" name="repairResult" class="diy_select_input" value="<?php echo isset($_GET['repairResult'])?$_GET['repairResult']:-1;?>">
- <div class="diy_select_txt pm_status_txt"><?php echo isset($_GET['repairResult'])? (isset($repairResult_arr[$_GET['repairResult']])?$repairResult_arr[$_GET['repairResult']]:'请选择') :'请选择';?></div>
- <div class="diy_select_btn"></div>
- <ul class="diy_select_list pm_status" style="display: none;">
- <li val="-1">请选择</li>
- <li val="0">确认已修好</li>
- <li val="1">未修好</li>
- <li val="2">申请已修好</li>
- </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>
- </tr>
- </thead>
- <tbody>
- <?php if ($list): ?>
- <?php foreach ($list as $item): ?>
- <tr>
- <td><?php echo $item['code'];?></td>
- <td><?php echo $item['rCode'];?></td>
- <td><?php echo isset($allocationType_arr[$item['allocationType']])?$allocationType_arr[$item['allocationType']]:'';?></td>
- <td><?php echo $item['createTime'];?></td>
- <td><?php echo $item['address'];?></td>
- <td><?php echo isset($repairType_arr[$item['repairType']])?$repairType_arr[$item['repairType']]:'';?></td>
- <td><?php echo isset($repairResult_arr[$item['repairResult']])?$repairResult_arr[$item['repairResult']]:'';?></td>
- <td><?php echo $item['createBy'];?></td>
- <td><?php echo $item['createTime'];?></td>
- <td><a href="<?php echo $this->createUrl('imsDevice/viewRecord',array('id'=>$item['id']));?>" class="btn-review">查看</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['page'])) {
- $params['page'] = $_GET['page'];
- }else{
- $params['page'] = 1;
- }
- echo formatPage($page, 'imsDevice/repairRecord', $params)
- ?>
- </ul>
- </div>
- <?php endif; ?>
- </div>
- </div>
- <script src="/js/productset/jquery.min.js"></script>
- <script src="/js/ims/xsgl.js"></script>
- <script src="/js/layer/layer.js"></script>
- <script>
- $(document).ready(function () {
- function useType() {
- $(".use-type").each(function (index) {
- if ($(this).attr('status') == 1) {
- $(this).addClass("yellow");
- } else if ($(this).attr('status') == 2) {
- $(this).addClass("red");
- }else {
- $(this).addClass("green");
- }
- })
- }
- useType();
- });
- </script>
- </body>
- </html>
|