| | |
| | | ,{field: 'row1', align: 'center',title: '排', sort:true} |
| | | ,{field: 'bay1', align: 'center',title: '列', sort:true} |
| | | ,{field: 'lev1', align: 'center',title: '层', sort:true} |
| | | ,{field: 'group1', align: 'center',title: '组', sort:true} |
| | | ,{field: 'locAttribute', align: 'center',title: '深浅库位号', sort:true} |
| | | ,{field: 'fullPlt', align: 'center',title: '满板', templet:function(row){ |
| | | var html = "<input value='fullPlt' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' disabled table-index='"+row.LAY_TABLE_INDEX+"'"; |
| | | if(row.fullPlt === 'Y'){html += " checked ";} |
| | |
| | | }) |
| | | }); |
| | | break; |
| | | case "sync": |
| | | $.ajax({ |
| | | url: baseUrl + "/locMast/init/syncWcs", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'GET', |
| | | success: function (res) { |
| | | if (res.code === 200){ |
| | | layer.msg(res.msg) |
| | | } else if (res.code === 403){ |
| | | parent.location.href = "/"; |
| | | }else { |
| | | layer.msg(res.msg) |
| | | } |
| | | } |
| | | }) |
| | | break; |
| | | } |
| | | }); |
| | | |
| | |
| | | form.on('submit(edit)', function () { |
| | | method("/locMast/update/auth") |
| | | }); |
| | | // 数据修改动作 |
| | | // 修改合同号动作 |
| | | form.on('submit(pakoutPreview)', function () { |
| | | method("/locDetl/updateBatch/auth") |
| | | }); |