|  |  |  | 
|---|
|  |  |  | cols: [[ | 
|---|
|  |  |  | {type: 'checkbox', fixed: 'left'} | 
|---|
|  |  |  | //            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} | 
|---|
|  |  |  | ,{field: 'stationCode', align: 'center',sort:true,title: '工作站编号'} | 
|---|
|  |  |  | ,{field: 'devNo', align: 'center',sort:true,title: '工作位编号',width:150} | 
|---|
|  |  |  | // ,{field: 'decDesc', align: 'center',title: '设备描述'} | 
|---|
|  |  |  | ,{field: 'devNo', align: 'center',sort:true,title: '接驳位号',width:150} | 
|---|
|  |  |  | ,{field: 'decDesc', align: 'center',title: '名称'} | 
|---|
|  |  |  | // ,{field: 'devMk', align: 'center',title: '备注'} | 
|---|
|  |  |  | ,{field: 'inEnable', align: 'center',title: '可入', templet:function(row){ | 
|---|
|  |  |  | var html = "<input value='inEnable' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'"; | 
|---|
|  |  |  | 
|---|
|  |  |  | html += ">"; | 
|---|
|  |  |  | return html; | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | ,{field: 'autoing', align: 'center',title: '自动', templet:function(row){ | 
|---|
|  |  |  | ,{field: 'locSts$', align: 'center',title: '接驳位状态'} | 
|---|
|  |  |  | //,{field: 'wrkNo', align: 'center',title: '工作号', edit:true,  style:'color: blue;font-weight: bold'} | 
|---|
|  |  |  | ,{field: 'floor', align: 'center',title: '楼'} | 
|---|
|  |  |  | //,{field: 'locType1$', align: 'center',title: '高低'} | 
|---|
|  |  |  | ,{field: 'barcode', align: 'center',title: '条形码'} | 
|---|
|  |  |  | ,{field: 'locType1$', align: 'center',title: '接驳位类型'} | 
|---|
|  |  |  | ,{field: 'locType2', align: 'center',title: "货架类型"} | 
|---|
|  |  |  | ,{field: 'autoing', align: 'center',title: '自动调拨', templet:function(row){ | 
|---|
|  |  |  | var html = "<input value='autoing' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'"; | 
|---|
|  |  |  | if(row.autoing === 'Y'){html += " checked ";} | 
|---|
|  |  |  | html += ">"; | 
|---|
|  |  |  | return html; | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | // ,{field: 'loading', align: 'center',title: '有物', templet:function(row){ | 
|---|
|  |  |  | //         var html = "<input value='loading' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'"; | 
|---|
|  |  |  | //         if(row.loading === 'Y'){html += " checked ";} | 
|---|
|  |  |  | //         html += ">"; | 
|---|
|  |  |  | //         return html; | 
|---|
|  |  |  | //     }} | 
|---|
|  |  |  | // ,{field: 'canining', align: 'center',title: '能入', templet:function(row){ | 
|---|
|  |  |  | //         var html = "<input value='canining' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'"; | 
|---|
|  |  |  | //         if(row.canining === 'Y'){html += " checked ";} | 
|---|
|  |  |  | //         html += ">"; | 
|---|
|  |  |  | //         return html; | 
|---|
|  |  |  | //     }} | 
|---|
|  |  |  | // ,{field: 'canouting', align: 'center',title: '能出', templet:function(row){ | 
|---|
|  |  |  | //         var html = "<input value='canouting' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'"; | 
|---|
|  |  |  | //         if(row.canouting === 'Y'){html += " checked ";} | 
|---|
|  |  |  | //         html += ">"; | 
|---|
|  |  |  | //         return html; | 
|---|
|  |  |  | //     }} | 
|---|
|  |  |  | // ,{field: 'fronting', align: 'center',title: ''} | 
|---|
|  |  |  | // ,{field: 'rearing', align: 'center',title: ''} | 
|---|
|  |  |  | // ,{field: 'uping', align: 'center',title: ''} | 
|---|
|  |  |  | // ,{field: 'downing', align: 'center',title: ''} | 
|---|
|  |  |  | // ,{field: 'inreq1', align: 'center',title: '需求1', templet:function(row){ | 
|---|
|  |  |  | //         var html = "<input value='inreq1' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'"; | 
|---|
|  |  |  | //         if(row.inreq1 === 'Y'){html += " checked ";} | 
|---|
|  |  |  | //         html += ">"; | 
|---|
|  |  |  | //         return html; | 
|---|
|  |  |  | //     }} | 
|---|
|  |  |  | ,{field: 'cacheShelves', align: 'center',title: '是否缓存货架', templet:function(row){ | 
|---|
|  |  |  | var html = "<input value='cacheShelves' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'"; | 
|---|
|  |  |  | if(row.cacheShelves === 'Y'){html += " checked ";} | 
|---|
|  |  |  | html += ">"; | 
|---|
|  |  |  | return html; | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | ,{field: 'locSts$', align: 'center',title: '货位状态'} | 
|---|
|  |  |  | //,{field: 'wrkNo', align: 'center',title: '工作号', edit:true,  style:'color: blue;font-weight: bold'} | 
|---|
|  |  |  | ,{field: 'floor', align: 'center',title: '楼'} | 
|---|
|  |  |  | //,{field: 'locType1$', align: 'center',title: '高低'} | 
|---|
|  |  |  | ,{field: 'barcode', align: 'center',title: '条形码'} | 
|---|
|  |  |  | // ,{field: 'inQty', align: 'center',title: '入库暂存'} | 
|---|
|  |  |  | // ,{field: 'row1', align: 'center',title: ''} | 
|---|
|  |  |  | // ,{field: 'ioTime$', align: 'center',title: ''} | 
|---|
|  |  |  | // ,{field: 'area', align: 'center',title: ''} | 
|---|
|  |  |  | // ,{field: 'inOk', align: 'center',title: ''} | 
|---|
|  |  |  | // ,{field: 'outOk', align: 'center',title: ''} | 
|---|
|  |  |  | ,{field: 'modiUser$', align: 'center',title: '修改人员',event: 'modiUser', hide:true} | 
|---|
|  |  |  | ,{field: 'modiTime$', align: 'center',title: '修改时间', hide:true} | 
|---|
|  |  |  | // ,{field: 'appeUser$', align: 'center',title: '创建者',event: 'appeUser', style: 'text-decoration: underline;cursor:pointer'} | 
|---|
|  |  |  | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | case 'exportData': | 
|---|
|  |  |  | layer.confirm('确定导出Excel吗', {shadeClose: true}, function(){ | 
|---|
|  |  |  | layer.load(2, {time: 600*1000}); | 
|---|
|  |  |  | var titles=[]; | 
|---|
|  |  |  | var fields=[]; | 
|---|
|  |  |  | obj.config.cols[0].map(function (col) { | 
|---|
|  |  |  | 
|---|
|  |  |  | layer.msg("此站点暂未绑定任何条码"); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | layer.confirm('确定解绑'+(data.devNo)+'站点的托盘码?', function(){ | 
|---|
|  |  |  | layer.confirm('确定解绑'+(data.devNo)+'站点的货架码?', function(){ | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: baseUrl+"/agv/basDevp/unbind/auth", | 
|---|
|  |  |  | headers: {'token': localStorage.getItem('token')}, | 
|---|
|  |  |  | 
|---|
|  |  |  | cacheShelves: $('#cacheShelves').val(), | 
|---|
|  |  |  | decDesc: $('#decDesc').val(), | 
|---|
|  |  |  | devMk: $('#devMk').val(), | 
|---|
|  |  |  | inEnable: $('#inEnable').val(), | 
|---|
|  |  |  | outEnable: $('#outEnable').val(), | 
|---|
|  |  |  | autoing: $('#autoing').val(), | 
|---|
|  |  |  | inEnable: $('#inEnable').next().hasClass('layui-form-checked') ? "Y" : "N", | 
|---|
|  |  |  | outEnable: $('#outEnable').next().hasClass('layui-form-checked') ? "Y" : "N", | 
|---|
|  |  |  | autoing: $('#autoing').next().hasClass('layui-form-checked') ? "Y" : "N", | 
|---|
|  |  |  | loading: $('#loading').val(), | 
|---|
|  |  |  | canining: $('#canining').val(), | 
|---|
|  |  |  | canouting: $('#canouting').val(), | 
|---|
|  |  |  | 
|---|
|  |  |  | maxWt: $('#maxWt').val(), | 
|---|
|  |  |  | grossWt: $('#grossWt').val(), | 
|---|
|  |  |  | cartPos: $('#cartPos').val(), | 
|---|
|  |  |  | floor: $('#floor').val(), | 
|---|
|  |  |  | locType1: $('#locType1').val(), | 
|---|
|  |  |  | locType2: $('#locType2').val(), | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | console.log(data); | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: baseUrl+"/agv/basDevp/"+name+"/auth", | 
|---|
|  |  |  | headers: {'token': localStorage.getItem('token')}, | 
|---|