|  |  |  | 
|---|
|  |  |  | ,{field: 'steNo', align: 'center',title: '穿梭车号'} | 
|---|
|  |  |  | ,{field: 'inEnable', align: 'center',title: '可入', templet: '#inEnableTpl'} | 
|---|
|  |  |  | ,{field: 'outEnable', align: 'center',title: '可出', templet: '#outEnableTpl'} | 
|---|
|  |  |  | ,{field: 'steSts', align: 'center',title: '作业态'} | 
|---|
|  |  |  | ,{field: 'pakMk', align: 'center',title: '作业标记', hide: false} | 
|---|
|  |  |  | // ,{field: 'steSts', align: 'center',title: '作业态'} | 
|---|
|  |  |  | ,{field: 'wrkNo', align: 'center',title: '任务号'} | 
|---|
|  |  |  | ,{field: 'crnNo', align: 'center',title: '堆垛机号'} | 
|---|
|  |  |  | ,{field: 'row', align: 'center',title: '排'} | 
|---|
|  |  |  | 
|---|
|  |  |  | ,{field: 'hisLev', align: 'center',title: '历史层', hide: true} | 
|---|
|  |  |  | ,{field: 'idleLoc', align: 'center',title: '暂存库位'} | 
|---|
|  |  |  | ,{field: 'steErr', align: 'center',title: '错误码'} | 
|---|
|  |  |  | ,{field: 'pakMk', align: 'center',title: '标记', hide: true} | 
|---|
|  |  |  | ,{field: 'chargeLine', align: 'center',title: '最低电量%'} | 
|---|
|  |  |  | ,{field: 'autoCharge', align: 'center',title: '自动充电', templet: '#autoChargeTpl'} | 
|---|
|  |  |  | // ,{field: 'status$', align: 'center',title: '状态'} | 
|---|
|  |  |  | // ,{field: 'createBy$', align: 'center',title: '添加人员'} | 
|---|
|  |  |  | // ,{field: 'createTime$', align: 'center',title: '添加时间'} | 
|---|
|  |  |  | 
|---|
|  |  |  | let data = tableData[index]; | 
|---|
|  |  |  | data[this.name] = obj.elem.checked?'Y':'N'; | 
|---|
|  |  |  | http.post(baseUrl+"/basSte/update/auth", {steNo: data.steNo, outEnable: data[this.name]}, function (res) { | 
|---|
|  |  |  | layer.msg(res.msg, {icon: 1}); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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}); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | 
|---|
|  |  |  | layDateRender(mData); | 
|---|
|  |  |  | form.val('detail', mData); | 
|---|
|  |  |  | form.on('submit(editSubmit)', function (data) { | 
|---|
|  |  |  | if (!isEmpty(data.field.idleLoc)) { | 
|---|
|  |  |  | if (data.field.idleLoc.length !== 7) { | 
|---|
|  |  |  | layer.msg("暂存库存不合法", {icon: 2}); | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | var loadIndex = layer.load(2); | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: baseUrl+"/basSte/"+(mData?'update':'add')+"/auth", | 
|---|