#
luxiaotao1123
2020-06-22 93ab24dc700d4cd97cd80c727b15957d129aeb75
#
3个文件已修改
20 ■■■■ 已修改文件
src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/pakStore/locMove.js 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pakStore/locMove.html 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java
@@ -449,7 +449,7 @@
                throw new CoolException("更新源库位状态失败");
            }
        } else {
            throw new CoolException("预约源库位出库失败,状态:"+sourceLoc.getLocType$());
            throw new CoolException("源库位出库失败,状态:"+sourceLoc.getLocType$());
        }
        // 修改目标库位状态
        if (loc.getLocType().equals("O")) {
src/main/webapp/static/js/pakStore/locMove.js
@@ -50,6 +50,7 @@
            }
            pageCurr=curr;
            limit();
            clearSelect();
            form.on('checkbox(tableCheckbox)', function (data) {
                var _index = $(data.elem).attr('table-index')||0;
                if(data.elem.checked){
@@ -65,13 +66,13 @@
// 搜索库位物料
function getLoc(el) {
    setTimeout(function () {
    tableIns.reload({
        url: baseUrl+'/locDetl/list/auth'
        , where: {loc_no: el.value}
        , done:function (res) {
            limit();
            $("#targetLocNo").empty();
            layui.form.render('select');
                clearSelect();
            // 获取同一堆垛机的空库位
            http.post(baseUrl + "/group/empty/stock", {sourceLocNo: el.value}, function (res) {
                if (res.data != null) {
@@ -84,6 +85,8 @@
            });
        }
    });
    }, 100)
}
@@ -121,15 +124,14 @@
                $("#sourceLocNo").val("");
                $("#targetLocNo").empty();
                layui.form.render('select');
                layer.closeAll();
                layer.msg(res.msg);
                tableIns.reload({
                    data: [],
                    url: '',
                    done:function (res) {
                        limit();
                        limit();clearSelect();
                    }
                });
                layer.msg(res.msg);
            } else if (res.code === 403) {
                top.location.href = baseUrl + "/";
            } else {
@@ -139,6 +141,11 @@
    })
}
function clearSelect() {
    $("#targetLocNo").empty();
    layui.form.render('select');
}
// // 库位状态获取
// var tips;
// function locStatus(el) {
src/main/webapp/views/pakStore/locMove.html
@@ -99,6 +99,7 @@
<script type="text/javascript" src="../../static/js/pakStore/locMove.js" charset="utf-8"></script>
<script type="text/template" id="emptyLocStock">
    <option value="">请输入并选择</option>
    {{#each data}}
    <option value="{{this}}">{{this}}</option>
    {{/each}}