提交 39e4f2e0 authored 作者: chengye's avatar chengye

test

上级 a57de571
......@@ -252,7 +252,7 @@ class Useage extends Base
$useage = (new \app\em\model\Useage)->alias('u')
->field('u.*,em.rate')
->field('emr.pricing_type,emr.pay_price,amount')
->field('emr.pricing_type,emr.pay_price')
->leftJoin(['em'],'em.id=u.em_id')
->leftJoin(['em_rule'=>'emr'],'emr.em_id=em.id')
->where('u.useage_id','=',$uid)
......
......@@ -62,6 +62,8 @@ class Em extends Base
$ue = new Useage();
$ue->last_date = $em->init_date;
$ue->last_sum_numb = $em->init_numb ?: 0;
$ue->amount = '';
} else {
if($curr == false){
$ue->last_sum_numb = $ue->current_sum_numb;
......
......@@ -157,7 +157,7 @@
实缴电费
</label>
<div class="layui-input-inline">
<input type="text" id="amount" name="amount" autocomplete="off" class="layui-input" value="{$em.useage.amount|default=''}" disabled="disabled">
<input type="text" id="amount" name="amount" autocomplete="off" class="layui-input" value="{$useage.amount|default=''}" disabled="disabled">
</div>
<div class="layui-form-mid layui-word-aux">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论