From ebf0db91e09be33fcbfe97ed5b91965dc2e61dfd Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期四, 01 八月 2024 10:54:26 +0800
Subject: [PATCH] 1. 托盘管理 2. 入库通知档导入功能 3. 工作档明细 新增来源单据类型及单据编号 4. 库存明细统计表 增加一栏ERP数量(需跟ERP确认接口实现方式)。 5. 存货档案、单据管理、库存管理可以支持模糊搜索(各个单据界面)。

---
 zy-asrs-wms/src/main/webapp/static/js/basBarcode/basBarcode.js |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/zy-asrs-wms/src/main/webapp/static/js/basBarcode/basBarcode.js b/zy-asrs-wms/src/main/webapp/static/js/basBarcode/basBarcode.js
index fe8b545..a115946 100644
--- a/zy-asrs-wms/src/main/webapp/static/js/basBarcode/basBarcode.js
+++ b/zy-asrs-wms/src/main/webapp/static/js/basBarcode/basBarcode.js
@@ -184,13 +184,9 @@
                 printBarcodes[i]["barcodeUrl"] = baseUrl + "/mac/code/auth?type=2&param=" + printBarcodes[i].barcode;
             }
         }
-        console.log(printBarcodes)
         var tpl = templateDom.html();
-        console.log(tpl)
         var template = Handlebars.compile(tpl);
-        console.log(template)
         var html = template({code:200, data: printBarcodes});
-        console.log(html)
         var box = $("#box");
         box.html(html);box.show();
         box.print({mediaPrint:true});
@@ -209,6 +205,11 @@
                 layDateRender(mData);
                 form.on('submit(editSubmit)', function (data) {
                     var loadIndex = layer.load(2);
+                    if (data.field.barcode == '' || data.field.num == '') {
+                        layer.close(loadIndex);
+                        layer.msg("璇疯緭鍏ュ弬鏁�", {icon: 2});
+                        return false;
+                    }
                     $.ajax({
                         url: baseUrl+"/basBarcode/"+(mData?'update':'generateBarcode')+"/auth",
                         headers: {'token': localStorage.getItem('token')},
@@ -226,7 +227,7 @@
                                 layer.msg(res.msg, {icon: 2});
                             }
                         }
-                    })
+                    });
                     return false;
                 });
                 $(layero).children('.layui-layer-content').css('overflow', 'visible');

--
Gitblit v1.9.1