提交 146cd808 authored 作者: chengye's avatar chengye

调整账单列表显示字段,添加本期表数,上期表数,并计算用电量,添加抄表日期

上级 a4621619
...@@ -33,7 +33,7 @@ class EmInvoice extends Base ...@@ -33,7 +33,7 @@ class EmInvoice extends Base
$data = self::alias('inv') $data = self::alias('inv')
->field('inv.*') ->field('inv.*')
->field('station.station_name,em.em_numb') ->field('station.station_name,em.em_numb')
->field('eu.last_sum_numb,eu.current_sum_numb') ->field('eu.last_sum_numb,eu.current_sum_numb,em.current_date')
->join(['em_invoice_useage'=>'eiu'],'eiu.invoice_id = inv.invoice_id') ->join(['em_invoice_useage'=>'eiu'],'eiu.invoice_id = inv.invoice_id')
->join(['em_useage'=>'eu'],'eu.useage_id = eiu.useage_id') ->join(['em_useage'=>'eu'],'eu.useage_id = eiu.useage_id')
->join(['em_account'=>'ea'],'ea.account_id = inv.account_id') ->join(['em_account'=>'ea'],'ea.account_id = inv.account_id')
......
...@@ -47,12 +47,12 @@ ...@@ -47,12 +47,12 @@
<th lay-data="{templet: '#invoice_id',sort: true} ">账单号</th> <th lay-data="{templet: '#invoice_id',sort: true} ">账单号</th>
<th lay-data="{field:'station_name',sort: true}">所属基站名</th> <th lay-data="{field:'station_name',sort: true}">所属基站名</th>
<th lay-data="{templet:'#em_numb',sort: true} ">所属电表号</th> <th lay-data="{templet:'#em_numb',sort: true} ">所属电表号</th>
<th lay-data="{templet: '#useage'} ">抄表度数</th> <th lay-data="{templet: '#useage'}">抄表度数</th>
<th lay-data="{templet: '#repo_numb'}">用电量</th> <th lay-data="{templet: '#repo_numb'}">用电量</th>
<th lay-data="{templet:'#payment',sort: true}">缴费金额</th> <th lay-data="{templet:'#payment'}">缴费金额</th>
<th lay-data="{templet:'#settle',sort: true}">结算金额</th> <th lay-data="{templet:'#settle'}">结算金额</th>
<th lay-data="{field: 'status'}">账单状态</th> <th lay-data="{field: 'status'}">账单状态</th>
<th lay-data="{field: 'create_time',sort: true}">创建时间</th> <th lay-data="{field: 'current_date',sort: true}">抄表日期</th>
<!--<th lay-data="{fixed: 'right', align:'center', toolbar: '#barDemo'}">操作</th>--> <!--<th lay-data="{fixed: 'right', align:'center', toolbar: '#barDemo'}">操作</th>-->
</tr> </tr>
</thead> </thead>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论