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

添加结算状态搜索条件

上级 8e6ea0e8
...@@ -66,7 +66,7 @@ class Settle extends Base ...@@ -66,7 +66,7 @@ class Settle extends Base
} }
//结算状态 //结算状态
if($settle_status !== ''){ if($settle_status != 5){
switch ($settle_status) { switch ($settle_status) {
case '0': case '0':
$map[]=['settle.status','=',"$settle_status"]; $map[]=['settle.status','=',"$settle_status"];
...@@ -80,12 +80,9 @@ class Settle extends Base ...@@ -80,12 +80,9 @@ class Settle extends Base
$map[]=['settle.status','=',"$settle_status"]; $map[]=['settle.status','=',"$settle_status"];
$this->assign('settle_status',$settle_status); $this->assign('settle_status',$settle_status);
break; break;
case '':
$this->assign('settle_status','');
break;
} }
}else{ }else{
$this->assign('settle_status',''); $this->assign('settle_status','5');
} }
//区域 //区域
$area_id = Request::get('area_id'); $area_id = Request::get('area_id');
......
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
</div> </div>
<div class="layui-input-inline" style="width:150px;"> <div class="layui-input-inline" style="width:150px;">
<select name="settle_status" id="settle_status"> <select name="settle_status" id="settle_status">
<option value="" {if $settle_status === '' } selected {/if}>结算状态</option> <option value="5" {if $settle_status == 5 } selected {/if}>结算状态</option>
<option value="0" {if $settle_status === 0 } selected {/if}>未结算</option> <option value="0" {if $settle_status == 0 } selected {/if}>未结算</option>
<option value="1" {if $settle_status == 1 } selected {/if}>已结算</option> <option value="1" {if $settle_status == 1 } selected {/if}>已结算</option>
<option value="4" {if $settle_status == 4 } selected {/if}>已审核</option> <option value="4" {if $settle_status == 4 } selected {/if}>已审核</option>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论