自动化立体仓库 - WCS系统
luxiaotao1123
2022-03-09 08c2e06c7d1cc0c58667f28c18fe4931fc3ec755
# ycq 条码显示
2个文件已修改
8 ■■■■■ 已修改文件
src/main/java/com/zy/core/thread/BarcodeThread.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/console.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/thread/BarcodeThread.java
@@ -51,6 +51,9 @@
                        JSONObject jsonObject = new JSONObject();
                        jsonObject.put("time", DateUtils.convert(new Date(), DateUtils.yyyyMMddHHmmss_F));
                        jsonObject.put("barcode", barcode);
                        if (OutputQueue.BARCODE.size() >= 32) {
                            OutputQueue.BARCODE.poll();
                        }
                        OutputQueue.BARCODE.offer(jsonObject);
                    }
                }
src/main/webapp/views/console.html
@@ -1230,20 +1230,17 @@
            success:function (res) {
                if(res.code === 200){
                    tData = eval(res.data);
                    console.log(tData)
                    if(tData.length<=5){
                        tData1 = tData
                    } else if (tData.length<=10){
                        tData1 = tData.slice(0,5)
                        tData.splice(0,5)
                        tData2 = tData
                        console.log(tData2)
                    } else if(tData.length<=15){
                        tData1 = tData.slice(0,5)
                        tData2 = tData.slice(6,10)
                        tData.splice(0,10)
                        tData3 = tData
                        console.log(tData3)
                    } else {
                        tData = tData.slice(-15)
                        tData1 = tData.slice(-15)
@@ -1265,7 +1262,6 @@
    function renderBarCode() {
        for (var i = 0;i<tData1.length;i++){
            console.log(tData1[i])
            var str1 = '<li><span>' + tData1[i].barcode + '</span><span class="right">' + tData1[i].time + '</span></li>'
            $('#barcode1').append(str1)
        }
@@ -1399,7 +1395,6 @@
            },
            method: 'POST',
            success: function (res) {
                console.log(res)
                layer.close(index);
                if (res.code === 200){
                    if (res.data.status) {