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('flist')}">
- <div class="input-group">
- <input type="text" class="form-control" name="sn" placeholder="单据号">
- </div>
- <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>
- </br>
- </br>
- <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>
- <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>
- </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('fexport')}" 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: '#284a94'
- });
- laydate.render({
- elem: '#end',
- trigger: 'click' ,
- theme: '#284a94'
- });
- laydate.render({
- elem: '#wstart',
- trigger: 'click' ,
- theme: '#284a94'
- });
- laydate.render({
- elem: '#wend',
- trigger: 'click' ,
- theme: '#284a94'
- });
- $(window).bind("resize",function(){
- var width=$(".jqGrid_wrapper").width();
- $("#table").setGridWidth(width);
- });
- $.jgrid.defaults.styleUI="Bootstrap";
- $("#table").jqGrid({
- url:"{:url('flist',[],'')}",
- datatype: "json",
- colModel:[
- {label:'单据号',name:'sn',index:'sn', width:40,sortable: false},
- {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:'refundMoney',index:'refundMoney',width:50,editable: false,sortable: false,formatter:function (a,b,c){
- if(a > 0){
- return '<span style="color: red">-'+a.toFixed(2)+'</span>';
- }else {
- return a.toFixed(2);
- }
- }},
- {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:'create_time',index:'create_time',width:50,editable: false,sortable: false},
- {label:'操作',width:60,sortable: false,formatter: function (a, b, c) {
- // var editurl = "{:url('add',[],'')}/id/"+c.id;
- // var delurl = "{:url('del',[],'')}/id/"+c.id;
- var refund_url = "{:url('refund',[],'')}/id/"+c.id;
- var selfFlist2_url = "{:url('selfFlist2',[],'')}/id/"+c.pay_id;
- var cancel_refund_url = "{:url('cancelRefund',[],'')}/id/"+c.id;
- var detail_url = "{:url('detail',[],'')}/id/"+c.id;
- var btn = '';
- if(c.cur_user_id===c.create_user_id){
- if(c.money > c.refundMoney){
- btn+= '<a url="'+refund_url+'" href="javascript:;" data-title="退款" onclick="layer_open(this,1)"><span class="label label-primary" title="退款">退款</span></a> ';
- }
- if(c.is_show_log >0){
- btn+= '<a href="'+selfFlist2_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:"缴费单管理",
- loadComplete: function (xhr) {
- if(xhr.code==0){
- layer.msg(xhr.msg);
- return false;
- }
- var zje = xhr.zje;
- $('#pager_left').html('<span style="color:red;font-size: 10px;">总金额:'+zje+' 元');
- },
- });
- });
- </script>
- {/block}
|