From 37c4642530eb12d9dad13d1e9a5f37640a0230ff Mon Sep 17 00:00:00 2001 From: jiazx0107@163.com <jiazx0107@163.com> Date: 星期一, 03 七月 2023 16:25:18 +0800 Subject: [PATCH] 优化出入库信息-条形码打印 --- igds-web/src/main/resources/static/admin/inout/in-sample.js | 31 +++---------------------------- 1 files changed, 3 insertions(+), 28 deletions(-) diff --git a/igds-web/src/main/resources/static/admin/inout/in-sample.js b/igds-web/src/main/resources/static/admin/inout/in-sample.js index 6824ee7..cfbf7aa 100644 --- a/igds-web/src/main/resources/static/admin/inout/in-sample.js +++ b/igds-web/src/main/resources/static/admin/inout/in-sample.js @@ -309,7 +309,8 @@ btnAlign: 'c', btn: ['鎵撳嵃骞朵繚瀛�', '浠呬繚瀛�', '鍏抽棴鍙栨秷'], yes: function () { - printSimpleStart(); + printBar(curSampleData); + submit(); }, btn2: function () { // 鏇存柊鍒伴〉闈� var data = form.val("form-detail"); @@ -321,32 +322,6 @@ layer.closeAll(); }, closeBtn: 0 - }); -} - - -//鎵ц鎵撳嵃 -function printSimpleStart() { - var index = layer.load(); - $.ajax({ - type: "POST", - url: "../../basic/inout/report/bill-simple", - dataType: "json", - contentType: "application/json;charset=UTF-8", - data: JSON.stringify(curSampleData), - success: function (result) { - layer.close(index); - if (result.code != "0000") { - alertError(result.msg); - } else { - printSimpleBill(result.data); - submit(); - } - }, - error: function () { - layer.close(index); - alertError("鎵撳嵃鍗曟嵁璋冪敤澶辫触"); - } }); } @@ -370,7 +345,7 @@ success: function (result) { if (result.code != "0000") { layer.close(index); - notify(result.msg, result.data); + alertError(result.msg); } else { layer.closeAll(); curSampleData = null; -- Gitblit v1.9.3