applyRegister.jsp 78 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ page import="com.runzhixing.tool.Util" %>
  3. <%@ page import="com.runzhixing.bean.CityPlace" %>
  4. <%@ page import="com.runzhixing.bean.CountryPlace" %>
  5. <%@ page import="com.runzhixing.bean.Station" %>
  6. <%@ page import="com.runzhixing.bean.AuthorityRegionPlace" %>
  7. <%@ page import="com.runzhixing.bean.User" %>
  8. <%@ page import="com.runzhixing.constant.Constant" %>
  9. <%@ page import="com.runzhixing.filter.MyFilter" %>
  10. <%@ page import="com.runzhixing.bean.Register" %>
  11. <%
  12. String path = request.getContextPath();
  13. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  14. String province = (String)request.getSession().getAttribute("selectProvice");
  15. %>
  16. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  17. <html>
  18. <head>
  19. <!-- <base href="<%=basePath%>">
  20. -->
  21. <title>车辆气瓶信息</title>
  22. <meta http-equiv="pragma" content="no-cache">
  23. <meta http-equiv="cache-control" content="no-cache">
  24. <meta http-equiv="expires" content="0">
  25. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  26. <meta http-equiv="description" content="This is my page">
  27. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  28. <meta http-equiv="X-UA-Compatible" content="IE=10"/>
  29. <link rel="stylesheet" type="text/css" href="css/easyui/themes/default/easyui.css">
  30. <link rel="stylesheet" type="text/css" href="css/easyui/themes/icon.css">
  31. <link rel="stylesheet" type="text/css" href="css/easyui/demo/demo.css">
  32. <script type="text/javascript" src="css/easyui/jquery.min.js"></script>
  33. <script type="text/javascript" src="css/easyui/jquery.easyui.min.js" charset="utf-8"></script>
  34. <script type="text/javascript" src="css/easyui/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>
  35. <link rel="stylesheet" type="text/css" href="css/common/hzbstyle.css">
  36. <script type="text/javascript">
  37. function isNull(exp){
  38. if(!exp || typeof exp=="undefined" || exp.length==0){
  39. return true;
  40. }else{
  41. return false;
  42. }
  43. }
  44. function confirm(okStr,cancelStr,tip,content,unitNo){
  45. $.messager.defaults = { ok: okStr, cancel: cancelStr };
  46. $.messager.confirm(tip, content,function (data) {
  47. if (data) {
  48. }else {
  49. if(isNull(unitNo)){
  50. showMsg("提示", "未获取到此单位的编号,操作失败!", 5000);
  51. }else{
  52. $.ajax({
  53. type: 'POST',
  54. url: "updateUnitTip",
  55. data: {
  56. "unitNo":unitNo
  57. },
  58. dataType:'text',
  59. success: function (data) {
  60. var pData = $.parseJSON(data);
  61. switch (pData.result) {
  62. case 0:
  63. showMsg("提示","操作失败",5000);
  64. break;
  65. case 1:
  66. showMsg("提示","操作成功",2000);
  67. break;
  68. }
  69. }
  70. });
  71. }
  72. }
  73. });
  74. }
  75. function showMsg(title,msg,out){
  76. $.messager.show({
  77. title: title,
  78. msg: msg,
  79. timeout:out
  80. });
  81. }
  82. function showProgress(title,msg,text){
  83. $.messager.progress({
  84. title: title,
  85. msg: msg,
  86. text: text
  87. });
  88. }
  89. function checkedbox(name){
  90. var arr=new Array();
  91. var checkbox=document.getElementsByName(name);
  92. for(var i=0;i<checkbox.length;i++){
  93. if(checkbox[i].checked==true){
  94. arr.push(checkbox[i].value);
  95. }
  96. }
  97. return arr;
  98. }
  99. function getCheckTree(id){
  100. var nodes = $("#"+id).tree('getChecked', ['checked']);
  101. var arr=new Array();
  102. for(var i=0; i<nodes.length; i++){
  103. if(nodes[i].checked==true){
  104. if(nodes[i].id.length==1){
  105. arr.push("0"+nodes[i].id);
  106. }else if(nodes[i].id.length==2){
  107. arr.push(nodes[i].id+"0000");
  108. }else if(nodes[i].id.length==4){
  109. arr.push(nodes[i].id+"00");
  110. }else{
  111. arr.push(nodes[i].id);
  112. }
  113. }
  114. }
  115. return arr;
  116. }
  117. function getCheckTreeName(id){
  118. var nodes = $("#"+id).tree('getChecked', ['checked']);
  119. var arr=new Array();
  120. for(var i=0; i<nodes.length; i++){
  121. if(nodes[i].checked==true){
  122. arr.push(nodes[i].text);
  123. }
  124. }
  125. return arr;
  126. }
  127. function isCarNo(str) {//验证车牌号
  128. return /(^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领]{1}[A-Z0-9]{6}$)|(^[A-Z]{2}[A-Z0-9]{2}[A-Z0-9\u4E00-\u9FA5]{1}[A-Z0-9]{4}$)|(^[\u4E00-\u9FA5]{1}[A-Z0-9]{5}[挂学警军港澳]{1}$)|(^[A-Z]{2}[0-9]{5}$)|(^(08|38){1}[A-Z0-9]{4}[A-Z0-9挂学警军港澳]{1}$)/.test(str);
  129. //return /(^[\u4E00-\u9FA5]{1}[A-Z0-9]{6}$)|(^[A-Z]{2}[A-Z0-9]{2}[A-Z0-9\u4E00-\u9FA5]{1}[A-Z0-9]{4}$)|(^[\u4E00-\u9FA5]{1}[A-Z0-9]{5}[挂学警军港澳]{1}$)|(^[A-Z]{2}[0-9]{5}$)|(^(08|38){1}[A-Z0-9]{4}[A-Z0-9挂学警军港澳]{1}$)/.test(str);
  130. }
  131. function isCarNo1(str){
  132. return /(^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$)/.test(str);
  133. }
  134. /**
  135. * 获取上一个月
  136. *
  137. * @date 格式为yyyy-mm-dd的日期,如:2014-01-25
  138. */
  139. function getPreMonth(date) {
  140. var arr = date.split('-');
  141. var year = arr[0]; //获取当前日期的年份
  142. var month = arr[1]; //获取当前日期的月份
  143. var day = arr[2]; //获取当前日期的日
  144. var days = new Date(year, month, 0);
  145. days = days.getDate(); //获取当前日期中月的天数
  146. var year2 = year;
  147. var month2 = parseInt(month) - 1;
  148. if (month2 == 0) {//如果是1月份,则取上一年的12月份
  149. year2 = parseInt(year2) - 1;
  150. month2 = 12;
  151. }
  152. var day2 = day;
  153. var days2 = new Date(year2, month2, 0);
  154. days2 = days2.getDate();
  155. if (day2 > days2) {//如果原来日期大于上一月的日期,则取当月的最大日期。比如3月的30日,在2月中没有30
  156. day2 = days2;
  157. }
  158. if (month2 < 10) {
  159. month2 = '0' + month2;//月份填补成2位。
  160. }
  161. var date11 = new Date();
  162. var hor = date11.getHours()>9?date11.getHours():"0"+date11.getHours();
  163. var min = date11.getMinutes()>9?date11.getMinutes():"0"+date11.getMinutes();
  164. var sec = date11.getSeconds()>9?date11.getSeconds():"0"+date11.getSeconds();
  165. var t2 = year2 + '-' + month2 + '-' + day2+" "+hor+":"+min+":"+sec;
  166. return t2;
  167. }
  168. /**
  169. * 获取上一个月
  170. *
  171. * @date 格式为yyyy-mm-dd的日期,如:2014-01-25
  172. */
  173. function getPreMonth1(date) {
  174. var arr = date.split('-');
  175. var year = arr[0]; //获取当前日期的年份
  176. var month = arr[1]; //获取当前日期的月份
  177. var day = arr[2]; //获取当前日期的日
  178. var days = new Date(year, month, 0);
  179. days = days.getDate(); //获取当前日期中月的天数
  180. var year2 = year;
  181. var month2 = parseInt(month) - 1;
  182. if (month2 == 0) {//如果是1月份,则取上一年的12月份
  183. year2 = parseInt(year2) - 1;
  184. month2 = 12;
  185. }
  186. var day2 = day;
  187. var days2 = new Date(year2, month2, 0);
  188. days2 = days2.getDate();
  189. if (day2 > days2) {//如果原来日期大于上一月的日期,则取当月的最大日期。比如3月的30日,在2月中没有30
  190. day2 = days2;
  191. }
  192. if (month2 < 10) {
  193. month2 = '0' + month2;//月份填补成2位。
  194. }
  195. var hor = "00";
  196. var min = "00";
  197. var sec = "00";
  198. var t2 = year2 + '-' + month2 + '-' + day2+" "+hor+":"+min+":"+sec;
  199. return t2;
  200. }
  201. function getPreMonth2(date) {
  202. var arr = date.split('-');
  203. var year = arr[0]; //获取当前日期的年份
  204. var month = arr[1]; //获取当前日期的月份
  205. var day = arr[2]; //获取当前日期的日
  206. var days = new Date(year, month, 0);
  207. days = days.getDate(); //获取当前日期中月的天数
  208. var year2 = year;
  209. var month2 = parseInt(month) - 1;
  210. if (month2 == 0) {//如果是1月份,则取上一年的12月份
  211. year2 = parseInt(year2) - 1;
  212. month2 = 12;
  213. }
  214. var day2 = day;
  215. var days2 = new Date(year2, month2, 0);
  216. days2 = days2.getDate();
  217. if (day2 > days2) {//如果原来日期大于上一月的日期,则取当月的最大日期。比如3月的30日,在2月中没有30
  218. day2 = days2;
  219. }
  220. if (month2 < 10) {
  221. month2 = '0' + month2;//月份填补成2位。
  222. }
  223. var hor = "00";
  224. var min = "00";
  225. var sec = "00";
  226. day2 = "01";
  227. var t2 = year2 + '-' + month2 + '-' + day2+" "+hor+":"+min+":"+sec;
  228. return t2;
  229. }
  230. function getNowDay(date) {
  231. var arr = date.split('-');
  232. var year = arr[0]; //获取当前日期的年份
  233. var month = arr[1]; //获取当前日期的月份
  234. var day = arr[2]; //获取当前日期的日
  235. var days = new Date(year, month, 0);
  236. days = days.getDate(); //获取当前日期中月的天数
  237. var year2 = year;
  238. var month2 = parseInt(month) - 0;
  239. if (month2 == 0) {//如果是1月份,则取上一年的12月份
  240. year2 = parseInt(year2) - 1;
  241. month2 = 12;
  242. }
  243. var day2 = day;
  244. var days2 = new Date(year2, month2, 0);
  245. days2 = days2.getDate();
  246. if (day2 > days2) {//如果原来日期大于上一月的日期,则取当月的最大日期。比如3月的30日,在2月中没有30
  247. day2 = days2;
  248. }
  249. if (month2 < 10) {
  250. month2 = '0' + month2;//月份填补成2位。
  251. }
  252. var date11 = new Date();
  253. var hor = date11.getHours()>9?date11.getHours():"0"+date11.getHours();
  254. var min = date11.getMinutes()>9?date11.getMinutes():"0"+date11.getMinutes();
  255. var sec = date11.getSeconds()>9?date11.getSeconds():"0"+date11.getSeconds();
  256. var t2 = year2 + '-' + month2 + '-' + day2;
  257. return t2;
  258. }
  259. function getBeforeDate(number) {
  260. const num = number;
  261. const date = new Date();
  262. let year = date.getFullYear();
  263. let mon = date.getMonth() + 1;
  264. let day = date.getDate();
  265. if (day <= num) {
  266. if (mon > 1) {
  267. mon = mon - 1;
  268. } else {
  269. year = year - 1;
  270. mon = 12;
  271. }
  272. }
  273. date.setDate(date.getDate() - num);
  274. year = date.getFullYear();
  275. mon = date.getMonth() + 1;
  276. day = date.getDate();
  277. const s = year + '-' + (mon < 10 ? ('0' + mon) : mon) + '-' + (day < 10 ? ('0' + day) : day);
  278. return s;
  279. }
  280. function compareDate(date1,date2){
  281. var oDate1 = new Date(date1);
  282. var oDate2 = new Date(date2);
  283. if(oDate1.getTime() >= oDate2.getTime()){
  284. return true;
  285. } else {
  286. return false;
  287. }
  288. }
  289. function fnKeyUp(){
  290. this.value=this.value.toUpperCase();
  291. }
  292. function getDateAA(aa,dat){
  293. // var date1 = new Date(),
  294. // time1=date1.getFullYear()+"-"+(date1.getMonth()+1)+"-"+date1.getDate();//time1表示当前时间
  295. var date2 = new Date(dat);
  296. date2.setDate(date2.getDate()+aa);
  297. var time2 = date2.getFullYear()+"-"+(date2.getMonth()+1)+"-"+date2.getDate();
  298. return time2;
  299. }
  300. </script>
  301. <script type="text/javascript" src="js/beforeDatagrid.js"></script>
  302. <style type="text/css">
  303. table tr td{
  304. font-size: 16px;
  305. }
  306. .tdclass{
  307. padding-left: 20px;
  308. font-size: 12px;
  309. }
  310. .tdclass1{
  311. font-size: 12px;
  312. }
  313. .colorRed{
  314. color: red;
  315. }
  316. .radiusDiv{
  317. margin-top: 0px;
  318. }
  319. .cylinderInput{
  320. width: 150px;
  321. }
  322. </style>
  323. <script type="text/javascript">
  324. var showTime=5000;
  325. var cylinderN=1;
  326. var selectedCityId="00";
  327. var QP="";
  328. var province = '<%=province %>';
  329. var register;
  330. $(document).ready(function(){
  331. var currentLoign = '<%=(String)session.getAttribute("openid")%>';
  332. var method =<%= request.getParameter("method")%>;
  333. if(currentLoign&&currentLoign!="null"){
  334. var firstLogin = '<%= request.getAttribute("firstLogin")%>';
  335. if(firstLogin==1){
  336. for(var i=1;i<=7;i++){
  337. document.getElementById("unitTr"+i).style.display='none';
  338. }
  339. openRegisterDialog();
  340. }else{
  341. getRegister(currentLoign);
  342. }
  343. }else{
  344. if(method&&method==1){
  345. <%
  346. String userOperatorNo = (String)session.getAttribute("userOperatorNo");
  347. session.setAttribute("userOperatorNo", userOperatorNo);
  348. %>
  349. document.getElementById("loginTable").style.display='none';
  350. }else{
  351. //window.location.replace('jsp/login/loginre.jsp' + window.location.search);
  352. }
  353. }
  354. document.getElementById("currentLoign").innerHTML=currentLoign;
  355. $('#giveCardTime').datebox('setValue', getNowDay(new Date().toISOString().substring(0, 10)));
  356. //addCert("川A90x3z",1);
  357. //addCylinder(cylinderN,1);
  358. document.getElementById("carinfodiv").style.display='none';
  359. document.getElementById("cylinderinfodiv").style.display='none';
  360. document.getElementById("certinfodiv").style.display='none';
  361. //document.getElementById("cylinderinfodiv").style.display='';
  362. $("#region1").combobox({
  363. prompt:'必选',
  364. panelHeight:'150px',
  365. required:true,
  366. editable:false,
  367. valueField:'id',
  368. textField:'name',
  369. url:'ajax/getCity123',
  370. onSelect: function (rec) {
  371. selectedCityId = rec.id;
  372. QP = 'QP0'+rec.id;
  373. $('#useCardNo').textbox({buttonText:QP});
  374. $('#region2').combobox({
  375. url:"ajax/getCounty123?cityId="+rec.id,
  376. panelHeight:'150px',
  377. required:true,
  378. editable:false,
  379. valueField:'id',
  380. textField:'name',
  381. prompt:'必选',
  382. });
  383. $('#giveCardUnit').combobox({
  384. url:"ajax/getUnit123?cityId="+rec.id+"&countryId=00&&type=0",
  385. panelHeight:'auto',
  386. required:true,
  387. editable:false,
  388. valueField:'id',
  389. textField:'name',
  390. prompt:'必选',
  391. });
  392. $('#useCardNo').textbox({
  393. prompt:'必填',
  394. });
  395. }
  396. });
  397. $("#appType").combobox({
  398. panelHeight:'auto',
  399. required:true,
  400. editable:false,
  401. valueField:'id',
  402. textField:'name',
  403. onSelect: function (rec) {
  404. if(rec.id=="2"||rec.id=="4"||rec.id=="5"){
  405. $('#carType').combobox('select', '1');
  406. $('#plateColor').combobox('select', 2);
  407. }else{
  408. $('#carType').combobox('select', '2');
  409. $('#plateColor').combobox('select', 1);
  410. }
  411. }
  412. });
  413. $("#userType").combobox({
  414. onChange: function (n,o) {
  415. if(n==0){//单位
  416. for(var i=1;i<=7;i++){
  417. document.getElementById("unitTr"+i).style.display='';
  418. }
  419. }else if(n==1){//个人
  420. $('#uscc').textbox({required:false,prompt:''});
  421. for(var i=1;i<=7;i++){
  422. document.getElementById("unitTr"+i).style.display='none';
  423. }
  424. }
  425. }
  426. });
  427. $("#useCardNo").next().hide();
  428. });
  429. function addCylinder(num,secondP){
  430. if(num>8){
  431. //showMsg('提示', '最多增加8只气瓶,如需要更改,可重新打开此页面', showTime);
  432. $.messager.alert('提示','最多增加8只气瓶,如需更改,可返回车辆信息进行修改气瓶安装数量');
  433. return;
  434. }
  435. var content='<table id="table'+num+'" style="margin-top:20px">';
  436. content+='<tr>';
  437. content+='<td class="tdclass title">气瓶'+num+':</td>';
  438. content+='</tr><tr><td>&nbsp;</td></tr><tr>';
  439. content+='<td class="tdclass colorRed">气瓶编号:<br/>'+'<input id="cylinderNo'+num+'" name="cylinderNo'+num+'" style="height:34px;" class="easyui-textbox cylinderInput" />'+'</td>';
  440. //var op='<option value="0">其他</option><option value="1">钢质气瓶</option><option value="2">钢质内胆环向缠绕气瓶</option><option value="3">铝合金内胆全缠绕气瓶</option><option value="4">塑料内胆全缠绕气瓶</option><option value="5" selected="selected">LNG液化天然气气瓶</option>';
  441. //宁夏去掉4
  442. if(province=="64"){
  443. var op='<option value="0">其他</option><option value="1">钢质气瓶</option><option value="2">钢质内胆环向缠绕气瓶</option><option value="3">铝合金内胆全缠绕气瓶</option><option value="5" selected="selected">LNG液化天然气气瓶</option>';
  444. }else{
  445. var op='<option value="0">其他</option><option value="1">钢质气瓶</option><option value="2">钢质内胆环向缠绕气瓶</option><option value="3">铝合金内胆全缠绕气瓶</option><option value="4">塑料内胆全缠绕气瓶</option><option value="5" selected="selected">LNG液化天然气气瓶</option>';
  446. }
  447. content+='<td class="tdclass colorRed">类&nbsp;&nbsp;&nbsp;&nbsp;型:<br/>'+'<select id="cylinderType'+num+'" name="cylinderType'+num+'" style="height:34px;" class="easyui-combobox cylinderInput">'+op+'</select>'+'</td>';
  448. content+='<td class="tdclass colorRed">制造单位:<br/>'+'<select id="manufacturer'+num+'" name="manufacturer'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  449. content+='<td class="tdclass">生产许可:<br/>'+'<input id="productLicense'+num+'" name="productLicense'+num+'" style="height:34px;" class="easyui-datebox cylinderInput"/>'+'</td>';
  450. content+='<td class="tdclass colorRed">制造日期:<br/>'+'<input id="productDate'+num+'" name="productDate'+num+'" style="height:34px;" class="easyui-datebox cylinderInput"/>'+'</td>';
  451. content+='<td class="tdclass">安装单位:<br/>'+'<select id="installUnit'+num+'" name="installUnit'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  452. content+='</tr><tr>';
  453. content+='<td class="tdclass">安装许可证:<br/>'+'<select id="installLicense'+num+'" name="installLicense'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  454. content+='<td class="tdclass">安装合格证:<br/>'+'<select id="installCert'+num+'" name="installCert'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  455. var op1='<option value="0">安装</option><option value="1">复装</option><option value="2">整车出厂</option>';
  456. content+='<td class="tdclass colorRed">安装类型:<br/>'+'<select id="installType'+num+'" name="installType'+num+'" style="height:34px;" class="easyui-combobox cylinderInput">'+op1+'</select>'+'</td>';
  457. var op2='<option value="0">后备箱</option><option value="1">底部</option><option value="2">顶部</option><option value="3">货厢</option><option value="4">中部</option>';
  458. content+='<td class="tdclass">安装位置:<br/>'+'<select id="installLocation'+num+'" name="installLocation'+num+'" style="height:34px;" class="easyui-combobox cylinderInput">'+op2+'</select>'+'</td>';
  459. content+='<td class="tdclass">安装人员:<br/>'+'<select id="installOper'+num+'" name="installOper'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  460. content+='</tr><tr>';
  461. content+='<td class="tdclass">第三方安装:<br/>'+'<select id="thirdInstall'+num+'" name="thirdInstall'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  462. content+='<td class="tdclass colorRed">改装出厂时间:<br/>'+'<input id="refitDate'+num+'" name="refitDate'+num+'" style="height:34px;" class="easyui-datebox cylinderInput"/>'+'</td>';
  463. content+='<td class="tdclass colorRed">初次投用时间(勾选复选框有效):<br/>'+'<input type="checkbox" name="firstUseCK'+num+'" id="firstUseCK'+num+'" /><input id="firstUseDate'+num+'" name="firstUseDate'+num+'" style="height:34px;" class="easyui-datebox cylinderInput"/>'+'</td>';
  464. content+='<td class="tdclass colorRed">下次检验时间(勾选复选框有效):<br/>'+'<input type="checkbox" name="nextCheckCK'+num+'" id="nextCheckCK'+num+'" /><input id="nextCheckDate'+num+'" name="nextCheckDate'+num+'" style="height:34px;" class="easyui-datebox cylinderInput"/>'+'</td>';
  465. content+='<td class="tdclass colorRed">容&nbsp;&nbsp;积&nbsp;L:<br/>'+'<input id="vol'+num+'" name="vol'+num+'" style="height:34px;" class="easyui-textbox cylinderInput"/>'+'</td>';
  466. content+='<td class="tdclass colorRed">年&nbsp;&nbsp;&nbsp;&nbsp;限:<br/>'+'<input id="yearLimit'+num+'" name="yearLimit'+num+'" style="height:34px;" class="easyui-textbox cylinderInput"/>'+'</td>';
  467. content+='</tr><tr>';
  468. content+='<td class="tdclass colorRed">次&nbsp;&nbsp;&nbsp;&nbsp;数:<br/>'+'<input id="count'+num+'" name="count'+num+'" style="height:34px;" class="easyui-textbox cylinderInput"/>'+'</td>';
  469. content+='<td class="tdclass">产品型号:<br/>'+'<select id="productType'+num+'" name="productType'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  470. content+='<td class="tdclass">重&nbsp;&nbsp;&nbsp;&nbsp;量:<br/>'+'<input id="weight'+num+'" name="weight'+num+'" style="height:34px;" class="easyui-textbox cylinderInput"/>'+'</td>';
  471. content+='<td class="tdclass">壁&nbsp;&nbsp;&nbsp;&nbsp;厚:<br/>'+'<input id="wall'+num+'" name="wall'+num+'" style="height:34px;" class="easyui-textbox cylinderInput"/>'+'</td>';
  472. content+='<td class="tdclass">公称压力:<br/>'+'<input id="press'+num+'" name="press'+num+'" style="height:34px;" class="easyui-textbox cylinderInput"/>'+'</td>';
  473. content+='</tr>';
  474. content+='</tr><tr>';
  475. content+='<td class="tdclass">材&nbsp;&nbsp;&nbsp;&nbsp;质:<br/>'+'<select id="material'+num+'" name="material'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  476. content+='<td class="tdclass">纤&nbsp;&nbsp;&nbsp;&nbsp;维:<br/>'+'<select id="fibre'+num+'" name="fibre'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  477. content+='<td class="tdclass">树&nbsp;&nbsp;&nbsp;&nbsp;脂:<br/>'+'<select id="resin'+num+'" name="resin'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  478. content+='<td class="tdclass">设备代码:<br/>'+'<input id="deviceCode'+num+'" name="deviceCode'+num+'" style="height:34px;" class="easyui-textbox cylinderInput"/>'+'</td>';
  479. content+='<td class="tdclass">制造监管检验机构:<br/>'+'<select id="mechanism1'+num+'" name="mechanism1'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  480. content+='<td class="tdclass">型式试验机构:<br/>'+'<select id="mechanism2'+num+'" name="mechanism2'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  481. content+='</tr><tr>';
  482. content+='<td class="tdclass">阀门厂家:<br/>'+'<select id="valveManufacturer'+num+'" name="valveManufacturer'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  483. content+='<td class="tdclass">阀门型号:<br/>'+'<select id="valveModel'+num+'" name="valveModel'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  484. content+='<td class="tdclass">阀门批次:<br/>'+'<select id="valveBatch'+num+'" name="valveBatch'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  485. content+='<td class="tdclass">设计单位:<br/>'+'<select id="designUnit'+num+'" name="designUnit'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
  486. //content+='<td calss="tdclass">资质/证件:<br/>'+'<input type="file" class="cylinderInput" style="height:34px;" name="cert' +num +'" /></td>';
  487. //content+='<td class="tdclass">资质/证件:<br/>'+'<a id="uploadCert" href="javascript:void(0);" class="easyui-linkbutton cylinderInput" iconCls="icon-save1" plain="false" style="height:34px;" onclick="openUploadCert1();">上传资质/证件</a>'+'</td>';
  488. content+='</tr><tr>';
  489. //content+='<td colspan="11" align="center">'+'<img id="add'+num+'" src="images/add.png" style="cursor:pointer;" onclick="addCylinder('+(num+1)+')" />'+'<img id="remove'+num+'" src="images/delete.png" style="cursor:pointer;" onclick="removeCylinder('+(num)+')" />'+'</td>';
  490. if(secondP=="1"){
  491. content+='<td>&nbsp;</td></tr><tr>';
  492. content+='<td colspan="11" align="center"><span style="font-size:12px;"><input type="checkbox" id="userknow" onchange="checkboxOnclick(this)">本人承诺上传气瓶数据、图片资料信息均真实有效,如因不实所产生的安全后果,用户自行承担!</span></td></tr><tr>';
  493. content+='<td colspan="11" align="center">'+'<a id="saveCylinder" href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-save1" plain="false" style="width:250px;height:50px;" onclick="saveCylinderInfo();">保存气瓶信息</a>'+'</td>';
  494. content+='</tr><tr><td>&nbsp;</td>';
  495. }
  496. content+='</tr></table>';
  497. $("#cylinderDiv").append(content);
  498. if(secondP=="1"){
  499. $("#saveCylinder").linkbutton({
  500. });
  501. }
  502. $('#saveCylinder').linkbutton('disable');
  503. if(num==1){
  504. // document.getElementById("add"+num).style.display='';
  505. // document.getElementById("remove"+num).style.display='none';
  506. }else{
  507. // document.getElementById("add"+(num-1)).style.display='none';
  508. // document.getElementById("remove"+(num-1)).style.display='';
  509. // document.getElementById("add"+num).style.display='';
  510. // document.getElementById("remove"+num).style.display='none';
  511. }
  512. $("#uploadCert").linkbutton({
  513. });
  514. $("#cylinderNo"+num).textbox({
  515. required:true,
  516. editable:true,
  517. prompt:'必填',
  518. });
  519. $("#cylinderType"+num).combobox({
  520. required:true,
  521. editable:false,
  522. panelHeight:'auto',
  523. valueField:'id',
  524. textField:'name',
  525. onSelect: function (rec) {
  526. $("#productDate"+num).datebox({
  527. required:true,
  528. editable:false,
  529. prompt:'必填',
  530. value:getNowDay(new Date().toISOString().substring(0, 10)),
  531. });
  532. $("#yearLimit"+num).textbox({
  533. required:true,
  534. editable:false,
  535. value:'不限制',
  536. });
  537. $("#count"+num).textbox({
  538. required:true,
  539. editable:false,
  540. value:'不限制',
  541. });
  542. //制造日期
  543. var productDate = $("#productDate"+num).datebox("getValue");
  544. var date2 = "2012-12-01";
  545. var bl = compareDate(productDate, date2);
  546. if(bl){//大于等于2012-12-1
  547. if(rec.id==0){
  548. $("#yearLimit"+num).textbox("setValue","8");
  549. $("#count"+num).textbox("setValue","15000");
  550. }else if(rec.id==1){
  551. $("#yearLimit"+num).textbox("setValue","8");
  552. $("#count"+num).textbox("setValue","不限制");
  553. }else if(rec.id==2){
  554. $("#yearLimit"+num).textbox("setValue","8");
  555. $("#count"+num).textbox("setValue","不限制");
  556. }else if(rec.id==3){
  557. $("#yearLimit"+num).textbox("setValue","8");
  558. $("#count"+num).textbox("setValue","不限制");
  559. }
  560. }else{//小于2012-12-1
  561. if(rec.id==0){
  562. $("#yearLimit"+num).textbox("setValue","8");
  563. $("#count"+num).textbox("setValue","15000");
  564. }else if(rec.id==1){
  565. $("#yearLimit"+num).textbox("setValue","5");
  566. $("#count"+num).textbox("setValue","不限制");
  567. }else if(rec.id==2){
  568. $("#yearLimit"+num).textbox("setValue","8");
  569. $("#count"+num).textbox("setValue","不限制");
  570. }else if(rec.id==3){
  571. $("#yearLimit"+num).textbox("setValue","8");
  572. $("#count"+num).textbox("setValue","不限制");
  573. }
  574. }
  575. if(rec.id==4||rec.id==5){
  576. $("#yearLimit"+num).textbox("setValue","不限制");
  577. $("#count"+num).textbox("setValue","不限制");
  578. }
  579. }
  580. });
  581. $("#manufacturer"+num).combobox({
  582. url:"ajax/getCylinderProduct",
  583. valueField:'id',
  584. textField:'name',
  585. required:true,
  586. editable:false,
  587. panelHeight:'150px',
  588. prompt:'必选',
  589. });
  590. $("#productLicense"+num).textbox({
  591. required:false,
  592. editable:true,
  593. });
  594. $("#productDate"+num).datebox({
  595. required:true,
  596. editable:false,
  597. prompt:'必填',
  598. value:getNowDay(new Date().toISOString().substring(0, 10)),
  599. onSelect: function (date) {
  600. $("#yearLimit"+num).textbox({
  601. required:true,
  602. editable:false,
  603. value:'不限制',
  604. });
  605. $("#count"+num).textbox({
  606. required:true,
  607. editable:false,
  608. value:'不限制',
  609. });
  610. var productDate = date.toISOString().substring(0, 10);
  611. var date2 = "2012-12-01";
  612. var bl = compareDate(productDate, date2);
  613. var selectCylinderT = $("#cylinderType"+num).combobox("getValue");
  614. if(bl){//大于等于2012-12-1
  615. if(selectCylinderT==0){
  616. $("#yearLimit"+num).textbox("setValue","8");
  617. $("#count"+num).textbox("setValue","15000");
  618. }else if(selectCylinderT==1){
  619. $("#yearLimit"+num).textbox("setValue","8");
  620. $("#count"+num).textbox("setValue","不限制");
  621. }else if(selectCylinderT==2){
  622. $("#yearLimit"+num).textbox("setValue","8");
  623. $("#count"+num).textbox("setValue","不限制");
  624. }else if(selectCylinderT==3){
  625. $("#yearLimit"+num).textbox("setValue","8");
  626. $("#count"+num).textbox("setValue","不限制");
  627. }
  628. }else{//小于2012-12-1
  629. if(selectCylinderT==0){
  630. $("#yearLimit"+num).textbox("setValue","8");
  631. $("#count"+num).textbox("setValue","15000");
  632. }else if(selectCylinderT==1){
  633. $("#yearLimit"+num).textbox("setValue","5");
  634. $("#count"+num).textbox("setValue","不限制");
  635. }else if(selectCylinderT==2){
  636. $("#yearLimit"+num).textbox("setValue","8");
  637. $("#count"+num).textbox("setValue","不限制");
  638. }else if(selectCylinderT==3){
  639. $("#yearLimit"+num).textbox("setValue","8");
  640. $("#count"+num).textbox("setValue","不限制");
  641. }
  642. }
  643. if(selectCylinderT==4||selectCylinderT==5){
  644. $("#yearLimit"+num).textbox("setValue","不限制");
  645. $("#count"+num).textbox("setValue","不限制");
  646. }
  647. }
  648. });
  649. $("#installUnit"+num).combobox({
  650. url:"ajax/getUnit123?cityId="+selectedCityId+"&countryId=00&&type=3",
  651. valueField:'id',
  652. textField:'name',
  653. required:false,
  654. editable:true,
  655. panelHeight:'auto',
  656. });
  657. $("#installLicense"+num).textbox({
  658. required:false,
  659. editable:true,
  660. panelHeight:'auto',
  661. });
  662. $("#installCert"+num).textbox({
  663. required:false,
  664. editable:true,
  665. panelHeight:'auto',
  666. });
  667. $("#installType"+num).combobox({
  668. required:true,
  669. editable:false,
  670. panelHeight:'auto',
  671. prompt:'必选',
  672. });
  673. $("#installLocation"+num).combobox({
  674. required:false,
  675. editable:false,
  676. prompt:'必选',
  677. panelHeight:'auto',
  678. });
  679. $("#installOper"+num).textbox({
  680. required:false,
  681. editable:true,
  682. panelHeight:'auto',
  683. });
  684. $("#thirdInstall"+num).textbox({
  685. required:false,
  686. editable:true,
  687. panelHeight:'auto',
  688. });
  689. // $('#giveCardTime').datebox('setValue', getNowDay(new Date().toISOString().substring(0, 10)));
  690. $("#refitDate"+num).datebox({
  691. required:true,
  692. editable:false,
  693. prompt:'必选',
  694. value:getNowDay(new Date().toISOString().substring(0, 10)),
  695. onSelect: function (date) {
  696. $("#firstUseDate"+num).datebox({
  697. required:true,
  698. editable:false,
  699. prompt:'必选',
  700. value:getNowDay(new Date().toISOString().substring(0, 10)),
  701. });
  702. $("#nextCheckDate"+num).datebox({
  703. required:true,
  704. editable:false,
  705. prompt:'必选',
  706. value:getNowDay(new Date().toISOString().substring(0, 10)),
  707. });
  708. var aa=2*365;
  709. if(appType==1){
  710. aa=2*365;
  711. }else{
  712. aa=3*365;
  713. }
  714. var ss = date.toISOString().substring(0, 10);
  715. var dat = getDateAA(aa+1,ss);
  716. var dat1 = getDateAA(1,ss);
  717. $("#firstUseDate"+num).datebox("setValue",dat1);
  718. $("#nextCheckDate"+num).datebox("setValue",dat);
  719. }
  720. });
  721. $("#firstUseDate"+num).datebox({
  722. required:true,
  723. editable:false,
  724. prompt:'必选',
  725. value:getNowDay(new Date().toISOString().substring(0, 10)),
  726. });
  727. $("#nextCheckDate"+num).datebox({
  728. required:true,
  729. editable:false,
  730. prompt:'必选',
  731. value:getNowDay(new Date().toISOString().substring(0, 10)),
  732. });
  733. $("#vol"+num).numberbox({
  734. required:true,
  735. editable:true,
  736. precision:2,
  737. min:0,
  738. prompt:'必填',
  739. });
  740. $("#yearLimit"+num).textbox({
  741. required:true,
  742. editable:false,
  743. value:'不限制',
  744. });
  745. $("#count"+num).textbox({
  746. required:true,
  747. editable:false,
  748. value:'不限制',
  749. });
  750. $("#productType"+num).textbox({
  751. required:false,
  752. editable:true,
  753. });
  754. $("#weight"+num).textbox({
  755. required:false,
  756. editable:true,
  757. });
  758. $("#wall"+num).textbox({
  759. required:false,
  760. editable:true,
  761. });
  762. $("#press"+num).textbox({
  763. required:false,
  764. editable:true,
  765. });
  766. $("#material"+num).textbox({
  767. required:false,
  768. editable:true,
  769. });
  770. $("#fibre"+num).textbox({
  771. required:false,
  772. editable:true,
  773. });
  774. $("#resin"+num).textbox({
  775. required:false,
  776. editable:true,
  777. });
  778. $("#deviceCode"+num).textbox({
  779. required:false,
  780. editable:true,
  781. });
  782. $("#mechanism1"+num).textbox({
  783. required:false,
  784. editable:true,
  785. });
  786. $("#mechanism2"+num).textbox({
  787. required:false,
  788. editable:true,
  789. });
  790. $("#valveManufacturer"+num).textbox({
  791. required:false,
  792. editable:true,
  793. });
  794. $("#valveModel"+num).textbox({
  795. required:false,
  796. editable:true,
  797. });
  798. $("#valveBatch"+num).textbox({
  799. required:false,
  800. editable:true,
  801. });
  802. $("#designUnit"+num).textbox({
  803. required:false,
  804. editable:true,
  805. });
  806. // $("#cert"+num).filebox({
  807. // required:false,
  808. // editable:true,
  809. // });
  810. }
  811. function removeCylinder(num){
  812. $("#table"+num).remove();
  813. }
  814. var inNum=0;
  815. var operType=0;//0为新增
  816. var carGuid123="";
  817. var carType=0;
  818. var giveCardT;
  819. function saveCarInfo(){
  820. if($("#carInfoFrom").form('validate')){
  821. var cNo = $('#carNo').textbox('getValue');
  822. if(cNo.length==2){
  823. $.messager.alert('提示','请填写正确的车牌号!');
  824. return;
  825. }
  826. showProgress('提示','请等待','保存中……');
  827. inNum = $('#installNum').combobox('getValue');
  828. carType = $('#carType').combobox('getValue');
  829. giveCardT= $("#giveCardTime").datebox("getValue");
  830. $("#carInfoFrom").form("submit",{
  831. url: "ajax/insertCarInfo?operType="+operType+"&carGuid="+carGuid123+"&QP="+QP,
  832. onsubmit: function () {
  833. return $(this).form("validate");
  834. },
  835. success: function (data) {
  836. $.messager.progress('close');
  837. var pData = $.parseJSON(data);
  838. if(pData.result==0){
  839. document.getElementById("carinfodiv").style.display='none';
  840. document.getElementById("carGuid").value = pData.carGuid;
  841. carGuid123=pData.carGuid;
  842. document.getElementById("carNo123").value = pData.carNo;
  843. document.getElementById("cylinderinfotip").innerHTML=pData.carNo+"的气瓶信息";
  844. document.getElementById("carinfodiv").style.display='none';
  845. document.getElementById("cylinderinfodiv").style.display='';
  846. document.getElementById("cylinderDiv").innerHTML="";
  847. for(var i=1;i<=inNum;i++){
  848. if(i==inNum){
  849. addCylinder(i,1);
  850. }else{
  851. addCylinder(i,0);
  852. }
  853. }
  854. $.messager.alert('提示','操作成功,请填写气瓶信息');
  855. if(document.getElementById("clearData").checked){
  856. restoreCarForm();
  857. }
  858. }else{
  859. $.messager.alert('提示','操作失败:'+pData.retinfo);
  860. }
  861. },
  862. error:function(e){
  863. $.messager.progress('close');
  864. console.log(e);
  865. },
  866. xhrFields: {
  867. withCredentials: true
  868. }
  869. });
  870. }else{
  871. $.messager.alert('提示','验证未通过,有必填信息未填写!');
  872. }
  873. }
  874. var gettdCyliderGuid=[];
  875. function saveCylinderInfo(){
  876. $('#productDate1').datebox('getValue');
  877. if($("#cylinderInfoFrom").form('validate')){
  878. var installCertArray=new Array();
  879. for(var i=1;i<=inNum;i++){
  880. var productDate123= $("#productDate"+i).datebox("getValue");
  881. var refitDate123= $("#refitDate"+i).datebox("getValue");
  882. var firstUseDate123= $("#firstUseDate"+i).datebox("getValue");
  883. var nextCheckDate123= $("#nextCheckDate"+i).datebox("getValue");
  884. if(giveCardT){
  885. if(!compareDate(giveCardT, refitDate123)){
  886. $.messager.alert('提示','气瓶'+i+':发证时间应不小于改装出厂时间');
  887. return;
  888. }
  889. }else{
  890. $.messager.alert('提示','发证时间不能为空');
  891. return;
  892. }
  893. if(!compareDate(refitDate123, productDate123)){
  894. $.messager.alert('提示','气瓶'+i+':改装出厂时间应不小于制造日期');
  895. return;
  896. }
  897. var firstUseCK=document.getElementById("firstUseCK");
  898. if(!compareDate(firstUseDate123, refitDate123)&&firstUseCK.checked){
  899. $.messager.alert('提示','气瓶'+i+':初次投用时间应不小于改装出厂时间');
  900. return;
  901. }
  902. var nextCheckCK=document.getElementById("nextCheckCK");
  903. if(!compareDate(nextCheckDate123, firstUseDate123)&&nextCheckCK.checked){
  904. $.messager.alert('提示','气瓶'+i+':下次检验时间应不小于初次投用时间');
  905. return;
  906. }
  907. var installCert = $("#installCert"+i).textbox("getValue");
  908. if(i>1&&installCertArray.length>0){
  909. if(installCert&&installCertArray.indexOf(installCert)>-1){
  910. $.messager.alert('提示','气瓶'+i+':安装合格证不能跟其他气瓶的合格证一样!');
  911. return;
  912. }else{
  913. if(installCert){
  914. installCertArray[installCertArray.length] = installCert;
  915. }
  916. }
  917. }else{
  918. if(installCert){
  919. if(installCertArray.length==0){
  920. installCertArray[0] = installCert;
  921. }else{
  922. installCertArray[installCertArray.length] = installCert;
  923. }
  924. }
  925. }
  926. }
  927. showProgress('提示','请等待','保存中……');
  928. $("#cylinderInfoFrom").form("submit",{
  929. url: "ajax/insertCylinderInfo?cylinderNum="+inNum+"&operType=0&carType="+carType,
  930. onsubmit: function () {
  931. return $(this).form("validate");
  932. },
  933. success: function (data) {
  934. $.messager.progress('close');
  935. var pData = $.parseJSON(data);
  936. if(pData.result=="0"){
  937. $.messager.alert('提示','操作成功,气瓶信息填写成功,请上传气瓶相关资质/证件');
  938. gettdCyliderGuid=[];
  939. if(pData.cylinderGuid){
  940. gettdCyliderGuid=pData.cylinderGuid.split(",");
  941. }
  942. document.getElementById("certDiv").innerHTML="";
  943. document.getElementById("certinfodiv").style.display='';
  944. for(var i=1;i<=gettdCyliderGuid.length;i++){
  945. addCert(pData.carNo,i);
  946. }
  947. document.getElementById("carinfodiv").style.display='none';
  948. document.getElementById("cylinderinfodiv").style.display='none';
  949. document.getElementById("select1").className = 'whoUse';
  950. document.getElementById("select2").className = 'whoUse';
  951. document.getElementById("select3").className = 'whoUse';
  952. operType=0;//0为新增
  953. }else{
  954. $.messager.alert('提示','操作失败:'+pData.retinfo);
  955. }
  956. },
  957. error:function(e){
  958. $.messager.progress('close');
  959. console.log(e);
  960. },
  961. xhrFields: {
  962. withCredentials: true
  963. }
  964. });
  965. }else{
  966. $.messager.alert('提示','验证未通过,有必填信息未填写!');
  967. }
  968. }
  969. function returnCarInfo(){
  970. document.getElementById("cylinderinfodiv").style.display='none';
  971. document.getElementById("carinfodiv").style.display='';
  972. operType=1;//1未修改
  973. }
  974. function checkboxOnclick(checkbox){
  975. if(checkbox.checked){
  976. $('#saveCylinder').linkbutton('enable');
  977. }else{
  978. $('#saveCylinder').linkbutton('disable');
  979. }
  980. }
  981. </script>
  982. <style type="text/css">
  983. .title{
  984. font-size:18px;
  985. font-weight:bold;
  986. color:red;
  987. }
  988. .whoUse{
  989. border-radius:5px;
  990. border: 1px solid #817865;
  991. width: 200px;
  992. height: 100px;
  993. line-height:100px;
  994. margin-left: 0px;
  995. cursor: pointer;
  996. margin-top: 50px;
  997. }
  998. .selecttedUse{
  999. border-radius:5px;
  1000. border: 5px solid #817865;
  1001. width: 200px;
  1002. height: 100px;
  1003. line-height:100px;
  1004. margin-left: 0x;
  1005. cursor: pointer;
  1006. margin-top: 50px;
  1007. }
  1008. .selectDiv{
  1009. margin-top: 0px;
  1010. height: 200px;
  1011. margin:0;padding:0;
  1012. }
  1013. </style>
  1014. <script type="text/javascript">
  1015. function jumpOption(who){
  1016. switch(who){
  1017. case 1:
  1018. {
  1019. document.getElementById("carinfodiv").style.display='';
  1020. document.getElementById("cylinderinfodiv").style.display='none';
  1021. document.getElementById("carcylinderinfoedit").style.display='none';
  1022. document.getElementById("carcylinderinfoquery").style.display='none';
  1023. document.getElementById("certinfodiv").style.display='none';
  1024. };
  1025. break;
  1026. case 2:
  1027. {
  1028. document.getElementById("carinfodiv").style.display='none';
  1029. document.getElementById("cylinderinfodiv").style.display='none';
  1030. document.getElementById("carcylinderinfoedit").style.display='';
  1031. document.getElementById("carcylinderinfoquery").style.display='none';
  1032. document.getElementById("certinfodiv").style.display='none';
  1033. getcarcylinderinfoedit(1,5);
  1034. };
  1035. break;
  1036. case 3:
  1037. {
  1038. document.getElementById("carinfodiv").style.display='none';
  1039. document.getElementById("cylinderinfodiv").style.display='none';
  1040. document.getElementById("carcylinderinfoedit").style.display='none';
  1041. document.getElementById("carcylinderinfoquery").style.display='';
  1042. document.getElementById("certinfodiv").style.display='none';
  1043. getcarcylinderinfo(1,5);
  1044. };
  1045. break;
  1046. }
  1047. }
  1048. var currentPage1=1;
  1049. var currentSize1=5;
  1050. var totalSize1=0;
  1051. var maxPage1=0;
  1052. function getcarcylinderinfoedit(page,size){
  1053. currentPage1=page;
  1054. currentSize1=size;
  1055. showProgress('提示','请等待','保存中……');
  1056. $.ajax({
  1057. type: 'POST',
  1058. url: "ajax/getcarcylinderbyuser",
  1059. data: {
  1060. "page":page,
  1061. "size":size
  1062. },
  1063. dataType:'text',
  1064. success: function (data) {
  1065. $.messager.progress('close');
  1066. var vData = $.parseJSON(data);
  1067. totalSize1= vData.total;
  1068. var content="";
  1069. content += '<table width="100%" border="1" cellpadding="20" cellspacing="0" style="padding: 10px;">';
  1070. content += '<tr><td width="20%">车牌号</td><td width="20%">气瓶安装数量</td><td width="30%">操作状态</td><td width="30%">操作</td></tr>';
  1071. $.each(vData.rows, function(i,item){
  1072. content+='<tr>';
  1073. content+='<td class="tdclass1">';
  1074. content+=item.carNo;
  1075. content+='</td>';
  1076. content+='<td class="tdclass1">';
  1077. content+=item.installNum;
  1078. content+='</td>';
  1079. content+='<td class="tdclass1">';
  1080. content+=item.operStateName;
  1081. content+='</td>';
  1082. content+='<td class="tdclass1">';
  1083. if(item.operState==0||item.operState==6){
  1084. content+='<a href="./modifyCarInfo.jsp?carGuid='+item.carGuid+'" target="_blank">修改车辆</a>';
  1085. content+='&nbsp;&nbsp;&nbsp;&nbsp;';
  1086. content+='<a href="./modifyCylinderInfo.jsp?carGuid='+item.carGuid+'&installNum='+item.installNum+'&carNo='+item.carNo+'" target="_blank">修改气瓶</a>';
  1087. content+='&nbsp;&nbsp;&nbsp;&nbsp;';
  1088. content+='<a href="./modifyCertInfo.jsp?carGuid='+item.carGuid+'&installNum='+item.installNum+'&carNo='+item.carNo+'" target="_blank">修改资质/证件</a>';
  1089. if(item.operState==0){
  1090. content+='&nbsp;&nbsp;&nbsp;&nbsp;';
  1091. content+='<a href="javascript:void(0);" onclick="deleteCarCylinder(\''+item.carGuid+'\')" >删除车辆和气瓶</a>';
  1092. }
  1093. }else{
  1094. content+='车辆信息已被审核!';
  1095. content+='&nbsp;&nbsp;&nbsp;&nbsp;';
  1096. content+='<a href="./modifyCylinderInfo.jsp?carGuid='+item.carGuid+'&installNum='+item.installNum+'&carNo='+item.carNo+'" target="_blank">修改气瓶</a>';
  1097. content+='&nbsp;&nbsp;&nbsp;&nbsp;';
  1098. content+='<a href="./modifyCertInfo.jsp?carGuid='+item.carGuid+'&installNum='+item.installNum+'&carNo='+item.carNo+'" target="_blank">修改资质/证件</a>';
  1099. }
  1100. content+='</td>';
  1101. content+='</tr>';
  1102. });
  1103. maxPage1 = Math.ceil(totalSize1/currentSize1);
  1104. content +='<tr><td><a href="javascript:void(0);" onclick="jumpPage1(-1)">上一页</a></td><td colSpan="2"><a href="javascript:void(0);" onclick="jumpPage1(0)">回到首页</a>&nbsp;&nbsp;&nbsp;&nbsp;当前页码:'+currentPage1+"/"+maxPage1+'&nbsp;&nbsp;&nbsp;&nbsp;共'+totalSize1+'条记录</td><td><a href="javascript:void(0);" onclick="jumpPage1(1)">下一页</a></td></tr>';
  1105. content += '</table>';
  1106. document.getElementById("carcylinderinfoedit1").innerHTML=content;
  1107. },
  1108. error:function(e){
  1109. $.messager.progress('close');
  1110. console.log(e);
  1111. }
  1112. });
  1113. }
  1114. function deleteCarCylinder(carGuid){
  1115. $.messager.confirm('提示', '你确定要要删除此车辆和气瓶信息吗?', function(r) {
  1116. if (r) {
  1117. showProgress('提示','请等待','删除中……');
  1118. $.ajax({
  1119. type: 'POST',
  1120. url: "ajax/deleteCarCylinder",
  1121. data: {
  1122. "carGuid":carGuid,
  1123. "operType":2
  1124. },
  1125. dataType:'text',
  1126. success: function (data) {
  1127. $.messager.progress('close');
  1128. var pData = $.parseJSON(data);
  1129. if(pData.result>0){
  1130. getcarcylinderinfoedit(1,currentSize1);
  1131. $.messager.alert('提示','删除成功!');
  1132. }else{
  1133. $.messager.alert('提示','删除失败!');
  1134. }
  1135. },
  1136. error:function(e){
  1137. $.messager.progress('close');
  1138. console.log(e);
  1139. },
  1140. xhrFields: {
  1141. withCredentials: true
  1142. }
  1143. });
  1144. }
  1145. });
  1146. }
  1147. function jumpPage1(add){
  1148. if(currentPage1==1&&(add==-1||add==0)){
  1149. //showMsg('提示', '已经是首页了!', 5000);
  1150. $.messager.alert('提示','已经是首页了!');
  1151. }else if(currentPage1==maxPage1&&add==1){
  1152. //showMsg('提示', '已经是最后一页了!', 5000);
  1153. $.messager.alert('提示','已经是最后一页了!');
  1154. }else if(add==0){
  1155. getcarcylinderinfoedit(1,currentSize1);
  1156. }else{
  1157. currentPage1 = currentPage1+add;
  1158. getcarcylinderinfoedit(currentPage1,currentSize1);
  1159. }
  1160. }
  1161. var currentPage=1;
  1162. var currentSize=5;
  1163. var totalSize=0;
  1164. var maxPage=0;
  1165. function getcarcylinderinfo(page,size){
  1166. currentPage=page;
  1167. currentSize=size;
  1168. showProgress('提示','请等待','保存中……');
  1169. $.ajax({
  1170. type: 'POST',
  1171. url: "ajax/getcarcylinderbyuser",
  1172. data: {
  1173. "page":page,
  1174. "size":size
  1175. },
  1176. dataType:'text',
  1177. success: function (data) {
  1178. $.messager.progress('close');
  1179. var vData = $.parseJSON(data);
  1180. totalSize= vData.total;
  1181. var content="";
  1182. content += '<table width="100%" border="1" cellpadding="20" cellspacing="0" style="padding: 10px;">';
  1183. content += '<tr><td width="30%">车牌号</td><td width="30%">气瓶安装数量</td><td width="40%">操作状态</td></tr>';
  1184. $.each(vData.rows, function(i,item){
  1185. content+='<tr>';
  1186. content+='<td class="tdclass1">';
  1187. content+=item.carNo;
  1188. content+='</td>';
  1189. content+='<td class="tdclass1">';
  1190. content+=item.installNum;
  1191. content+='</td>';
  1192. content+='<td class="tdclass1">';
  1193. content+=item.operStateName;
  1194. content+='</td>';
  1195. content+='</tr>';
  1196. });
  1197. maxPage = Math.ceil(totalSize/currentSize);
  1198. content +='<tr><td><a href="javascript:void(0);" onclick="jumpPage(-1)">上一页</a></td><td><a href="javascript:void(0);" onclick="jumpPage(0)">回到首页</a>&nbsp;&nbsp;&nbsp;&nbsp;当前页码:'+currentPage+"/"+maxPage+'&nbsp;&nbsp;&nbsp;&nbsp;共'+totalSize+'条记录</td><td><a href="javascript:void(0);" onclick="jumpPage(1)">下一页</a></td></tr>';
  1199. content += '</table>';
  1200. document.getElementById("carcylinderinfoquery1").innerHTML=content;
  1201. },
  1202. error:function(e){
  1203. $.messager.progress('close');
  1204. console.log(e);
  1205. }
  1206. });
  1207. }
  1208. function jumpPage(add){
  1209. if(currentPage==1&&(add==-1||add==0)){
  1210. $.messager.alert('提示','已经是首页了!');
  1211. }else if(currentPage==maxPage&&add==1){
  1212. $.messager.alert('提示','已经是最后一页了!');
  1213. }else if(add==0){
  1214. getcarcylinderinfo(1,currentSize);
  1215. }else{
  1216. currentPage = currentPage+add;
  1217. getcarcylinderinfo(currentPage,currentSize);
  1218. }
  1219. //getcarcylinderinfo(page,size)
  1220. }
  1221. function selectedWho(who){
  1222. var select1 = document.getElementById("select1");
  1223. var select2 = document.getElementById("select2");
  1224. var select3 = document.getElementById("select3");
  1225. //setInterval('jumpPage('+who+')',1000);
  1226. setTimeout('jumpOption('+who+')', 100);
  1227. switch(who){
  1228. case 1:
  1229. {
  1230. select1.className = 'selecttedUse';
  1231. select2.className = 'whoUse';
  1232. select3.className = 'whoUse';
  1233. };
  1234. break;
  1235. case 2:
  1236. {
  1237. select1.className = 'whoUse';
  1238. select2.className = 'selecttedUse';
  1239. select3.className = 'whoUse';
  1240. };
  1241. break;
  1242. case 3:
  1243. {
  1244. select1.className = 'whoUse';
  1245. select2.className = 'whoUse';
  1246. select3.className = 'selecttedUse';
  1247. };
  1248. break;
  1249. }
  1250. }
  1251. function clickExit(){
  1252. $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function(r) {
  1253. if (r) {
  1254. window.location.replace('jsp/OtherLogin.jsp' + window.location.search);
  1255. }
  1256. });
  1257. }
  1258. var cylinder_num=1;
  1259. function openUploadCert(num){
  1260. cylinder_num = num;
  1261. if(gettdCyliderGuid.length>=num){
  1262. document.getElementById("cylinderGuid1234").value = gettdCyliderGuid[num-1];
  1263. }
  1264. $("#uploadCertDialog").dialog("open").dialog('setTitle', '资质图片数据');
  1265. $("#uploadCertDialog").panel("move",{top:$(document).scrollTop() + ($(window).height()-440) * 0.5});
  1266. }
  1267. function openUploadCert1(){
  1268. $("#uploadCertDialog").dialog("open").dialog('setTitle', '资质图片数据');
  1269. $("#uploadCertDialog").panel("move",{top:$(document).scrollTop() + ($(window).height()-440) * 0.5});
  1270. }
  1271. function uploadCert(){
  1272. if($("#certform").form('validate')){
  1273. showProgress('提示','请等待','资质/证件上传中……');
  1274. var imageType = $('input:radio[name="imageType"]:checked').val();
  1275. var certPage = $('#certPage').combobox('getValue');
  1276. $("#certform").form("submit",{
  1277. url: "ajax/uploadCert?imageType="+imageType,
  1278. onsubmit: function () {
  1279. return $(this).form("validate");
  1280. },
  1281. success: function (data) {
  1282. $.messager.progress('close');
  1283. var pData = $.parseJSON(data);
  1284. if(pData.result==1){
  1285. $.messager.alert('提示','上传成功!');
  1286. $("#imageCert").filebox('setValue','');
  1287. var content = "气瓶"+cylinder_num+":";
  1288. if(imageType=="0"){
  1289. content+="气瓶产品合格证";
  1290. }else if(imageType=="1"){
  1291. content+="监督检验证书";
  1292. }else if(imageType=="2"){
  1293. content+="安装合格证";
  1294. }else if(imageType=="3"){
  1295. content+="身份证/营业执照/法人证书";
  1296. }else if(imageType=="4"){
  1297. content+="行驶证";
  1298. }
  1299. $("#uploadInfo"+cylinder_num).append(content+" 第"+certPage+"页 上传成功<br/>");
  1300. }else{
  1301. $.messager.alert('提示','上传失败!');
  1302. }
  1303. },
  1304. error:function(e){
  1305. $.messager.progress('close');
  1306. console.log(e);
  1307. },
  1308. xhrFields: {
  1309. withCredentials: true
  1310. }
  1311. });
  1312. }else{
  1313. //showMsg('提示', '验证未通过,有必填信息未填写!', showTime);
  1314. $.messager.alert('提示','验证未通过,有必填信息未填写!');
  1315. }
  1316. }
  1317. function addCert(carNo,num){
  1318. var content = '<fieldset>';
  1319. content += '<legend>'+carNo+'_气瓶'+num+'_资质/证书</legend>';
  1320. content += '<table>';
  1321. content += '<tr>';
  1322. content += '<td align="center">';
  1323. content += '<a id="uploadCert'+num+'" href="javascript:void(0);" class="easyui-linkbutton cylinderInput" iconCls="icon-upload" plain="false" style="height:34px;" onclick="openUploadCert('+num+');">上传资质/证件</a>';
  1324. content += '</td>';
  1325. content += '</tr>';
  1326. content += '<tr>';
  1327. content += '<td align="left">';
  1328. content += '<div id="uploadInfo'+num+'"></div>';
  1329. content += '</td>';
  1330. content += '</tr>';
  1331. content += '</table>';
  1332. content += '</fieldset>';
  1333. $("#certDiv").append(content);
  1334. $("#uploadCert"+num).linkbutton({
  1335. });
  1336. }
  1337. function openRegisterDialog(){
  1338. $("#registerDialog").dialog("open").dialog('setTitle', '注册');
  1339. $("#registerDialog").panel("move",{top:$(document).scrollTop() + ($(window).height()-540) * 0.5});
  1340. }
  1341. function getRegister(openid){
  1342. $.ajax({
  1343. type: 'POST',
  1344. url: "ajax/getRegister?openid="+openid,
  1345. dataType:'text',
  1346. success: function (data) {
  1347. $.messager.progress('close');
  1348. var pData = $.parseJSON(data);
  1349. register = pData.register;
  1350. if(register&&register.USERNAME){
  1351. $("#name456").textbox("setValue",register.USERNAME);
  1352. $("#contactTel456").textbox("setValue",register.MOBILE);
  1353. $("#safetyPerson456").textbox("setValue",register.UNITSAFEMANA);
  1354. $("#safetyTel456").textbox("setValue",register.UNITSAFEPHONE);
  1355. $("#idCard456").textbox("setValue",register.USERID);
  1356. $("#zipCode456").textbox("setValue",register.POST);
  1357. $("#address456").textbox("setValue",register.ADDR);
  1358. $("#toUnit456").textbox("setValue",register.UNITNAME);
  1359. $("#unitTel456").textbox("setValue",register.UNITPHONE);
  1360. $("#dutyPerson456").textbox("setValue",register.UNITMANA);
  1361. }
  1362. },
  1363. error:function(e){
  1364. $.messager.progress('close');
  1365. console.log(e);
  1366. }
  1367. });
  1368. }
  1369. function register(){
  1370. if($("#registerform").form('validate')){
  1371. showProgress('提示','请等待','保存中……');
  1372. $("#registerform").form("submit",{
  1373. url: "ajax/register?openid="+'<%=session.getAttribute("openid")%>',
  1374. onsubmit: function () {
  1375. return $(this).form("validate");
  1376. },
  1377. success: function (data) {
  1378. $.messager.progress('close');
  1379. var pData = $.parseJSON(data);
  1380. if(pData.result==1){
  1381. $.messager.alert('提示','注册成功');
  1382. $('#registerDialog').dialog('close');
  1383. register = pData.register;
  1384. if(register&&register.USERNAME){
  1385. $("#name456").textbox("setValue",register.USERNAME);
  1386. $("#contactTel456").textbox("setValue",register.MOBILE);
  1387. $("#safetyPerson456").textbox("setValue",register.UNITSAFEMANA);
  1388. $("#safetyTel456").textbox("setValue",register.UNITSAFEPHONE);
  1389. $("#idCard456").textbox("setValue",register.USERID);
  1390. $("#zipCode456").textbox("setValue",register.POST);
  1391. $("#address456").textbox("setValue",register.ADDR);
  1392. $("#toUnit456").textbox("setValue",register.UNITNAME);
  1393. $("#unitTel456").textbox("setValue",register.UNITPHONE);
  1394. $("#dutyPerson456").textbox("setValue",register.UNITMANA);
  1395. }
  1396. }else{
  1397. $.messager.alert('提示','注册失败!');
  1398. }
  1399. },
  1400. error:function(e){
  1401. $.messager.progress('close');
  1402. console.log(e);
  1403. },
  1404. xhrFields: {
  1405. withCredentials: true
  1406. }
  1407. });
  1408. }else{
  1409. $.messager.alert('提示','验证未通过,有必填信息未填写!');
  1410. }
  1411. }
  1412. function restoreCarForm(){
  1413. $('#region1').combobox('select',null);
  1414. $('#engineNo456').textbox('setValue','');
  1415. $('#unit456').textbox('setValue','');
  1416. $('#useCardNo').textbox('setValue','000000');
  1417. $('#frameNo456').textbox('setValue','');
  1418. $('#toUnit456').textbox('setValue','');
  1419. $('#installNum').combobox('select',1);
  1420. $('#carNo').textbox('setValue','宁');
  1421. $('#region2').combobox('select',null);
  1422. $('#dutyPerson456').textbox('setValue','');
  1423. $('#safetyPerson456').textbox('setValue','');
  1424. $('#giveCardUnit').combobox('select',null);
  1425. $('#appType').combobox('select',1);
  1426. $('#unitTel456').textbox('setValue','');
  1427. $('#safetyTel456').textbox('setValue','');
  1428. $('#giveCardTime').datebox('setValue', getNowDay(new Date().toISOString().substring(0, 10)));
  1429. $('#carType').combobox('select',2);
  1430. $('#name456').textbox('setValue','');
  1431. $('#contactTel456').textbox('setValue','');
  1432. $('#brandType456').textbox('setValue','');
  1433. $('#idCard456').textbox('setValue','');
  1434. $('#zipCode456').textbox('setValue','');
  1435. $('#manufactor456').textbox('setValue','');
  1436. $('#address456').textbox('setValue','');
  1437. $("[name=giveCardCK]:checkbox").attr("checked", false);
  1438. }
  1439. function editInfo(){
  1440. openRegisterDialog();
  1441. }
  1442. </script>
  1443. </head>
  1444. <body>
  1445. <div id="loginTable" >
  1446. <div style="text-align: right;">
  1447. 当前登录:<span id="currentLoign"></span>
  1448. </div>
  1449. <div style="text-align: right;">
  1450. <a href="javascript:void(0);" onclick="editInfo();">修改用户信息</a>
  1451. <a href="javascript:void(0);" onclick="clickExit();">点击退出</a>
  1452. </div>
  1453. </div>
  1454. <fieldset>
  1455. <legend>车辆气瓶公众功能</legend>
  1456. <div class="selectDiv">
  1457. <div style="float: left;width: 33%;">
  1458. <center>
  1459. <div class="whoUse" onclick="selectedWho(1)" id="select1">
  1460. <span>车辆气瓶信息填写</span>
  1461. </div>
  1462. </center>
  1463. </div>
  1464. <div style="float: left;width: 34%;">
  1465. <center>
  1466. <div class="whoUse" onclick="selectedWho(2)" id="select2">
  1467. <span>车辆气瓶信息修改</span>
  1468. </div>
  1469. </center>
  1470. </div>
  1471. <div style="float: left;width: 33%;">
  1472. <center>
  1473. <div class="whoUse" onclick="selectedWho(3)" id="select3">
  1474. <span>车辆气瓶信息进度查询</span>
  1475. </div>
  1476. </center>
  1477. </div>
  1478. </div>
  1479. </fieldset>
  1480. <center>
  1481. <div id="carinfodiv">
  1482. <fieldset>
  1483. <legend>请填写车辆信息</legend>
  1484. <form id="carInfoFrom" method="post" action="ajax/insertCarInfo">
  1485. <div class="radiusDiv">
  1486. <table style="padding-left:5px;padding-top:20px;padding-bottom:20px;border-collapse:separate; border-spacing:0px 5px;" cellpadding="2px" cellspacing="0px">
  1487. <tr>
  1488. <td class="tdclass colorRed">
  1489. 市州:
  1490. <br/>
  1491. <select name="region1" id="region1" style="width:250px;height:34px;" class="easyui-combobox" data-options="required:true,editable:false"/>
  1492. </select>
  1493. </td>
  1494. <td class="tdclass colorRed" colspan="2">
  1495. 发动机号:
  1496. <br/>
  1497. <input name="engineNo" id="engineNo456" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:true,prompt:'必填'" />
  1498. </td>
  1499. <td class="tdclass" colspan="2">
  1500. 选择单位:
  1501. <br/>
  1502. <input name="unit" id="unit456" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:false" />
  1503. </td>
  1504. </tr>
  1505. <tr>
  1506. <td class="tdclass colorRed">
  1507. <input name="useCardNo" id="useCardNo" style="width:250px;height:34px;" class="easyui-textbox" data-options="buttonText:'QP000',buttonAlign:'left',required:true,value:'000000', prompt:'先选择市州'" >
  1508. <!--
  1509. 使用登记证:
  1510. <br/>
  1511. <input name="useCardNo" id="useCardNo" style="width:250px;height:34px;" class="easyui-textbox" data-options="buttonText:'QP000',buttonAlign:'left',required:true,value:'000000', prompt:'先选择市州'" >
  1512. -->
  1513. 应用类型:
  1514. <br/>
  1515. <select name="appType" id="appType" style="width:250px;height:34px;" class="easyui-combobox" data-options="panelHeight:'auto',required:true,editable:true">
  1516. <option value="0">其他</option>
  1517. <option value="1" selected="selected">出租</option>
  1518. <option value="2">公交</option>
  1519. <option value="3">私用</option>
  1520. <option value="4">货运</option>
  1521. <option value="5">客运</option>
  1522. <option value="6">营转非</option>
  1523. </select>
  1524. </td>
  1525. <td class="tdclass colorRed" colspan="2">
  1526. 车架号:
  1527. <br/>
  1528. <input name="frameNo" id="frameNo456" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:true,prompt:'必填'" />
  1529. </td>
  1530. <td class="tdclass" colspan="2">
  1531. 所属单位:
  1532. <br/>
  1533. <input name="toUnit" id="toUnit456" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:false" />
  1534. </td>
  1535. </tr>
  1536. <tr>
  1537. <td class="tdclass colorRed">
  1538. 气瓶安装数量:
  1539. <br/>
  1540. <select name="installNum" id="installNum" style="width:250px;height:34px;" class="easyui-combobox" data-options="panelHeight:'auto',required:false,editable:false">
  1541. <option value="1">1</option>
  1542. <option value="2">2</option>
  1543. <option value="3">3</option>
  1544. <option value="4">4</option>
  1545. <option value="5">5</option>
  1546. <option value="6">6</option>
  1547. <option value="7">7</option>
  1548. <option value="8">8</option>
  1549. </select>
  1550. </td>
  1551. <td class="tdclass colorRed">
  1552. 车牌号:
  1553. <br/>
  1554. <input name="carNo" id="carNo" style="width:125px;height:34px;" class="easyui-textbox" data-options="buttonAlign:'left',required:true,value:'宁',events:{keyup:fnKeyUp}" >
  1555. </td>
  1556. <td class="tdclass1 colorRed">
  1557. 区县:
  1558. <br/>
  1559. <select name="region2" id="region2" style="width:125px;height:34px;" class="easyui-combobox" data-options="required:true,editable:false, prompt:'先选择市州'">
  1560. </select>
  1561. </td>
  1562. <td class="tdclass">
  1563. 负责人:
  1564. <br/>
  1565. <input name="dutyPerson" id="dutyPerson456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" />
  1566. </td>
  1567. <td class="tdclass1">
  1568. 安全管理员:
  1569. <br/>
  1570. <input name="safetyPerson" id="safetyPerson456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" />
  1571. </td>
  1572. </tr>
  1573. <tr>
  1574. <td class="tdclass colorRed">
  1575. 发证单位:
  1576. <br/>
  1577. <select name="giveCardUnit" id="giveCardUnit" style="width:250px;height:34px;" class="easyui-combobox" data-options="required:true, prompt:'先选择市州'" >
  1578. </select>
  1579. </td>
  1580. <td class="tdclass colorRed" colspan="2">
  1581. 车牌颜色:
  1582. <br/>
  1583. <select name="plateColor" id="plateColor" style="width:250px;height:34px;" class="easyui-combobox" data-options="panelHeight:'auto',required:false,editable:false">
  1584. <option value="0">未知</option>
  1585. <option value="1" selected="selected">蓝色</option>
  1586. <option value="2">黄色</option>
  1587. <option value="3">绿色</option>
  1588. <option value="4">白色</option>
  1589. <option value="5">黑色</option>
  1590. </select>
  1591. </td>
  1592. <td class="tdclass">
  1593. 单位电话:
  1594. <br/>
  1595. <input name="unitTel" id="unitTel456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" />
  1596. </td>
  1597. <td class="tdclass1">
  1598. 安全员电话:
  1599. <br/>
  1600. <input name="safetyTel" id="safetyTel456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" />
  1601. </td>
  1602. </tr>
  1603. <tr>
  1604. <td class="tdclass colorRed">
  1605. 发证时间(勾选复选框有效):
  1606. <br/>
  1607. <input type="checkbox" name="giveCardCK"/>
  1608. <input name="giveCardTime" id="giveCardTime" style="width:226px;height:34px;" class="easyui-datebox" data-options="required:true,editable:false,prompt:'选择时间'" >
  1609. </td>
  1610. <td class="tdclass colorRed" colspan="2">
  1611. 车辆类型:
  1612. <br/>
  1613. <select name="carType" id="carType" style="width:250px;height:34px;" class="easyui-combobox" data-options="panelHeight:'150px',required:true,editable:false">
  1614. <option value="0">其它</option>
  1615. <option value="1">大型汽车</option>
  1616. <option value="2" selected="selected">小型汽车</option>
  1617. <option value="3">使馆汽车</option>
  1618. <option value="4">领馆汽车</option>
  1619. <option value="5">境外汽车</option>
  1620. <option value="6">外籍汽车</option>
  1621. <option value="7">两、三轮摩托车</option>
  1622. <option value="8">轻便摩托车</option>
  1623. <option value="9">使馆摩托车</option>
  1624. <option value="10">领馆摩托车</option>
  1625. <option value="11">境外摩托车</option>
  1626. <option value="12">外籍摩托车</option>
  1627. <option value="13">农用运输车</option>
  1628. <option value="14">拖拉机</option>
  1629. <option value="15">挂车</option>
  1630. <option value="16">教练汽车</option>
  1631. <option value="17">教练摩托车</option>
  1632. <option value="18">试验汽车</option>
  1633. <option value="19">试验摩托车</option>
  1634. <option value="20">临时入境汽车</option>
  1635. <option value="21">临时入境摩托车</option>
  1636. <option value="22">临时行驶车</option>
  1637. <option value="23">警用汽车</option>
  1638. <option value="24">警用摩托车</option>
  1639. </select>
  1640. </td>
  1641. <td class="tdclass colorRed">
  1642. 车主姓名:
  1643. <br/>
  1644. <input name="name" id="name456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:true,prompt:'必填'" />
  1645. </td>
  1646. <td class="tdclass1 colorRed">
  1647. 联系电话:
  1648. <br/>
  1649. <input name="contactTel" id="contactTel456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:true,prompt:'必填'" >
  1650. </td>
  1651. </tr>
  1652. <tr>
  1653. <td class="tdclass">
  1654. 厂牌型号:
  1655. <br/>
  1656. <input name="brandType" id="brandType456" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:false" >
  1657. </td>
  1658. <td class="tdclass">
  1659. 证件号:
  1660. <br/>
  1661. <input name="idCard" id="idCard456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" />
  1662. </td>
  1663. <td class="tdclass1">
  1664. 邮编:
  1665. <br/>
  1666. <input name="zipCode" id="zipCode456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" >
  1667. </td>
  1668. <td class="tdclass" colspan="2">
  1669. <input type="checkbox" id="clearData" name="clearData"/>录完一条数据后清空数据
  1670. </td>
  1671. <td class="tdclass">
  1672. </td>
  1673. </tr>
  1674. <tr>
  1675. <td class="tdclass">
  1676. 汽车厂家:
  1677. <br/>
  1678. <input name="manufactor" id="manufactor456" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:false" >
  1679. </td>
  1680. <td class="tdclass" colspan="2">
  1681. 联系地址:
  1682. <br/>
  1683. <input name="address" id="address456" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:false" >
  1684. </td>
  1685. <td class="tdclass" colspan="2">
  1686. <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-save1" plain="false" style="width:250px;height:50px;" onclick="saveCarInfo();">保存车辆信息</a>
  1687. </td>
  1688. <td>
  1689. </td>
  1690. <td>
  1691. </td>
  1692. </tr>
  1693. </table>
  1694. </div>
  1695. </form>
  1696. </fieldset>
  1697. </div>
  1698. <div id="cylinderinfodiv">
  1699. <fieldset>
  1700. <legend id="cylinderinfotip">气瓶信息</legend>
  1701. <form id="cylinderInfoFrom" method="post" action="ajax/insertCylinderInfo">
  1702. <input type="text" id="carGuid" name="carGuid" style="display: none;" />
  1703. <input type="text" id="carNo123" name="carNo" style="display: none;" />
  1704. <!--
  1705. <a href="javascript:void(0);" onclick="returnCarInfo();"><<<回到车辆信息</a>
  1706. -->
  1707. <div class="radiusDiv" id="cylinderDiv" >
  1708. </div>
  1709. </form>
  1710. </fieldset>
  1711. </div>
  1712. <div id="certinfodiv">
  1713. <div class="radiusDiv" id="certDiv" >
  1714. </div>
  1715. </div>
  1716. <div id="carcylinderinfoedit" style="display: none;">
  1717. <fieldset>
  1718. <legend>车辆气瓶信息修改</legend>
  1719. <div id="carcylinderinfoedit1" class="radiusDiv">
  1720. </div>
  1721. </fieldset>
  1722. </div>
  1723. <div id="carcylinderinfoquery" style="display: none;">
  1724. <fieldset>
  1725. <legend>车辆气瓶审核进度信息</legend>
  1726. <div id="carcylinderinfoquery1" class="radiusDiv">
  1727. </div>
  1728. </fieldset>
  1729. </div>
  1730. <div id="uploadCertDialog" class="easyui-dialog"
  1731. style="width: 400px; height: 540px; padding: 10px 20px;"
  1732. shadow="false" closed="true" modal="true" buttons="#upload_cert_buttons1">
  1733. <form id="certform" enctype="multipart/form-data" method="post">
  1734. <input id="cylinderGuid1234" name="cylinderGuid" type="text" style="display: none;" />
  1735. <fieldset>
  1736. <legend>图片类型</legend>
  1737. <table>
  1738. <tr>
  1739. <td class="tdclass">
  1740. <input name="imageType" type="radio" value="0" checked="checked"/>气瓶产品合格证
  1741. </td>
  1742. </tr>
  1743. <tr>
  1744. <td class="tdclass">
  1745. <input name="imageType" type="radio" value="1" />监督检验证书
  1746. </td>
  1747. </tr>
  1748. <tr>
  1749. <td class="tdclass">
  1750. <input name="imageType" type="radio" value="2" />安装合格证
  1751. </td>
  1752. </tr>
  1753. <tr>
  1754. <td class="tdclass">
  1755. <input name="imageType" type="radio" value="3" />身份证/营业执照/法人证书
  1756. </td>
  1757. </tr>
  1758. <tr>
  1759. <td class="tdclass">
  1760. <input name="imageType" type="radio" value="4" />行驶证
  1761. </td>
  1762. </tr>
  1763. </table>
  1764. </fieldset>
  1765. <table>
  1766. <tr>
  1767. <td class="tdclass">&nbsp;</td>
  1768. </tr>
  1769. <tr>
  1770. <td class="tdclass">证书页码</td>
  1771. </tr>
  1772. <tr>
  1773. <td class="tdclass">
  1774. <select name="certPage" id="certPage" style="width:250px;height:34px;" class="easyui-combobox" data-options="panelHeight:'150px',required:true,editable:false">
  1775. <option value="1">第1页</option>
  1776. <option value="2">第2页</option>
  1777. <option value="3">第3页</option>
  1778. <option value="4">第4页</option>
  1779. <option value="5">第5页</option>
  1780. <option value="6">第6页</option>
  1781. <option value="7">第7页</option>
  1782. <option value="8">第8页</option>
  1783. </select>
  1784. </td>
  1785. </tr>
  1786. <tr>
  1787. <td class="tdclass">&nbsp;</td>
  1788. </tr>
  1789. <tr>
  1790. <td class="tdclass">图片文件</td>
  1791. </tr>
  1792. <tr>
  1793. <td class="tdclass">
  1794. <input name="imageCert" id="imageCert" class="easyui-filebox" style="width:250px;height:34px;" data-options="buttonText: '选择文件',buttonAlign: 'right',required:true,prompt:'资质/证书图片(jpg/jpeg/pjepg/png/gif/bmp)',">
  1795. </td>
  1796. </tr>
  1797. <tr>
  1798. <td class="tdclass">&nbsp;</td>
  1799. </tr>
  1800. <tr>
  1801. <td class="tdclass">&nbsp;</td>
  1802. </tr>
  1803. <tr>
  1804. <td class="tdclass">
  1805. <a href="javascript:void(0)" style="width:250px;height:50px;" class="easyui-linkbutton" onclick="uploadCert();" iconcls="icon-upload">上传</a>
  1806. </td>
  1807. </tr>
  1808. </table>
  1809. </form>
  1810. </div>
  1811. <div id="registerDialog" class="easyui-dialog"
  1812. style="width: 400px; height: 440px; padding: 10px 20px;"
  1813. shadow="false" closed="true" closable="false" modal="true" buttons="#register_buttons">
  1814. <form id="registerform" enctype="multipart/form-data" method="post">
  1815. <table>
  1816. <tr>
  1817. <td class="tdclass">
  1818. 所属省份:
  1819. </td>
  1820. <td class="tdclass">
  1821. <select name="province" class="easyui-combobox" data-options="required:true,editable:false,panelHeight:'auto',">
  1822. <option value="51" selected="selected">四川</option>
  1823. </select>
  1824. </td>
  1825. </tr>
  1826. <tr>
  1827. <td class="tdclass">
  1828. 用户类型:
  1829. </td>
  1830. <td class="tdclass">
  1831. <select name="USERTYPE" id="userType" class="easyui-combobox cylinderInput" data-options="required:true,editable:false,panelHeight:'auto',">
  1832. <option value="1">个人</option>
  1833. <option value="0" selected="selected">单位</option>
  1834. </select>
  1835. </td>
  1836. </tr>
  1837. <tr id="unitTr1">
  1838. <td class="tdclass">
  1839. 单位名称:
  1840. </td>
  1841. <td class="tdclass">
  1842. <input name="UNITNAME" class="easyui-textbox cylinderInput" data-options="required:false" >
  1843. </td>
  1844. </tr>
  1845. <tr id="unitTr2">
  1846. <td class="tdclass">
  1847. 单位简称:
  1848. </td>
  1849. <td class="tdclass">
  1850. <input name="UNITAB" class="easyui-textbox cylinderInput" data-options="required:false" >
  1851. </td>
  1852. </tr>
  1853. <tr id="unitTr3">
  1854. <td class="tdclass">
  1855. 单位负责人:
  1856. </td>
  1857. <td class="tdclass">
  1858. <input name="UNITMANA" class="easyui-textbox cylinderInput" data-options="required:false" >
  1859. </td>
  1860. </tr>
  1861. <tr id="unitTr4">
  1862. <td class="tdclass">
  1863. 单位电话:
  1864. </td>
  1865. <td class="tdclass">
  1866. <input name="UNITPHONE" class="easyui-textbox cylinderInput" data-options="required:false" >
  1867. </td>
  1868. </tr>
  1869. <tr id="unitTr5">
  1870. <td class="tdclass">
  1871. 统一社会信用代码:
  1872. </td>
  1873. <td class="tdclass">
  1874. <input name="USCC" id="uscc" class="easyui-textbox cylinderInput" data-options="required:true,prompt:'必填'," >
  1875. </td>
  1876. </tr>
  1877. <tr id="unitTr6">
  1878. <td class="tdclass">
  1879. 安全管理员:
  1880. </td>
  1881. <td class="tdclass">
  1882. <input name="UNITSAFEMANA" class="easyui-textbox cylinderInput" data-options="required:false" >
  1883. </td>
  1884. </tr>
  1885. <tr id="unitTr7">
  1886. <td class="tdclass">
  1887. 安全管理员电话:
  1888. </td>
  1889. <td class="tdclass">
  1890. <input name="UNITSAFEPHONE" class="easyui-textbox cylinderInput" data-options="required:false" >
  1891. </td>
  1892. </tr>
  1893. <tr>
  1894. <td class="tdclass colorRed">
  1895. 用户姓名:
  1896. </td>
  1897. <td class="tdclass">
  1898. <input name="USERNAME" class="easyui-textbox cylinderInput" data-options="required:true,prompt:'必填'," >
  1899. </td>
  1900. </tr>
  1901. <tr>
  1902. <td class="tdclass">
  1903. 注册手机号:
  1904. </td>
  1905. <td class="tdclass">
  1906. <input name="MOBILE" class="easyui-textbox cylinderInput" data-options="required:true,prompt:'必填'," >
  1907. </td>
  1908. </tr>
  1909. <tr>
  1910. <td class="tdclass">
  1911. 邮编:
  1912. </td>
  1913. <td class="tdclass">
  1914. <input name="POST" class="easyui-textbox cylinderInput" data-options="required:false" >
  1915. </td>
  1916. </tr>
  1917. <tr>
  1918. <td class="tdclass">
  1919. 联系地址:
  1920. </td>
  1921. <td class="tdclass">
  1922. <input name="ADDR" class="easyui-textbox cylinderInput" data-options="required:false" >
  1923. </td>
  1924. </tr>
  1925. <tr>
  1926. <td class="tdclass">
  1927. 身份证号:
  1928. </td>
  1929. <td class="tdclass">
  1930. <input name="USERID" class="easyui-textbox cylinderInput" data-options="required:false" >
  1931. </td>
  1932. </tr>
  1933. <tr>
  1934. <td class="tdclass">
  1935. 邮箱:
  1936. </td>
  1937. <td class="tdclass">
  1938. <input name="EMAIL" class="easyui-textbox cylinderInput" data-options="required:false" >
  1939. </td>
  1940. </tr>
  1941. </table>
  1942. </form>
  1943. <div id="register_buttons">
  1944. <a href="javascript:void(0);" class="easyui-linkbutton" onclick="register();" iconcls="icon-save">注册</a>
  1945. <!--
  1946. <a href="javascript:void(0);" class="easyui-linkbutton" onclick="javascript:$('#registerDialog').dialog('close');" iconcls="icon-cancel">关闭</a>
  1947. -->
  1948. </div>
  1949. </div>
  1950. </body>
  1951. </html>