| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 | {extend name="common/common2" /}{block name="main"}<div class="ibox">    <div class="ibox-content">        <div class="row">            <div class="col-xs-12" style="text-align: right;">            <form class="form-inline" id="form-search" action="{:url('selfFlist2',[],'')}/id/{$id}">                <div class="input-group">                    <input type="text" class="form-control" name="area_title" placeholder="小区">                </div>                <div class="input-group">                    <input type="text" class="form-control" name="title" placeholder="名称">                </div>                <div class="input-group">                    <input type="text" class="form-control" name="name" placeholder="业主">                </div>                <div class="input-group">                   <input class="form-control" id="start" readonly placeholder="开始时间" name="start" >                </div>                <div class="input-group">                    <input class="form-control" id="end" readonly placeholder="结束时间" name="end" >                </div>                <div class="input-group">                    <input class="form-control" id="wstart" readonly placeholder="周期开始时间" name="wstart" >                </div>                <div class="input-group">                    <input class="form-control" id="wend" readonly placeholder="周期结束时间" name="wend" >                </div>                <div class="input-group">                    <select name="cate" class="form-control">                        <option value="">资源属性</option>                        <option value="1">住房</option>                        <option value="2">商铺</option>                        <option value="3">营业房</option>                        <option value="4">储藏室</option>                        <option value="5">停车位</option>                    </select>                </div>                </br>                </br>                <div class="input-group">                    <select name="fee" class="form-control">                        <option value="">收费科目</option>                        {foreach $fee as $k=>$v}                        <option value="{$v['id']}">[{$v['parent_title']}]{$v['title']}</option>                        {/foreach}                    </select>                </div>                <div class="input-group">                    <select name="c_type" class="form-control">                        <option value="">类型</option>                        {foreach $cType as $k=>$v}                        <option value="{$v['id']}">{$v['name']}</option>                        {/foreach}                    </select>                </div>                <div class="input-group">                    <select name="status" class="form-control">                        <option value="">状态</option>                        <option value="0">已拒绝</option>                        <option value="1">退款中</option>                        <option value="2">已退款</option>                    </select>                </div>                </br>                </br>                <div class="input-group">                    <span class="input-group-btn">                        <button class="btn-sm btn-primary" type="button" id ="search-btn" ><i class="fa fa-search"></i></button>                    </span>                      <span class="input-group-btn">                        <button class="btn-sm btn-warning" type="button" id="search-clear"><i class="fa fa-undo"></i></button>                    </span>                     <span class="input-group-btn">                        <button class="btn-sm btn-primary" data-url="{:url('selfFexport2',[],'')}/id/{$id}" type="button" id ="export" ><i class="fa fa-download"></i></button>                    </span>                </div>            </form>        </div>        </div>    </div>    <div class="ibox-content">        <div class="jqGrid_wrapper">            <table id="table" style="border-collapse: collapse"></table>            <div id="pager"></div>        </div>    </div></div>{/block}{block name="script"}<script src="/static/layDate-v5.0.9/laydate.js"></script><script>    $(function () {        laydate.render({            elem: '#start',            trigger: 'click' ,            theme: '#148d8f'        });        laydate.render({            elem: '#end',            trigger: 'click' ,            theme: '#148d8f'        });        laydate.render({            elem: '#wstart',            trigger: 'click' ,            theme: '#148d8f'        });        laydate.render({            elem: '#wend',            trigger: 'click' ,            theme: '#148d8f'        });        $(window).bind("resize",function(){            var width=$(".jqGrid_wrapper").width();            $("#table").setGridWidth(width);        });        $.jgrid.defaults.styleUI="Bootstrap";        $("#table").jqGrid({            url:"{:url('selfFlist2',[],'')}/id/{$id}",            datatype: "json",            colModel:[                {label:'业主',name:'name',index:'name',width:30,editable: false,sortable: false},                {label:'小区',name:'area_title',index:'area_title',width:30,editable: false,sortable: false},                {label:'资源名称',name:'title',index:'title',width:30,editable: false,sortable: false},                {label:'资源属性',name:'cate_name',index:'cate_name',width:30,editable: false,sortable: false},                {label:'类型',name:'c_type_name',index:'c_type_name',width:30,editable: false,sortable: false},                {label:'退费科目',name:'fee_title',index:'fee_title',width:30,editable: false,sortable: false},                {label:'退费金额',name:'money',index:'money',width:30,editable: false,sortable: false},                {label:'起止日期',name:'end',index:'end',width:50,editable: false,sortable: false,formatter:function (a,b,c){                        return c.start+'-'+c.end;                    }},                {label:'备注',name:'remark',index:'remark',width:40,editable: false,sortable: false},                {label:'状态',name:'status',index:'status',width:30,editable: false,sortable: false,formatter:function (a,b,c){                        if(a===0){                            return '已拒绝';                        }else if(a===1){                            return '退款中';                        }else {                            return '已退款';                        }                    }},                {label:'退款原因',name:'reason',index:'reason',width:40,editable: false,sortable: false},                {label:'退款姓名',name:'refund_name',index:'refund_name',width:40,editable: false,sortable: false},                {label:'退款账号',name:'refund_account',index:'refund_account',width:40,editable: false,sortable: false},                {label:'退款卡号',name:'refund_bank',index:'refund_bank',width:40,editable: false,sortable: false},                {label:'凭证',name:'voucher',index:'voucher',width:30,editable: false,sortable: false,formatter:function (a,b,c){                        if(a){                            return '<img src="'+a+'" width="60" onclick="open_img(this)"></img>';                        }else {                            return '';                        }                    }},                {label:'创建日期',name:'refund_time',index:'refund_time',width:50,editable: false,sortable: false},                {label:'操作',width:60,sortable: false,formatter: function (a, b, c) {                    var flist2Print_url = "{:url('flist2Print',[],'')}/id/"+c.id;                    var btn = '';                    btn+= '<a href="'+flist2Print_url+'" ><span class="label label-primary" >打印</span></a>';                    return btn;                }},            ],            rowNum:10,            rowList:[10,20,30,50,100],            pager: '#pager',            sortname: 'id',            viewrecords: true,            autowidth:true,            mtype: 'post',            height: 'auto',            emptyrecords: "暂无数据",            sortorder: "desc",            caption:"{$m_name}",            loadComplete: function (xhr) {                if(xhr.code==0){                    layer.msg(xhr.msg);                    return false;                }                var zje = xhr.money;                $('#pager_left').html('<span style="color:red;font-size: 10px;">总金额:'+zje.toFixed(2)+' 元');            },        });    });</script>{/block}
 |