| | |
| | | {type: 'checkbox'} |
| | | ,{field: 'shuttleNo', align: 'center',title: '四向穿梭车号', width: 120} |
| | | ,{field: 'status$', align: 'center',title: '状态'} |
| | | ,{field: 'shuttleStatus', align: 'center',title: '作业态'} |
| | | // ,{field: 'shuttleStatus', align: 'center',title: '作业态'} |
| | | ,{field: 'wrkNo', align: 'center',title: '任务号'} |
| | | ,{field: 'idleLoc', align: 'center',title: '暂存库位'} |
| | | // ,{field: 'autoCharge', align: 'center',title: '自动充电'} |
| | |
| | | return d.shuttleNo; |
| | | })); |
| | | break; |
| | | case 'oneUpdateCharge': |
| | | showUpdateCharge(); |
| | | break; |
| | | case 'exportData': |
| | | admin.confirm('确定导出Excel吗', {shadeClose: true}, function(){ |
| | | var titles=[]; |
| | |
| | | } |
| | | }); |
| | | |
| | | function showUpdateCharge() { |
| | | admin.open({ |
| | | type: 1, |
| | | area: '600px', |
| | | title: '一键修改电量线', |
| | | content: $('#updateChargeDialog').html(), |
| | | success: function (layero, dIndex) { |
| | | form.on('submit(editSubmit)', function (data) { |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/basShuttle/updateCharge", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: data.field, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.close(loadIndex); |
| | | if (res.code === 200){ |
| | | layer.close(dIndex); |
| | | layer.msg(res.msg, {icon: 1}); |
| | | tableReload(); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | }else { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } |
| | | } |
| | | }) |
| | | return false; |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | /* 弹窗 - 新增、修改 */ |
| | | function showEditModel(mData) { |
| | | admin.open({ |
| | | type: 1, |
| | | area: '600px', |
| | | title: (mData ? '修改' : '添加') + '订单状态', |
| | | title: (mData ? '修改' : '添加') + '小车数据', |
| | | content: $('#editDialog').html(), |
| | | success: function (layero, dIndex) { |
| | | layDateRender(mData); |