houseUpdate.jsp 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@ taglib prefix="s" uri="/struts-tags" %>
  3. <form id="updateHouseForm" method="post" enctype="multipart/form-data">
  4. <div class="easyui-tabs" id="tabs_update">
  5. <div title="房源信息" id="fyxx_update">
  6. <table class="mytable" style="width: 100%;">
  7. <tr>
  8. <th>小区名称</th>
  9. <td colspan="3">
  10. <select id="qx_update" style="width:100px;" disabled="disabled">
  11. </select>
  12. <input id="communityId_update" name="house.community.id" disabled="disabled">
  13. <input type="hidden" id="id_update" name="house.id">
  14. <input type="hidden" id="communityName_update" name="house.communityName">
  15. </td>
  16. </tr>
  17. <tr>
  18. <th>居住地点</th>
  19. <td colspan="3">
  20. <input readonly="readonly" required="true" id="no_update" style="width:100px;" name="house.no">幢
  21. <input readonly="readonly" id="houseNumber_update" style="width:100px;" name="house.houseNumber">室
  22. </td>
  23. </tr>
  24. <tr>
  25. <th width="20%">房屋面积</th>
  26. <td width="30%">
  27. <input class="easyui-validatebox" data-options="required:true,validType:'myDecimal'" name="house.area" id="area_update" style="width:100px">
  28. </td>
  29. <th width="20%">车库面积</th>
  30. <td width="30%">
  31. <input class="easyui-validatebox" data-options="required:true,validType:'myDecimal'" id="garageArea_update" name="house.garageArea" style="width:100px">
  32. </td>
  33. </tr>
  34. <tr>
  35. <th width="20%">租金</th>
  36. <td width="30%">
  37. <input class="easyui-validatebox" data-options="required:true,validType:'myDecimal'" name="house.housePrice" id="housePrice_update" style="width:100px">
  38. </td>
  39. <th width="20%">车库租金</th>
  40. <td width="30%">
  41. <input class="easyui-validatebox" data-options="required:true,validType:'myDecimal'" id="garagePrice_update" name="house.garagePrice" style="width:100px">
  42. </td>
  43. </tr>
  44. <tr>
  45. <th width="20%">单价</th>
  46. <td width="30%">
  47. <input class="easyui-validatebox" data-options="validType:'myDecimal'" name="house.price" id="price_update" style="width:100px">
  48. </td>
  49. <th width="20%">房款</th>
  50. <td width="30%">
  51. <input class="easyui-validatebox" data-options="validType:'myDecimal'" id="priceTotal_update" name="house.priceTotal" style="width:100px">
  52. </td>
  53. </tr>
  54. <tr>
  55. <th width="20%">产权证号</th>
  56. <td width="30%">
  57. <input name="house.certificateNumber1" id="certificateNumber1_update" style="width:100px">
  58. </td>
  59. <th width="20%">车库产权证号</th>
  60. <td width="30%">
  61. <input id="certificateNumber2_update" name="house.certificateNumber2" style="width:100px">
  62. </td>
  63. </tr>
  64. <tr>
  65. <th>户型</th>
  66. <td>
  67. <select id="roomType_update" name="house.roomType" class="easyui-validatebox" required="true" style="width:100px">
  68. <option value="">请选择</option>
  69. </select>
  70. </td>
  71. <th>是否现房</th>
  72. <td>
  73. <select id="isExistHouse_update" name="house.isExistHouse" class="easyui-validatebox" required="true" style="width:100px">
  74. <option value="">请选择</option>
  75. </select>
  76. </td>
  77. </tr>
  78. <tr>
  79. <th>水卡卡号</th>
  80. <td>
  81. <input id="waterCardNum_update" class="easyui-validatebox" name="house.waterCardNum" style="width:100px">
  82. </td>
  83. <th>水当前底数</th>
  84. <td>
  85. <input id="waterBase_update" name="house.waterBase" >
  86. </td>
  87. </tr>
  88. <tr>
  89. <th>电卡卡号</th>
  90. <td>
  91. <input id="electricCardNum_update" class="easyui-validatebox" name="house.electricCardNum" style="width:100px">
  92. </td>
  93. <th>电当前底数</th>
  94. <td>
  95. <input id="electricBase_update" name="house.electricBase">
  96. </td>
  97. </tr>
  98. <tr>
  99. <th>天然气卡卡号</th>
  100. <td>
  101. <input id="gasCardNum_update" class="easyui-validatebox" name="house.gasCardNum" style="width:100px">
  102. </td>
  103. <th>天然气当前底数</th>
  104. <td>
  105. <input id="gasBase_update" name="house.gasBase">
  106. </td>
  107. </tr>
  108. <tr>
  109. <th>初始安置时间</th>
  110. <td>
  111. <input id="initialPlacementTime_update" class="easyui-datebox" name="house.initialPlacementTime" id="initialPlacementTime_update">
  112. </td>
  113. <th>房源状态</th>
  114. <td>
  115. <!--<select id="status_update" name="house.status" class="easyui-validatebox" required="true">
  116. <option value="0">未租</option>
  117. <option value="1">已配租</option>
  118. <option value="2">预配租</option>
  119. </select>-->
  120. <select id="houseState_update" name="house.houseState" class="easyui-validatebox" required="true">
  121. <option value="4">未交付</option>
  122. <option value="5">已交付</option>
  123. <option value="6">闲置</option>
  124. <option value="11">人才公寓</option>
  125. </select>
  126. </td>
  127. </tr>
  128. <tr>
  129. <th>交房日期</th>
  130. <td>
  131. <input class="easyui-datebox" name="house.deliveryDate" data-options="onSelect:onSelectUpdate" id="deliveryDate_update">
  132. </td>
  133. <th>开发商维修截止日期</th>
  134. <td>
  135. <input class="easyui-datebox" name="house.developerDeadline" id="developerDeadline_update" readonly="readonly">
  136. </td>
  137. </tr>
  138. <tr>
  139. <th>装修状态</th>
  140. <td>
  141. <select id="decorationState_update" name="house.decorationState" class="easyui-validatebox" required="true">
  142. </select>
  143. </td>
  144. <th>市场租金<br />(元/㎡•月)</th>
  145. <td><input class="easyui-numberbox" required="true" type="text" id="marketRent_update" name="house.marketRent" precision="2"></td>
  146. </tr>
  147. <tr>
  148. <th>备注</th>
  149. <td colspan="3">
  150. <textarea rows="3" cols="" style="width: 100%" id="remark_update" name="house.remark"></textarea>
  151. </td>
  152. </tr>
  153. </table>
  154. </div>
  155. <div title="合同文件上传" id="htwj_update">
  156. <table class="mytable" style="width: 100%;">
  157. <tr>
  158. <th width="20%">交房通知单</th>
  159. <td width="80%">
  160. <span id="deliveryFile_update_file">
  161. <input type="button" value="上传" onclick="deliveryFile_update.click()">
  162. <input type="file" multiple name="deliveryFile" id="deliveryFile_update" class="easyui-validatebox" style="float:left;width:0px">
  163. </span>
  164. </td>
  165. </tr>
  166. <tr>
  167. <th width="20%">交付备案证明</th>
  168. <td width="80%">
  169. <span id="recordFile_update_file">
  170. <input type="button" value="上传" onclick="recordFile_update.click()">
  171. <input type="file" multiple name="recordFile" id="recordFile_update" class="easyui-validatebox" style="float:left;width:0px">
  172. </span>
  173. </td>
  174. </tr>
  175. <tr>
  176. <th width="20%">采购合同</th>
  177. <td width="80%">
  178. <span id="purchaseFile_update_file">
  179. <input type="button" value="上传" onclick="purchaseFile_update.click()">
  180. <input type="file" multiple name="purchaseFile" id="purchaseFile_update" class="easyui-validatebox" style="float:left;width:0px">
  181. </span>
  182. </td>
  183. </tr>
  184. </table>
  185. </div>
  186. </div>
  187. </form>
  188. <script type="text/javascript">
  189. <!--
  190. $(function(){
  191. $('#qx_update').combobox({
  192. url: whzl.basePath + '/houseRegisterAction_listChildrenCombobox',
  193. valueField:'value',
  194. textField:'text',
  195. onChange:function (newValue,oldValue) {
  196. $('#communityId_update').combobox('reload',whzl.basePath + '/communityAction_findAll?community.area='+$('#qx_update').combobox("getValue"));
  197. }
  198. });
  199. $('#communityId_update').combobox({
  200. url: whzl.basePath + '/communityAction_findAll',
  201. valueField:'value',
  202. textField:'text',
  203. filter:function(q,row){
  204. var opts=$(this).combobox("options");
  205. //return row[opts.textField].indexOf(q)==0;//
  206. return row[opts.textField].indexOf(q)>-1;//将从头位置匹配改为任意匹配
  207. }
  208. });
  209. });
  210. //-->
  211. </script>