自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-13 250e5afb499bfa4bb96cbcbfd335b678dd076f5e
#
1个文件已修改
44 ■■■■ 已修改文件
src/main/webapp/static/js/pakStore/emptyOut.js 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/pakStore/emptyOut.js
@@ -6,25 +6,28 @@
    var layDate = layui.laydate;
    var form = layui.form;
    // 获取可用入库站点
    $.ajax({
        url: baseUrl+"/available/take/site",
        headers: {'token': localStorage.getItem('token')},
        method: 'POST',
        success: function (res) {
            if (res.code === 200){
                var tpl = $("#takeSiteSelectTemplate").html();
                var template = Handlebars.compile(tpl);
                var html = template(res);
                $('#staNoSelect').append(html);
                form.render('select');
            } else if (res.code === 403){
                top.location.href = baseUrl+"/";
            }else {
                layer.msg(res.msg)
    // 获取出库口
    function getOutBound(){
        $.ajax({
            url: baseUrl+"/available/take/site",
            headers: {'token': localStorage.getItem('token')},
            method: 'POST',
            asymc: false,
            success: function (res) {
                if (res.code === 200){
                    var tpl = $("#takeSiteSelectTemplate").html();
                    var template = Handlebars.compile(tpl);
                    var html = template(res);
                    $('#staNoSelect').append(html);
                    form.render('select');
                } else if (res.code === 403){
                    top.location.href = baseUrl+"/";
                }else {
                    layer.msg(res.msg)
                }
            }
        }
    })
        })
    }
    // 数据渲染
    tableIns = table.render({
@@ -76,6 +79,7 @@
                top.location.href = baseUrl+"/";
            }
            pageCurr=curr;
            getOutBound();
            limit();
            form.on('checkbox(tableCheckbox)', function (data) {
                var _index = $(data.elem).attr('table-index')||0;
@@ -106,6 +110,7 @@
        pageCurr = 1;
        $('#detlTable').css("display", 'none');
        tableReload(false);
        getOutBound();
    });
    // 搜索栏重置事件
@@ -114,6 +119,7 @@
        clearFormVal($('#search-box'));
        $('#detlTable').css("display", 'none');
        tableReload(false);
        getOutBound();
    });
})
@@ -146,5 +152,3 @@
        }
    });
}