| | |
| | | tableIns = table.render({ |
| | | elem: '#stoQue', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: '/locMast/list/auth', |
| | | url: baseUrl+'/locMast/list/auth', |
| | | page: true, |
| | | limit: 10, |
| | | even: true, |
| | |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | {type: 'checkbox'} |
| | | ,{field: 'locNo', align: 'center',title: '库位号',event: 'locDetl'} |
| | | ,{field: 'locType$', align: 'center',title: '库位状态', width: 180,event: 'locDetl'} |
| | | ,{field: 'whsType$', align: 'center',title: '库位类型',event: 'locDetl'} |
| | | ,{field: 'crnNo', align: 'center',title: '堆垛机号',event: 'locDetl'} |
| | | ,{field: 'row1', align: 'center',title: '排',event: 'locDetl'} |
| | | ,{field: 'bay1', align: 'center',title: '列',event: 'locDetl'} |
| | | ,{field: 'lev1', align: 'center',title: '层',event: 'locDetl'} |
| | | ,{field: 'locNo', align: 'center',title: '库位号'} |
| | | ,{field: 'locType$', align: 'center',title: '库位状态', width: 180} |
| | | ,{field: 'whsType$', align: 'center',title: '库位类型'} |
| | | ,{field: 'crnNo', align: 'center',title: '堆垛机号'} |
| | | ,{field: 'row1', align: 'center',title: '排'} |
| | | ,{field: 'bay1', align: 'center',title: '列'} |
| | | ,{field: 'lev1', align: 'center',title: '层'} |
| | | ,{field: 'fullPlt', align: 'center',title: '满板',event: 'locDetl', templet:function(row){ |
| | | var html = "<input value='fullPlt' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'"; |
| | | if(row.fullPlt === 'Y'){html += " checked ";} |
| | | html += "disabled='disabled' >"; |
| | | return html; |
| | | },width:80} |
| | | ,{field: 'modiUser$', align: 'center',title: '修改人员',event: 'locDetl'} |
| | | ,{field: 'modiTime$', align: 'center',title: '修改时间', width: 180,event: 'locDetl'} |
| | | ,{field: 'modiUser$', align: 'center',title: '修改人员'} |
| | | ,{field: 'modiTime$', align: 'center',title: '修改时间', width: 180} |
| | | ,{ fixed: 'right', title:'操作', align: 'center', toolbar: '#operate'} |
| | | ]], |
| | | request: { |
| | |
| | | }, |
| | | done: function(res, curr, count) { |
| | | if (res.code === 403) { |
| | | top.location.href = "/"; |
| | | top.location.href = baseUrl+"/"; |
| | | } |
| | | pageCurr=curr; |
| | | limit(); |
| | |
| | | }, |
| | | done: function (res, curr, count) { |
| | | if (res.code === 403) { |
| | | top.location.href = "/"; |
| | | top.location.href = baseUrl+"/"; |
| | | } |
| | | pageCurr=curr; |
| | | limit(); |
| | |
| | | 'fields': fields |
| | | }; |
| | | $.ajax({ |
| | | url: "/wrkLastno/export/auth", |
| | | url: baseUrl+"/wrkLastno/export/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: JSON.stringify(param), |
| | | dataType:'json', |
| | |
| | | if (res.code === 200) { |
| | | table.exportFile(titles,res.data,'xls'); |
| | | } else if (res.code === 403) { |
| | | top.location.href = "/"; |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg) |
| | | } |
| | |
| | | tableIns1 = table.render({ |
| | | elem: '#locDetlByMap', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: '/locDetl/list/auth', |
| | | url: baseUrl+'/locDetl/list/auth', |
| | | page: true, |
| | | limit: 5, |
| | | skin: 'line', |
| | |
| | | }, |
| | | done: function(res, curr, count) { |
| | | if (res.code === 403) { |
| | | top.location.href = "/"; |
| | | top.location.href = baseUrl+"/"; |
| | | } |
| | | pageCur=curr; |
| | | form.on('checkbox(tableCheckbox)', function (data) { |
| | |
| | | }, |
| | | done: function (res, curr, count) { |
| | | if (res.code === 403) { |
| | | top.location.href = "/"; |
| | | top.location.href = baseUrl+"/"; |
| | | } |
| | | pageCurr=curr; |
| | | if (count === 1){ |