自动化立体仓库 - WCS系统
#
whycq
2022-08-08 1a9f0067e8c8b7ef1111b2dd3cf087397943f14c
#
3个文件已修改
10 ■■■■ 已修改文件
src/main/java/com/zy/core/thread/SiemensDevpThread.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/console.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/console.html 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -50,7 +50,7 @@
    /**
     * 条码数量
     */
    private int barcodeSize = 1;
    private int barcodeSize = 3;
    public IoModeType ioMode = IoModeType.NONE;
    public SiemensDevpThread(DevpSlave slave) {
@@ -168,7 +168,7 @@
        }
        Thread.sleep(200);
        OperateResultExOne<byte[]> result2 = siemensS7Net.Read("DB100.190",(short)(barcodeSize*8));
        OperateResultExOne<byte[]> result2 = siemensS7Net.Read("DB100.150",(short)(barcodeSize*8));
        if (result2.IsSuccess) {
            for (int i = 0; i < barcodeSize; i++) {
                String barcode = siemensS7Net.getByteTransform().TransString(result2.Content,i*8,8, "UTF-8");
src/main/webapp/static/js/console.js
@@ -97,7 +97,6 @@
        var position = (i+1)*100
        floorBtn =
            "<button class='floorBtn btn-16' onclick='changFloor("+i+")' style='top: "+position+"px;'>" + floor +"</button>"
        console.log(mapInfo.areas[0].floors.length)
        if (mapInfo.areas[0].floors.length == 1) {
            floorBtnss = ''
        } else {
@@ -137,7 +136,7 @@
    $(".main-part").append(floorInfo)
    $("#line-total").html(total[0])
    listenChange();
    // listenChange();
}
function changFloor(e) {
@@ -146,5 +145,5 @@
    $(".main-part").append(floorInfo)
    $("#line-total").empty()
    $("#line-total").html(total[e])
    listenChange();
    // listenChange();
}
src/main/webapp/views/console.html
@@ -344,6 +344,7 @@
            url: baseUrl + '/console/barcode/output/site',
            method: 'GET',
            success: function (res) {
                console.log(res)
                if (res.code === 200) {
                    tData = eval(res.data);
                    if (tData.length <= 5) {