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

cost

@@ -86,6 +86,11 @@ class OrderController extends HomeBaseController{ @@ -86,6 +86,11 @@ class OrderController extends HomeBaseController{
86 } 86 }
87 87
88 public function getPrice($start_time,$end_time){ 88 public function getPrice($start_time,$end_time){
  89 + $cost=Db::name('cost')->where('id',1)->find();
  90 + $interval = Db::name('interval')->where('id',1)->find();
  91 +
  92 + //判断是否在时间段内
  93 +
89 94
90 $price=1; 95 $price=1;
91 return $price; 96 return $price;
@@ -49,11 +49,12 @@ @@ -49,11 +49,12 @@
49 <th>设备锁编号</th> 49 <th>设备锁编号</th>
50 <th>设备锁名称</th> 50 <th>设备锁名称</th>
51 <th>初始医院设置</th> 51 <th>初始医院设置</th>
  52 + <th>设备电量状态</th>
52 <th>导入时间</th> 53 <th>导入时间</th>
53 <th>二维码</th> 54 <th>二维码</th>
54 <th>备注</th> 55 <th>备注</th>
55 <th>设备状态</th> 56 <th>设备状态</th>
56 - <th>查看秘钥</th> 57 + <!--<th>查看秘钥</th>-->
57 <th width="90">操作</th> 58 <th width="90">操作</th>
58 </tr> 59 </tr>
59 </thead> 60 </thead>
@@ -77,6 +78,12 @@ @@ -77,6 +78,12 @@
77 {$vo.hospital} 78 {$vo.hospital}
78 </td> 79 </td>
79 <td> 80 <td>
  81 + <switch name="vo.electricity">
  82 + <case value="0"><span class="label-success">低电</span></case>
  83 + <case value="1"><span class="label-warning">正常</span></case>
  84 + </switch>
  85 + </td>
  86 + <td>
80 {$vo.create_time} 87 {$vo.create_time}
81 </td> 88 </td>
82 <td> 89 <td>
@@ -91,9 +98,9 @@ @@ -91,9 +98,9 @@
91 <case value="1"><span class="label-warning">占用</span></case> 98 <case value="1"><span class="label-warning">占用</span></case>
92 </switch> 99 </switch>
93 </td> 100 </td>
94 - <td>  
95 - {$vo.key}  
96 - </td> 101 + <!--<td>-->
  102 + <!--{$vo.key}-->
  103 + <!--</td>-->
97 <td> 104 <td>
98 <a href="{:url('AdminEquipment/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a> 105 <a href="{:url('AdminEquipment/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
99 <a href="{:url('AdminEquipment/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a> 106 <a href="{:url('AdminEquipment/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>