王佳豪
2021-03-25 960d4eff85f99f138eda0ac360d2870882156a47
src/main/webapp/views/pda/combPro.html
@@ -55,13 +55,13 @@
<body>
<!-- 头部 -->
<header>
    <div class="layui-input-inline">
        <label class="layui-form-label">条码</label>
        <input class="layui-input" type="number" id="code" onkeyup="findCode(this)" oninput="if(value.length>8)value=value.slice(0,8)" placeholder="扫码 / 输入" autocomplete="off">
    </div>
    <div class="layui-input-inline" style="margin-top: 5px">
        <label class="layui-form-label">单号</label>
        <input class="layui-input" id="billNo" oninput="find(this)" placeholder="扫码 / 输入" autocomplete="off" style="width: 75%; height: 40px; margin-right: 0;">
        <label class="layui-form-label">&nbsp;&nbsp;&nbsp;单号</label>
        <input class="layui-input" id="billNo" oninput="find(this)" placeholder="扫码 / 输入" autocomplete="off" style="width: 70%; height: 40px; margin-right: 0;">
    </div>
    <div class="layui-input-inline">
        <label class="layui-form-label">托盘码</label>
        <input class="layui-input" type="number" id="code" onkeyup="findCode(this)" oninput="if(value.length>8)value=value.slice(0,8)" placeholder="扫码 / 输入" autocomplete="off">
    </div>
</header>
@@ -105,7 +105,7 @@
</body>
<script>
    window.onload = function(){document.getElementById("code").focus();}
    window.onload = function(){document.getElementById("billNo").focus();}
    var tableIns;
    var countLayer;
    layui.use(['table','laydate', 'form'], function() {
@@ -120,9 +120,9 @@
            limit: 500,
            cellMinWidth: 50,
            cols: [[
                {fixed: 'left', align: 'center', field: 'count', title: '数量', event: 'modify', style:'cursor: pointer;color: blue', width:50},
                {field: 'matNo', align: 'center', title: '物料编码'},
                {field: 'warehouse', align: 'center', title: '生产单号'}
                {field: 'mnemonic', align: 'center', title: '生产单号'},
                {fixed: 'right', align: 'center', field: 'count', title: '数量', event: 'modify', style:'cursor: pointer;color: blue', width:50},
//                {field: 'matName', align: 'center', title: '物料名称'}
            ]],
            done: function (res, curr, count) {
@@ -156,9 +156,9 @@
    });
    function findCode(el) {
        if (el.value.length === 7) {
            $('#billNo').focus();
        }
//        if (el.value.length === 7) {
//            $('#code').focus();
//        }
    }
    // 添加表格数据
@@ -177,7 +177,7 @@
            }
        }
        tableIns.reload({data: matData});
        $("#comb-btn").focus();
//        $("#comb-btn").focus();
    }
@@ -215,7 +215,7 @@
                    tips(res.msg, true)
                }
            }
        })
        });
    }
    /*************************************  数量  ****************************************/