applyRegister.jsp 78 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223
  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. }else if(imageType=="5"){
  1299. content+="机动车登记证书";
  1300. }
  1301. $("#uploadInfo"+cylinder_num).append(content+" 第"+certPage+"页 上传成功<br/>");
  1302. }else{
  1303. $.messager.alert('提示','上传失败!');
  1304. }
  1305. },
  1306. error:function(e){
  1307. $.messager.progress('close');
  1308. console.log(e);
  1309. },
  1310. xhrFields: {
  1311. withCredentials: true
  1312. }
  1313. });
  1314. }else{
  1315. //showMsg('提示', '验证未通过,有必填信息未填写!', showTime);
  1316. $.messager.alert('提示','验证未通过,有必填信息未填写!');
  1317. }
  1318. }
  1319. function addCert(carNo,num){
  1320. var content = '<fieldset>';
  1321. content += '<legend>'+carNo+'_气瓶'+num+'_资质/证书</legend>';
  1322. content += '<table>';
  1323. content += '<tr>';
  1324. content += '<td align="center">';
  1325. 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>';
  1326. content += '</td>';
  1327. content += '</tr>';
  1328. content += '<tr>';
  1329. content += '<td align="left">';
  1330. content += '<div id="uploadInfo'+num+'"></div>';
  1331. content += '</td>';
  1332. content += '</tr>';
  1333. content += '</table>';
  1334. content += '</fieldset>';
  1335. $("#certDiv").append(content);
  1336. $("#uploadCert"+num).linkbutton({
  1337. });
  1338. }
  1339. function openRegisterDialog(){
  1340. $("#registerDialog").dialog("open").dialog('setTitle', '注册');
  1341. $("#registerDialog").panel("move",{top:$(document).scrollTop() + ($(window).height()-540) * 0.5});
  1342. }
  1343. function getRegister(openid){
  1344. $.ajax({
  1345. type: 'POST',
  1346. url: "ajax/getRegister?openid="+openid,
  1347. dataType:'text',
  1348. success: function (data) {
  1349. $.messager.progress('close');
  1350. var pData = $.parseJSON(data);
  1351. register = pData.register;
  1352. if(register&&register.USERNAME){
  1353. $("#name456").textbox("setValue",register.USERNAME);
  1354. $("#contactTel456").textbox("setValue",register.MOBILE);
  1355. $("#safetyPerson456").textbox("setValue",register.UNITSAFEMANA);
  1356. $("#safetyTel456").textbox("setValue",register.UNITSAFEPHONE);
  1357. $("#idCard456").textbox("setValue",register.USERID);
  1358. $("#zipCode456").textbox("setValue",register.POST);
  1359. $("#address456").textbox("setValue",register.ADDR);
  1360. $("#toUnit456").textbox("setValue",register.UNITNAME);
  1361. $("#unitTel456").textbox("setValue",register.UNITPHONE);
  1362. $("#dutyPerson456").textbox("setValue",register.UNITMANA);
  1363. }
  1364. },
  1365. error:function(e){
  1366. $.messager.progress('close');
  1367. console.log(e);
  1368. }
  1369. });
  1370. }
  1371. function register(){
  1372. if($("#registerform").form('validate')){
  1373. showProgress('提示','请等待','保存中……');
  1374. $("#registerform").form("submit",{
  1375. url: "ajax/register?openid="+'<%=session.getAttribute("openid")%>',
  1376. onsubmit: function () {
  1377. return $(this).form("validate");
  1378. },
  1379. success: function (data) {
  1380. $.messager.progress('close');
  1381. var pData = $.parseJSON(data);
  1382. if(pData.result==1){
  1383. $.messager.alert('提示','注册成功');
  1384. $('#registerDialog').dialog('close');
  1385. register = pData.register;
  1386. if(register&&register.USERNAME){
  1387. $("#name456").textbox("setValue",register.USERNAME);
  1388. $("#contactTel456").textbox("setValue",register.MOBILE);
  1389. $("#safetyPerson456").textbox("setValue",register.UNITSAFEMANA);
  1390. $("#safetyTel456").textbox("setValue",register.UNITSAFEPHONE);
  1391. $("#idCard456").textbox("setValue",register.USERID);
  1392. $("#zipCode456").textbox("setValue",register.POST);
  1393. $("#address456").textbox("setValue",register.ADDR);
  1394. $("#toUnit456").textbox("setValue",register.UNITNAME);
  1395. $("#unitTel456").textbox("setValue",register.UNITPHONE);
  1396. $("#dutyPerson456").textbox("setValue",register.UNITMANA);
  1397. }
  1398. }else{
  1399. $.messager.alert('提示','注册失败!');
  1400. }
  1401. },
  1402. error:function(e){
  1403. $.messager.progress('close');
  1404. console.log(e);
  1405. },
  1406. xhrFields: {
  1407. withCredentials: true
  1408. }
  1409. });
  1410. }else{
  1411. $.messager.alert('提示','验证未通过,有必填信息未填写!');
  1412. }
  1413. }
  1414. function restoreCarForm(){
  1415. $('#region1').combobox('select',null);
  1416. $('#engineNo456').textbox('setValue','');
  1417. $('#unit456').textbox('setValue','');
  1418. $('#useCardNo').textbox('setValue','000000');
  1419. $('#frameNo456').textbox('setValue','');
  1420. $('#toUnit456').textbox('setValue','');
  1421. $('#installNum').combobox('select',1);
  1422. $('#carNo').textbox('setValue','宁');
  1423. $('#region2').combobox('select',null);
  1424. $('#dutyPerson456').textbox('setValue','');
  1425. $('#safetyPerson456').textbox('setValue','');
  1426. $('#giveCardUnit').combobox('select',null);
  1427. $('#appType').combobox('select',1);
  1428. $('#unitTel456').textbox('setValue','');
  1429. $('#safetyTel456').textbox('setValue','');
  1430. $('#giveCardTime').datebox('setValue', getNowDay(new Date().toISOString().substring(0, 10)));
  1431. $('#carType').combobox('select',2);
  1432. $('#name456').textbox('setValue','');
  1433. $('#contactTel456').textbox('setValue','');
  1434. $('#brandType456').textbox('setValue','');
  1435. $('#idCard456').textbox('setValue','');
  1436. $('#zipCode456').textbox('setValue','');
  1437. $('#manufactor456').textbox('setValue','');
  1438. $('#address456').textbox('setValue','');
  1439. $("[name=giveCardCK]:checkbox").attr("checked", false);
  1440. }
  1441. function editInfo(){
  1442. openRegisterDialog();
  1443. }
  1444. </script>
  1445. </head>
  1446. <body>
  1447. <div id="loginTable" >
  1448. <div style="text-align: right;">
  1449. 当前登录:<span id="currentLoign"></span>
  1450. </div>
  1451. <div style="text-align: right;">
  1452. <a href="javascript:void(0);" onclick="editInfo();">修改用户信息</a>
  1453. <a href="javascript:void(0);" onclick="clickExit();">点击退出</a>
  1454. </div>
  1455. </div>
  1456. <fieldset>
  1457. <legend>车辆气瓶公众功能</legend>
  1458. <div class="selectDiv">
  1459. <div style="float: left;width: 33%;">
  1460. <center>
  1461. <div class="whoUse" onclick="selectedWho(1)" id="select1">
  1462. <span>车辆气瓶信息填写</span>
  1463. </div>
  1464. </center>
  1465. </div>
  1466. <div style="float: left;width: 34%;">
  1467. <center>
  1468. <div class="whoUse" onclick="selectedWho(2)" id="select2">
  1469. <span>车辆气瓶信息修改</span>
  1470. </div>
  1471. </center>
  1472. </div>
  1473. <div style="float: left;width: 33%;">
  1474. <center>
  1475. <div class="whoUse" onclick="selectedWho(3)" id="select3">
  1476. <span>车辆气瓶信息进度查询</span>
  1477. </div>
  1478. </center>
  1479. </div>
  1480. </div>
  1481. </fieldset>
  1482. <center>
  1483. <div id="carinfodiv">
  1484. <fieldset>
  1485. <legend>请填写车辆信息</legend>
  1486. <form id="carInfoFrom" method="post" action="ajax/insertCarInfo">
  1487. <div class="radiusDiv">
  1488. <table style="padding-left:5px;padding-top:20px;padding-bottom:20px;border-collapse:separate; border-spacing:0px 5px;" cellpadding="2px" cellspacing="0px">
  1489. <tr>
  1490. <td class="tdclass colorRed">
  1491. 市州:
  1492. <br/>
  1493. <select name="region1" id="region1" style="width:250px;height:34px;" class="easyui-combobox" data-options="required:true,editable:false"/>
  1494. </select>
  1495. </td>
  1496. <td class="tdclass colorRed" colspan="2">
  1497. 发动机号:
  1498. <br/>
  1499. <input name="engineNo" id="engineNo456" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:true,prompt:'必填'" />
  1500. </td>
  1501. <td class="tdclass" colspan="2">
  1502. 选择单位:
  1503. <br/>
  1504. <input name="unit" id="unit456" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:false" />
  1505. </td>
  1506. </tr>
  1507. <tr>
  1508. <td class="tdclass colorRed">
  1509. <input name="useCardNo" id="useCardNo" style="width:250px;height:34px;" class="easyui-textbox" data-options="buttonText:'QP000',buttonAlign:'left',required:true,value:'000000', prompt:'先选择市州'" >
  1510. <!--
  1511. 使用登记证:
  1512. <br/>
  1513. <input name="useCardNo" id="useCardNo" style="width:250px;height:34px;" class="easyui-textbox" data-options="buttonText:'QP000',buttonAlign:'left',required:true,value:'000000', prompt:'先选择市州'" >
  1514. -->
  1515. 应用类型:
  1516. <br/>
  1517. <select name="appType" id="appType" style="width:250px;height:34px;" class="easyui-combobox" data-options="panelHeight:'auto',required:true,editable:true">
  1518. <option value="0">其他</option>
  1519. <option value="1" selected="selected">出租</option>
  1520. <option value="2">公交</option>
  1521. <option value="3">私用</option>
  1522. <option value="4">货运</option>
  1523. <option value="5">客运</option>
  1524. <option value="6">营转非</option>
  1525. </select>
  1526. </td>
  1527. <td class="tdclass colorRed" colspan="2">
  1528. 车架号:
  1529. <br/>
  1530. <input name="frameNo" id="frameNo456" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:true,prompt:'必填'" />
  1531. </td>
  1532. <td class="tdclass" colspan="2">
  1533. 所属单位:
  1534. <br/>
  1535. <input name="toUnit" id="toUnit456" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:false" />
  1536. </td>
  1537. </tr>
  1538. <tr>
  1539. <td class="tdclass colorRed">
  1540. 气瓶安装数量:
  1541. <br/>
  1542. <select name="installNum" id="installNum" style="width:250px;height:34px;" class="easyui-combobox" data-options="panelHeight:'auto',required:false,editable:false">
  1543. <option value="1">1</option>
  1544. <option value="2">2</option>
  1545. <option value="3">3</option>
  1546. <option value="4">4</option>
  1547. <option value="5">5</option>
  1548. <option value="6">6</option>
  1549. <option value="7">7</option>
  1550. <option value="8">8</option>
  1551. </select>
  1552. </td>
  1553. <td class="tdclass colorRed">
  1554. 车牌号:
  1555. <br/>
  1556. <input name="carNo" id="carNo" style="width:125px;height:34px;" class="easyui-textbox" data-options="buttonAlign:'left',required:true,value:'宁',events:{keyup:fnKeyUp}" >
  1557. </td>
  1558. <td class="tdclass1 colorRed">
  1559. 区县:
  1560. <br/>
  1561. <select name="region2" id="region2" style="width:125px;height:34px;" class="easyui-combobox" data-options="required:true,editable:false, prompt:'先选择市州'">
  1562. </select>
  1563. </td>
  1564. <td class="tdclass">
  1565. 负责人:
  1566. <br/>
  1567. <input name="dutyPerson" id="dutyPerson456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" />
  1568. </td>
  1569. <td class="tdclass1">
  1570. 安全管理员:
  1571. <br/>
  1572. <input name="safetyPerson" id="safetyPerson456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" />
  1573. </td>
  1574. </tr>
  1575. <tr>
  1576. <td class="tdclass colorRed">
  1577. 发证单位:
  1578. <br/>
  1579. <select name="giveCardUnit" id="giveCardUnit" style="width:250px;height:34px;" class="easyui-combobox" data-options="required:true, prompt:'先选择市州'" >
  1580. </select>
  1581. </td>
  1582. <td class="tdclass colorRed" colspan="2">
  1583. 车牌颜色:
  1584. <br/>
  1585. <select name="plateColor" id="plateColor" style="width:250px;height:34px;" class="easyui-combobox" data-options="panelHeight:'auto',required:false,editable:false">
  1586. <option value="0">未知</option>
  1587. <option value="1" selected="selected">蓝色</option>
  1588. <option value="2">黄色</option>
  1589. <option value="3">绿色</option>
  1590. <option value="4">白色</option>
  1591. <option value="5">黑色</option>
  1592. </select>
  1593. </td>
  1594. <td class="tdclass">
  1595. 单位电话:
  1596. <br/>
  1597. <input name="unitTel" id="unitTel456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" />
  1598. </td>
  1599. <td class="tdclass1">
  1600. 安全员电话:
  1601. <br/>
  1602. <input name="safetyTel" id="safetyTel456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" />
  1603. </td>
  1604. </tr>
  1605. <tr>
  1606. <td class="tdclass colorRed">
  1607. 发证时间(勾选复选框有效):
  1608. <br/>
  1609. <input type="checkbox" name="giveCardCK"/>
  1610. <input name="giveCardTime" id="giveCardTime" style="width:226px;height:34px;" class="easyui-datebox" data-options="required:true,editable:false,prompt:'选择时间'" >
  1611. </td>
  1612. <td class="tdclass colorRed" colspan="2">
  1613. 车辆类型:
  1614. <br/>
  1615. <select name="carType" id="carType" style="width:250px;height:34px;" class="easyui-combobox" data-options="panelHeight:'150px',required:true,editable:false">
  1616. <option value="0">其它</option>
  1617. <option value="1">大型汽车</option>
  1618. <option value="2" selected="selected">小型汽车</option>
  1619. <option value="3">使馆汽车</option>
  1620. <option value="4">领馆汽车</option>
  1621. <option value="5">境外汽车</option>
  1622. <option value="6">外籍汽车</option>
  1623. <option value="7">两、三轮摩托车</option>
  1624. <option value="8">轻便摩托车</option>
  1625. <option value="9">使馆摩托车</option>
  1626. <option value="10">领馆摩托车</option>
  1627. <option value="11">境外摩托车</option>
  1628. <option value="12">外籍摩托车</option>
  1629. <option value="13">农用运输车</option>
  1630. <option value="14">拖拉机</option>
  1631. <option value="15">挂车</option>
  1632. <option value="16">教练汽车</option>
  1633. <option value="17">教练摩托车</option>
  1634. <option value="18">试验汽车</option>
  1635. <option value="19">试验摩托车</option>
  1636. <option value="20">临时入境汽车</option>
  1637. <option value="21">临时入境摩托车</option>
  1638. <option value="22">临时行驶车</option>
  1639. <option value="23">警用汽车</option>
  1640. <option value="24">警用摩托车</option>
  1641. </select>
  1642. </td>
  1643. <td class="tdclass colorRed">
  1644. 车主姓名:
  1645. <br/>
  1646. <input name="name" id="name456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:true,prompt:'必填'" />
  1647. </td>
  1648. <td class="tdclass1 colorRed">
  1649. 联系电话:
  1650. <br/>
  1651. <input name="contactTel" id="contactTel456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:true,prompt:'必填'" >
  1652. </td>
  1653. </tr>
  1654. <tr>
  1655. <td class="tdclass">
  1656. 厂牌型号:
  1657. <br/>
  1658. <input name="brandType" id="brandType456" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:false" >
  1659. </td>
  1660. <td class="tdclass">
  1661. 证件号:
  1662. <br/>
  1663. <input name="idCard" id="idCard456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" />
  1664. </td>
  1665. <td class="tdclass1">
  1666. 邮编:
  1667. <br/>
  1668. <input name="zipCode" id="zipCode456" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" >
  1669. </td>
  1670. <td class="tdclass" colspan="2">
  1671. <input type="checkbox" id="clearData" name="clearData"/>录完一条数据后清空数据
  1672. </td>
  1673. <td class="tdclass">
  1674. </td>
  1675. </tr>
  1676. <tr>
  1677. <td class="tdclass">
  1678. 汽车厂家:
  1679. <br/>
  1680. <input name="manufactor" id="manufactor456" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:false" >
  1681. </td>
  1682. <td class="tdclass" colspan="2">
  1683. 联系地址:
  1684. <br/>
  1685. <input name="address" id="address456" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:false" >
  1686. </td>
  1687. <td class="tdclass" colspan="2">
  1688. <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-save1" plain="false" style="width:250px;height:50px;" onclick="saveCarInfo();">保存车辆信息</a>
  1689. </td>
  1690. <td>
  1691. </td>
  1692. <td>
  1693. </td>
  1694. </tr>
  1695. </table>
  1696. </div>
  1697. </form>
  1698. </fieldset>
  1699. </div>
  1700. <div id="cylinderinfodiv">
  1701. <fieldset>
  1702. <legend id="cylinderinfotip">气瓶信息</legend>
  1703. <form id="cylinderInfoFrom" method="post" action="ajax/insertCylinderInfo">
  1704. <input type="text" id="carGuid" name="carGuid" style="display: none;" />
  1705. <input type="text" id="carNo123" name="carNo" style="display: none;" />
  1706. <!--
  1707. <a href="javascript:void(0);" onclick="returnCarInfo();"><<<回到车辆信息</a>
  1708. -->
  1709. <div class="radiusDiv" id="cylinderDiv" >
  1710. </div>
  1711. </form>
  1712. </fieldset>
  1713. </div>
  1714. <div id="certinfodiv">
  1715. <div class="radiusDiv" id="certDiv" >
  1716. </div>
  1717. </div>
  1718. <div id="carcylinderinfoedit" style="display: none;">
  1719. <fieldset>
  1720. <legend>车辆气瓶信息修改</legend>
  1721. <div id="carcylinderinfoedit1" class="radiusDiv">
  1722. </div>
  1723. </fieldset>
  1724. </div>
  1725. <div id="carcylinderinfoquery" style="display: none;">
  1726. <fieldset>
  1727. <legend>车辆气瓶审核进度信息</legend>
  1728. <div id="carcylinderinfoquery1" class="radiusDiv">
  1729. </div>
  1730. </fieldset>
  1731. </div>
  1732. <div id="uploadCertDialog" class="easyui-dialog"
  1733. style="width: 400px; height: 540px; padding: 10px 20px;"
  1734. shadow="false" closed="true" modal="true" buttons="#upload_cert_buttons1">
  1735. <form id="certform" enctype="multipart/form-data" method="post">
  1736. <input id="cylinderGuid1234" name="cylinderGuid" type="text" style="display: none;" />
  1737. <fieldset>
  1738. <legend>图片类型</legend>
  1739. <table>
  1740. <tr>
  1741. <td class="tdclass">
  1742. <input name="imageType" type="radio" value="0" checked="checked"/>气瓶产品合格证
  1743. </td>
  1744. </tr>
  1745. <tr>
  1746. <td class="tdclass">
  1747. <input name="imageType" type="radio" value="1" />监督检验证书
  1748. </td>
  1749. </tr>
  1750. <tr>
  1751. <td class="tdclass">
  1752. <input name="imageType" type="radio" value="2" />安装合格证
  1753. </td>
  1754. </tr>
  1755. <tr>
  1756. <td class="tdclass">
  1757. <input name="imageType" type="radio" value="3" />身份证/营业执照/法人证书
  1758. </td>
  1759. </tr>
  1760. <tr>
  1761. <td class="tdclass">
  1762. <input name="imageType" type="radio" value="4" />行驶证
  1763. </td>
  1764. </tr>
  1765. <tr>
  1766. <td class="tdclass">
  1767. <input name="imageType" type="radio" value="5" />机动车登记证书
  1768. </td>
  1769. </tr>
  1770. </table>
  1771. </fieldset>
  1772. <table>
  1773. <tr>
  1774. <td class="tdclass">&nbsp;</td>
  1775. </tr>
  1776. <tr>
  1777. <td class="tdclass">证书页码</td>
  1778. </tr>
  1779. <tr>
  1780. <td class="tdclass">
  1781. <select name="certPage" id="certPage" style="width:250px;height:34px;" class="easyui-combobox" data-options="panelHeight:'150px',required:true,editable:false">
  1782. <option value="1">第1页</option>
  1783. <option value="2">第2页</option>
  1784. <option value="3">第3页</option>
  1785. <option value="4">第4页</option>
  1786. <option value="5">第5页</option>
  1787. <option value="6">第6页</option>
  1788. <option value="7">第7页</option>
  1789. <option value="8">第8页</option>
  1790. </select>
  1791. </td>
  1792. </tr>
  1793. <tr>
  1794. <td class="tdclass">&nbsp;</td>
  1795. </tr>
  1796. <tr>
  1797. <td class="tdclass">图片文件</td>
  1798. </tr>
  1799. <tr>
  1800. <td class="tdclass">
  1801. <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)',">
  1802. </td>
  1803. </tr>
  1804. <tr>
  1805. <td class="tdclass">&nbsp;</td>
  1806. </tr>
  1807. <tr>
  1808. <td class="tdclass">&nbsp;</td>
  1809. </tr>
  1810. <tr>
  1811. <td class="tdclass">
  1812. <a href="javascript:void(0)" style="width:250px;height:50px;" class="easyui-linkbutton" onclick="uploadCert();" iconcls="icon-upload">上传</a>
  1813. </td>
  1814. </tr>
  1815. </table>
  1816. </form>
  1817. </div>
  1818. <div id="registerDialog" class="easyui-dialog"
  1819. style="width: 400px; height: 440px; padding: 10px 20px;"
  1820. shadow="false" closed="true" closable="false" modal="true" buttons="#register_buttons">
  1821. <form id="registerform" enctype="multipart/form-data" method="post">
  1822. <table>
  1823. <tr>
  1824. <td class="tdclass">
  1825. 所属省份:
  1826. </td>
  1827. <td class="tdclass">
  1828. <select name="province" class="easyui-combobox" data-options="required:true,editable:false,panelHeight:'auto',">
  1829. <option value="51" selected="selected">四川</option>
  1830. </select>
  1831. </td>
  1832. </tr>
  1833. <tr>
  1834. <td class="tdclass">
  1835. 用户类型:
  1836. </td>
  1837. <td class="tdclass">
  1838. <select name="USERTYPE" id="userType" class="easyui-combobox cylinderInput" data-options="required:true,editable:false,panelHeight:'auto',">
  1839. <option value="1">个人</option>
  1840. <option value="0" selected="selected">单位</option>
  1841. </select>
  1842. </td>
  1843. </tr>
  1844. <tr id="unitTr1">
  1845. <td class="tdclass">
  1846. 单位名称:
  1847. </td>
  1848. <td class="tdclass">
  1849. <input name="UNITNAME" class="easyui-textbox cylinderInput" data-options="required:false" >
  1850. </td>
  1851. </tr>
  1852. <tr id="unitTr2">
  1853. <td class="tdclass">
  1854. 单位简称:
  1855. </td>
  1856. <td class="tdclass">
  1857. <input name="UNITAB" class="easyui-textbox cylinderInput" data-options="required:false" >
  1858. </td>
  1859. </tr>
  1860. <tr id="unitTr3">
  1861. <td class="tdclass">
  1862. 单位负责人:
  1863. </td>
  1864. <td class="tdclass">
  1865. <input name="UNITMANA" class="easyui-textbox cylinderInput" data-options="required:false" >
  1866. </td>
  1867. </tr>
  1868. <tr id="unitTr4">
  1869. <td class="tdclass">
  1870. 单位电话:
  1871. </td>
  1872. <td class="tdclass">
  1873. <input name="UNITPHONE" class="easyui-textbox cylinderInput" data-options="required:false" >
  1874. </td>
  1875. </tr>
  1876. <tr id="unitTr5">
  1877. <td class="tdclass">
  1878. 统一社会信用代码:
  1879. </td>
  1880. <td class="tdclass">
  1881. <input name="USCC" id="uscc" class="easyui-textbox cylinderInput" data-options="required:true,prompt:'必填'," >
  1882. </td>
  1883. </tr>
  1884. <tr id="unitTr6">
  1885. <td class="tdclass">
  1886. 安全管理员:
  1887. </td>
  1888. <td class="tdclass">
  1889. <input name="UNITSAFEMANA" class="easyui-textbox cylinderInput" data-options="required:false" >
  1890. </td>
  1891. </tr>
  1892. <tr id="unitTr7">
  1893. <td class="tdclass">
  1894. 安全管理员电话:
  1895. </td>
  1896. <td class="tdclass">
  1897. <input name="UNITSAFEPHONE" class="easyui-textbox cylinderInput" data-options="required:false" >
  1898. </td>
  1899. </tr>
  1900. <tr>
  1901. <td class="tdclass colorRed">
  1902. 用户姓名:
  1903. </td>
  1904. <td class="tdclass">
  1905. <input name="USERNAME" class="easyui-textbox cylinderInput" data-options="required:true,prompt:'必填'," >
  1906. </td>
  1907. </tr>
  1908. <tr>
  1909. <td class="tdclass">
  1910. 注册手机号:
  1911. </td>
  1912. <td class="tdclass">
  1913. <input name="MOBILE" class="easyui-textbox cylinderInput" data-options="required:true,prompt:'必填'," >
  1914. </td>
  1915. </tr>
  1916. <tr>
  1917. <td class="tdclass">
  1918. 邮编:
  1919. </td>
  1920. <td class="tdclass">
  1921. <input name="POST" class="easyui-textbox cylinderInput" data-options="required:false" >
  1922. </td>
  1923. </tr>
  1924. <tr>
  1925. <td class="tdclass">
  1926. 联系地址:
  1927. </td>
  1928. <td class="tdclass">
  1929. <input name="ADDR" class="easyui-textbox cylinderInput" data-options="required:false" >
  1930. </td>
  1931. </tr>
  1932. <tr>
  1933. <td class="tdclass">
  1934. 身份证号:
  1935. </td>
  1936. <td class="tdclass">
  1937. <input name="USERID" class="easyui-textbox cylinderInput" data-options="required:false" >
  1938. </td>
  1939. </tr>
  1940. <tr>
  1941. <td class="tdclass">
  1942. 邮箱:
  1943. </td>
  1944. <td class="tdclass">
  1945. <input name="EMAIL" class="easyui-textbox cylinderInput" data-options="required:false" >
  1946. </td>
  1947. </tr>
  1948. </table>
  1949. </form>
  1950. <div id="register_buttons">
  1951. <a href="javascript:void(0);" class="easyui-linkbutton" onclick="register();" iconcls="icon-save">注册</a>
  1952. <!--
  1953. <a href="javascript:void(0);" class="easyui-linkbutton" onclick="javascript:$('#registerDialog').dialog('close');" iconcls="icon-cancel">关闭</a>
  1954. -->
  1955. </div>
  1956. </div>
  1957. </body>
  1958. </html>