王佳豪
2021-03-16 d9cd01b4a8ff8f02d155a02d832a7ea407f180e6
src/main/webapp/views/pda/locNormalOut.html
@@ -47,7 +47,7 @@
    <div>
        <div class="layui-input-inline">
            <label class="layui-form-label" style="margin-left: 32px">库区</label>
            <input class="layui-input" type="number" id="warehouse" onkeyup="findCode(this, 'warehouse')" placeholder="扫码 / 输入"
            <input class="layui-input" id="uuid" onkeyup="findCode(this, 'uuid')" placeholder="扫码 / 输入"
                   autocomplete="off">
        </div>
        <div class="layui-input-inline">
@@ -105,7 +105,7 @@
    // 表格数据
    var normalOutList = [];
    window.onload = function () {
        document.getElementById("warehouse").focus();
        document.getElementById("uuid").focus();
    }
    /**
@@ -176,8 +176,9 @@
    /* 扫码、输入库区和物料编码 */
    function findCode(el, type) {
        switch (type) {
            case 'warehouse':
            case 'uuid':
                warehouseBar = el.value;
                exist('uuid', 'locArea');
                break;
            case 'matnr':
                matnrBar =  el.value;
@@ -279,7 +280,7 @@
            return;
        }
        // 库区赋值
        var warehouse = $('#warehouse').val();
        var warehouse = $('#uuid').val();
        data.map(function (item) {
           item.warehouse =  warehouse;
        });
@@ -297,7 +298,7 @@
                if (res.code === 200) {
                    layer.msg("出库成功");
                    $("#matnr").val(null);
                    $("#warehouse").val(null);
                    $("#uuid").val(null);
                    warehouseBar = null;
                    matnrBar = null;
                    normalOutList = [];
@@ -314,10 +315,11 @@
    }
    function reset() {
        $("#warehouse").val(null);
        $("#uuid").val(null);
        $("#matnr").val(null);
        normalOutList = [];
        tableIns.reload({data: normalOutList});
        layer.closeAll();
    }
</script>
</html>