|  |  | 
 |  |  |     tableIns = table.render({ | 
 |  |  |         elem: '#agvLocMast', | 
 |  |  |         headers: {token: localStorage.getItem('token')}, | 
 |  |  |         url: baseUrl+'/agvLocMast/list/auth', | 
 |  |  |         url: baseUrl+'/agv/locMast/list/auth', | 
 |  |  |         page: true, | 
 |  |  |         limit: 16, | 
 |  |  |         limits: [16, 30, 50, 100, 200, 500], | 
 |  |  | 
 |  |  |             // ,{field: 'locSts', align: 'center',title: ''} | 
 |  |  |             // ,{field: 'sheetNo', align: 'center',title: ''} | 
 |  |  |             //,{field: 'crnNo', align: 'center',title: '堆垛机号'} | 
 |  |  |             ,{field: 'qrCodeValue', align: 'center',title: '二维码值', sort:true} | 
 |  |  |             //,{field: 'qrCodeValue', align: 'center',title: '二维码值', sort:true} | 
 |  |  |             ,{field: 'row1', align: 'center',title: '排', sort:true} | 
 |  |  |             ,{field: 'bay1', align: 'center',title: '列', sort:true} | 
 |  |  |             ,{field: 'lev1', align: 'center',title: '层', sort:true} | 
 |  |  |             ,{field: 'floor', align: 'center',title: '楼', sort:true} | 
 |  |  |             ,{field: 'barcode', align: 'center',title: '货架码', sort:true} | 
 |  |  |             ,{field: 'locType2', 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 ";} | 
 |  |  | 
 |  |  |             // ,{field: 'barcode', align: 'center',title: ''} | 
 |  |  |             // ,{field: 'PdcType', align: 'center',title: ''} | 
 |  |  |             // ,{field: 'ctnNo', align: 'center',title: ''} | 
 |  |  |             //,{field: 'locType1$', align: 'center',title: '高低类型'} | 
 |  |  |             ,{field: 'locType1$', align: 'center',title: '库位类型'} | 
 |  |  |             // ,{field: 'locType2$', align: 'center',title: '宽窄类型'} | 
 |  |  |             // ,{field: 'locType3$', align: 'center',title: '轻重类型'} | 
 |  |  |  | 
 |  |  | 
 |  |  |                 } else { | 
 |  |  |                     layer.confirm('确定删除'+(data.length===1?'此':data.length)+'条数据吗', function(){ | 
 |  |  |                         $.ajax({ | 
 |  |  |                             url: baseUrl+"/agvLocMast/delete/auth", | 
 |  |  |                             url: baseUrl+"/agv/locMast/delete/auth", | 
 |  |  |                             headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                             data: {param: JSON.stringify(data)}, | 
 |  |  |                             method: 'POST', | 
 |  |  | 
 |  |  |                         'fields': fields | 
 |  |  |                     }; | 
 |  |  |                     $.ajax({ | 
 |  |  |                         url: baseUrl+"/agvLocMast/export/auth", | 
 |  |  |                         url: baseUrl+"/agv/locMast/export/auth", | 
 |  |  |                         headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                         data: JSON.stringify(param), | 
 |  |  |                         dataType:'json', | 
 |  |  | 
 |  |  |                 layer.prompt({title: '请输入口令,并重置库位', formType: 1,   shadeClose: true}, function(pass, idx){ | 
 |  |  |                     http.get(baseUrl+"/locMast/init/pwd", {pwd: pass}, function (res) { | 
 |  |  |                         if (res.data) { | 
 |  |  |                             layer.open({ | 
 |  |  |                                 type: 1, | 
 |  |  |                                 title: '初始化库位', | 
 |  |  |                                 area: ["400px"], | 
 |  |  |                                 maxmin: true, | 
 |  |  |                                 shadeClose: true, | 
 |  |  |                                 content: $("#resetLocDiv"), | 
 |  |  |                                 success: function (layero, index) { | 
 |  |  |  | 
 |  |  |                             // layer.open({ | 
 |  |  |                             //     type: 1, | 
 |  |  |                             //     title: '初始化库位', | 
 |  |  |                             //     area: ["400px"], | 
 |  |  |                             //     maxmin: true, | 
 |  |  |                             //     shadeClose: true, | 
 |  |  |                             //     content: $("#resetLocDiv"), | 
 |  |  |                             //     success: function (layero, index) { | 
 |  |  |                             // | 
 |  |  |                             //     } | 
 |  |  |                             // }) | 
 |  |  |                             $.ajax({ | 
 |  |  |                                 url: baseUrl+"/agv/locMast/init/auth", | 
 |  |  |                                 headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                                 data: JSON.stringify("param"), | 
 |  |  |                                 dataType:'json', | 
 |  |  |                                 contentType:'application/json;charset=UTF-8', | 
 |  |  |                                 method: 'POST', | 
 |  |  |                                 success: function (res) { | 
 |  |  |                                     layer.closeAll(); | 
 |  |  |                                     if (res.code === 200) { | 
 |  |  |                                         table.exportFile(titles,res.data,'xls'); | 
 |  |  |                                     } else if (res.code === 403) { | 
 |  |  |                                         top.location.href = baseUrl+"/"; | 
 |  |  |                                     } else { | 
 |  |  |                                         layer.msg(res.msg) | 
 |  |  |                                     } | 
 |  |  |                                 } | 
 |  |  |                             }) | 
 |  |  |                             }); | 
 |  |  |                         } else { | 
 |  |  |                             layer.msg("口令错误"); | 
 |  |  |                         } | 
 |  |  | 
 |  |  |     // 初始化保存 | 
 |  |  |     form.on('submit(initDo)', function (data) { | 
 |  |  |         $.ajax({ | 
 |  |  |             url: baseUrl+"/locMast/init/auth", | 
 |  |  |             url: baseUrl+"/agv/locMast/init/auth", | 
 |  |  |             headers: {'token': localStorage.getItem('token')}, | 
 |  |  |             data: data.field, | 
 |  |  |             method: 'POST', | 
 |  |  | 
 |  |  |             lev1: $('#lev1').val(), | 
 |  |  |             floor: $('#floor').val(), | 
 |  |  |             fullPlt: $('#fullPlt').val(), | 
 |  |  |             locType: $('#locType').val(), | 
 |  |  |             locType1: $('#locType1').val(), | 
 |  |  |             outEnable: $('#outEnable').val(), | 
 |  |  |             ioTime: top.strToDate($('#ioTime\\$').val()), | 
 |  |  |             firstTime: top.strToDate($('#firstTime\\$').val()), | 
 |  |  | 
 |  |  |  | 
 |  |  |         }; | 
 |  |  |         $.ajax({ | 
 |  |  |             url: baseUrl+"/avgLocMast/"+name+"/auth", | 
 |  |  |             url: baseUrl+"/agv/locMast/"+name+"/auth", | 
 |  |  |             headers: {'token': localStorage.getItem('token')}, | 
 |  |  |             data: top.reObject(data), | 
 |  |  |             method: 'POST', |