提交 c615d43e authored 作者: chengye's avatar chengye

缴费单列表添加站名,添加缴费状态查询条件

上级 2408b23e
......@@ -40,6 +40,8 @@ class Payment extends Base
}
$search_text = Request::get('search_text');
$search_type = Request::get('search_type');
$payment_status = Request::get('payment_status');
if($search_text){
switch ($search_type) {
case '1':
......@@ -63,6 +65,29 @@ class Payment extends Base
$map[]=['em.em_numb','like',"%$search_text%"];
$this->assign('search_type',$search_type);
break;
case '4':
$this->assign('search_text',$search_text);
$map[]=['station.station_name','like',"%$search_text%"];
$this->assign('search_type',$search_type);
break;
}
}else{
$this->assign('search_type','');
$this->assign('search_text','');
}
//缴费状态
if($payment_status){
switch ($payment_status) {
case '0':
$this->assign('status',$payment_status);
$map[]=['status','=',"%$payment_status%"];
$this->assign('payment_status',$payment_status);
break;
case '1':
$this->assign('status',$payment_status);
$map[]=['status','=',"%$payment_status%"];
$this->assign('payment_status',$payment_status);
break;
}
}else{
$this->assign('search_type','');
......
......@@ -16,6 +16,13 @@
<option value="1" selected="selected" {if $search_type eq 1 } selected {/if}>缴费单号</option>
<option value="2" {if $search_type eq 2 } selected {/if}>账单号</option>
<option value="3" {if $search_type eq 3 } selected {/if}>电表识别号</option>
<option value="4" {if $search_type eq 4 } selected {/if}>站名</option>
</select>
</div>
<div class="layui-input-inline" style="width:150px;">
<select name="search_type" id="payment_status" >
<option value="0" selected="selected" {if $payment_status eq 0 } selected {/if}>未缴费</option>
<option value="1" {if $payment_status eq 1 } selected {/if}>已缴费</option>
</select>
</div>
<div class="layui-input-inline">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论