自动化立体仓库 - WMS系统
lty
2025-04-27 a299fc89729094c6f0610be6439000347a160703
src/main/webapp/static/js/locDetlStatis/check.js
@@ -20,28 +20,20 @@
        cellMinWidth: 50,
        cols: [[
            {type: 'checkbox'},
//            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
//             ,{field: 'typeId', align: 'center',title: '路径ID'}
            // ,{field: 'typeDesc', align: 'center',title: '作业类型'}
            {field: 'anfme', align: 'center',title: '库存数量(正少/负多)', style: 'font-weight: bold'},
            {field: 'orderNo', align: 'center',title: '盘点单编号', style: 'font-weight: bold'},
            {field: 'anfme', align: 'center',title: '盘点盈亏', style: 'font-weight: bold'},
            {field: 'createTime$', align: 'center',title: '创建时间', style: 'font-weight: bold'},
            {field: 'matnr', align: 'center',title: '商品编号', style: 'font-weight: bold'},
            {field: 'maktx', align: 'center',title: '商品名称', style: 'font-weight: bold'},
            {field: 'specs', align: 'center',title: '规格', style: 'font-weight: bold'},
            {field: 'batch', align: 'center',title: '批号', style: 'font-weight: bold'}
            // ,{field: 'appeUser$', align: 'center',title: '创建者',event: 'appeUser', style: 'cursor:pointer'}
            // ,{field: 'appeTime$', align: 'center',title: '添加时间'}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150}
        ]],
        request: {
            pageName: 'curr',
            pageSize: 'limit'
        },
        parseData: function (res) {
            // console.log(res)
            console.log(res)
            return {
                'code': res.code,
                'msg': res.msg,
@@ -172,6 +164,32 @@
                    });
                }
                break;
            case 'uploadData':
                var data = checkStatus.data;
                if (data.length === 0){
                    layer.msg('请选择数据');
                } else {
                    layer.confirm('确定上报'+(data.length===1?'此':data.length)+'条数据吗', function(){
                        $.ajax({
                            url: baseUrl+"/check/upload/auth",
                            headers: {'token': localStorage.getItem('token')},
                            data: {param: JSON.stringify(data)},
                            method: 'POST',
                            traditional:true,
                            success: function (res) {
                                if (res.code === 200){
                                    layer.closeAll();
                                    tableReload(false);
                                } else if (res.code === 403){
                                    top.location.href = baseUrl+"/";
                                } else {
                                    layer.msg(res.msg)
                                }
                            }
                        })
                    });
                }
                break;
            case 'exportData':
                layer.confirm('确定导出Excel吗', {shadeClose: true}, function(){
                    var titles=[];