自动化立体仓库 - WMS系统
luxiaotao1123
2022-03-25 6d51af4d82956e1194deb52d1427190ecbaa0a81
src/main/webapp/static/js/matCode/matCode.js
@@ -1,5 +1,15 @@
var pageCurr;
var printMatCodeNos = [];
function getCol() {
    var cols = [
        {type: 'checkbox'}
    ];
    cols.push.apply(cols, matCols);
    cols.push({field: 'modiUser$', align: 'center',title: '修改人员', hide: true}
        ,{field: 'modiTime$', align: 'center',title: '修改时间', hide: true}
        ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:80})
    return cols;
}
layui.use(['table','laydate', 'form','upload'], function(){
    var table = layui.table;
    var $ = layui.jquery;
@@ -19,23 +29,7 @@
        even: true,
        toolbar: '#toolbar',
        cellMinWidth: 50,
        cols: [[
            {type: 'checkbox'}
//            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
            ,{field: 'matNo', align: 'center',title: '物料编码'}
            // ,{field: 'barcode', align: 'center',title: '条码'}
            ,{field: 'matName', align: 'center',title: '物料名称'}
            ,{field: 'str2', align: 'center',title: '物料规格'}
            ,{field: 'str3', align: 'center',title: '颜色'}
            ,{field: 'num1', align: 'center',title: '重量'}
            ,{field: 'str1', align: 'center',title: '物料单位'}
            ,{field: 'str4', align: 'center',title: '客户'}
            ,{field: 'modiUser$', align: 'center',title: '修改人员', hide: true}
            ,{field: 'modiTime$', align: 'center',title: '修改时间', hide: true}
            // ,{field: 'status', align: 'center',title: ''}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120}
        ]],
        cols: [getCol()],
        request: {
            pageName: 'curr',
            pageSize: 'limit'
@@ -125,7 +119,7 @@
                            success: function (res) {
                                if (res.code === 200){
                                    layer.closeAll();
                                    tableReload(false);
                                    $(".layui-laypage-btn")[0].click();
                                } else if (res.code === 403){
                                    top.location.href = baseUrl+"/";
                                } else {