#
luxiaotao1123
2020-07-22 dc210006de9ebe049c0dd5fcc1afcf1b23fa2de8
src/main/webapp/static/js/stoMan/stoQue.js
@@ -7,6 +7,12 @@
    var layDate = layui.laydate;
    var form = layui.form;
    layDate.render({
        elem: '.layui-laydate-range'
        ,type: 'datetime'
        ,range: true
    });
    // 数据渲染
    tableIns = table.render({
        elem: '#stoQue',
@@ -19,21 +25,21 @@
        cellMinWidth: 50,
        cols: [[
            {type: 'checkbox'}
            ,{field: 'locNo', align: 'center',title: '库位号',event: 'locDetl'}
            ,{field: 'locType$', align: 'center',title: '库位状态', width: 180,event: 'locDetl'}
            ,{field: 'whsType$', align: 'center',title: '库位类型',event: 'locDetl'}
            ,{field: 'crnNo', align: 'center',title: '堆垛机号',event: 'locDetl'}
            ,{field: 'row1', align: 'center',title: '排',event: 'locDetl'}
            ,{field: 'bay1', align: 'center',title: '列',event: 'locDetl'}
            ,{field: 'lev1', align: 'center',title: '层',event: 'locDetl'}
            ,{field: 'fullPlt', align: 'center',title: '满板',event: 'locDetl', templet:function(row){
            ,{field: 'locNo', align: 'center',title: '库位号'}
            ,{field: 'locType$', align: 'center',title: '库位状态', width: 180, style: 'color: #8E2323'}
            ,{field: 'whsType$', align: 'center',title: '库位类型'}
            ,{field: 'crnNo', align: 'center',title: '堆垛机号'}
            ,{field: 'row1', align: 'center',title: '排'}
            ,{field: 'bay1', align: 'center',title: '列'}
            ,{field: 'lev1', align: 'center',title: '层'}
            ,{field: 'fullPlt', align: 'center',title: '满板', templet:function(row){
                    var html = "<input value='fullPlt' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
                    if(row.fullPlt === 'Y'){html += " checked ";}
                    html += "disabled='disabled' >";
                    return html;
                },width:80}
            ,{field: 'modiUser$', align: 'center',title: '修改人员',event: 'locDetl'}
            ,{field: 'modiTime$', align: 'center',title: '修改时间', width: 180,event: 'locDetl'}
            ,{field: 'modiUser$', align: 'center',title: '修改人员'}
            ,{field: 'modiTime$', align: 'center',title: '修改时间', width: 180}
            ,{ fixed: 'right', title:'操作', align: 'center', toolbar: '#operate'}
        ]],
        request: {
@@ -53,7 +59,7 @@
        },
        done: function(res, curr, count) {
            if (res.code === 403) {
                top.location.href = "/";
                top.location.href = baseUrl+"/";
            }
            pageCurr=curr;
            limit();
@@ -86,7 +92,7 @@
            },
            done: function (res, curr, count) {
                if (res.code === 403) {
                    top.location.href = "/";
                    top.location.href = baseUrl+"/";
                }
                pageCurr=curr;
                limit();
@@ -103,7 +109,7 @@
                alert("还没做");
                break;
            case 'exportData':
                layer.confirm('确定导出Excel吗', function(){
                layer.confirm('确定导出Excel吗', {shadeClose: true}, function(){
                    var titles=[];
                    var fields=[];
                    obj.config.cols[0].map(function (col) {
@@ -132,7 +138,7 @@
                            if (res.code === 200) {
                                table.exportFile(titles,res.data,'xls');
                            } else if (res.code === 403) {
                                top.location.href = "/";
                                top.location.href = baseUrl+"/";
                            } else {
                                layer.msg(res.msg)
                            }
@@ -167,7 +173,7 @@
        locNo = val;
        layer.open({
            type: 2,
            title: '工作档明细',
            title: '库存明细',
            maxmin: true,
            area: [top.detailWidth, top.detailHeight],
            shadeClose: true,
@@ -223,7 +229,7 @@
            },
            done: function(res, curr, count) {
                if (res.code === 403) {
                    top.location.href = "/";
                    top.location.href = baseUrl+"/";
                }
                pageCur=curr;
                form.on('checkbox(tableCheckbox)', function (data) {
@@ -265,7 +271,7 @@
            },
            done: function (res, curr, count) {
                if (res.code === 403) {
                    top.location.href = "/";
                    top.location.href = baseUrl+"/";
                }
                pageCurr=curr;
                if (count === 1){