作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

interface

@@ -35,17 +35,11 @@ class AdminOrderController extends AdminBaseController{ @@ -35,17 +35,11 @@ class AdminOrderController extends AdminBaseController{
35 if (!empty($param['order_no'])){ 35 if (!empty($param['order_no'])){
36 $where['order_no']=['like','%'.$param['order_no'].'%']; 36 $where['order_no']=['like','%'.$param['order_no'].'%'];
37 } 37 }
38 - if (!empty($param['hospital'])){  
39 - $where['hospital']=$param['hospital'];  
40 - }  
41 38
42 - if (!empty($param['start_number'])&&!empty($param['end_number'])){  
43 - $where['serial_number']=['between',[$param['start_number'],$param['end_number']]];  
44 - }  
45 $Order=new OrderModel(); 39 $Order=new OrderModel();
46 $data=$Order->alias('a') 40 $data=$Order->alias('a')
47 - ->field('a.*,b.serial_number,b.hospital')  
48 - ->join('equipment b','a.eq_name=b.name') 41 +// ->field('a.*,b.serial_number,b.hospital')
  42 +// ->join('equipment b','a.eq_name=b.name')
49 ->where($where) 43 ->where($where)
50 ->order('start_time','desc') 44 ->order('start_time','desc')
51 ->paginate(10); 45 ->paginate(10);
@@ -9,16 +9,6 @@ @@ -9,16 +9,6 @@
9 订单号: 9 订单号:
10 <input type="text" class="form-control" name="order_no" style="width: 200px;" 10 <input type="text" class="form-control" name="order_no" style="width: 200px;"
11 value="{$order_no|default=''}" placeholder="请输入关键字..."> 11 value="{$order_no|default=''}" placeholder="请输入关键字...">
12 - 所属医院:  
13 - <input type="text" class="form-control" name="hospital" style="width: 200px;"  
14 - value="{$hospital|default=''}" placeholder="请输入关键字...">  
15 - 设备编号:  
16 - <input type="text" class="form-control" name="start_number"  
17 - value="{$start_number|default=''}"  
18 - style="width: 80px;" autocomplete="off">-  
19 - <input type="text" class="form-control" name="end_number"  
20 - value="{$end_number|default=''}"  
21 - style="width: 80px;" autocomplete="off"> &nbsp; &nbsp;  
22 <input type="submit" class="btn btn-primary" value="搜索"/> 12 <input type="submit" class="btn btn-primary" value="搜索"/>
23 <a class="btn btn-danger" href="{:url('AdminOrder/index')}">清空</a> 13 <a class="btn btn-danger" href="{:url('AdminOrder/index')}">清空</a>
24 </form> 14 </form>
@@ -28,8 +18,7 @@ @@ -28,8 +18,7 @@
28 <tr> 18 <tr>
29 <th width="50">ID</th> 19 <th width="50">ID</th>
30 <th>订单编号</th> 20 <th>订单编号</th>
31 - <th>设备锁编号</th>  
32 - <th>所在医院</th> 21 + <th>用户id</th>
33 <th>开始使用时间</th> 22 <th>开始使用时间</th>
34 <th>结束使用时间</th> 23 <th>结束使用时间</th>
35 <th>使用时长</th> 24 <th>使用时长</th>
@@ -40,8 +29,7 @@ @@ -40,8 +29,7 @@
40 <tr> 29 <tr>
41 <td><b>{$vo.id}</b></td> 30 <td><b>{$vo.id}</b></td>
42 <td>{$vo.order_no}</td> 31 <td>{$vo.order_no}</td>
43 - <td>{$vo.serial_number}</td>  
44 - <td>{$vo.hospital}</td> 32 + <td>{$vo.users_id}</td>
45 <td>{:date('Y-m-d H:i:s',$vo.start_time)}</td> 33 <td>{:date('Y-m-d H:i:s',$vo.start_time)}</td>
46 <td>{:date('Y-m-d H:i:s',$vo.end_time)}</td> 34 <td>{:date('Y-m-d H:i:s',$vo.end_time)}</td>
47 <td>{$vo.time}小时</td> 35 <td>{$vo.time}小时</td>