| | |
| | | var locDetlData = []; |
| | | function getCol() { |
| | | var cols = [ |
| | | {field: 'locNo', align: 'center',title: '库位号', merge: true, style: 'font-weight: bold'} |
| | | {field: 'locNo', align: 'center',title: '库位号', merge: true, style: 'font-weight: bold'}, |
| | | ]; |
| | | cols.push.apply(cols, detlCols); |
| | | cols.push({field: 'locNo',align: 'center', title: '操作',merge: true, toolbar: '#operate', width: 180}) |
| | | return cols; |
| | | } |
| | | |
| | |
| | | tableMerge.render(this); |
| | | limit(); |
| | | getOutBound(); |
| | | |
| | | } |
| | | }); |
| | | |
| | |
| | | } |
| | | }) |
| | | } |
| | | // 工具条点击事件 |
| | | table.on('tool(chooseData)', function (obj){ |
| | | var data = obj.data; |
| | | var layEvent = obj.event; |
| | | if (layEvent === 'remove') { |
| | | layer.confirm('确定要移除吗?', |
| | | function (i) { |
| | | layer.close(i); |
| | | var j = locDetlData.length; |
| | | while (j--) { |
| | | if (locDetlData[j].locNo === data.locNo) { |
| | | locDetlData.splice(j,1); |
| | | } |
| | | } |
| | | tableIns.reload({data: locDetlData}); |
| | | }) |
| | | } |
| | | }) |
| | | |
| | | $(document).on('click','#mat-query', function () { |
| | | let loadIndex = layer.msg('请求中...', {icon: 16, shade: 0.01, time: false}); |