自动化立体仓库 - WMS系统
#
luxiaotao1123
2023-02-02 c78a960e4b93f5074cbed9cda38a0aba103bbec4
src/main/webapp/static/js/report/locMap.js
@@ -3,7 +3,30 @@
    var layer = layui.layer;
    var form = layui.form;
    getLocMapRows();
    getLocTable(1);
    function getLocMapRows() {
        $.ajax({
            url: baseUrl+"/report/viewLocMapList/rows.action",
            headers: {'token': localStorage.getItem('token')},
            method: 'POST',
            async: false,
            success: function (res) {
                if (res.code === 200) {
                    var tpl = $("#locMastRowTemplate").html();
                    var template = Handlebars.compile(tpl);
                    var html = template(res);
                    $('#rowSelect').append(html);
                    form.render('select');
                } else if (res.code === 403) {
                    top.location.href = baseUrl+"/";
                } else {
                    layer.msg(res.msg)
                }
            }
        });
    }
    function getLocTable(row){
        $.ajax({
@@ -18,7 +41,7 @@
                    var html = template(res.data);
                    $('#locMap').html(html);
                } else if (res.code === 403) {
                    top.location.href = baseUrl;
                    top.location.href = baseUrl+"/";
                } else {
                    layer.msg(res.msg)
                }
@@ -50,7 +73,7 @@
            maxmin: true,
            area: [top.detailWidth, top.detailHeight],
            shadeClose: true,
            content: 'locDetl.html',
            content: 'locDetlGroup.html',
            success: function(layero, index){
                locNo = value;
            }