| | |
| | | height: 'full-120', |
| | | cols: [[ |
| | | { type: 'checkbox' } |
| | | , { field: 'number', align: 'center', title: '序号' } |
| | | , { field: 'id', align: 'center', title: 'ID' } |
| | | , { field: 'devId', align: 'center', title: '台机ID' } |
| | | , { field: 'devNo', align: 'center', title: '台机号' } |
| | | , { field: 'bLocId', align: 'center', title: '库位ID' } |
| | | , { field: 'bLocNo', align: 'center', title: '库位码' } |
| | | |
| | | , { field: 'blocId', align: 'center', title: '库位ID', hide: true } |
| | | , { field: 'blocNo', align: 'center', title: '库位码' } |
| | | , { fixed: 'right', title: '操作', align: 'center', toolbar: '#operate', width: 120 } |
| | | ]], |
| | | request: { |
| | |
| | | if (res.data) { |
| | | layer.open({ |
| | | type: 1, |
| | | title: '初始化库位', |
| | | title: '台机绑定作业库位', |
| | | area: ["400px"], |
| | | maxmin: true, |
| | | shadeClose: true, |
| | |
| | | } |
| | | }); |
| | | |
| | | // 初始化保存 |
| | | form.on('submit(initDo)', function (data) { |
| | | $.ajax({ |
| | | url: baseUrl + "/locAroundBind/bind/init", |
| | | headers: { 'token': localStorage.getItem('token') }, |
| | | data: JSON.stringify(data.field), |
| | | contentType: 'application/json;charset=UTF-8', |
| | | method: 'POST', |
| | | async: false, |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | layer.msg(res.msg); |
| | | layer.closeAll(); |
| | | tableReload(false); |
| | | } else if (res.code === 403) { |
| | | parent.location.href = "/"; |
| | | } else { |
| | | layer.msg(res.msg) |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | // 监听行工具事件 |
| | | table.on('tool(locAroundBind)', function (obj) { |
| | | var data = obj.data; |