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

账单按照站名批量查询

上级 a30b56d8
......@@ -33,6 +33,9 @@ class Invoice extends Base
}
$search_text = Request::get('search_text');
$search_type = Request::get('search_type');
$payment_status = Request::get('payment_status');
$settle_status = Request::get('settle_status');
if($search_text){
switch ($search_type) {
case '1':
......@@ -56,6 +59,15 @@ class Invoice extends Base
$this->assign('search_type','');
$this->assign('search_text','');
}
//缴费状态
$pstatus = $payment_status === '' ? 0 : $payment_status;
$sstatus = $settle_status === '' ? 0 : $settle_status;
$map[] = ['status','=',$pstatus.$sstatus.'0'];
$this->assign('payment_status',$payment_status === '' ? '' : $payment_status);
$this->assign('settle_status',$settle_status === '' ? '' : $settle_status);
//抄表时间查询条件
$dateStart = strtotime(Request::get('date_start'));
$dateEnd = strtotime(Request::get('date_end'));
......
......@@ -22,6 +22,20 @@
<input type="text" name="search_text"
style="width:150px;" placeholder="搜索内容" autocomplete="off" id="search_text" class="layui-input" value="{$search_text}">
</div>
<div class="layui-input-inline" style="width:150px;">
<select name="payment_status" id="payment_status">
<option value="" selected="selected" {if $payment_status === '' } selected {/if}>缴费状态</option>
<option value="0" {if $payment_status === 0 || $payment_status === '0'} selected {/if}>未缴费</option>
<option value="1" {if $payment_status == 1 } selected {/if}>已缴费</option>
</select>
</div>
<div class="layui-input-inline" style="width:150px;">
<select name="settle_status" id="settle_status">
<option value="" selected="selected" {if $settle_status === '' } selected {/if}>结算状态</option>
<option value="0" {if $settle_status === 0 || $settle_status === '0' } selected {/if}>未结算</option>
<option value="1" {if $settle_status == 1 } selected {/if}>已结算</option>
</select>
</div>
<div class="layui-input-inline" style="width:150px;">
<select name="cp_date" id="cp_date">
<option value="1">抄表日期</option>
......@@ -52,7 +66,7 @@
</div>
<table class="layui-table" lay-filter="demo" lay-data="{ url:'/invoice', page:true, initSort: {field:'wealth', type:'desc'}, id:'idTest',where:{search_type:document.getElementById('search_type').value,search_text:document.getElementById('search_text').value,date_start:document.getElementById('date_start').value,date_end:document.getElementById('date_end').value}
<table class="layui-table" lay-filter="demo" lay-data="{ url:'/invoice', page:true, initSort: {field:'wealth', type:'desc'}, id:'idTest',where:{search_type:document.getElementById('search_type').value,search_text:document.getElementById('search_text').value,date_start:document.getElementById('date_start').value,date_end:document.getElementById('date_end').value,settle_status:document.getElementById('settle_status').value,payment_status:document.getElementById('payment_status').value}
}"> <thead>
<tr>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论