| | |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | {fixed: 'left', align: 'center', field: 'count', title: '数量', style:'color: blue', width:50}, |
| | | {field: 'matNo', align: 'center', title: '商品编号'}, |
| | | {field: 'matName', align: 'center', title: '商品名称'} |
| | | {field: 'matnr', align: 'center', title: '商品编号'}, |
| | | {field: 'maktx', align: 'center', title: '商品名称'} |
| | | ]], |
| | | done: function (res, curr, count) { |
| | | |
| | |
| | | // 添加表格数据 |
| | | var matData = []; |
| | | function addTableData(data) { |
| | | if (isEmpty(data.matName)){ |
| | | if (isEmpty(data.maktx)){ |
| | | tips("提取失败", true); |
| | | return; |
| | | } |
| | | let toPush = true; |
| | | for (var j=0;j<matData.length;j++){ |
| | | if (data.matNo === matData[j].matNo) { |
| | | if (data.matnr === matData[j].matnr) { |
| | | matData[j].count = Number(matData[j].count) + Number(data.count); |
| | | toPush = false; |
| | | } |
| | |
| | | <option value="{{this}}">{{this}}</option> |
| | | {{/each}} |
| | | </script> |
| | | </html> |
| | | </html> |