| | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "../../basic/inout/update-check", |
| | | url: "../../basic/inout/submit-check", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(curCheckData), |
| | |
| | | $("#form-param")[0].reset(); |
| | | form.render(); |
| | | } |
| | | |
| | | /** |
| | | * 弹出提醒框 |
| | | * @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']}); |
| | | } |
| | | }; |
| | | |
| | | // ---------------------------粮食产地 -开始 -------------------// |
| | | // 弹出粮食产地下拉框 |