自动化立体仓库 - WMS系统
pang.jiabao
2024-03-01 3485effe3f65dbfdeaf4c3c1efca3d9fa6cd4d94
src/main/webapp/static/js/locDetlStatis/locDetlStatis.js
@@ -1,11 +1,14 @@
var pageCurr;
function getCol() {
    var cols = [
        {field: 'anfme', align: 'center',title: '库存数量', style: 'font-weight: bold'}
        {field: 'brand', align: 'center',title: '牌号', style: 'font-weight: bold'},
        {field: 'matnr', align: 'center',title: '商品编号', style: 'font-weight: bold'},
        {field: 'workshop', align: 'center',title: '车间', style: 'font-weight: bold'},
        {field: 'weight', align: 'center',title: '库存重量(KG)', style: 'font-weight: bold'}
    ];
    arrRemove(detlCols, "field", "anfme")
    arrRemove(detlCols, "field", "zpallet")
    cols.push.apply(cols, detlCols);
    // arrRemove(detlCols, "field", "anfme")
    // arrRemove(detlCols, "field", "zpallet")
    // cols.push.apply(cols, detlCols);
    // cols.push({field: 'anfme', align: 'center',title: '数量', style: 'font-weight: bold'}
    // )
    return cols;
@@ -22,12 +25,17 @@
    tableIns = table.render({
        elem: '#locDetlStatis',
        headers: {token: localStorage.getItem('token')},
        url: baseUrl+'/locDetl/statis/auth',
        url: baseUrl+'/pla/statis/auth',
        page: true,
        limit: 20,
        limits: [20, 30, 50, 100, 200, 500],
        even: true,
        toolbar: '#toolbar',
        defaultToolbar: ['filter', 'exports', 'print', {
            title: '提示',
            layEvent: 'LAYTABLE_TIPS',
            icon: 'layui-icon-tips'
        }],
        cellMinWidth: 50,
        cols: [getCol()],
        request: {