| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
-
- <%-- <base href="<%=basePath%>"> --%>
-
- <title>修改车辆信息</title>
-
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="expires" content="0">
- <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
- <meta http-equiv="description" content="This is my page">
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta http-equiv="X-UA-Compatible" content="IE=10"/>
- <link rel="stylesheet" type="text/css" href="css/easyui/themes/default/easyui.css">
- <link rel="stylesheet" type="text/css" href="css/easyui/themes/icon.css">
- <link rel="stylesheet" type="text/css" href="css/easyui/demo/demo.css">
- <script type="text/javascript" src="css/easyui/jquery.min.js"></script>
- <script type="text/javascript" src="css/easyui/jquery.easyui.min.js" charset="utf-8"></script>
- <script type="text/javascript" src="css/easyui/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>
- <link rel="stylesheet" type="text/css" href="css/common/hzbstyle.css">
- <!-- <script type="text/javascript" src="js/tool.js"></script> -->
- <!-- <script type="text/javascript" src="js/beforeDatagrid.js"></script> -->
- <script type="text/javascript">
- function isNull(exp){
- if(!exp || typeof exp=="undefined" || exp.length==0){
- return true;
- }else{
- return false;
- }
- }
- function confirm(okStr,cancelStr,tip,content,unitNo){
- $.messager.defaults = { ok: okStr, cancel: cancelStr };
- $.messager.confirm(tip, content,function (data) {
- if (data) {
-
- }else {
- if(isNull(unitNo)){
- showMsg("提示", "未获取到此单位的编号,操作失败!", 5000);
- }else{
- $.ajax({
- type: 'POST',
- url: "updateUnitTip",
- data: {
- "unitNo":unitNo
- },
- dataType:'text',
- success: function (data) {
- var pData = $.parseJSON(data);
- switch (pData.result) {
- case 0:
- showMsg("提示","操作失败",5000);
- break;
- case 1:
- showMsg("提示","操作成功",2000);
- break;
-
-
- }
-
- }
- });
- }
-
- }
- });
- }
- function showMsg(title,msg,out){
- $.messager.show({
- title: title,
- msg: msg,
- timeout:out
- });
- }
- function showProgress(title,msg,text){
- $.messager.progress({
- title: title,
- msg: msg,
- text: text
- });
- }
- function checkedbox(name){
- var arr=new Array();
- var checkbox=document.getElementsByName(name);
- for(var i=0;i<checkbox.length;i++){
- if(checkbox[i].checked==true){
- arr.push(checkbox[i].value);
- }
- }
- return arr;
- }
- function getCheckTree(id){
- var nodes = $("#"+id).tree('getChecked', ['checked']);
- var arr=new Array();
- for(var i=0; i<nodes.length; i++){
- if(nodes[i].checked==true){
- if(nodes[i].id.length==1){
- arr.push("0"+nodes[i].id);
- }else if(nodes[i].id.length==2){
- arr.push(nodes[i].id+"0000");
- }else if(nodes[i].id.length==4){
- arr.push(nodes[i].id+"00");
- }else{
- arr.push(nodes[i].id);
- }
-
- }
- }
- return arr;
- }
- function getCheckTreeName(id){
- var nodes = $("#"+id).tree('getChecked', ['checked']);
- var arr=new Array();
- for(var i=0; i<nodes.length; i++){
- if(nodes[i].checked==true){
- arr.push(nodes[i].text);
- }
- }
- return arr;
- }
- function isCarNo(str) {//验证车牌号
-
- 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);
- //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);
- }
- function isCarNo1(str){
- 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);
- }
- /**
- * 获取上一个月
- *
- * @date 格式为yyyy-mm-dd的日期,如:2014-01-25
- */
- function getPreMonth(date) {
- var arr = date.split('-');
- var year = arr[0]; //获取当前日期的年份
- var month = arr[1]; //获取当前日期的月份
- var day = arr[2]; //获取当前日期的日
- var days = new Date(year, month, 0);
- days = days.getDate(); //获取当前日期中月的天数
- var year2 = year;
- var month2 = parseInt(month) - 1;
- if (month2 == 0) {//如果是1月份,则取上一年的12月份
- year2 = parseInt(year2) - 1;
- month2 = 12;
- }
- var day2 = day;
- var days2 = new Date(year2, month2, 0);
- days2 = days2.getDate();
- if (day2 > days2) {//如果原来日期大于上一月的日期,则取当月的最大日期。比如3月的30日,在2月中没有30
- day2 = days2;
- }
- if (month2 < 10) {
- month2 = '0' + month2;//月份填补成2位。
- }
- var date11 = new Date();
- var hor = date11.getHours()>9?date11.getHours():"0"+date11.getHours();
- var min = date11.getMinutes()>9?date11.getMinutes():"0"+date11.getMinutes();
-
- var sec = date11.getSeconds()>9?date11.getSeconds():"0"+date11.getSeconds();
-
- var t2 = year2 + '-' + month2 + '-' + day2+" "+hor+":"+min+":"+sec;
- return t2;
- }
- /**
- * 获取上一个月
- *
- * @date 格式为yyyy-mm-dd的日期,如:2014-01-25
- */
- function getPreMonth1(date) {
- var arr = date.split('-');
- var year = arr[0]; //获取当前日期的年份
- var month = arr[1]; //获取当前日期的月份
- var day = arr[2]; //获取当前日期的日
- var days = new Date(year, month, 0);
- days = days.getDate(); //获取当前日期中月的天数
- var year2 = year;
- var month2 = parseInt(month) - 1;
- if (month2 == 0) {//如果是1月份,则取上一年的12月份
- year2 = parseInt(year2) - 1;
- month2 = 12;
- }
- var day2 = day;
- var days2 = new Date(year2, month2, 0);
- days2 = days2.getDate();
- if (day2 > days2) {//如果原来日期大于上一月的日期,则取当月的最大日期。比如3月的30日,在2月中没有30
- day2 = days2;
- }
- if (month2 < 10) {
- month2 = '0' + month2;//月份填补成2位。
- }
- var hor = "00";
- var min = "00";
- var sec = "00";
- var t2 = year2 + '-' + month2 + '-' + day2+" "+hor+":"+min+":"+sec;
- return t2;
- }
- function getPreMonth2(date) {
- var arr = date.split('-');
- var year = arr[0]; //获取当前日期的年份
- var month = arr[1]; //获取当前日期的月份
- var day = arr[2]; //获取当前日期的日
- var days = new Date(year, month, 0);
- days = days.getDate(); //获取当前日期中月的天数
- var year2 = year;
- var month2 = parseInt(month) - 1;
- if (month2 == 0) {//如果是1月份,则取上一年的12月份
- year2 = parseInt(year2) - 1;
- month2 = 12;
- }
- var day2 = day;
- var days2 = new Date(year2, month2, 0);
- days2 = days2.getDate();
- if (day2 > days2) {//如果原来日期大于上一月的日期,则取当月的最大日期。比如3月的30日,在2月中没有30
- day2 = days2;
- }
- if (month2 < 10) {
- month2 = '0' + month2;//月份填补成2位。
- }
- var hor = "00";
- var min = "00";
- var sec = "00";
- day2 = "01";
- var t2 = year2 + '-' + month2 + '-' + day2+" "+hor+":"+min+":"+sec;
- return t2;
- }
- function getNowDay(date) {
- var arr = date.split('-');
- var year = arr[0]; //获取当前日期的年份
- var month = arr[1]; //获取当前日期的月份
- var day = arr[2]; //获取当前日期的日
- var days = new Date(year, month, 0);
- days = days.getDate(); //获取当前日期中月的天数
- var year2 = year;
- var month2 = parseInt(month) - 0;
- if (month2 == 0) {//如果是1月份,则取上一年的12月份
- year2 = parseInt(year2) - 1;
- month2 = 12;
- }
- var day2 = day;
- var days2 = new Date(year2, month2, 0);
- days2 = days2.getDate();
- if (day2 > days2) {//如果原来日期大于上一月的日期,则取当月的最大日期。比如3月的30日,在2月中没有30
- day2 = days2;
- }
- if (month2 < 10) {
- month2 = '0' + month2;//月份填补成2位。
- }
- var date11 = new Date();
- var hor = date11.getHours()>9?date11.getHours():"0"+date11.getHours();
- var min = date11.getMinutes()>9?date11.getMinutes():"0"+date11.getMinutes();
-
- var sec = date11.getSeconds()>9?date11.getSeconds():"0"+date11.getSeconds();
-
- var t2 = year2 + '-' + month2 + '-' + day2;
- return t2;
- }
- function getBeforeDate(number) {
- const num = number;
- const date = new Date();
- let year = date.getFullYear();
- let mon = date.getMonth() + 1;
- let day = date.getDate();
- if (day <= num) {
- if (mon > 1) {
- mon = mon - 1;
- } else {
- year = year - 1;
- mon = 12;
- }
- }
- date.setDate(date.getDate() - num);
- year = date.getFullYear();
- mon = date.getMonth() + 1;
- day = date.getDate();
- const s = year + '-' + (mon < 10 ? ('0' + mon) : mon) + '-' + (day < 10 ? ('0' + day) : day);
- return s;
- }
- function compareDate(date1,date2){
- var oDate1 = new Date(date1);
- var oDate2 = new Date(date2);
- if(oDate1.getTime() >= oDate2.getTime()){
- return true;
- } else {
- return false;
- }
- }
- function fnKeyUp(){
- this.value=this.value.toUpperCase();
- }
- function getDateAA(aa,dat){
- // var date1 = new Date(),
- // time1=date1.getFullYear()+"-"+(date1.getMonth()+1)+"-"+date1.getDate();//time1表示当前时间
- var date2 = new Date(dat);
- date2.setDate(date2.getDate()+aa);
- var time2 = date2.getFullYear()+"-"+(date2.getMonth()+1)+"-"+date2.getDate();
- return time2;
- }
- /**
- * 加密(需要先加载aes.min.js文件)
- * @param word
- * @returns {*}
- */
- function aesMinEncrypt(word){
- var _word = CryptoJS.enc.Utf8.parse(word),
- _key = CryptoJS.enc.Utf8.parse("hizimahzb2021Key"),
- _iv = CryptoJS.enc.Utf8.parse("hizimahzb2Key_Iv");
- var encrypted = CryptoJS.AES.encrypt(_word, _key, {
- iv: _iv,
- mode: CryptoJS.mode.CBC,
- padding: CryptoJS.pad.Pkcs7
- });
- return encrypted.toString();
- }
- /**
- * 解密(需要先加载aes.min.js文件)
- * @param word
- * @returns {*}
- */
- function aesDecrypt(word) {
- var _key = CryptoJS.enc.Utf8.parse("hizimahzb2021Key"),
- _iv = CryptoJS.enc.Utf8.parse("hizimahzb2Key_Iv");
- var decrypted = CryptoJS.AES.decrypt(word, _key, {
- iv: _iv,
- mode: CryptoJS.mode.CBC,
- padding: CryptoJS.pad.Pkcs7
- });
- return decrypted.toString(CryptoJS.enc.Utf8);
- }
-
-
- function addstr(ps){
- if(ps.length<16){
- ps = ps.padEnd(16, '0');
- }else if(ps.length>16&&ps.length>32){
- ps = ps.padEnd(32, '0');
- }else if(ps.length>32&&ps.length>48){
- ps = ps.padEnd(48, '0');
- }else if(ps.length>48&&ps.length>60){
- ps = ps.padEnd(60, '0');
- }
-
- return ps;
- }
-
- function encrypt(word){
- //这里传入自己定义的密钥,后端解密时也需要使用一样的密钥
- var key = CryptoJS.enc.Utf8.parse("abcdeabcde123456");
- var srcs = CryptoJS.enc.Utf8.parse(word);
- var encrypted = CryptoJS.AES.encrypt(srcs, key, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7});
- return encrypted.toString();
- }
- </script>
- <style type="text/css">
- table tr td{
- font-size: 16px;
- }
- .tdclass{
- padding-left: 20px;
- font-size: 12px;
- }
- .tdclass1{
- font-size: 12px;
- }
- .colorRed{
- color: red;
- }
- .radiusDiv{
-
- margin-top: 0px;
- }
- .cylinderInput{
- width: 150px;
- }
- </style>
- <script type="text/javascript">
- var cylinderN=1;
- var selectedCityId="00";
- var oldinstallnum=0;
- var newinstallnum=0;
- function getNowFormatDate() {
- var date = new Date();
- var seperator1 = "-";
- var year = date.getFullYear();
- var month = date.getMonth() + 1;
- var strDate = date.getDate();
- if (month >= 1 && month <= 9) {
- month = "0" + month;
- }
- if (strDate >= 0 && strDate <= 9) {
- strDate = "0" + strDate;
- }
- var currentdate = year + seperator1 + month + seperator1 + strDate;
- return currentdate;
- }
- window.onload = function() {
- var currentLoign = '<%=session.getAttribute("openid")%>';
- if(currentLoign&¤tLoign!="null"){
-
- }else{
- // window.location.replace('jsp/login/loginre.jsp' + window.location.search);
- }
- $('#giveCardTime').datebox('setValue', getNowFormatDate());
- $("#region1").combobox({
- prompt:'必选',
- panelHeight:'150px',
- required:true,
- editable:false,
- valueField:'id',
- textField:'name',
- url:'ajax/getCity123',
- onSelect: function (rec) {
- selectedCityId = rec.id;
- QP = 'QP0'+rec.id;
- $('#useCardNo').textbox({buttonText:QP});
- $('#region2').combobox({
- url:"ajax/getCounty123?cityId="+rec.id,
- panelHeight:'150px',
- required:false,
- editable:false,
- valueField:'id',
- textField:'name',
- prompt:'',
- onLoadSuccess:function(){
- if(region2){
- $("#region2").combobox('select', region2);
- }
-
- }
- });
- $('#giveCardUnit').combobox({
- url:"ajax/getUnit123?cityId="+rec.id+"&countryId=00&&type=0",
- panelHeight:'auto',
- required:true,
- editable:false,
- valueField:'id',
- textField:'name',
- prompt:'必选',
- });
- $('#useCardNo').textbox({
- prompt:'必填',
- });
- }
- });
-
-
-
- $("#appType").combobox({
- panelHeight:'auto',
- required:true,
- editable:false,
- valueField:'id',
- textField:'name',
- onSelect: function (rec) {
- if(rec.id=="2"||rec.id=="4"||rec.id=="5"){
- $('#carType').combobox('select', '1');
- }else{
- $('#carType').combobox('select', '2');
- }
-
- }
- });
- carGuid ='<%=request.getParameter("carGuid")%>';
- loadData(carGuid,1,10);
- document.getElementById("cylinderinfodiv").style.display='none';
- $('#installNum').combobox({
- onChange:function(n,o){
- newinstallnum = n;
- }
- });
- $("#useCardNo").next().hide();
- }
-
- var carGuid="";
- var QP="";
- var region2="";
- function loadData(carGuid,page,size){
- region2="";
- showProgress('提示','请等待','请求源数据中……');
- $.ajax({
- type: 'POST',
- url: "ajax/getCarInfo",
- data: {
- "carGuid":carGuid,
- "page":page,
- "size":size
- },
- dataType:'text',
- success: function (data) {
- $.messager.progress('close');
- var vData = $.parseJSON(data);
-
- var carOperState = 0;
- if(vData.total==1){
- $.each(vData.rows, function(i,item){
- carOperState = item.operState;
- //第一行
- $("#region1").combobox('select', item.districtNo.substring(2,4));
- $("#engineNo").textbox('setValue',item.engineNo);
- $("#unit").textbox('setValue',item.unitNo);
- //第二行
- $("#plateColor").combobox('select', item.plateColor);
- if(item.regNo.length>5){
- $("#useCardNo").textbox('setValue',item.regNo.substring(5,item.regNo.length));
- }
-
- $("#frameNo").textbox('setValue',item.vin);
- $("#toUnit").textbox('setValue',item.carUnit);
- //第三行
- oldinstallnum = item.installNum;
- $("#installNum").combobox('select', item.installNum);
- $("#carNo").textbox('setValue',item.carNo);
- region2 = item.districtNo.substring(4,6);
- //setTimeout(function () {
- // $("#region2").combobox('select', item.districtNo.substring(4,6));
- //}, 2000);
- $("#dutyPerson").textbox('setValue',item.carUnitMana);
- $("#safetyPerson").textbox('setValue',item.safeMana);
- //第四行
- $("#giveCardUnit").combobox('select', item.manaUnitNo);
- $("#appType").combobox('select', item.appType);
- $("#unitTel").textbox('setValue',item.carUnitPhone);
- $("#safetyTel").textbox('setValue',item.safePhone);
- //第五行
- if(item.regTime1){
- $("#giveCardCK").prop("checked", true);
- $("#giveCardTime").datebox('setValue',item.regTime1);
- }
-
- $("#carType").combobox('select', item.plateType);
- $("#name").textbox('setValue',item.carOwnerName);
- $("#contactTel").textbox('setValue',item.phone);
-
- //第六行
- $("#brandType").textbox('setValue',item.carType);
- $("#idCard").textbox('setValue',item.userId);
- $("#zipCode").textbox('setValue',item.post);
- //第七行
- $("#manufactor").textbox('setValue',item.carProduct);
- $("#address").textbox('setValue',item.addr);
- });
- }
- if(carOperState!=0){
- $('#saveCarInfo').linkbutton('disable');
- $.messager.alert('提示','该车辆已被审核,不可修改');
- setTimeout(function(){
- window.close();
- }, 2000);
- }
- },
- error:function(e){
- $.messager.progress('close');
- console.log(e);
- }
- });
- }
-
- var inNum=0;
- var operType=1;//1为修改
- var giveCardT;
- var carType=0;
- function saveCarInfo(){
- if($("#carInfoFrom").form('validate')){
- var cNo = $('#carNo').textbox('getValue');
- if(cNo.length==2){
- //showMsg('提示', '请填写正确的车牌号!', 5000);
- $.messager.alert('提示','请填写正确的车牌号!');
- return;
- }
-
- showProgress('提示','请等待','保存中……');
- inNum = $('#installNum').combobox('getValue');
- giveCardT= $("#giveCardTime").datebox("getValue");
- carType = $('#carType').combobox('getValue');
- var dele=0;
- if(newinstallnum>0){
- dele = (newinstallnum==oldinstallnum)?0:1;
- }
- $("#carInfoFrom").form("submit",{
- url: "ajax/insertCarInfo?operType="+operType+"&carGuid="+carGuid+"&QP="+QP+"&dele="+dele,
- onsubmit: function () {
- return $(this).form("validate");
- },
- success: function (data) {
- $.messager.progress('close');
- var pData = $.parseJSON(data);
- if(pData.result==0){
- //showMsg('提示', '操作成功,请填写气瓶信息', 5000);
- if(newinstallnum!=oldinstallnum&&newinstallnum>0){
- document.getElementById("carGuid").value = pData.carGuid;
- document.getElementById("carNo123").value = pData.carNo;
- document.getElementById("carinfodiv").style.display='none';
- document.getElementById("cylinderinfodiv").style.display='';
- document.getElementById("cylinderDiv").innerHTML="";
- inNum = newinstallnum;
- for(var i=1;i<=newinstallnum;i++){
- if(i==newinstallnum){
- addCylinder(i,1);
- }else{
- addCylinder(i,0);
- }
- }
- $.messager.alert('提示','操作成功,由于车辆的气瓶安装数量变化,故须重新上传气瓶信息');
- }else{
- $.messager.alert('提示','操作成功');
- setTimeout(function(){
- window.close();
- }, 2000);
-
- }
- }else{
- //showMsg('提示', '操作失败:'+pData.retinfo, 5000);
- $.messager.alert('提示','操作失败:'+pData.retinfo);
- }
-
- },
- error:function(e){
- $.messager.progress('close');
- console.log(e);
- },
- xhrFields: {
- withCredentials: true
- }
- });
-
-
- }else{
- //showMsg('提示', '验证未通过,有必填信息未填写!', 5000);
- $.messager.alert('提示','验证未通过,有必填信息未填写!');
- }
- }
- function addCylinder(num,secondP){
- if(num>8){
- //showMsg('提示', '最多增加8只气瓶,如需要更改,可重新打开此页面', showTime);
- $.messager.alert('提示','最多增加8只气瓶,如需更改,可返回车辆信息进行修改气瓶安装数量');
- return;
- }
-
- var content='<table id="table'+num+'" style="margin-top:20px">';
- content+='<tr>';
- content+='<td class="tdclass title">气瓶'+num+':</td>';
- content+='</tr><tr><td> </td></tr><tr>';
- content+='<td class="tdclass colorRed">气瓶编号:<br/>'+'<input id="cylinderNo'+num+'" name="cylinderNo'+num+'" style="height:34px;" class="easyui-textbox cylinderInput" />'+'</td>';
- 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>';
- content+='<td class="tdclass colorRed">类 型:<br/>'+'<select id="cylinderType'+num+'" name="cylinderType'+num+'" style="height:34px;" class="easyui-combobox cylinderInput">'+op+'</select>'+'</td>';
-
- content+='<td class="tdclass colorRed">制造单位:<br/>'+'<select id="manufacturer'+num+'" name="manufacturer'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
- content+='<td class="tdclass">生产许可:<br/>'+'<input id="productLicense'+num+'" name="productLicense'+num+'" style="height:34px;" class="easyui-datebox cylinderInput"/>'+'</td>';
-
- content+='<td class="tdclass colorRed">制造日期:<br/>'+'<input id="productDate'+num+'" name="productDate'+num+'" style="height:34px;" class="easyui-datebox cylinderInput"/>'+'</td>';
-
- content+='<td class="tdclass">安装单位:<br/>'+'<select id="installUnit'+num+'" name="installUnit'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
- content+='</tr><tr>';
-
- content+='<td class="tdclass">安装许可证:<br/>'+'<select id="installLicense'+num+'" name="installLicense'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
- content+='<td class="tdclass">安装合格证:<br/>'+'<select id="installCert'+num+'" name="installCert'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
- var op1='<option value="0">安装</option><option value="1">复装</option><option value="2">整车出厂</option>';
-
- content+='<td class="tdclass colorRed">安装类型:<br/>'+'<select id="installType'+num+'" name="installType'+num+'" style="height:34px;" class="easyui-combobox cylinderInput">'+op1+'</select>'+'</td>';
-
- var op2='<option value="0">后备箱</option><option value="1">底部</option><option value="2">顶部</option><option value="3">货厢</option><option value="4">中部</option>';
-
- content+='<td class="tdclass">安装位置:<br/>'+'<select id="installLocation'+num+'" name="installLocation'+num+'" style="height:34px;" class="easyui-combobox cylinderInput">'+op2+'</select>'+'</td>';
-
- content+='<td class="tdclass">安装人员:<br/>'+'<select id="installOper'+num+'" name="installOper'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
- content+='</tr><tr>';
-
- content+='<td class="tdclass">第三方安装:<br/>'+'<select id="thirdInstall'+num+'" name="thirdInstall'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
- content+='<td class="tdclass colorRed">改装出厂时间:<br/>'+'<input id="refitDate'+num+'" name="refitDate'+num+'" style="height:34px;" class="easyui-datebox cylinderInput"/>'+'</td>';
-
- 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>';
-
- 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>';
-
- content+='<td class="tdclass colorRed">容 积 L:<br/>'+'<input id="vol'+num+'" name="vol'+num+'" style="height:34px;" class="easyui-textbox cylinderInput"/>'+'</td>';
-
- content+='<td class="tdclass colorRed">年 限:<br/>'+'<input id="yearLimit'+num+'" name="yearLimit'+num+'" style="height:34px;" class="easyui-textbox cylinderInput"/>'+'</td>';
-
- content+='</tr><tr>';
-
- content+='<td class="tdclass colorRed">次 数:<br/>'+'<input id="count'+num+'" name="count'+num+'" style="height:34px;" class="easyui-textbox cylinderInput"/>'+'</td>';
-
- content+='<td class="tdclass">产品型号:<br/>'+'<select id="productType'+num+'" name="productType'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
- content+='<td class="tdclass">重 量:<br/>'+'<input id="weight'+num+'" name="weight'+num+'" style="height:34px;" class="easyui-textbox cylinderInput"/>'+'</td>';
-
- content+='<td class="tdclass">壁 厚:<br/>'+'<input id="wall'+num+'" name="wall'+num+'" style="height:34px;" class="easyui-textbox cylinderInput"/>'+'</td>';
-
- content+='<td class="tdclass">公称压力:<br/>'+'<input id="press'+num+'" name="press'+num+'" style="height:34px;" class="easyui-textbox cylinderInput"/>'+'</td>';
-
- content+='</tr>';
-
- content+='</tr><tr>';
-
- content+='<td class="tdclass">材 质:<br/>'+'<select id="material'+num+'" name="material'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
- content+='<td class="tdclass">纤 维:<br/>'+'<select id="fibre'+num+'" name="fibre'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
- content+='<td class="tdclass">树 脂:<br/>'+'<select id="resin'+num+'" name="resin'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
- content+='<td class="tdclass">设备代码:<br/>'+'<input id="deviceCode'+num+'" name="deviceCode'+num+'" style="height:34px;" class="easyui-textbox cylinderInput"/>'+'</td>';
-
- content+='<td class="tdclass">制造监管检验机构:<br/>'+'<select id="mechanism1'+num+'" name="mechanism1'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
- content+='<td class="tdclass">型式试验机构:<br/>'+'<select id="mechanism2'+num+'" name="mechanism2'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
- content+='</tr><tr>';
-
- content+='<td class="tdclass">阀门厂家:<br/>'+'<select id="valveManufacturer'+num+'" name="valveManufacturer'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
- content+='<td class="tdclass">阀门型号:<br/>'+'<select id="valveModel'+num+'" name="valveModel'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
- content+='<td class="tdclass">阀门批次:<br/>'+'<select id="valveBatch'+num+'" name="valveBatch'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
- content+='<td class="tdclass">设计单位:<br/>'+'<select id="designUnit'+num+'" name="designUnit'+num+'" style="height:34px;" class="easyui-combobox cylinderInput"></select>'+'</td>';
-
-
- //content+='<td calss="tdclass">资质/证件:<br/>'+'<input type="file" class="cylinderInput" style="height:34px;" name="cert' +num +'" /></td>';
- //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>';
- content+='</tr><tr>';
-
- //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>';
- if(secondP=="1"){
- content+='<td> </td></tr><tr>';
- 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>';
- content+='</tr><tr><td> </td>';
- }
- content+='</tr></table>';
- $("#cylinderDiv").append(content);
- if(secondP=="1"){
- $("#saveCylinder").linkbutton({
-
- });
- }
- if(num==1){
- // document.getElementById("add"+num).style.display='';
- // document.getElementById("remove"+num).style.display='none';
- }else{
- // document.getElementById("add"+(num-1)).style.display='none';
- // document.getElementById("remove"+(num-1)).style.display='';
-
- // document.getElementById("add"+num).style.display='';
- // document.getElementById("remove"+num).style.display='none';
- }
- $("#uploadCert").linkbutton({
-
- });
- $("#cylinderNo"+num).textbox({
- required:true,
- editable:true,
- prompt:'必填',
-
- });
-
- $("#cylinderType"+num).combobox({
- required:true,
- editable:false,
- panelHeight:'auto',
- valueField:'id',
- textField:'name',
- onSelect: function (rec) {
- $("#yearLimit"+num).textbox({
- required:true,
- editable:false,
- value:'不限制',
-
- });
- $("#count"+num).textbox({
- required:true,
- editable:false,
- value:'不限制',
-
- });
- if(rec.id==0){
- $("#yearLimit"+num).textbox("setValue","8");
- $("#count"+num).textbox("setValue","15000");
- }else if(rec.id==1){
- $("#yearLimit"+num).textbox("setValue","5");
- $("#count"+num).textbox("setValue","不限制");
- }else if(rec.id==2||rec.id==3){
- $("#yearLimit"+num).textbox("setValue","8");
- $("#count"+num).textbox("setValue","不限制");
- }else if(rec.id==4){
- $("#yearLimit"+num).textbox("setValue","不限制");
- $("#count"+num).textbox("setValue","不限制");
- }else{
- $("#yearLimit"+num).textbox("setValue","不限制");
- $("#count"+num).textbox("setValue","不限制");
- }
-
- }
- });
-
- $("#manufacturer"+num).combobox({
- url:"ajax/getCylinderProduct",
- valueField:'id',
- textField:'name',
- required:true,
- editable:false,
- panelHeight:'150px',
- prompt:'必选',
- });
-
- $("#productLicense"+num).textbox({
- required:false,
- editable:true,
-
- });
-
- $("#productDate"+num).datebox({
- required:true,
- editable:false,
- prompt:'必填',
- value:getNowFormatDate(),
- });
-
- $("#installUnit"+num).combobox({
- url:"ajax/getUnit123?cityId="+selectedCityId+"&countryId=00&&type=3",
- valueField:'id',
- textField:'name',
- required:false,
- editable:true,
- panelHeight:'auto',
- });
-
- $("#installLicense"+num).textbox({
- required:false,
- editable:true,
- panelHeight:'auto',
- });
-
- $("#installCert"+num).textbox({
- required:false,
- editable:true,
- panelHeight:'auto',
- });
-
- $("#installType"+num).combobox({
- required:true,
- editable:false,
- panelHeight:'auto',
- prompt:'必选',
- });
-
- $("#installLocation"+num).combobox({
- required:false,
- editable:false,
- prompt:'必选',
- panelHeight:'auto',
- });
-
- $("#installOper"+num).textbox({
- required:false,
- editable:true,
- panelHeight:'auto',
- });
-
- $("#thirdInstall"+num).textbox({
- required:false,
- editable:true,
- panelHeight:'auto',
- });
-
- // $('#giveCardTime').datebox('setValue', getNowFormatDate());
- $("#refitDate"+num).datebox({
- required:true,
- editable:false,
- prompt:'必选',
- value:getNowFormatDate(),
- });
-
- $("#firstUseDate"+num).datebox({
- required:true,
- editable:false,
- prompt:'必选',
- value:getNowFormatDate(),
-
- });
-
- $("#nextCheckDate"+num).datebox({
- required:true,
- editable:false,
- prompt:'必选',
- value:getNowFormatDate(),
- });
-
- $("#vol"+num).numberbox({
- required:true,
- editable:true,
- precision:2,
- min:0,
- prompt:'必填',
-
- });
-
- $("#yearLimit"+num).textbox({
- required:true,
- editable:false,
- value:'不限制',
-
- });
-
- $("#count"+num).textbox({
- required:true,
- editable:false,
- value:'不限制',
-
- });
-
- $("#productType"+num).textbox({
- required:false,
- editable:true,
- });
-
- $("#weight"+num).textbox({
- required:false,
- editable:true,
- });
-
- $("#wall"+num).textbox({
- required:false,
- editable:true,
- });
-
- $("#press"+num).textbox({
- required:false,
- editable:true,
- });
-
- $("#material"+num).textbox({
- required:false,
- editable:true,
- });
-
- $("#fibre"+num).textbox({
- required:false,
- editable:true,
- });
-
- $("#resin"+num).textbox({
- required:false,
- editable:true,
- });
-
- $("#deviceCode"+num).textbox({
- required:false,
- editable:true,
- });
-
- $("#mechanism1"+num).textbox({
- required:false,
- editable:true,
- });
-
- $("#mechanism2"+num).textbox({
- required:false,
- editable:true,
- });
-
- $("#valveManufacturer"+num).textbox({
- required:false,
- editable:true,
- });
-
-
- $("#valveModel"+num).textbox({
- required:false,
- editable:true,
- });
-
- $("#valveBatch"+num).textbox({
- required:false,
- editable:true,
- });
-
- $("#designUnit"+num).textbox({
- required:false,
- editable:true,
- });
-
- // $("#cert"+num).filebox({
- // required:false,
- // editable:true,
- // });
-
-
-
-
- }
-
-
- var inNum=0;
- var gettdCyliderGuid=[];
- function saveCylinderInfo(){
- $('#productDate1').datebox('getValue');
- if($("#cylinderInfoFrom").form('validate')){
- var installCertArray=new Array();
- for(var i=1;i<=inNum;i++){
- var productDate123= $("#productDate"+i).datebox("getValue");
-
- var refitDate123= $("#refitDate"+i).datebox("getValue");
- var firstUseDate123= $("#firstUseDate"+i).datebox("getValue");
- var nextCheckDate123= $("#nextCheckDate"+i).datebox("getValue");
-
- if(giveCardT){
- if(!compareDate(giveCardT, refitDate123)){
- //showMsg('提示', '气瓶'+i+':发证时间应不小于改装出厂时间', 5000);
- $.messager.alert('提示','气瓶'+i+':发证时间应不小于改装出厂时间');
- return;
- }
- }else{
- //showMsg('提示', '发证时间不能为空', 5000);
- $.messager.alert('提示','发证时间不能为空');
- return;
- }
-
- if(!compareDate(refitDate123, productDate123)){
- //showMsg('提示', '气瓶'+i+':改装出厂时间应不小于制造日期', 5000);
- $.messager.alert('提示','气瓶'+i+':改装出厂时间应不小于制造日期');
- return;
- }
- var firstUseCK=document.getElementById("firstUseCK");
- if(!compareDate(firstUseDate123, refitDate123)&&firstUseCK.checked){
- //showMsg('提示', '气瓶'+i+':初次投用时间应不小于改装出厂时间', 5000);
- $.messager.alert('提示','气瓶'+i+':初次投用时间应不小于改装出厂时间');
- return;
- }
- var nextCheckCK=document.getElementById("nextCheckCK");
- if(!compareDate(nextCheckDate123, firstUseDate123)&&nextCheckCK.checked){
- //showMsg('提示', '气瓶'+i+':下次检验时间应不小于初次投用时间', 5000);
- $.messager.alert('提示','气瓶'+i+':下次检验时间应不小于初次投用时间');
- return;
- }
- var installCert = $("#installCert"+i).textbox("getValue");
- if(i>1&&installCertArray.length>0){
- if(installCert&&installCertArray.indexOf(installCert)>-1){
- //showMsg('提示', '气瓶'+i+':安装合格证不能跟其他气瓶的合格证一样!', 5000);
- $.messager.alert('提示','气瓶'+i+':安装合格证不能跟其他气瓶的合格证一样!');
- return;
- }else{
- if(installCert){
- installCertArray[installCertArray.length] = installCert;
- }
- }
- }else{
- if(installCert){
- if(installCertArray.length==0){
- installCertArray[0] = installCert;
- }else{
- installCertArray[installCertArray.length] = installCert;
- }
- }
- }
-
-
-
- }
- showProgress('提示','请等待','保存中……');
- $("#cylinderInfoFrom").form("submit",{
- url: "ajax/insertCylinderInfo?cylinderNum="+inNum+"&operType=0&carType="+carType,
- onsubmit: function () {
- return $(this).form("validate");
- },
- success: function (data) {
- $.messager.progress('close');
- var pData = $.parseJSON(data);
- if(pData.result=="0"){
- //showMsg('提示', '操作成功,气瓶信息填写成功', showTime);
-
- gettdCyliderGuid=[];
- if(pData.cylinderGuid){
- gettdCyliderGuid=pData.cylinderGuid.split(",");
- }
- document.getElementById("certDiv").innerHTML="";
- document.getElementById("certinfodiv").style.display='';
- for(var i=1;i<=gettdCyliderGuid.length;i++){
- addCert(pData.carNo,i);
- }
- document.getElementById("carinfodiv").style.display='none';
- document.getElementById("cylinderinfodiv").style.display='none';
- operType=0;//0为新增
- $.messager.alert('提示','操作成功,气瓶信息填写成功,请上传气瓶相关资质/证件');
- }else{
- //showMsg('提示', '操作失败:'+pData.retinfo, showTime);
- $.messager.alert('提示','操作失败:'+pData.retinfo);
- }
-
- },
- error:function(e){
- $.messager.progress('close');
- console.log(e);
- },
- xhrFields: {
- withCredentials: true
- }
- });
-
-
- }else{
- //showMsg('提示', '验证未通过,有必填信息未填写!', showTime);
- $.messager.alert('提示','验证未通过,有必填信息未填写!');
- }
- }
-
- function addCert(carNo,num){
- var content = '<fieldset>';
- content += '<legend>'+carNo+'_气瓶'+num+'_资质/证书</legend>';
- content += '<table>';
- content += '<tr>';
- content += '<td>';
-
- 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>';
- content += '</td>';
- content += '</tr>';
- content += '</table>';
- content += '</fieldset>';
- $("#certDiv").append(content);
- $("#uploadCert"+num).linkbutton({
-
- });
- }
- function openUploadCert(num){
- if(gettdCyliderGuid.length>=num){
- document.getElementById("cylinderGuid1234").value = gettdCyliderGuid[num-1];
- }
-
- $("#uploadCertDialog").dialog("open").dialog('setTitle', '资质图片数据');
- //$("#uploadCertDialog").panel("move",{top:$(document).scrollTop() + ($(window).height()-540) * 0.5});
- }
-
- function uploadCert(){
-
- if($("#certform").form('validate')){
- showProgress('提示','请等待','资质/证件上传中……');
- var imageType = $('input:radio[name="imageType"]:checked').val();
- $("#certform").form("submit",{
- url: "ajax/uploadCert?imageType="+imageType,
- onsubmit: function () {
- return $(this).form("validate");
- },
- success: function (data) {
- $.messager.progress('close');
- var pData = $.parseJSON(data);
- if(pData.result==1){
- //showMsg('提示', '上传成功!', 5000);
- $.messager.alert('提示','上传成功!');
- $("#imageCert").filebox('setValue','');
- }else{
-
- //showMsg('提示', '上传失败!', 5000);
- $.messager.alert('提示','上传失败!');
- }
-
- },
- error:function(e){
- $.messager.progress('close');
- console.log(e);
- },
- xhrFields: {
- withCredentials: true
- }
- });
- }else{
- //showMsg('提示', '验证未通过,有必填信息未填写!', showTime);
- $.messager.alert('提示','验证未通过,有必填信息未填写!');
- }
- }
- </script>
- </head>
-
- <body>
- <div id="carinfodiv">
- <fieldset>
- <legend>修改车辆信息</legend>
-
- <form id="carInfoFrom" method="post" action="ajax/insertCarInfo">
- <div class="radiusDiv">
- <table style="padding-left:5px;padding-top:20px;padding-bottom:20px;border-collapse:separate; border-spacing:0px 5px;" cellpadding="2px" cellspacing="0px">
- <tr>
- <td class="tdclass colorRed">
- 市州:
- <br/>
- <select name="region1" id="region1" style="width:250px;height:34px;" class="easyui-combobox" data-options="required:true"/>
- </select>
- </td>
-
- <td class="tdclass colorRed" colspan="2">
- 发动机号:
- <br/>
- <input name="engineNo" id="engineNo" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:true,prompt:'必填'" />
- </td>
-
- <td class="tdclass" colspan="2">
- 选择单位:
- <br/>
- <input name="unit" id="unit" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:false" />
- </td>
- </tr>
-
-
-
- <tr>
- <td class="tdclass colorRed">
- <input name="useCardNo" id="useCardNo" style="width:250px;height:34px;" class="easyui-textbox" data-options="buttonText:'QP000',buttonAlign:'left',required:true,value:'000000', prompt:'先选择市州'" >
- <!--
- 使用登记证:
- <br/>
- <input name="useCardNo" id="useCardNo" style="width:250px;height:34px;" class="easyui-textbox" data-options="buttonText:'QP000',buttonAlign:'left',required:true,value:'000000', prompt:'先选择市州'" >
- -->
- 应用类型:
- <br/>
- <select name="appType" id="appType" style="width:250px;height:34px;" class="easyui-combobox" data-options="panelHeight:'auto',required:true,editable:true">
- <option value="0">其他</option>
- <option value="1" selected="selected">出租</option>
- <option value="2">公交</option>
- <option value="3">私用</option>
- <option value="4">货运</option>
- <option value="5">客运</option>
- <option value="6">营转非</option>
-
-
- </select>
- </td>
- <td class="tdclass colorRed" colspan="2">
- 车架号:
- <br/>
- <input name="frameNo" id="frameNo" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:true,prompt:'必填'" />
- </td>
- <td class="tdclass" colspan="2">
- 所属单位:
- <br/>
- <input name="toUnit" id="toUnit" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:false" />
- </td>
- </tr>
-
-
-
- <tr>
- <td class="tdclass colorRed">
- 气瓶安装数量:
- <br/>
- <select name="installNum" id="installNum" style="width:250px;height:34px;" class="easyui-combobox" data-options="panelHeight:'auto',required:false,editable:false">
- <option value="1">1</option>
- <option value="2">2</option>
- <option value="3">3</option>
- <option value="4">4</option>
- <option value="5">5</option>
- <option value="6">6</option>
- <option value="7">7</option>
- <option value="8">8</option>
- </select>
- </td>
- <td class="tdclass colorRed">
- 车牌号:
- <br/>
- <input name="carNo" id="carNo" style="width:125px;height:34px;" class="easyui-textbox" data-options="buttonAlign:'left',required:true,value:'宁E',events:{keyup:fnKeyUp}" >
- </td>
- <td class="tdclass1 colorRed">
- 区县:
- <br/>
- <select name="region2" id="region2" style="width:125px;height:34px;" class="easyui-combobox" data-options="required:false, prompt:'先选择市州'">
- </select>
- </td>
- <td class="tdclass">
- 负责人:
- <br/>
- <input name="dutyPerson" id="dutyPerson" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" />
- </td>
- <td class="tdclass1">
- 安全管理员:
- <br/>
- <input name="safetyPerson" id="safetyPerson" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" />
- </td>
- </tr>
-
-
-
- <tr>
- <td class="tdclass colorRed">
- 发证单位:
- <br/>
- <select name="giveCardUnit" id="giveCardUnit" style="width:250px;height:34px;" class="easyui-combobox" data-options="required:true, prompt:'先选择市州'" >
- </select>
- </td>
- <td class="tdclass colorRed" colspan="2">
-
- 车牌颜色:
- <br/>
- <select name="plateColor" id="plateColor" style="width:250px;height:34px;" class="easyui-combobox" data-options="panelHeight:'auto',required:false,editable:false">
- <option value="0">未知</option>
- <option value="1" selected="selected">蓝色</option>
- <option value="2">黄色</option>
- <option value="3">绿色</option>
- <option value="4">白色</option>
- <option value="5">黑色</option>
- </select>
- </td>
- <td class="tdclass">
- 单位电话:
- <br/>
- <input name="unitTel" id="unitTel" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" />
- </td>
- <td class="tdclass1">
- 安全员电话:
- <br/>
- <input name="safetyTel" id="safetyTel" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" />
- </td>
- </tr>
- <tr>
- <td class="tdclass colorRed">
- 发证时间(勾选复选框有效):
- <br/>
- <input type="checkbox" name="giveCardCK" id="giveCardCK"/>
- <input name="giveCardTime" id="giveCardTime" style="width:226px;height:34px;" class="easyui-datebox" data-options="required:true,editable:false,prompt:'选择时间'" >
- </td>
- <td class="tdclass colorRed" colspan="2">
- 车辆类型:
- <br/>
- <select name="carType" id="carType" style="width:250px;height:34px;" class="easyui-combobox" data-options="panelHeight:'150px',required:true,editable:false">
- <option value="0">其它</option>
- <option value="1">大型汽车</option>
- <option value="2" selected="selected">小型汽车</option>
- <option value="3">使馆汽车</option>
- <option value="4">领馆汽车</option>
- <option value="5">境外汽车</option>
- <option value="6">外籍汽车</option>
- <option value="7">两、三轮摩托车</option>
- <option value="8">轻便摩托车</option>
- <option value="9">使馆摩托车</option>
- <option value="10">领馆摩托车</option>
- <option value="11">境外摩托车</option>
- <option value="12">外籍摩托车</option>
- <option value="13">农用运输车</option>
- <option value="14">拖拉机</option>
- <option value="15">挂车</option>
- <option value="16">教练汽车</option>
- <option value="17">教练摩托车</option>
- <option value="18">试验汽车</option>
- <option value="19">试验摩托车</option>
- <option value="20">临时入境汽车</option>
- <option value="21">临时入境摩托车</option>
- <option value="22">临时行驶车</option>
- <option value="23">警用汽车</option>
- <option value="24">警用摩托车</option>
- </select>
- </td>
- <td class="tdclass colorRed">
- 车主姓名:
- <br/>
- <input name="name" id="name" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:true,prompt:'必填'" />
- </td>
- <td class="tdclass1 colorRed">
- 联系电话:
- <br/>
- <input name="contactTel" id="contactTel" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:true,prompt:'必填'" >
-
- </td>
- </tr>
-
-
-
- <tr>
-
- <td class="tdclass">
- 厂牌型号:
- <br/>
- <input name="brandType" id="brandType" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:false" >
- </td>
- <td class="tdclass">
- 证件号:
- <br/>
- <input name="idCard" id="idCard" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" />
- </td>
- <td class="tdclass1">
- 邮编:
- <br/>
- <input name="zipCode" id="zipCode" style="width:125px;height:34px;" class="easyui-textbox" data-options="required:false" >
- </td>
- <td>
-
- </td>
- <td>
-
- </td>
-
- </tr>
-
-
-
- <tr>
-
- <td class="tdclass">
- 汽车厂家:
- <br/>
- <input name="manufactor" id="manufactor" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:false" >
- </td>
- <td class="tdclass" colspan="2">
- 联系地址:
- <br/>
- <input name="address" id="address" style="width:250px;height:34px;" class="easyui-textbox" data-options="required:false" >
- </td>
- <td class="tdclass" colspan="2">
- <a href="javascript:void(0);" id="saveCarInfo" class="easyui-linkbutton" iconCls="icon-save1" plain="false" style="width:250px;height:50px;" onclick="saveCarInfo();">保存车辆信息</a>
- </td>
- <td>
-
- </td>
- <td>
-
- </td>
- </tr>
-
-
- </table>
- </div>
- </form>
- </fieldset>
- </div>
-
- <div id="cylinderinfodiv">
- <fieldset>
- <legend id="cylinderinfotip">气瓶信息</legend>
- <form id="cylinderInfoFrom" method="post" action="ajax/insertCylinderInfo">
- <input type="text" id="carGuid" name="carGuid" style="display: none;" />
- <input type="text" id="carNo123" name="carNo" style="display: none;" />
-
- <div class="radiusDiv" id="cylinderDiv" >
- </div>
- </form>
- </fieldset>
-
- </div>
- <div id="certinfodiv">
-
- <div class="radiusDiv" id="certDiv" >
- </div>
- </div>
-
- <div id="uploadCertDialog" class="easyui-dialog"
- style="width: 400px; height: 440px; padding: 10px 20px;"
- shadow="false" closed="true" modal="true" buttons="#upload_cert_buttons1">
- <form id="certform" enctype="multipart/form-data" method="post">
- <input id="cylinderGuid1234" name="cylinderGuid" type="text" style="display: none;" />
- <fieldset>
- <legend>图片类型</legend>
- <table>
- <tr>
- <td class="tdclass">
- <input name="imageType" type="radio" value="0" checked="checked"/>气瓶产品合格证
- </td>
- </tr>
- <tr>
- <td class="tdclass">
- <input name="imageType" type="radio" value="1" />监督检验证书
- </td>
- </tr>
- <tr>
- <td class="tdclass">
- <input name="imageType" type="radio" value="2" />安装合格证
- </td>
- </tr>
- <tr>
- <td class="tdclass">
- <input name="imageType" type="radio" value="3" />身份证/营业执照/法人证书
- </td>
- </tr>
- <tr>
- <td class="tdclass">
- <input name="imageType" type="radio" value="4" />行驶证
- </td>
- </tr>
- </table>
- </fieldset>
-
- <table>
-
-
-
-
- <tr>
- <td class="tdclass"> </td>
- </tr>
- <tr>
- <td class="tdclass">证书页码</td>
- </tr>
- <tr>
- <td class="tdclass">
- <select name="certPage" id="certPage" style="width:250px;height:34px;" class="easyui-combobox" data-options="panelHeight:'150px',required:true,editable:false">
- <option value="1">第1页</option>
- <option value="2">第2页</option>
- <option value="3">第3页</option>
- <option value="4">第4页</option>
- <option value="5">第5页</option>
- <option value="6">第6页</option>
- <option value="7">第7页</option>
- <option value="8">第8页</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="tdclass"> </td>
- </tr>
- <tr>
- <td class="tdclass">图片文件</td>
- </tr>
- <tr>
- <td class="tdclass">
- <input name="imageCert" id="imageCert" class="easyui-filebox" style="width:250px;height:34px;" data-options="buttonText: '选择文件',buttonAlign: 'right',required:true,prompt:'请选择资质/证书图片',">
- </td>
- </tr>
- <tr>
- <td class="tdclass"> </td>
- </tr>
- <tr>
- <td class="tdclass"> </td>
- </tr>
- <tr>
- <td class="tdclass">
- <a href="javascript:void(0)" style="width:250px;height:50px;" class="easyui-linkbutton" onclick="uploadCert();" iconcls="icon-upload">上传</a>
- </td>
- </tr>
- </table>
-
-
-
- </form>
-
- </div>
- </body>
- </html>
|