自动化立体仓库 - WMS系统
luxiaotao1123
2020-07-28 99184ad9016af212f3ae81fd60ac23edcdca34fc
#当前本版十分完美、冻结
2个文件已修改
20 ■■■■ 已修改文件
src/main/webapp/views/pda/comb.html 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pda/login.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pda/comb.html
@@ -20,7 +20,7 @@
<header>
    <div class="layui-input-inline">
        <label class="layui-form-label">条码</label>
        <input class="layui-input" type="text" id="code" placeholder="扫码 / 输入" autocomplete="off">
        <input class="layui-input" type="number" id="code" onkeyup="findCode(this)" placeholder="扫码 / 输入" autocomplete="off">
    </div>
    <div style="margin: 5px 5px">
        <button id="mat-btn" type="button" class="layui-btn layui-btn-normal" onclick="getMat()"><i class="layui-icon">+</i>提取</button>
@@ -66,6 +66,13 @@
    window.onload = function(){document.getElementById("code").focus();}
    function findCode(el) {
        if (el.value.length === 8) {
            $('#mat-btn').focus();
            getMat();
        }
    }
    var matCodeLayerIdx;
    function getMat() {
        matCodeLayerIdx = layer.open({
@@ -109,7 +116,6 @@
        $('#code').val("");
        matData = [];
        tableIns.reload({data: matData});
        tips("");
    }
    // 组托
@@ -157,9 +163,10 @@
     * @param warn true:红色字体
     */
    function tips(msg, warn) {
        let tips = $('#tips');
        tips.html(msg);
        tips.css("color", warn?"red":'#666');
        // var tips = $('#tips');
        // tips.html(msg);
        // tips.css("color", warn?"red":'#666');
        layer.msg(msg, {icon: warn?2:1})
    }
    document.onkeyup = function (e) {
@@ -170,6 +177,7 @@
            $("#comb-btn").focus();
            comb();
        } else if (key === 113) {
            $("#code").val("");
            $("#code").focus();
        }
    }
src/main/webapp/views/pda/login.html
@@ -105,7 +105,7 @@
        form.on('submit(login)', function (data) {
            var mobile = $("#mobile").val();
            if (mobile === "") {
                alert("请输入手机号");
                alert("请输入账号");
                return;
            }
            var password = $("#password").val();