123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <%--租金退还 --%>
- <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
- <jsp:include page="../../common/include.jsp" />
- <% String basePath = request.getScheme()+ "://" + request.getServerName() + ":" +request.getServerPort() + request.getContextPath(); %>
- <script type="text/javascript">
- //家庭收入情况
- var incomeTypeObj = null;
- var incomeType_array = null;
-
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"personType" ,"aa10.name":"保障人员类别" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- incomeTypeObj = msg.obj.rows;
- }
- }
- });
- /**小区显示区*/
- $(function() {
- $('#houseDataGrid').datagrid({
- rownumbers:true,
- fit:true,
- pageSize:10,
- pageList : [ 10, 20, 30, 40, 50 ],
- fitColumns:false,
- border:false,
- sortOrder:'desc',
- pagination:true,
- idField:'id',
- toolbar:'#searchtool',
- url:whzl.basePath + '/rentRefundAction_houseList',
- pageNumber:1,
- nowrap:true,
- loadFilter:function(result){
- if(result.success){
- return result.obj;
- }else{
- $.messager.alert("提示",result.message);
- return ;
- }
- },
- });
- });
-
- /**查询*/
- function searchFun(){
- $("#houseDataGrid").datagrid("load", {
- "house.community.id":trim($('#communityId').combobox("getValue")),
- "house.no":trim($('#no').combobox("getValue")),
- "house.houseNumber":trim($('#houseNumber').combobox("getValue")),
- "house.lesseeId":trim($('#lesseeId').val()),
- "houseState":$("#houseState").val(),
- "unpaidMonth":$("#unpaidMonth").val()
- });
- }
-
- /*清除查询条件**/
- function ClearQuery() {
- $("#tblQuery").find("input").val("");
- $("#tblQuery").find("select").val("-1");
- }
-
- var endTimeFormatter = function(value , row , index){
- if(row.endTime == ""||row.endTime==null){
- return "";
- }else{
- return dealDate(value);
- }
- }
-
- var refundFormatter = function(value , row , index){
- return "<img src='<%=basePath%>/js/easyui/themes/icons/pencil.png' title='退还' onclick=addRentRefund(" + row.id + ") style='cursor:pointer' />"
- }
-
- function addRentRefund(houseId){
- $("#addRentRefundDialog").dialog({
- buttons : [{
- text : '确定',
- iconCls : 'icon-ok',
- handler : function(){
- addRentRefund_submit();
- }
- },{
- text : '取消',
- iconCls : 'icon-cancel',
- handler : function(){
- $("#addRentRefundDialog").dialog("close");
- }
- }],
- onLoad : function(){
- addRentRefund_load(houseId);
- }
- })
- }
- </script>
- <div class="easyui-layout" data-options="fit:true,border:false">
- <div data-options="region:'center',border:false">
- <div id="searchtool" data-options="region:'north',border:false">
- <div class="clear"></div>
- <table id="tblQuery" style="width:100%;font-size:12px;">
- <tr>
- <td><span>小区名称</span></td>
- <td>
- <input id="communityId">
- <input id="no" style="width: 90px;">幢
- <input id="houseNumber" style="width: 80px;">室
- </td>
- <td>承租人身份证号</td>
- <td><input id="lesseeId"/></td>
- <td align="center">
- <a href="javascript:searchFun();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">查询</a>
- <a href="javascript:ClearQuery();" class="easyui-linkbutton" data-options="iconCls:'icon-emptied',plain:true">清空</a>
- </td>
- </tr>
- </table>
- <div class="clear"></div>
- </div>
-
- <table id="houseDataGrid">
- <thead frozen="true">
- <tr>
- <th data-options="field:'id',checkbox:true,width:30">ID</th>
- <th data-options="field:'communityName',sortable:true,width:100">小区名称</th>
- </tr>
- </thead>
- <thead>
- <tr>
- <th data-options="field:'no',width:80">楼号</th>
- <th data-options="field:'houseNumber',width:80">房号</th>
- <th data-options="field:'area',width:60">面积</th>
- <th data-options="field:'garageArea',width:60">车库面积</th>
- <th data-options="field:'lessee',width:60">承租人</th>
- <th data-options="field:'lesseeId',width:160">承租人身份证号</th>
- <th data-options="field:'endTime',width:80,formatter:endTimeFormatter">到期时间</th>
- <th data-options="field:'refund',width:80,formatter:refundFormatter">退还</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- <div id="addRentRefundDialog" data-options="title:' 房源详情信息',iconCls:'icon-detail',width:800,height:500,modal:true,href:'<%=basePath %>/rentRefundAction_toAddRentRefund'">
- </div>
- <script type="text/javascript">
- $(function(){
- parent.$.messager.progress('close');
- $('#communityId').combobox({
- url: whzl.basePath + '/communityAction_findAll',
- valueField:'value',
- textField:'text',
- filter:function(q,row){
- var opts=$(this).combobox("options");
- //return row[opts.textField].indexOf(q)==0;//
- return row[opts.textField].indexOf(q)>-1;//将从头位置匹配改为任意匹配
- },
- onChange:function (newValue,oldValue) {
- $('#no').combobox("setValue","");
- $('#houseNumber').combobox("setValue","");
- $('#no').combobox('reload',whzl.basePath + '/houseAction_findAllNo?house.community.id='+$('#communityId').combobox("getValue"));
- }
- });
- $('#no').combobox({
- //editable:false,
- url: whzl.basePath + '/houseAction_findAllNo?house.community.id='+$('#communityId').combobox("getValue"),
- valueField:'value',
- textField:'text',
- filter:function(q,row){
- var opts=$(this).combobox("options");
- //return row[opts.textField].indexOf(q)==0;//
- return row[opts.textField].indexOf(q)>-1;//将从头位置匹配改为任意匹配
- },
- onChange:function (newValue,oldValue) {
- $('#houseNumber').combobox("setValue","");
- $('#houseNumber').combobox('reload',whzl.basePath + '/houseAction_findAllHouseNumber?house.community.id='+$('#communityId').combobox("getValue") + '&house.no='+encodeURIComponent(newValue));
- }
- });
- $('#houseNumber').combobox({
- //editable:false,
- url: whzl.basePath + '/houseAction_findAllHouseNumber?house.community.id='+$('#communityId').combobox("getValue") + '&house.no='+$('#no').combobox("getValue"),
- valueField:'value',
- textField:'text',
- filter:function(q,row){
- var opts=$(this).combobox("options");
- //return row[opts.textField].indexOf(q)==0;//
- return row[opts.textField].indexOf(q)>-1;//将从头位置匹配改为任意匹配
- }
- });
- })
- </script>
|