| | |
| | | tableIns = table.render({ |
| | | elem: '#basArmMastExp', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: baseUrl+'/basArmMast/list/auth', |
| | | url: baseUrl+'/basArmMast/listArm/auth', |
| | | page: true, |
| | | limit: 15, |
| | | limits: [15, 30, 50, 100, 200, 500], |
| | |
| | | {field: 'matnr', align: 'center', title: '商品编号'}, |
| | | {field: 'po', align: 'center', title: 'PO'}, |
| | | {field: 'upc', align: 'center', title: 'UPC'}, |
| | | {field: 'sortingLine', align: 'center', title: '起点'}, |
| | | {field: 'staNo', align: 'center', title: '起点'}, |
| | | {field: 'status', align: 'center', title: '作业状态', templet: function(d){ |
| | | return '2.单码完成等待托盘完成'; // 因为现在只显示状态2,固定显示 |
| | | }}, |
| | |
| | | }; |
| | | } |
| | | |
| | | var records = res.data.records || []; |
| | | var records = res.data || []; |
| | | var groupMap = new Map(); // 用来汇总状态为2的数据 |
| | | |
| | | records.forEach(function(item) { |
| | | // 只处理状态为2的记录,其他状态直接忽略(隐藏) |
| | | |
| | | if (String(item.status) === '2') { |
| | | // 生成唯一标识(5个字段组合) |
| | | var key = [ |
| | | item.armNo || '', |
| | | item.sortingLine || '', |
| | | item.staNo || '', |
| | | item.barcode || '', |
| | | item.matnr || '', |
| | | item.orderNo || '' |
| | |
| | | matnr: item.matnr, |
| | | po: item.po || '', |
| | | upc: item.upc || '', |
| | | sortingLine: item.sortingLine, |
| | | staNo: item.staNo, |
| | | barcode: item.barcode, |
| | | supplier: item.supplier || '', |
| | | status: '2', // 固定显示为2 |