| | |
| | | var recordData = null;// 业务数据信息 |
| | | var snapData;//系统抓拍对象信息 |
| | | var timerWeight; |
| | | var textParam;//设备识别结果 |
| | | |
| | | $(function () { |
| | | layui.use(['layer', 'laydate', 'form', 'table', 'util'], function () { |
| | |
| | | } |
| | | } |
| | | |
| | | //控制流程环节显示 |
| | | function showProgress() { |
| | | if (!inoutProgress) { |
| | | return; |
| | | } |
| | | if (inoutProgress.indexOf("REGISTER") == -1) { |
| | | $("#progress-register").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("CHECK") == -1) { |
| | | $("#progress-check").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("WEIGHT_FULL") == -1) { |
| | | $("#progress-fullWeight").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("HANDLE") == -1) { |
| | | $("#progress-hand").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("WEIGHT_EMPTY") == -1) { |
| | | $("#progress-emptyWeight").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("CARD_BACK") == -1) { |
| | | $("#progress-cardBack").css("display", "none"); |
| | | } |
| | | } |
| | | |
| | | |
| | | //更改扣重信息框不可编辑 |
| | | function addDisabled() { |
| | | //杂质 |
| | |
| | | |
| | | //新的读卡方式 |
| | | function flushICCard() { |
| | | if(cardDto && cardDto.protocol != "TCP_DEFAULT"){ |
| | | //协议获取 |
| | | flushICCard2(); |
| | | }else { |
| | | //本地读取 |
| | | flushICCard1(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | * 本地读取智慧卡 |
| | | */ |
| | | function flushICCard1() { |
| | | $("#intelCard").val(null); |
| | | $("#text-param").val(null); |
| | | $("#form-data")[0].reset(); |
| | | form.render(); |
| | | recordData = null; |
| | |
| | | jsonp: "callback", |
| | | jsonpCallback: "jsonpCallback", |
| | | success: function (json) { |
| | | //console.log(json); |
| | | var data = json.no; |
| | | //console.log(data); |
| | | if (data === "not found") { |
| | | layer.alert("请重新读卡!", {offset: ['300px', '300px']}); |
| | | alertError("请重新读卡!"); |
| | | } else { |
| | | $("#intelCard").val(data); |
| | | textParam = data; |
| | | $("#text-param").text("识别卡号:" + textParam); |
| | | flushData(); |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.alert("IC卡读取出错!", {offset: ['300px', '300px']}); |
| | | alertError("IC卡读取出错!"); |
| | | } |
| | | }); |
| | | } |
| | |
| | | |
| | | function controlGate(targetStatus){ |
| | | if(gateDto){ |
| | | var data = {"companyId":companyId |
| | | var data = { |
| | | "companyId": companyId |
| | | ,"deptId":deptId |
| | | ,"bizType":type |
| | | ,"confId":gateDto.id |