|  |  |  | 
|---|
|  |  |  | shadeClose: true, | 
|---|
|  |  |  | shade: 0.3, | 
|---|
|  |  |  | closeBtn: 2, | 
|---|
|  |  |  | offset: ['50px','50px'], | 
|---|
|  |  |  | offset: ['50px', '50px'], | 
|---|
|  |  |  | area: ['1000px', '640px'], | 
|---|
|  |  |  | content: '../../basic/inout/inout-progress?type=' + type + "&t=" + Math.random() | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | 
|---|
|  |  |  | layer.close(index); | 
|---|
|  |  |  | var data = json.content; | 
|---|
|  |  |  | if (data === "not found") { | 
|---|
|  |  |  | layer.alert("没有获取到身份证信息!", { | 
|---|
|  |  |  | offset: ['300px', '300px'] | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | // layer.alert("没有获取到身份证信息!", { | 
|---|
|  |  |  | //     offset: ['300px', '300px'] | 
|---|
|  |  |  | // }); | 
|---|
|  |  |  | alertError("没有获取到身份证信息!"); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 临时赋值 | 
|---|
|  |  |  | 
|---|
|  |  |  | var index = layer.load(); | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | type: "POST", | 
|---|
|  |  |  | url: "../../inout/api/flush-lpr", | 
|---|
|  |  |  | url: "../../inout/api/get-plateNum", | 
|---|
|  |  |  | dataType: "json", | 
|---|
|  |  |  | contentType: "application/json;charset=UTF-8", | 
|---|
|  |  |  | data: param, | 
|---|
|  |  |  | success: function (result) { | 
|---|
|  |  |  | if (result.code != "0000") { | 
|---|
|  |  |  | layer.alert(result.msg, { | 
|---|
|  |  |  | offset: ['300px', '300px'] | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | alertError(result.msg); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | if (result.data.errorMsg) { | 
|---|
|  |  |  | layer.alert(result.data.errorMsg, { | 
|---|
|  |  |  | offset: ['300px', '300px'] | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | $("#plateNum").val(result.data.plateNum); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | $("#plateNum").val(result.data.plateNum); | 
|---|
|  |  |  | $("#plateNum2").val(result.data.plateNum); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | layer.close(index); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | error: function () { | 
|---|
|  |  |  | layer.close(index); | 
|---|
|  |  |  | layer.alert("车牌识别失败!", { | 
|---|
|  |  |  | offset: ['300px', '300px'] | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | alertError("车牌识别失败!"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // success: function (result) { | 
|---|
|  |  |  | //     if (result.code != "0000") { | 
|---|
|  |  |  | //         layer.alert(result.msg, { | 
|---|
|  |  |  | //             offset: ['300px', '300px'] | 
|---|
|  |  |  | //         }); | 
|---|
|  |  |  | //     } else { | 
|---|
|  |  |  | //         if (result.data.errorMsg) { | 
|---|
|  |  |  | //             layer.alert(result.data.errorMsg, { | 
|---|
|  |  |  | //                 offset: ['300px', '300px'] | 
|---|
|  |  |  | //             }); | 
|---|
|  |  |  | //         } else { | 
|---|
|  |  |  | //             $("#plateNum").val(result.data.plateNum); | 
|---|
|  |  |  | //         } | 
|---|
|  |  |  | //     } | 
|---|
|  |  |  | //     layer.close(index); | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | // error: function () { | 
|---|
|  |  |  | //     layer.close(index); | 
|---|
|  |  |  | //     layer.alert("车牌识别失败!", { | 
|---|
|  |  |  | //         offset: ['300px', '300px'] | 
|---|
|  |  |  | //     }); | 
|---|
|  |  |  | // } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | function submit() { | 
|---|
|  |  |  | var data = form.val("form-data"); | 
|---|
|  |  |  | if (!data.userName) { | 
|---|
|  |  |  | notify("承运人信息不能为空", null); | 
|---|
|  |  |  | // notify("承运人信息不能为空", null); | 
|---|
|  |  |  | alertError("承运人信息不能为空"); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (!data.plateNum) { | 
|---|
|  |  |  | notify("车牌号不能为空", null); | 
|---|
|  |  |  | alertError("车牌号不能为空"); | 
|---|
|  |  |  | // notify("车牌号不能为空", null); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (!data.intelCard && !data.userId) { | 
|---|
|  |  |  | notify("智慧卡号与身份证号不能同时为空", null); | 
|---|
|  |  |  | alertError("智慧卡号与身份证号不能同时为空"); | 
|---|
|  |  |  | // notify("智慧卡号与身份证号不能同时为空", null); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | type: "POST", | 
|---|
|  |  |  | url: "../../basic/inout/inout-next-step", | 
|---|
|  |  |  | url: "../../basic/inout/submit-register", | 
|---|
|  |  |  | dataType: "json", | 
|---|
|  |  |  | contentType: "application/json;charset=UTF-8", | 
|---|
|  |  |  | data: JSON.stringify(data), | 
|---|