#
luxiaotao1123
2020-06-16 9fb48d2d5aef246f13918fcbc834a5ffa41c2006
#
2个文件已修改
44 ■■■■■ 已修改文件
src/main/webapp/static/js/pakStore/locMove.js 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pakStore/locMove.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/pakStore/locMove.js
@@ -102,4 +102,42 @@
        }
    })
}
}
var tips;
function locStatus(el) {
    let val = el.value;
    if (val === null|| val === ""){
        return;
    }
    $.ajax({
        url: baseUrl+"/locMast/"+val+"/auth",
        headers: {'token': localStorage.getItem('token')},
        dataType:'json',
        method: 'POST',
        success: function (res) {
            if (res.code === 200) {
                var status;
                if (res.data != null) {
                    status = res.data.locType$;
                } else {
                    status = "未找到";
                }
                tips = layer.tips(
                    "<span style='color:#333;'>"+status+"</span>",
                    el,
                    {
                        tipsMore: true,
                        area: ['150px'],
                        tips: [3,'#fff'],
                        time:0
                        ,maxWidth:500
                    });
            } else if (res.code === 403) {
                top.location.href = baseUrl+"/";
            } else {
                layer.msg(res.msg);
            }
        }
    });
}
src/main/webapp/views/pakStore/locMove.html
@@ -79,14 +79,14 @@
    <!-- 源库位 -->
    <div class="layui-inline">
        <div class="layui-input-inline">
            <input id="sourceLocNo" class="layui-input cool-auto-complete-div" type="text" placeholder="源库位" style="width: 150px;cursor: initial" autocomplete="off">
            <input id="sourceLocNo" class="layui-input cool-auto-complete-div" onkeyup="locStatus(this)" type="text" placeholder="源库位" style="width: 150px;cursor: initial" autocomplete="off">
        </div>
    </div>
    <div class="layui-form-mid" style="float: none; display: inline-block; margin-left: 10px">-</div>
    <!-- 目标库位 -->
    <div class="layui-inline">
        <div class="layui-input-inline">
            <input id="targetLocNo" class="layui-input cool-auto-complete-div" type="text" placeholder="目标库位" style="width: 150px;cursor: initial" autocomplete="off">
            <input id="targetLocNo" class="layui-input cool-auto-complete-div" onkeyup="locStatus(this)" type="text" placeholder="目标库位" style="width: 150px;cursor: initial" autocomplete="off">
        </div>
    </div>
    <button id="loc-move-btn" class="function-btn" onclick="locMove()" style="background: #4476A7;text-shadow: inherit;height: 45px;font-size: 15px;margin-left: 20px">库位移转</button>