| | |
| | | var insTbCount = 0; |
| | | var tableCache2 = []; |
| | | layui.config({ |
| | | base: baseUrl + "/static/layui/lay/modules/" |
| | | }).extend({ |
| | |
| | | {type: 'numbers'}, |
| | | {field: 'orderNo', title: '单据编号', templet: '#orderNoTpl'}, |
| | | {field: 'docType$', align: 'center', title: '类型', minWidth: 160, width: 160}, |
| | | {field: 'tkType', align: 'center', title: 'TK', minWidth: 160, width: 160,hide: true}, |
| | | {align: 'center', title: '明细', toolbar: '#tbLook', minWidth: 160, width: 160}, |
| | | {field: 'createTime$', title: '创建时间', minWidth: 200, width: 200}, |
| | | {field: 'settle$', align: 'center', title: '状态', templet: '#settleTpl', minWidth: 160, width: 160}, |
| | |
| | | {field: 'anfme', title: '木箱中铜箔数量', align: 'center', width: 90, style: 'font-weight: bold'}, |
| | | {field: 'count', title: '木箱中铜箔数量', align: 'center', width: 90, style: 'font-weight: bold'}, |
| | | {field: 'locNo', title: '货位', align: 'center', width: 100, templet: '#locNoTpl'}, |
| | | {field: 'tkType$', title: 'TK标记', align: 'center', width: 100}, |
| | | // {field: 'staNos', align: 'center', title: '出库站', merge: ['locNo'], templet: '#tbBasicTbStaNos'}, |
| | | // {type: 'checkbox', merge: ['locNo']}, |
| | | ]], |
| | |
| | | } |
| | | ,yes: function(index, layero){ |
| | | //按钮【退库】的回调 |
| | | pakout(tableCache, index); |
| | | pakout(tableCache2, index); |
| | | tableCache2 = [] |
| | | } |
| | | ,btn2: function(index, layero){ |
| | | //按钮【稍后处理】的回调 |
| | | layer.close(index) |
| | | tableCache2 = [] |
| | | //return false 开启该代码可禁止点击该按钮关闭 |
| | | } |
| | | }); |
| | |
| | | } |
| | | } |
| | | }) |
| | | |
| | | // 复选框事件 |
| | | table.on('checkbox(stoPreTab)', function(obj){ |
| | | tableCache2.push(obj.data) |
| | | }); |
| | | } |
| | | |
| | | function pakout(tableCache, layerIndex) { |