|  |  |  | 
|---|
|  |  |  | ,{field: 'idleLoc', align: 'center',title: '暂存库位'} | 
|---|
|  |  |  | ,{field: 'steErr', align: 'center',title: '错误码'} | 
|---|
|  |  |  | ,{field: 'chargeLine', align: 'center',title: '最低电量%'} | 
|---|
|  |  |  | ,{field: 'pakMk', align: 'center',title: '标记', hide: true} | 
|---|
|  |  |  | ,{field: 'autoCharge', align: 'center',title: '自动充电', templet: '#autoChargeTpl'} | 
|---|
|  |  |  | // ,{field: 'status$', align: 'center',title: '状态'} | 
|---|
|  |  |  | // ,{field: 'createBy$', align: 'center',title: '添加人员'} | 
|---|
|  |  |  | // ,{field: 'createTime$', align: 'center',title: '添加时间'} | 
|---|
|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | form.on('switch(autoChargeSwitch)', function (obj) { | 
|---|
|  |  |  | let index  = obj.othis.parents('tr').attr("data-index"); | 
|---|
|  |  |  | let data = tableData[index]; | 
|---|
|  |  |  | data[this.name] = obj.elem.checked?'Y':'N'; | 
|---|
|  |  |  | http.post(baseUrl+"/basSte/update/auth", {steNo: data.steNo, autoCharge: data[this.name]}, function (res) { | 
|---|
|  |  |  | layer.msg(res.msg, {icon: 1}); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 监听头工具栏事件 | 
|---|
|  |  |  | table.on('toolbar(basSte)', function (obj) { | 
|---|
|  |  |  | var checkStatus = table.checkStatus(obj.config.id).data; | 
|---|
|  |  |  | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | case 'exportData': | 
|---|
|  |  |  | admin.confirm('确定导出Excel吗', {shadeClose: true}, function(){ | 
|---|
|  |  |  | layer.load(2, {time: 600*1000}); | 
|---|
|  |  |  | var titles=[]; | 
|---|
|  |  |  | var fields=[]; | 
|---|
|  |  |  | obj.config.cols[0].map(function (col) { | 
|---|