自动化立体仓库 - WMS系统
zwl
6 小时以前 df79f2a0702de355d96c6889adf61977b4284005
1.修复登录页面
2.新增强制入库或者正常入库
5个文件已修改
98 ■■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/LocDetlController.java 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/locDetl/locDetl.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/index.html 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/locDetl/locDetl.html 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/login.html 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/LocDetlController.java
@@ -189,6 +189,7 @@
//            }
//        }
        excludeTrash(param);
        applyBeBatchFilter(param, wrapper);
        convert(param, wrapper);
        allLike(LocDetl.class, param.keySet(), wrapper, condition);
        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));}
@@ -215,6 +216,29 @@
                }
            }
        }
    }
    private <T> void applyBeBatchFilter(Map<String, Object> map, EntityWrapper<T> wrapper) {
        Object beBatchObj = map.remove("beBatch");
        if (beBatchObj == null) {
            beBatchObj = map.remove("be_batch");
        }
        if (beBatchObj == null) {
            return;
        }
        String beBatch = String.valueOf(beBatchObj).trim();
        if (Cools.isEmpty(beBatch)) {
            return;
        }
        if ("1".equals(beBatch)) {
            wrapper.eq("be_batch", 1);
            return;
        }
        if ("0".equals(beBatch)) {
            wrapper.andNew().isNull("be_batch").or().eq("be_batch", 0);
            return;
        }
        wrapper.eq("be_batch", beBatch);
    }
    @RequestMapping(value = "/locDetl/add/auth")
@@ -290,6 +314,7 @@
                map.remove("row");
            }
        }
        applyBeBatchFilter(map, wrapper);
        convert(map, wrapper);
        if (!row.equals("")) {
            wrapper.and()
src/main/webapp/static/js/locDetl/locDetl.js
@@ -1,4 +1,9 @@
var pageCurr;
function formatBeBatch(beBatch) {
    return beBatch === 1 ? '强制入库' : '正常入库';
}
function getCol() {
    var cols = [
        {type: 'checkbox'},
@@ -8,6 +13,9 @@
        ,{field: 'maktx', align: 'center',title: '商品名称', sort:true}
        ,{field: 'orderNo', align: 'center',title: '单据编号', hide: true}
        ,{field: 'batch', align: 'center',title: '批号', sort:true}
        ,{field: 'beBatch', align: 'center',title: '入库类型', templet: function(d) {
                return formatBeBatch(d.beBatch);
            }}
        ,{field: 'anfme', align: 'center',title: '数量'}
        ,{field: 'zpallet', align: 'center',title: 'SN'}
        ,{field: 'specs', align: 'center',title: '规格'}
@@ -533,6 +541,7 @@
    form.on('submit(reset)', function (data) {
        pageCurr = 1;
        clearFormVal($('#search-box'));
        form.render('select');
        tableReload(false);
    });
src/main/webapp/views/index.html
@@ -112,6 +112,11 @@
    top.location.href = "login.html?license=invalid";
  }
  function clearLicensePromptState() {
    sessionStorage.removeItem("licensePanelAutoOpen");
    sessionStorage.removeItem("licenseInvalidReason");
  }
  $(function () {
    if ("" === localStorage.getItem('token')) {
      top.location.href = baseUrl + "/login";
@@ -171,9 +176,12 @@
            redirectToLicensePage('系统当前未检测到可用许可证,请重新导入新的许可证。');
            return;
          }
          clearLicensePromptState();
          if (days <= 30) {
            $("#licenseShow").show()
            $("#licenseDays").html(days)
          } else {
            $("#licenseShow").hide()
          }
        }else {
          redirectToLicensePage(res.msg || '许可证校验失败,请重新导入新的许可证。');
src/main/webapp/views/locDetl/locDetl.html
@@ -44,6 +44,15 @@
    </div>
    <div class="layui-inline">
        <div class="layui-input-inline">
            <select name="beBatch" class="layui-input" autocomplete="off">
                <option value="">入库类型</option>
                <option value="1">强制入库</option>
                <option value="0">正常入库</option>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <div class="layui-input-inline">
            <select name="frozen" class="layui-input" type="text" autocomplete="off">
                <!--                    <option style="display: none"></option>-->
                <option value="">冻结否</option>
src/main/webapp/views/login.html
@@ -314,9 +314,17 @@
        if (!needOpen) {
            return;
        }
        verifyLicenseAvailability(function (isValid) {
            if (isValid) {
                clearLicensePromptState();
                hideLicenseEntry();
                clearLicenseQueryFlag();
                return;
            }
        var message = sessionStorage.getItem("licenseInvalidReason") || "系统当前未检测到可用许可证,请先导入新的许可证。";
        showLicenseEntry(message);
        openLicenseTool(message);
        });
    }
    function showLicenseEntry(message) {
@@ -324,6 +332,39 @@
        if (message) {
            $("#licenseEntryMessage").text(message);
        }
    }
    function hideLicenseEntry() {
        $("#updateLicense").hide();
    }
    function clearLicensePromptState() {
        sessionStorage.removeItem("licensePanelAutoOpen");
        sessionStorage.removeItem("licenseInvalidReason");
    }
    function clearLicenseQueryFlag() {
        if (window.history && window.history.replaceState && getQueryValue("license") === "invalid") {
            window.history.replaceState(null, document.title, window.location.pathname);
        }
    }
    function verifyLicenseAvailability(callback) {
        $.ajax({
            url: baseUrl + "/license/getLicenseDays",
            method: 'GET',
            success: function (res) {
                if (res.code == 200) {
                    var days = Number(getResponseValue(res));
                    callback(!isNaN(days) && days >= 0);
                    return;
                }
                callback(false);
            },
            error: function () {
                callback(false);
            }
        });
    }
    function escapeHtml(text) {
@@ -645,8 +686,8 @@
            method: 'POST',
            success: function (res) {
                if (res.code == 200) {
                    sessionStorage.removeItem("licensePanelAutoOpen");
                    sessionStorage.removeItem("licenseInvalidReason");
                    clearLicensePromptState();
                    clearLicenseQueryFlag();
                    if (licenseToolState.uploadLayerIndex !== null) {
                        layer.close(licenseToolState.uploadLayerIndex);
                    }
@@ -717,6 +758,8 @@
            method: 'POST',
            success: function (res) {
                if (res.code === 200) {
                    clearLicensePromptState();
                    clearLicenseQueryFlag();
                    localStorage.setItem("token", res.data.token);
                    localStorage.setItem("username", res.data.username);
                    window.location.href = "index.html";