王佳豪
2021-03-16 d9cd01b4a8ff8f02d155a02d832a7ea407f180e6
src/main/webapp/views/pda/locNormalMove.html
@@ -24,15 +24,15 @@
    <div>
        <div class="layui-input-inline">
            <label class="layui-form-label" style="margin-left: 16px">源库区</label>
            <input class="layui-input" type="number" id="warehouse1" onkeyup="find()" placeholder="扫码 / 输入"
            <input class="layui-input" id="warehouse1" onkeyup="find(true)" placeholder="扫码 / 输入"
                   autocomplete="off" style="width: 60%">
        </div>
    </div>
    <div>
        <div class="layui-input-inline">
            <label class="layui-form-label">目标库区</label>
            <input class="layui-input" type="number" id="warehouse2" placeholder="扫码 / 输入"
                   autocomplete="off" style="width: 60%">
            <input class="layui-input" id="warehouse2" placeholder="扫码 / 输入"
                   autocomplete="off" style="width: 60%" onkeyup="exist('uuid', 'locArea', 'warehouse2')">
        </div>
    </div>
</header>
@@ -92,7 +92,7 @@
            return;
        }
        if (warehouse1 == warehouse2) {
            layer.msg("目标库区和源库区一致");
            layer.msg("目标库区和源库区不能一致");
            return;
        }
        // 判断勾选数据是否为空
@@ -131,7 +131,10 @@
    }
    /* 根据库区号检索物料信息 */
    find = () => {
    find = (flag) => {
        if (flag) {
            exist('uuid', 'locArea', 'warehouse1');
        }
        var warehouse = $("#warehouse1").val();
        var matnr = $("#matnr").val();
        // 查询接口
@@ -144,7 +147,7 @@
                if (res.code === 200) {
                    tableIns.reload({
                        data: res.data,
                    })
                    });
                } else if (res.code === 403) {
                    top.location.href = baseUrl + "/pda";
                } else {
@@ -168,7 +171,7 @@
     * @param warn true:红色字体
     */
    function tips(msg, warn) {
        layer.msg(msg, {icon: warn?2:1})
        layer.msg(msg, {icon: warn ? 2 : 1})
    }
    function reset() {
@@ -176,6 +179,7 @@
        $('#warehouse2').val("");
        $('#matnr').val("");
        tableIns.reload({data: []});
        layer.closeAll();
    }
</script>
</html>