| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 | {extend name="common/common2" /}{block name="main"}<style>    .custom-table.table{        width: 100%;    }    .custom-table th,.custom-table td{        padding: 10px;    }    .custom-table th{        width: 120px;        text-align: right;    }    .text {        width: 200px;        display: inline-block;    }    .num {        margin-left: 20px;    }</style><div class="col-sm-12">    <div class="panel panel-default">        <div class="panel-heading clearfix">            返销单详情            <div class="btn-group pull-right">                <a href="javascript:history.go(-1);">返回</a>            </div>        </div>        <div class="panel-body">            <table class="table table-bordered">                <tr>                    <th>资源名称</th>                    <th>收费科目</th>                    <th>金额</th>                    <th>起止日期</th>                    <th>备注</th>                    <th>状态</th>                </tr>                {foreach $info['logs'] as $key => $value}                <tr>                    <td>                        {if $value['cate'] == 1}[住房]{/if}                        {if $value['cate'] == 2}[商铺]{/if}                        {if $value['cate'] == 3}[营业房]{/if}                        {if $value['cate'] == 4}[储藏室]{/if}                        {if $value['cate'] == 5}[停车位]{/if}                        {$value['full_title']}                    </td>                    <td>{$value['fee_title']}</td>                    <td>{$value['money']}</td>                    <td>                        {if $value['start']}                        {$value['start']} ~ {$value['end']}                        {/if}                    </td>                    <td>{$value['remark']}</td>                    <td>                        {if $value['status'] == 0}未退款{/if}                        {if $value['status'] == 1}退款中{/if}                        {if $value['status'] == 2}已退款{/if}                    </td>                </tr>                {/foreach}            </table>            <table class="table custom-table">                <tr>                    <th>单据号</th><td>{$info['sn']}</td>                </tr>                <tr>                    <th>业主</th><td>{$info['full_name']}</td>                </tr>                <tr>                    <th>预付款</th>                    <td>                        {$info['pre_money']}                    </td>                </tr>                <tr>                    <th>总金额</th><td>{$info['money']}</td>                </tr>                {if($info['status'] == 1)}                <tr>                    <th>实收</th>                    <td>                        {$info['true_money']}                    </td>                </tr>                {/if}                <tr>                    <th>状态</th>                    <td>                        {if $info['status'] == 0}未缴费{/if}                        {if $info['status'] == 1}已缴费{/if}                        {if $info['status'] == 2}返销待审核{/if}                        {if $info['status'] == 3}已返销{/if}                        {if $info['is_cancel'] == 1 && $info['status'] == 1}<span class="text-danger">(拒绝)</span>{/if}                    </td>                </tr>                <tr>                    <th>创建日期</th>                    <td>                        {$info['create_time']}                    </td>                </tr>                {if $info['status'] == 3}                <tr>                    <th>返销日期</th>                    <td>                        {$info['cancel_time']}                    </td>                </tr>                <tr>                    <th>返销原因</th>                    <td>                        {$info['cancel_reason']}                    </td>                </tr>                {/if}                <tr>                    <th>最晚缴费时间</th>                    <td>                        {$info['last_time']}                    </td>                </tr>                <tr>                    <th>催款状态</th>                    <td>                        {if $info['reminder'] == 0}未催款{/if}                        {if $info['reminder'] == 1}已催款{/if}                    </td>                </tr>                {if $info['status'] == 1}                <tr>                    <th>支付方式</th>                    <td>                        {if $info['pay_type'] == 1}现金{/if}                        {if $info['pay_type'] == 3}支付宝{/if}                        {if $info['pay_type'] == 4}银行托收{/if}                        {if $info['pay_type'] == 5}微信{/if}                        {if $info['pay_type'] == 6}                        组合付款(                        {foreach $info['pay_data'] as $key => $value }                        {if $key == 1}现金:{$value} {/if}                        {if $key == 3}支付宝:{$value} {/if}                        {if $key == 4}银行托收:{$value} {/if}                        {if $key == 5}微信:{$value} {/if}                        {/foreach}                        )                        {/if}                    </td>                </tr>                <tr>                    <th>收款人</th>                    <td>                        {$info['payee']}                    </td>                </tr>                <tr>                    <th>缴费日期</th>                    <td>                        {$info['pay_time']}                    </td>                </tr>                <tr>                    <th>收费备注</th>                    <td>                        {$info['remark']}                    </td>                </tr>                {/if}            </table>            <hr />            {if $info['status'] == 2}            <div class="col-xs-offset-2 col-xs-10">               <a href="{:url('agree',[],'')}/id/{$info['id']}" class="confirm ajax-get" data-confirm="确定要同意吗?" data-reload="1"><span class="btn btn-sm btn-primary" title="同意">同意</span></a>               <a href="{:url('disagree',[],'')}/id/{$info['id']}" class="confirm ajax-get" data-confirm="确定要拒绝吗?" data-reload="1"><span class="btn btn-sm btn-danger" title="拒绝">拒绝</span></a>            </div>            {/if}        </div>    </div></div>{/block}{block name="script"}<script src="/static/layDate-v5.0.9/laydate.js"></script><script>    function selectPre(type) {        if(type == 0){            $('#prename').hide();        }else{            $('#prename').show();        }    }    function selectPay(type) {        if(type == 6){ // 组合支付            $('#payname').show();        }else{            $('#payname').hide();        }    }    $(function(){        laydate.render({            elem: '#payTime',            theme: '#284a94'        });        $("form").submit(function(){            $("button:submit").html('确认收费...').attr("disabled", true);            var self = $(this);            $.post(self.attr("action"), self.serialize(), success, "json");            return false;            function success(data){                if(data.code == 1){                    layer.msg('缴费成功', {time:2000},function () {                        window.location.reload();                    })                } else {                    layer.msg(data.msg);                    $("button:submit").html('确认收费').attr("disabled", false);                }            }        });    });</script>{/block}
 |