1.0.3
pda关联组托-隐藏物料名称,改为显示生成单号
| | |
| | | cols: [[ |
| | | {fixed: 'left', align: 'center', field: 'count', title: '数量', event: 'modify', style:'cursor: pointer;color: blue', width:50}, |
| | | {field: 'matNo', align: 'center', title: '物料编码', event: 'warehouse', style: 'cursor: pointer;color: blue'}, |
| | | {field: 'matName', align: 'center', title: '物料名称'} |
| | | {field: 'warehouse', align: 'center', title: '生成单号'} |
| | | // {field: 'matName', align: 'center', title: '物料名称'} |
| | | ]], |
| | | done: function (res, curr, count) { |
| | | } |
| | |
| | | for (var i=0;i<data.length;i++) { |
| | | var toPush = true; |
| | | for (var j=0;j<matData.length;j++){ |
| | | if (data[i].matNo === matData[j].matNo) { |
| | | if (data[i].matNo === matData[j].matNo && data[i].warehouse === matData[j].warehouse) { |
| | | matData[j].count = Number(matData[j].count) + Number(data[i].count); |
| | | toPush = false; |
| | | } |