From 69cd9f59a0fabf12f8c9147fcba7f69817a870b3 Mon Sep 17 00:00:00 2001 From: jiazx0107@163.com <jiazx0107@163.com> Date: 星期一, 06 十一月 2023 23:40:59 +0800 Subject: [PATCH] 更新仓内抓拍2 --- igds-web/src/main/resources/static/admin/inout/inout-common.js | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 50 insertions(+), 1 deletions(-) diff --git a/igds-web/src/main/resources/static/admin/inout/inout-common.js b/igds-web/src/main/resources/static/admin/inout/inout-common.js index 231d61b..6609900 100644 --- a/igds-web/src/main/resources/static/admin/inout/inout-common.js +++ b/igds-web/src/main/resources/static/admin/inout/inout-common.js @@ -21,4 +21,53 @@ if (inoutProgress.indexOf("CARD_BACK") == -1) { $("#progress-cardBack").css("display", "none"); } -} \ No newline at end of file +} + +//閿欒鎻愰啋 +function alertError(msg) { + layer.alert(msg, { + icon: 5, + offset: ['300px', '300px'] + }); +} + +function alertSuccess(msg) { + layer.alert(msg, { + icon: 1, + offset: ['300px', '300px'] + }); +} + +/** + * 寮瑰嚭鎻愰啋妗� + * @param msg 鎻愰啋淇℃伅 + * @param data 鏁版嵁淇℃伅锛屽彲鑳戒负绌� + */ +function notifyProgress(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 { + alertError(msg); + } +} -- Gitblit v1.9.3