houseDetail.jsp 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <script type="text/javascript">
  3. var detail_load = function(houseId){
  4. $.ajax({
  5. type: "post",//使用get方法访问后台
  6. dataType: "json",//返回json格式的数据
  7. url: "rent10Action_houseDetail",//要访问的后台地址
  8. data: "house.id="+houseId,//要发送的数据
  9. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  10. success: function(msg){
  11. $("#name_community_detail").text(msg.obj.community.name);
  12. $("#no_house_detail").text(msg.obj.no);
  13. $("#houseNumber_house_detail").text(msg.obj.houseNumber);
  14. $("#area_house_detail").text(msg.obj.area);
  15. $("#garageArea_house_detail").text(msg.obj.garageArea);
  16. $("#price_community_detail").text(msg.obj.community.price);
  17. $("#garagePrice_community_detail").text(msg.obj.community.garagePrice);
  18. $("#btprice1_community_detail").text(msg.obj.community.btprice1);
  19. $("#btprice2_community_detail").text(msg.obj.community.btprice2);
  20. $("#btprice3_community_detail").text(msg.obj.community.btprice3);
  21. $("#ssprice1_community_detail").text(msg.obj.community.ssprice1);
  22. $("#ssprice2_community_detail").text(msg.obj.community.ssprice2);
  23. $("#ssprice3_community_detail").text(msg.obj.community.ssprice3);
  24. }
  25. })
  26. $('#houseLog_list').datagrid({
  27. rownumbers:true,
  28. pageSize:10,
  29. pageList : [ 10, 20, 30, 40, 50 ],
  30. fitColumns:false,
  31. border:false,
  32. sortOrder:'desc',
  33. pagination:true,
  34. url:whzl.basePath + '/rent10Action_rentList?rent10.house.id='+houseId,
  35. checkOnSelect:true,
  36. selectOnCheck:false,
  37. nowrap:true,
  38. loadFilter:function(result){
  39. if(result.success){
  40. return result.obj;
  41. }else{
  42. $.messager.alert("提示",result.message);
  43. return ;
  44. }
  45. }
  46. });
  47. }
  48. var incomeTypeFormatter = function(value , row , index){
  49. var incomeType = "";
  50. if("1" == value){
  51. incomeType = "低保";
  52. }else if("2" == value){
  53. incomeType = "低收入";
  54. }else if("3" == value){
  55. incomeType = "中低收入";
  56. }else if("4" == value){
  57. incomeType = "新就业";
  58. }else if("5" == value){
  59. incomeType = "外来务工";
  60. }else if("6" == value){
  61. incomeType = "审核未通过(市场租金)";
  62. }
  63. return incomeType;
  64. }
  65. var dateFormatter = function(value , row , index){
  66. return dealDate(value);
  67. }
  68. var rentTypeFormatter = function(value , row , index){
  69. if("2" == value){
  70. return "退租";
  71. }
  72. return "租赁";
  73. }
  74. var rentStatusFormatter = function(value , row , index){
  75. if(value == 1) {
  76. return "正常";
  77. }else if(value == 0) {
  78. return "作废";
  79. }else if(value == 2) {
  80. return "申请作废中";
  81. }
  82. }
  83. </script>
  84. <table class="mytable" style="width: 100%;">
  85. <tr>
  86. <th colspan="13">收费标准&nbsp;单位:元/㎡•月</th>
  87. </tr>
  88. <tr>
  89. <th width="7.6%">小区名称</th>
  90. <th width="7.6%">栋号</th>
  91. <th width="7.6%">房号</th>
  92. <th width="7.6%">面积</th>
  93. <th width="7.6%">车库面积</th>
  94. <th width="7.6%">租金价格</th>
  95. <th width="7.6%">车库价格</th>
  96. <th width="7.6%">低保补贴</th>
  97. <th width="7.6%">低收入<br />补贴</th>
  98. <th width="7.6%">中低收入<br />补贴</th>
  99. <th width="7.6%">低保实收</th>
  100. <th width="7.6%">低收入<br />实收</th>
  101. <th width="7.6%">中低收入<br />实收</th>
  102. </tr>
  103. <tr>
  104. <td><span id="name_community_detail"></span></td>
  105. <td><span id="no_house_detail"></span></td>
  106. <td><span id="houseNumber_house_detail"></span></td>
  107. <td><span id="area_house_detail"></span></td>
  108. <td><span id="garageArea_house_detail"></span></td>
  109. <td><span id="price_community_detail"></span></td>
  110. <td><span id="garagePrice_community_detail"></span></td>
  111. <td><span id="btprice1_community_detail"></span></td>
  112. <td><span id="btprice2_community_detail"></span></td>
  113. <td><span id="btprice3_community_detail"></span></td>
  114. <td><span id="ssprice1_community_detail"></span></td>
  115. <td><span id="ssprice2_community_detail"></span></td>
  116. <td><span id="ssprice3_community_detail"></span></td>
  117. </tr>
  118. </table>
  119. <table id="houseLog_list" title="房屋历史记录" >
  120. <thead>
  121. <tr>
  122. <th data-options="field:'rentType',width:80,align:'center',formatter:rentTypeFormatter">类型</th>
  123. <th data-options="field:'rentStatus',width:80,align:'center',formatter:rentStatusFormatter">状态</th>
  124. <th data-options="field:'lessee',width:80,align:'center'">承租人</th>
  125. <th data-options="field:'incomeType',width:120,align:'center',formatter:incomeTypeFormatter">承租人家庭收入类型</th>
  126. <th data-options="field:'startDay',width:80,align:'center',formatter:dateFormatter">开始时间</th>
  127. <th data-options="field:'endDay',width:80,align:'center',formatter:dateFormatter">结束时间</th>
  128. <th data-options="field:'payDay',width:80,align:'center',formatter:dateFormatter">收款时间</th>
  129. <th data-options="field:'rentYear',width:90,align:'center'">实收年租金</th>
  130. <th data-options="field:'detail',width:90,align:'center',formatter:rentDetailFormatter">详情</th>
  131. </tr>
  132. </thead>
  133. </table>