| | |
| | | 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; |
| | |
| | | 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: { |