| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558 |
- <%@ 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>
- <tr>
- <td class="tdclass">
- <input name="imageType" type="radio" value="5" />机动车登记证书
- </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>
|