addPZ4.jsp 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858
  1. <%-- 配租申请表14--特殊家庭(重度残疾)--%>
  2. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  3. <style type="text/css">
  4. em {color:red;font-size:13px;font-style:normal}
  5. .changeLine th{
  6. white-space: NOWRAP;
  7. }
  8. </style>
  9. <script type="text/javascript">
  10. function addPZ4_load(){
  11. //婚姻
  12. $("#maritalStatus_add").append(maritalStatus_array);
  13. $("#maritalStatus1").append(maritalStatus_array);
  14. $("#disabilityType1").append(disabilityType_array);
  15. $("#nationality1").append(nationality_array);
  16. $("#education1").append(education_array);
  17. //街办
  18. getStreetList("1",0,"street_add");
  19. $("#street_add").children('option').remove();
  20. $("#street_add").change(function(){
  21. $("#neighborhood_add").children('option').remove();
  22. getNeighborhoodList($("#street_add").val(),0,"neighborhood_add");
  23. $("#communityId_add").children('option').remove();
  24. $("#communityId_add").append("<option value=''>请选择</option>");
  25. });
  26. $("#neighborhood_add").change(function(){
  27. $("#communityId_add").children('option').remove();
  28. getCommunityList($("#neighborhood_add").val(),0,"communityId_add");
  29. $("#community_add").val("");
  30. });
  31. $("#communityId_add").change(function(){
  32. var community = $("#communityId_add").find("option:selected").text();
  33. $("#community_add").val(community);
  34. });
  35. }
  36. function addPZ4_submit(){
  37. var flag= true;
  38. var flag1 = verifyCurrentHouseSituation();
  39. var flag2 = checkData();
  40. if($("#avgIncome_add").val()==""||$("#avgIncome_add").val()==null){
  41. countAvgIncome();
  42. flag = false;
  43. }
  44. if(flag1&&flag2&&flag){
  45. $.ajax({
  46. type: "POST",
  47. url:"securityPersonApply2Action_addSecurityPersonApply",
  48. data:$('#pz4Form').serialize(),// 你的formid
  49. async: false,
  50. error: function(data) {
  51. $.messager.alert("提示","提交失败");
  52. },
  53. success: function(result) {
  54. var parseResult = $.parseJSON(result);
  55. if(parseResult.success){
  56. $('#addPZ4Dialog').dialog("close");
  57. var securityPersonApplyId = parseResult.obj.id;
  58. var fileNum = parseResult.obj.fileNum;
  59. for(var i=1;i<=index;i++){
  60. if($("#mbtb_" + i).length > 0 ){
  61. var url = whzl.basePath+'/securityPersonApply2Action_addSecurityPersonApplyRelative';
  62. $.ajax({
  63. type: "post",//使用post方法访问后台
  64. dataType: "json",//返回json格式的数据
  65. url: url,//要访问的后台地址
  66. async: false,
  67. data:{"securityPersonApplyRelative.securityPersonApplyId":securityPersonApplyId ,
  68. "securityPersonApplyRelative.fileNum":fileNum ,
  69. "securityPersonApplyRelative.name":$("#name" + i ).val() ,
  70. "securityPersonApplyRelative.relative":$("#relative" + i ).val() ,
  71. "securityPersonApplyRelative.idCard":$("#idCard" + i ).val() ,
  72. "securityPersonApplyRelative.maritalStatus":$("#maritalStatus" + i ).val() ,
  73. "securityPersonApplyRelative.maritalDate":$("#maritalDate" + i ).datebox('getValue') ,
  74. "securityPersonApplyRelative.company":$("#company" + i ).val() ,
  75. "securityPersonApplyRelative.residenceNo":$("#residenceNo" + i ).val() ,
  76. "securityPersonApplyRelative.wageIncome":$("#wageIncome" + i ).val() ,
  77. "securityPersonApplyRelative.operatingNetIncome":$("#operatingNetIncome" + i ).val() ,
  78. "securityPersonApplyRelative.propertyIncome":$("#propertyIncome" + i ).val() ,
  79. "securityPersonApplyRelative.otherIncome":$("#otherIncome" + i ).val() ,
  80. "securityPersonApplyRelative.otherIncomeRemark":$("#otherIncomeRemark" + i ).val() ,
  81. "securityPersonApplyRelative.securitiesTotal":$("#securitiesInfo_input" + i ).val() ,
  82. "securityPersonApplyRelative.bankTotal":$("#bankInfo_input" + i ).val() ,
  83. "securityPersonApplyRelative.commercialInsurance":$("#commercialInsuranceInfo_input" + i ).val(),
  84. "securityPersonApplyRelative.phone":$("#phone" + i ).val(),
  85. "securityPersonApplyRelative.nationality":$("#nationality" + i ).val() ,
  86. "securityPersonApplyRelative.education":$("#education" + i ).val() ,
  87. "securityPersonApplyRelative.deathDate":$("#deathDate" + i ).datebox('getValue') ,
  88. "securityPersonApplyRelative.moveIn":$("#moveIn" + i ).val() ,
  89. "securityPersonApplyRelative.isDisability":$("input:radio[name='isDisability"+i+"']:checked").val(),
  90. "securityPersonApplyRelative.disabilityType":$("#disabilityType" + i ).val(),
  91. },
  92. success : function(result){
  93. $.ajax({
  94. type: "post",//使用post方法访问后台
  95. dataType: "json",//返回json格式的数据
  96. url: whzl.basePath+'/securityPersonApply2Action_addAssets',//要访问的后台地址
  97. async: false,
  98. data:{"securityPersonApplyRelative.id":result.obj.id ,
  99. "cars":$("#carInfo_input"+i).val() ,
  100. "businesses": $("#businessInfo_input"+i).val() ,
  101. },
  102. });
  103. $("#securityPersonApplyDataGrid").datagrid("reload");
  104. }
  105. });
  106. }
  107. }
  108. }
  109. }
  110. })
  111. }
  112. }
  113. function checkData(){
  114. var flag= true;
  115. //验证家庭成员信息
  116. var isCar=2;
  117. var isBusiness=2;
  118. for(var i=1;i<=index;i++){
  119. var mbtb = $("#mbtb_"+i);
  120. //如果被删除,直接跳过
  121. if(mbtb.length > 0){
  122. var residenceNo=$("#residenceNo"+i).val()
  123. var idCard=$("#idCard"+i).val();
  124. var name=$("#name"+i).val();
  125. var relative=$("#relative"+i).val();
  126. var maritalStatus=$("#maritalStatus"+i).val();
  127. var wageIncome=$("#wageIncome"+i).val();
  128. var maritalDate = $("#maritalDate"+i).datebox('getValue');
  129. var phone=$("#phone"+i).val();
  130. var nationality=$("#nationality"+i).val();
  131. var education=$("#education"+i).val();
  132. var disabilityType=$("#disabilityType"+i).val();
  133. var carInfo =$("#carInfo_input"+i).val();
  134. var businessesInfo =$("#businessInfo_input"+i).val();
  135. $("#certificateInfo"+i).val("");
  136. $("#isSubsistenceAllowances"+i).val("");
  137. //户号
  138. if(residenceNo==''){
  139. $.messager.alert('提醒','请填户号');
  140. flag = false;
  141. }
  142. //验证姓名
  143. if(name==''){
  144. $.messager.alert('提醒','请填写姓名');
  145. flag = false;
  146. }
  147. //验证身份证号
  148. /*if(idCard!=''){
  149. if(!idCard1(idCard)){
  150. $.messager.alert('提醒','请填正确身份证号');
  151. flag = false;
  152. }
  153. }else{
  154. $.messager.alert('提醒','请填身份证号');
  155. flag = false;
  156. }*/
  157. //验证户籍关系
  158. if(relative==''){
  159. $.messager.alert('提醒','请填与申请人关系');
  160. flag = false;
  161. }
  162. //验证婚姻关系
  163. if(maritalStatus==''){
  164. $.messager.alert('提醒','请填婚姻状况');
  165. flag = false;
  166. }
  167. //除未成年、未婚都要填写登记时间
  168. if(maritalStatus !="6"&&maritalStatus !="5"){
  169. if(maritalDate ==''){
  170. $.messager.alert('提醒','请填婚姻登记日期');
  171. flag = false;
  172. }
  173. }
  174. //验证婚姻关系
  175. if(phone==''){
  176. $.messager.alert('提醒','请填联系电话');
  177. flag = false;
  178. }
  179. //验证民族
  180. if(nationality==''){
  181. $.messager.alert('提醒','请选择民族');
  182. flag = false;
  183. }
  184. //验证文化
  185. if(education==''){
  186. $.messager.alert('提醒','请选择文化程度');
  187. flag = false;
  188. }
  189. //验证残疾类型
  190. if(disabilityType==''){
  191. $.messager.alert('提醒','请选择残疾类型');
  192. flag = false;
  193. }
  194. if(disabilityType =='5'|| disabilityType =='6'){
  195. $.messager.alert('提醒','需要录入监护人信息作为共同申请人');
  196. }
  197. //验证是否有车与工商信息
  198. if(carInfo!=''){
  199. isCar = 1;
  200. }
  201. if(businessesInfo!=''){
  202. isBusiness = 1;
  203. }
  204. }
  205. }
  206. $("#isCar_add").val(isCar);
  207. $("#isBusiness_add").val(isBusiness);
  208. //家庭人口数量
  209. var mbtbNum = $(".mbtb > table").size();
  210. $("#familyNum_add").val(mbtbNum);
  211. return flag;
  212. }
  213. //计算人均收入
  214. function countAvgIncome(){
  215. var wageIncomeTotal = 0;
  216. var operatingNetIncomeTotal = 0;
  217. var propertyIncomeTotal = 0;
  218. var otherIncomeTotal = 0
  219. var avgIncome = 0;
  220. var avgArea = 0;
  221. var areaTotal = 0;
  222. var mbtbNum = $(".mbtb > table").size();
  223. for(var i=1;i<=index;i++){
  224. if($("#wageIncome"+i).val()==''||$("#wageIncome"+i).val()==undefined){
  225. $("#wageIncome"+i).val(0);
  226. }else{
  227. wageIncomeTotal+=parseInt($("#wageIncome"+i).val());
  228. }
  229. if($("#operatingNetIncome"+i).val()==''||$("#operatingNetIncome"+i).val()==undefined){
  230. $("#operatingNetIncome"+i).val(0);
  231. }else{
  232. operatingNetIncomeTotal+=parseInt($("#operatingNetIncome"+i).val());
  233. }
  234. if($("#propertyIncome"+i).val()==''||$("#propertyIncome"+i).val()==undefined){
  235. $("#propertyIncome"+i).val(0);
  236. }else{
  237. propertyIncomeTotal+=parseInt($("#propertyIncome"+i).val());
  238. }
  239. if($("#otherIncome"+i).val()==''||$("#otherIncome"+i).val()==undefined){
  240. $("#otherIncome"+i).val(0);
  241. }else{
  242. otherIncomeTotal+=parseInt($("#otherIncome"+i).val());
  243. }
  244. }
  245. avgIncome = Number((wageIncomeTotal+operatingNetIncomeTotal+propertyIncomeTotal+otherIncomeTotal)/mbtbNum).toFixed(2);
  246. $("#avgIncome_add").val(avgIncome);
  247. $("#avgIncome_span").text("家庭平均月收入=( "+wageIncomeTotal+"【工资收入】+"+operatingNetIncomeTotal+"【经营净收入】+"+propertyIncomeTotal+"【财产性收入】+"+otherIncomeTotal+"【其他收入】"+")/"+mbtbNum+"【人数】 = " + avgIncome + "元");
  248. }
  249. //验证家庭住房情况
  250. function verifyCurrentHouseSituation(){
  251. var flag = true;
  252. var currentHouseSituation=$('input:radio[name="securityPersonApply.currentHouseSituation"]:checked').val();
  253. var propertyCompany=$('#propertyCompany_add').val();
  254. if(typeof(propertyCompany)=="undefined" || propertyCompany == ''){
  255. $.messager.alert('提醒','请输入产权单位');
  256. flag = false;
  257. }
  258. var existArea=$('#existArea_add').val();
  259. if(typeof(existArea)=="undefined" || existArea == ''){
  260. $.messager.alert('提醒','请输房屋面积');
  261. flag = false;
  262. }
  263. var existReal=$('#existReal_add').val();
  264. if(typeof(existReal)=="undefined" || existReal == ''){
  265. $.messager.alert('提醒','请输房屋地址');
  266. flag = false;
  267. }
  268. return flag;
  269. }
  270. var index = 1;
  271. function addSecurityPersonApplyRelative(){
  272. index++;
  273. var $table = $("<table id='mbtb_"+index+"' class='mytable changeLine'></table>");
  274. var $tr1 = $("<tr style='border-top: 2px solid blue;'></tr>");
  275. var $th1_1 = $("<th width='11%'>户号</th>");
  276. var $td1_2 = $("<td width='20%'><input id='residenceNo"+index+"' type='text' style='width: 100px;'></td>");
  277. var $th1_3 = $("<th width='11%'>姓名</th>");
  278. var $td1_4 = $("<td width='24%'><input id='name"+index+"' type='text' style='width: 100px;'></td>");
  279. var $th1_5 = $("<th width='11%'>身份证号</th>");
  280. var $td1_6 = $("<td><input id='idCard"+index+"' type='text' style='width: 172px;'></td>");
  281. $tr1.append($th1_1);
  282. $tr1.append($td1_2);
  283. $tr1.append($th1_3);
  284. $tr1.append($td1_4);
  285. $tr1.append($th1_5);
  286. $tr1.append($td1_6);
  287. var $tr2 = $("<tr></tr>");
  288. var $th2_1 = $("<th>与申请人关系</th>");
  289. var $td2_2 = $("<td></td>");
  290. var $select_relative=$("<select id='relative" + index + "' style='width: 120px;'><option value=''>选择</option></select>")
  291. $select_relative.append(relative_array);
  292. $td2_2.append($select_relative);
  293. var $th2_3 = $("<th>婚姻状况</th>");
  294. var $td2_4 = $("<td></td>");
  295. var $select_maritalStatus=$("<select id='maritalStatus" + index + "' style='width: 120px;height: 20px;vertical-align: middle;'><option value=''>选择</option></select>")
  296. $select_maritalStatus.append(maritalStatus_array);
  297. var $maritalDate = $("<input type='text' style='width: 100px;' id='maritalDate" + index + "' class='easyui-datebox' editable='fasle'/>");
  298. $td2_4.append($select_maritalStatus);
  299. $td2_4.append($maritalDate);
  300. $.parser.parse($td2_4);
  301. var $th2_5 = $("<th>民族</th>");
  302. var $td2_6 = $("<td></td>");
  303. var $select_nationality=$("<select id='nationality" + index + "' style='width: 120px;'><option value=''>选择</option></select>")
  304. $select_nationality.append(nationality_array);
  305. $td2_6.append($select_nationality);
  306. $tr2.append($th2_1);
  307. $tr2.append($td2_2);
  308. $tr2.append($th2_3);
  309. $tr2.append($td2_4);
  310. $tr2.append($th2_5);
  311. $tr2.append($td2_6);
  312. var $tr3 = $("<tr></tr>");
  313. var $th3_1 = $("<th>联系电话</th>");
  314. var $td3_2 = $("<td><input id='phone"+index+"' type='text'/></td>");
  315. var $th3_3 = $("<th>工作单位</th>");
  316. var $td3_4 = $("<td><input id='company"+index+"' type='text'></td>");
  317. var $th3_5 = $("<th>文化程度</th>");
  318. var $td3_6 = $("<td></td>");
  319. var $select_education=$("<select id='education" + index + "' style='width: 120px;'><option value=''>选择</option></select>")
  320. $select_education.append(education_array);
  321. $td3_6.append($select_education);
  322. $tr3.append($th3_1);
  323. $tr3.append($td3_2);
  324. $tr3.append($th3_3);
  325. $tr3.append($td3_4);
  326. $tr3.append($th3_5);
  327. $tr3.append($td3_6);
  328. var $tr4 = $("<tr></tr>");
  329. var $th4_1 = $("<th>工薪收入(元/月)</th>");
  330. var $td4_2 = $("<td><input id='wageIncome"+index+"' type='text'></td>");
  331. var $th4_3 = $("<th>经营净收入(元/月)</th>");
  332. var $td4_4 = $("<td><input id='operatingNetIncome"+index+"' type='text'></td>");
  333. var $th4_5 = $("<th>财产性收入(元/月)</th>");
  334. var $td4_6 = $("<td><input id='propertyIncome"+index+"' type='text'></td>");
  335. $tr4.append($th4_1);
  336. $tr4.append($td4_2);
  337. $tr4.append($th4_3);
  338. $tr4.append($td4_4);
  339. $tr4.append($th4_5);
  340. $tr4.append($td4_6);
  341. var $tr5 = $("<tr></tr>");
  342. var $th5_1 = $("<th>其他收入(元/月)</th>");
  343. var $td5_2 = $("<td><input id='otherIncome"+index+"' type='text'></td>");
  344. var $th5_3 = $("<th>其他收入备注</th>");
  345. var $td5_4 = $("<td><input id='otherIncomeRemark"+index+"' type='text'></td>");
  346. var $th5_5 = $("<th>死亡注销日期</th>");
  347. var $td5_6 = $("<td></td>");
  348. var $deathDate = $("<input type='text' style='width: 100px;' id='deathDate" + index + "' class='easyui-datebox' editable='fasle'/>");
  349. $td5_6.append($deathDate);
  350. $.parser.parse($td5_6);
  351. $tr5.append($th5_1);
  352. $tr5.append($td5_2);
  353. $tr5.append($th5_3);
  354. $tr5.append($td5_4);
  355. $tr5.append($th5_5);
  356. $tr5.append($td5_6);
  357. var $tr6 = $("<tr></tr>");
  358. var $th6_1 = $("<th>何时何地迁入本市区户籍</th>" );
  359. var $td6_2 = $("<td colspan='5'><input id='moveIn"+index+"' type='text' style='width:700px'></td>");
  360. $tr6.append($th6_1);
  361. $tr6.append($td6_2);
  362. var $tr7 = $("<tr></tr>");
  363. var $th7_1 = $("<th>是否持有残疾证一级、二级</th>" );
  364. var $td7_2 = $("<td>" +
  365. "<input value='1' type='radio' name='isDisability"+index+"' id='isDisability"+index+"-1'>"+
  366. "<label for='isDisability"+index+"-1' style='cursor: pointer;'>是&nbsp;</label>"+
  367. "<input value='2' type='radio' name='isDisability"+index+"' id='isDisability"+index+"-2' checked='checked'>"+
  368. "<label for='isDisability"+index+"-2' style='cursor: pointer;'>否&nbsp;</label>"+
  369. "</td>");
  370. var $th7_3 = $("<th>残疾类型</th>" );
  371. var $td7_4 = $("<td></td>");
  372. var $select_disabilityType=$("<select id='disabilityType" + index + "' onchange='func("+index+")' style='width: 120px;'></select>")
  373. $select_disabilityType.append(disabilityType_array);
  374. $td7_4.append($select_disabilityType);
  375. $tr7.append($th7_1);
  376. $tr7.append($td7_2);
  377. $tr7.append($th7_3);
  378. $tr7.append($td7_4);
  379. var $tr8 = $("<tr></tr>");
  380. var $th8_1 = $("<th>资产信息</th>");
  381. var $td8_2 = $("<td colspan='5'></td>");
  382. var $button1 =$("<input id='carInfo"+index+"' type='button' value='车辆信息' onclick='carInfo_add("+index+")' style='margin: 0 0 0 6px;'/>");
  383. var $button2 =$("<input id='businessInfo"+index+"' type='button' value='工商信息' onclick='businessInfo_add("+index+")' style='margin: 0 0 0 6px;'/>");
  384. var $button3 =$("<input id='securitiesInfo"+index+"' type='button' value='证券信息' onclick='securitiesInfo_add("+index+")' style='margin: 0 0 0 6px;'/>");
  385. var $button4 =$("<input id='bankInfo"+index+"' type='button' value='银行信息' onclick='bankInfo_add("+index+")' style='margin: 0 0 0 6px;'/>");
  386. var $button5 =$("<input id='commercialInsuranceInfo"+index+"' type='button' value='商业保险信息' onclick='commercialInsuranceInfo_add("+index+")' style='margin: 0 0 0 6px;'/>");
  387. var $img = $("<img align='right' src='images/remove.png' onclick=remove('mbtb_" + index + "')>");
  388. $td8_2.append($button1);
  389. $td8_2.append($button2);
  390. $td8_2.append($button3);
  391. $td8_2.append($button4);
  392. $td8_2.append($button5);
  393. $td8_2.append($img);
  394. $tr8.append($th8_1);
  395. $tr8.append($td8_2);
  396. var $tr9 = $("<tr id='tr"+index+"_9' style='display: none;'></tr>");
  397. var $th9_1 = $("<th>资产信息</th>");
  398. var $td9_2 = $("<td id='all_td"+index+"' colspan='5'></td>");
  399. var $carInfo_div = $("<div id='carInfo_span"+index+"'></div>");
  400. var $carInfo_input = $("<input id='carInfo_input"+index+"' type='hidden'/>");
  401. var $businessInfo_div = $("<div id='businessInfo_span"+index+"'></div>");
  402. var $businessInfo_input = $("<input id='businessInfo_input"+index+"' type='hidden'/>");
  403. var $securitiesInfo_span = $("<span id='securitiesInfo_span"+index+"'></span>");
  404. var $securitiesInfo_input = $("<input id='securitiesInfo_input"+index+"' type='hidden' value='0'/>");
  405. var $bankInfo_span = $("<span id='bankInfo_span"+index+"'></span>");
  406. var $bankInfo_input = $("<input id='bankInfo_input"+index+"' type='hidden' value='0'/>");
  407. var $commercialInsuranceInfo_span = $("<span id='commercialInsuranceInfo_span"+index+"'></span>");
  408. var $commercialInsuranceInfo_input = $("<input id='commercialInsuranceInfo_input"+index+"' type='hidden' value='0'/>");
  409. $td9_2.append($carInfo_div);
  410. $td9_2.append($businessInfo_div);
  411. $td9_2.append($carInfo_input);
  412. $td9_2.append($businessInfo_input);
  413. $td9_2.append($securitiesInfo_span);
  414. $td9_2.append($securitiesInfo_input);
  415. $td9_2.append($bankInfo_span);
  416. $td9_2.append($bankInfo_input);
  417. $td9_2.append($commercialInsuranceInfo_span);
  418. $td9_2.append($commercialInsuranceInfo_input);
  419. $tr9.append($th9_1);
  420. $tr9.append($td9_2);
  421. $table.append($tr1);
  422. $table.append($tr2);
  423. $table.append($tr3);
  424. $table.append($tr4);
  425. $table.append($tr5);
  426. $table.append($tr6);
  427. $table.append($tr7);
  428. $table.append($tr8);
  429. $table.append($tr9);
  430. $("#mbtb_1").after($table);
  431. }
  432. function func(index) {
  433. var vs = $('#disabilityType'+index).val();
  434. if(vs!="0"){
  435. $("#disabilityType_add").val(vs);
  436. var select = document.getElementById('disabilityType'+index);
  437. var content = select.options[select.selectedIndex].text;
  438. $("#disabilityTypeName").text(content);
  439. }
  440. }
  441. //删除家庭成员表格
  442. function remove(id){
  443. $("#" + id).remove();
  444. }
  445. function carInfo_add(index){
  446. $("#addAssetsInfoDialog").dialog({
  447. buttons:[{
  448. text:"确认",
  449. iconCls : 'icon-ok',
  450. handler : function(){
  451. $("#car_id").val(index)
  452. var id = "car_index_" + (new Date()).valueOf();
  453. var indexCar = $("#car_id").val();
  454. var vehicleBrand = "车辆品牌:" + $("#vehicleBrand1").val();
  455. var vehicleModel = "车辆型号:" + $("#vehicleModel1").val();
  456. var buyFirstTime = "初次购买日期:" + $("#buyFirstTime1").datebox("getValue");
  457. var estimatePrice = "车辆价值(元):" + $("#estimatePrice1").val();
  458. if($("#estimatePrice1").val()==''){
  459. $.messager.alert('提醒','请输入车辆价值');
  460. return ;
  461. }
  462. var spanText = vehicleBrand + "," + vehicleModel + "," + buyFirstTime + "," + estimatePrice;
  463. var delBtn = "<img src='images/i_de.png' style='float:left; margin-left:10px;cursor:pointer' onclick=delCar('"+id+"','"+spanText+"','"+indexCar+"')>";
  464. var html = "<div id='"+id+"' style='height:20px;'><span style='float:left;'>"+spanText+"</span>"+ delBtn + "</div>";
  465. var pText = $('#carInfo_span'+indexCar).html();
  466. $("#carInfo_span"+indexCar).html(pText + html);
  467. var cars_hidden_text_id = '#carInfo_input' + indexCar;
  468. $(cars_hidden_text_id).val($(cars_hidden_text_id).val() + "###" + spanText);
  469. $("#tr"+index+"_9").show();
  470. $("#addAssetsInfoDialog").dialog("close");
  471. }
  472. },{
  473. text:"取消",
  474. iconCls : 'icon-cancel',
  475. handler : function(){
  476. $("#addAssetsInfoDialog").dialog("close");
  477. }
  478. }],
  479. onLoad : function(){
  480. $("#carInfo_tb").show();
  481. }
  482. })
  483. }
  484. function delCar(id,spanText,indexCar){
  485. //删除该车辆
  486. $("#"+id).remove();
  487. //删除车辆信息
  488. $("#carInfo_input"+indexCar).val($("#carInfo_input"+indexCar).val().replace('###'+spanText,''));
  489. }
  490. function businessInfo_add(index){
  491. $("#addAssetsInfoDialog").dialog({
  492. buttons:[{
  493. text:"确认",
  494. iconCls : 'icon-ok',
  495. handler : function(){
  496. $("#business_id").val(index)
  497. var id = "business_index_" + (new Date()).valueOf();
  498. var indexbusiness = $("#business_id").val();
  499. var businessName = "企业名称:" + $("#businessName1").val();
  500. var businessAddress = "地址:" + $("#businessAddress1").val();
  501. var shareholderName = "股东名称:" + $("#shareholderName1").val();;
  502. var investmentAmount = "出资金额:" + $("#investmentAmount1").val();
  503. var spanText = businessName + "," + businessAddress + "," + shareholderName + "," + investmentAmount;
  504. var delBtn = "<img src='images/i_de.png' style='float:left; margin-left:10px;cursor:pointer' onclick=delBusiness('"+id+"','"+spanText+"','"+indexbusiness+"')>";
  505. var html = "<div id='"+id+"' style='height:20px;'><span style='float:left;'>"+spanText+"</span>"+ delBtn + "</div>";
  506. var pText = $('#businessInfo_span'+indexbusiness).html();
  507. $("#businessInfo_span"+indexbusiness).html(pText + html);
  508. var businesss_hidden_text_id = '#businessInfo_input' + indexbusiness;
  509. $(businesss_hidden_text_id).val($(businesss_hidden_text_id).val() + "###" + spanText);
  510. $("#tr"+index+"_9").show();
  511. $("#addAssetsInfoDialog").dialog("close");
  512. }
  513. },{
  514. text:"取消",
  515. iconCls : 'icon-cancel',
  516. handler : function(){
  517. $("#addAssetsInfoDialog").dialog("close");
  518. }
  519. }],
  520. onLoad : function(){
  521. $("#businessInfo_tb").show();
  522. }
  523. })
  524. }
  525. function delBusiness(id,spanText,indexBusiness){
  526. //删除该车辆
  527. $("#"+id).remove();
  528. //删除车辆信息
  529. $("#businessInfo_input"+indexBusiness).val($("#businessInfo_input"+indexBusiness).val().replace('###'+spanText,''));
  530. }
  531. //股票信息添加
  532. function securitiesInfo_add(index){
  533. $("#addAssetsInfoDialog").dialog({
  534. buttons:[{
  535. text:"确认",
  536. iconCls : 'icon-ok',
  537. handler : function(){
  538. $("#addAssetsInfoDialog").dialog("close");
  539. var securitiesTotal=$("#securitiesTotal1").val()
  540. $("#securitiesInfo_span"+index).html("证券总额为:"+securitiesTotal+"</br>");
  541. $("#securitiesInfo_input"+index).val(securitiesTotal);
  542. $("#tr"+index+"_9").show();
  543. }
  544. },{
  545. text:"取消",
  546. iconCls : 'icon-cancel',
  547. handler : function(){
  548. $("#addAssetsInfoDialog").dialog("close");
  549. }
  550. }],
  551. onLoad : function(){
  552. $("#securitiesInfo_tb").show();
  553. }
  554. })
  555. }
  556. //银行存款信息添加
  557. function bankInfo_add(index){
  558. $("#addAssetsInfoDialog").dialog({
  559. buttons:[{
  560. text:"确认",
  561. iconCls : 'icon-ok',
  562. handler : function(){
  563. $("#addAssetsInfoDialog").dialog("close");
  564. var bankTotal=$("#bankTotal1").val()
  565. $("#bankInfo_span"+index).html("银行存款总额为:"+bankTotal+"</br>");
  566. $("#bankInfo_input"+index).val(bankTotal);
  567. $("#tr"+index+"_9").show();
  568. }
  569. },{
  570. text:"取消",
  571. iconCls : 'icon-cancel',
  572. handler : function(){
  573. $("#addAssetsInfoDialog").dialog("close");
  574. }
  575. }],
  576. onLoad : function(){
  577. $("#bankInfo_tb").show();
  578. }
  579. })
  580. }
  581. //商业保险添加
  582. function commercialInsuranceInfo_add(index){
  583. $("#addAssetsInfoDialog").dialog({
  584. buttons:[{
  585. text:"确认",
  586. iconCls : 'icon-ok',
  587. handler : function(){
  588. $("#addAssetsInfoDialog").dialog("close");
  589. var commercialInsuranceInfo=$("#commercialInsuranceTotal1").val();
  590. $("#commercialInsuranceInfo_span"+index).html("商业保险总额为:"+commercialInsuranceInfo+"</br>");
  591. $("#commercialInsuranceInfo_input"+index).val(commercialInsuranceInfo);
  592. $("#tr"+index+"_9").show();
  593. }
  594. },{
  595. text:"取消",
  596. iconCls : 'icon-cancel',
  597. handler : function(){
  598. $("#addAssetsInfoDialog").dialog("close");
  599. }
  600. }],
  601. onLoad : function(){
  602. $("#commercialInsuranceInfo_tb").show();
  603. }
  604. })
  605. }
  606. </script>
  607. <form id="pz4Form" action="securityPersonApplyAction_addSecurityPersonApply" method="post" >
  608. <input type="hidden" id="familyNum_add" name="securityPersonApply.familyNum"/>
  609. <input type="hidden" id="addType_add" name="securityPersonApply.addType" value="1"/>
  610. <input type="hidden" id="type_add" name="securityPersonApply.type" value="14"/>
  611. <input type="hidden" id="flow_add" name="securityPersonApply.flow" value="1"/>
  612. <input type="hidden" name="securityPersonApply.isCar" id="isCar_add" value="2"/>
  613. <input type="hidden" name="securityPersonApply.isBusiness" id="isBusiness_add" value="2"/>
  614. <table id="securityPersonInfo" class="mytable">
  615. <tr>
  616. <th colspan="4"><span style="font-weight: bolder;">淮安市市区公租房实物配租--特殊家庭(重度残疾)</span></th>
  617. </tr>
  618. <tr>
  619. <th colspan="4">申请人基本信息</th>
  620. </tr>
  621. <tr>
  622. <th width="11%"><em>*</em>申请人姓名</th>
  623. <td width="38%"><input type="text" name="securityPersonApply.securityPersonName" id="name_add"/></td>
  624. <th width="11%"><em>*</em>身份证号码</th>
  625. <td><input type="text" name="securityPersonApply.securityPersonIdCard" id="idCard_add" onchange="check(this.value)"/></td>
  626. </tr>
  627. <tr>
  628. <th><em>*</em>现婚姻状况</th>
  629. <td>
  630. <select name="securityPersonApply.maritalStatus" id="maritalStatus_add" style="width:172px">
  631. <option value="">请选择</option>
  632. </select>
  633. </td>
  634. <th><em>*</em>手机号码</th>
  635. <td><input type="text" name="securityPersonApply.phone" id="phone_add"/></td>
  636. </tr>
  637. <tr>
  638. <th id="houseRegister_span"><em>*</em>户口所在地</th>
  639. <td>
  640. <select id="street_add" style="width: 80px">
  641. <option value="">请选择</option>
  642. </select>
  643. <select id="neighborhood_add" name="securityPersonApply.houseRegister.id" style="width: 130px">
  644. <option value="">请选择</option>
  645. </select>
  646. <select id="communityId_add" name="securityPersonApply.communityId" style="width: 100px">
  647. <option value="">请选择</option>
  648. </select>
  649. <input type="hidden" id="community_add" name="securityPersonApply.community"/>
  650. </td>
  651. <th><em>*</em>工作单位名称</th>
  652. <td><input type="text" id="company_add" name="securityPersonApply.company"/></td>
  653. </tr>
  654. <tr>
  655. <th id="disabilityType_span"><em>*</em>残疾类型</th>
  656. <td><span id="disabilityTypeName"></span>
  657. <input type="text" id="disabilityType_add" name="securityPersonApply.disabilityType" style="display: none;"/>
  658. </td>
  659. </tr>
  660. </table>
  661. <div id="mbtb_div" class="mbtb">
  662. <table class="mytable changeLine" id="mbtb_1">
  663. <tr>
  664. <th colspan="8">家庭成员基本信息
  665. <input id="" type="button" value="新增家庭成员" onclick="addSecurityPersonApplyRelative();" style="margin-left: 30px"/>
  666. <input type="button" value="计算家庭平均收入" onclick="countAvgIncome()"/>
  667. <span id="avgIncome_span"></span>
  668. <input id="avgIncome_add" name="securityPersonApply.avgIncome" type="hidden"/>
  669. </th>
  670. </tr>
  671. <tr style="border-top: 2px solid blue;">
  672. <th width="11%">户号</th>
  673. <td width="20%"><input id='residenceNo1' type='text' style="width: 100px;"></td>
  674. <th width="11%">姓名</th>
  675. <td width="24%"><input id='name1' type='text' style="width: 100px;"></td>
  676. <th width="11%">身份证号码</th>
  677. <td width="23%"><input id='idCard1' type='text' style="width: 172px;"></td>
  678. </tr>
  679. <tr>
  680. <th>与申请人关系</th>
  681. <td>
  682. <select id='relative1' style='width: 120px;'>
  683. <option value='0'>申请人</option>
  684. </select>
  685. </td>
  686. <th>婚姻状况</th>
  687. <td>
  688. <select id='maritalStatus1' style='width: 120px;height: 20px;vertical-align: middle;'>
  689. <option value=''>选择</option>
  690. </select>
  691. <input type="text" style="width: 100px;" id='maritalDate1' class="easyui-datebox" editable="fasle"/>
  692. </td>
  693. <th>民族</th>
  694. <td>
  695. <select id='nationality1' style='width: 120px;'>
  696. <option value=''>选择</option>
  697. </select>
  698. </td>
  699. </tr>
  700. <tr>
  701. <th>联系电话</th>
  702. <td><input id="phone1"/></td>
  703. <th>工作单位</th>
  704. <td><input id='company1' type='text' style="width: 172px;"></td>
  705. <th>文化程度</th>
  706. <td>
  707. <select id='education1' style='width: 120px;'>
  708. <option value=''>选择</option>
  709. </select>
  710. </td>
  711. </tr>
  712. <tr>
  713. <th>工薪收入(元/月)</th>
  714. <td><input id="wageIncome1" /></td>
  715. <th>经营净收入(元/月)</th>
  716. <td><input id="operatingNetIncome1" /></td>
  717. <th>财产性收入(元/月)</th>
  718. <td><input id="propertyIncome1" /></td>
  719. </tr>
  720. <tr>
  721. <th>其他收入(元/月)</th>
  722. <td><input id="otherIncome1" /></td>
  723. <th>其他收入备注</th>
  724. <td><input id="otherIncomeRemark1" /></td>
  725. <th>死亡注销日期</th>
  726. <td><input id='deathDate1' class="easyui-datebox" editable="fasle"/></td>
  727. </tr>
  728. <tr>
  729. <th>何时何地迁入本市区户籍</th>
  730. <td colspan="5">
  731. <input id="moveIn1" style="width: 700px"/>
  732. </td>
  733. </tr>
  734. <tr>
  735. <th>是否持有残疾证一级、二级</th>
  736. <td><input value="1" type="radio" name="isDisability1" id="isDisability1-1" />
  737. <label for="isDisability1-1" style="cursor: pointer;">是&nbsp;</label>
  738. <input value="2" type="radio"name="isDisability1" id="isDisability1-2" checked='checked'/>
  739. <label for="isDisability1-2" style="cursor: pointer;">否&nbsp;</label>
  740. </td>
  741. <th>残疾类型</th>
  742. <td><select id='disabilityType1' onchange="func(1)" style='width: 120px;height: 20px;vertical-align: middle;'>
  743. </select>
  744. </td>
  745. </tr>
  746. <tr>
  747. <th>资产信息</th>
  748. <td colspan="5">
  749. <input id="carInfo1" type="button" value="车辆信息" onclick="carInfo_add(1)"/>
  750. <input id="businessInfo1" type="button" value="工商信息" onclick="businessInfo_add(1)"/>
  751. <input id="securitiesInfo1" type="button" value="证券信息" onclick="securitiesInfo_add(1)"/>
  752. <input id="bankInfo1" type="button" value="银行信息" onclick="bankInfo_add(1)"/>
  753. <input id="commercialInsuranceInfo1" type="button" value="商业保险信息" onclick="commercialInsuranceInfo_add(1)"/>
  754. </td>
  755. </tr>
  756. <tr id="tr1_9" style="display: none;">
  757. <th>资产信息</th>
  758. <td id="all_td1" colspan="5">
  759. <!-- 车辆 -->
  760. <div id="carInfo_span1"></div>
  761. <input id="carInfo_input1" type="hidden"/>
  762. <!-- 工商 -->
  763. <div id="businessInfo_span1"></div>
  764. <input id="businessInfo_input1" type="hidden"/>
  765. <!-- 证券 -->
  766. <span id="securitiesInfo_span1"></span>
  767. <input id="securitiesInfo_input1" name="securityPersonApplyRelative.securitiesTotal" type="hidden" value="0"/>
  768. <!-- 银行 -->
  769. <span id="bankInfo_span1"></span>
  770. <input id="bankInfo_input1" name="securityPersonApplyRelative.bankTotal" type="hidden" value="0"/>
  771. <!-- 商业保险 -->
  772. <span id="commercialInsuranceInfo_span1"></span>
  773. <input id="commercialInsuranceInfo_input1" name="securityPersonApplyRelative.commercialInsurance" type="hidden" value="0"/>
  774. </td>
  775. </tr>
  776. </table>
  777. </div>
  778. <table class="mytable">
  779. <tr>
  780. <th colspan="2">现住房信息</th>
  781. </tr>
  782. <tr>
  783. <th width="20%"><em>*</em>家庭住房困难类型:</th>
  784. <td>
  785. <input value="1" type="radio" name="securityPersonApply.currentHouseSituation" id="currentHouseSituation-1">
  786. <label for="currentHouseSituation-1" style="cursor: pointer;">自有房产&nbsp;</label>
  787. <input value="2" type="radio" name="securityPersonApply.currentHouseSituation" id="currentHouseSituation-2">
  788. <label for="currentHouseSituation-2" style="cursor: pointer;">租住私房&nbsp;</label>
  789. <input value="3" type="radio" name="securityPersonApply.currentHouseSituation" id="currentHouseSituation-3">
  790. <label for="currentHouseSituation-3" style="cursor: pointer;">借住私房&nbsp;</label>
  791. <input value="4" type="radio" name="securityPersonApply.currentHouseSituation" id="currentHouseSituation-4">
  792. <label for="currentHouseSituation-4" style="cursor: pointer;">租住公房&nbsp;</label></br>
  793. <span style="color:#000;">房屋坐落:</span><input id="existReal_add" name="securityPersonApply.existReal" type="text" class="form-control" style="width: 300px;display: inline;"/>
  794. <span style="color:#000;">,面积:</span><input id="existArea_add" name="securityPersonApply.existArea" type="text" class="form-control" style="width: 100px;display: inline;"/>
  795. <span style="color:#000;">平方米,产权人:</span><input type="text" id="propertyCompany_add" name="securityPersonApply.propertyCompany" style="width: 100px;display: inline;">
  796. </td>
  797. </tr>
  798. <tr>
  799. <th>是否存在转让房产、取得拆迁安置补偿不满两年的情况:</th>
  800. <td>
  801. <input value="1" type="radio" name="securityPersonApply.isAssignmentHouse" id="isAssignmentHouse-1" />
  802. <label for="isAssignmentHouse-1" style="cursor: pointer;">是&nbsp;</label>
  803. <input value="2" type="radio"name="securityPersonApply.isAssignmentHouse" checked="checked" id="isAssignmentHouse-2" />
  804. <label for="isAssignmentHouse-2" style="cursor: pointer;">否&nbsp;</label>
  805. </td>
  806. </tr>
  807. <tr>
  808. <th>申请之日前两年是否享受过房改房、政策性商品房或其他住房保障政策:</th>
  809. <td>
  810. <input value="1" type="radio" name="securityPersonApply.hasUsed" id="hasUsed-1" />
  811. <label for="hasUsed-1" style="cursor: pointer;">是&nbsp;</label>
  812. <input value="2" type="radio"name="securityPersonApply.hasUsed" id="hasUsed-2" />
  813. <label for="hasUsed-2" style="cursor: pointer;">否&nbsp;</label>
  814. </td>
  815. </tr>
  816. </table>
  817. </form>