| | |
| | | } |
| | | }); |
| | | }; |
| | | |
| | | // 扦样机解除急停 |
| | | function checkResetStop() { |
| | | var param = JSON.stringify(checkDto); |
| | |
| | | } |
| | | }); |
| | | }; |
| | | |
| | | //隐藏信息--替换为* |
| | | function replaceStr(str) { |
| | | if (!str) { |
| | |
| | | curCheckData = obj.data; |
| | | |
| | | curSampleData = obj.data; |
| | | if(!curCheckData.checkTime){ |
| | | if (!curCheckData.checkTime) { |
| | | curCheckData.checkTime = dateFtt("yyyy-MM-dd hh:mm:ss", new Date()); |
| | | } |
| | | curCheckData.checkUser = checkUser; |
| | |
| | | }); |
| | | }; |
| | | |
| | | /** |
| | | * 弹出提醒框 |
| | | * @param msg 提醒信息 |
| | | * @param data 数据信息,可能为空 |
| | | */ |
| | | function notify(msg, data) { |
| | | if (data) { |
| | | //赋值 |
| | | $("#resultMsg").text(msg); |
| | | $("#resultUserName").text(data.userName); |
| | | $("#resultPlateNum").text(data.plateNum); |
| | | if ("IN" == data.type) { |
| | | $("#resultType").text("入库-" + INOUT_PROGRESS_MSG(data.progress)); |
| | | } else { |
| | | $("#resultType").text("出库-" + INOUT_PROGRESS_MSG(data.progress)); |
| | | } |
| | | $("#resultIntelCard").text(data.intelCard); |
| | | |
| | | layer.open({ |
| | | type: 1, |
| | | offset: ['150px', '200px'], |
| | | area: '450px;', |
| | | shade: 0.8, |
| | | id: 'dialog_notify_info', |
| | | btn: ['确定'], |
| | | content: $('#dialog-from-notify'), |
| | | yes: function (index) { |
| | | layer.closeAll(); |
| | | } |
| | | }); |
| | | } else { |
| | | layer.alert(msg, {offset: ['300px', '300px']}); |
| | | } |
| | | } |
| | | |
| | | // ---------------------------粮食产地 -结束 -------------------// |