自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-10-18 b5130c2e6d60c7f23e37f7c620375bc4e253caa3
src/main/webapp/static/js/locDetl/locDetl.js
@@ -9,7 +9,7 @@
        ,{field: 'anfme', align: 'center',title: '数量'}
        ,{field: 'zpallet', align: 'center',title: '托盘条码'}
        ,{field: 'specs', align: 'center',title: '配置'}
        ,{field: 'specs', align: 'center',title: '规格'}
        ,{field: 'model', align: 'center',title: '代码', hide: true}
        ,{field: 'color', align: 'center',title: '颜色', hide: true}
        ,{field: 'brand', align: 'center',title: '品牌', hide: true}
@@ -59,6 +59,9 @@
        url: baseUrl+'/locDetl/list/auth',
        page: true,
        limit: 20,
        where:{
          unreason: false
        },
        limits: [20, 30, 50, 100, 200, 500],
        even: true,
        toolbar: '#toolbar',
@@ -190,7 +193,7 @@
                        'locDetl': exportData,
                        'fields': fields
                    };
                    var loadIndex = layer.load(2);
                    var loadIndex = layer.msg('正在导出...', {icon: 16, shade: 0.01, time: false});
                    $.ajax({
                        url: baseUrl+"/locDetl/export/auth",
                        headers: {'token': localStorage.getItem('token')},
@@ -447,11 +450,35 @@
        tableReload(false);
    });
    // 搜索栏重置事件
    form.on('submit(reset)', function (data) {
        pageCurr = 1;
        clearFormVal($('#search-box'));
        tableReload(false);
    });
    //查看异常数据
    form.on('submit(unreason)', function (data) {
        pageCurr = 1;
        tableIns.reload({
            where: {
                unreason: true
            },
            page: {
                curr: pageCurr
            },
            done: function (res, curr, count) {
                if (res.code === 403) {
                    top.location.href = baseUrl+"/";
                }
                pageCurr=curr;
                limit(child);
            }
        });
    });
    // 时间选择器
@@ -473,7 +500,9 @@
});
function tableReload(child) {
    var searchData = {};
    var searchData = {
        unreason: false
    };
    $.each($('#search-box [name]').serializeArray(), function() {
        searchData[this.name] = this.value;
    });