| | |
| | | {fixed: 'left', field: 'count', title: '实际数量', align: 'center', edit:'text', width: 120, style:'color: blue;font-weight: bold'} |
| | | ,{field: 'anfme', align: 'center',title: '数量'} |
| | | ,{field: 'matnr', align: 'center',title: '物料'} |
| | | ,{field: 'lgnum', align: 'center',title: '仓库号'} |
| | | ,{field: 'tbnum', align: 'center',title: '转储请求编号'} |
| | | // ,{field: 'lgnum', align: 'center',title: '仓库号'} |
| | | // ,{field: 'tbnum', align: 'center',title: '转储请求编号'} |
| | | // ,{field: 'tbpos', align: 'center',title: '行项目'} |
| | | ,{field: 'zmatid', align: 'center',title: '物料标签ID'} |
| | | // ,{field: 'zmatid', align: 'center',title: '物料标签ID'} |
| | | ,{field: 'maktx', align: 'center',title: '物料描述'} |
| | | ,{field: 'werks', align: 'center',title: '工厂'} |
| | | // ,{field: 'werks', align: 'center',title: '工厂'} |
| | | ,{field: 'altme', align: 'center',title: '单位'} |
| | | ,{field: 'zpallet', align: 'center',title: '托盘条码'} |
| | | ,{field: 'bname', align: 'center',title: '用户ID'} |
| | | // ,{field: 'bname', align: 'center',title: '用户ID'} |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:80} |
| | | ]], |
| | | done: function (res, curr, count) { |
| | |
| | | function addTableData(data) { |
| | | let applyData = []; |
| | | for (var i=0;i<data.length;i++){ |
| | | applyData.push({ |
| | | count: initCountVal, |
| | | anfme: initAnfmeVal, |
| | | removeBtn: true, |
| | | matnr: data[i].matNo, |
| | | maktx: data[i].matName, |
| | | altme: data[i].str1, |
| | | }) |
| | | let pass = false; |
| | | for (var j=0;j<matCodeData.length;j++){ |
| | | if (data[i].matNo === matCodeData[j].matnr) { |
| | | pass = true; |
| | | break; |
| | | } |
| | | } |
| | | if (!pass) { |
| | | applyData.push({ |
| | | count: initCountVal, |
| | | anfme: initAnfmeVal, |
| | | removeBtn: true, |
| | | matnr: data[i].matNo, |
| | | maktx: data[i].matName, |
| | | altme: data[i].str1, |
| | | }) |
| | | } |
| | | } |
| | | matCodeData.push.apply(matCodeData,applyData); |
| | | tableIns.reload({data: matCodeData}); |