addPZ5.jsp 35 KB

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