|  |  | 
 |  |  |         ,{field: 'a', align: 'center',title: 'a值', hide:true,edit:true} | 
 |  |  |         ,{field: 'b', align: 'center',title: 'b值', hide:true,edit:true} | 
 |  |  |         ,{field: 'fillIn', align: 'center',title: '填充(%)',hide:true,edit:true} | 
 |  |  |         ,{field: 'str1', align: 'center',title: '拉伸强度MPa',hide:true,edit:true} | 
 |  |  |         ,{field: 'str2', align: 'center',title: '断裂伸长率%',hide:true,edit:true} | 
 |  |  |         ,{field: 'str3', align: 'center',title: '缺口冲击KJ/m2',hide:true,edit:true} | 
 |  |  |         ,{field: 'str4', align: 'center',title: '维卡℃',hide:true,edit:true} | 
 |  |  |         ,{field: 'str5', align: 'center',title: '半结晶时间min',hide:true,edit:true} | 
 |  |  |         ,{field: 'str6', align: 'center',title: '结晶度%',hide:true,edit:true} | 
 |  |  |         ,{field: 'massState', align: 'center',title: '质量状态',edit:true} | 
 |  |  |         ,{field: 'problem', align: 'center',title: '备注',edit:true} | 
 |  |  |         ,{field: 'stash', align: 'center',title: '仓库',edit:true} | 
 |  |  | 
 |  |  |         return  "<span style='color: black'>部分出库</span>" | 
 |  |  |     }else if(data.status === "全部出库"){ | 
 |  |  |         return  "<span style='color: gray'>全部出库</span>" | 
 |  |  |     }else if(data.status === "暂入库"){ | 
 |  |  |         return  "<span style='color: purple'>暂入库</span>" | 
 |  |  |     } | 
 |  |  | } | 
 |  |  |  | 
 |  |  | 
 |  |  |                     }); | 
 |  |  |                 } | 
 |  |  |                 break; | 
 |  |  |  | 
 |  |  |             case "deleteData": | 
 |  |  |                 var data = checkStatus.data; | 
 |  |  |                 if (data.length === 0){ | 
 |  |  |                     layer.msg('请选择数据'); | 
 |  |  |                 } else { | 
 |  |  |                     layer.confirm('确定删除'+(data.length===1?'此':data.length)+'条数据吗', function(){ | 
 |  |  |                         $.ajax({ | 
 |  |  |                             url: baseUrl+"/pla/delete/auth", | 
 |  |  |                             headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                             data: JSON.stringify(data), | 
 |  |  |                             contentType:'application/json;charset=UTF-8', | 
 |  |  |                             method: 'POST', | 
 |  |  |                             traditional:true, | 
 |  |  |                             success: function (res) { | 
 |  |  |                                 if (res.code === 200){ | 
 |  |  |                                     layer.closeAll(); | 
 |  |  |                                     tableReload(false); | 
 |  |  |                                 } else if (res.code === 403){ | 
 |  |  |                                     top.location.href = baseUrl+"/"; | 
 |  |  |                                 } else { | 
 |  |  |                                     layer.msg(res.msg) | 
 |  |  |                                 } | 
 |  |  |                             } | 
 |  |  |                         }) | 
 |  |  |                     }); | 
 |  |  |                 } | 
 |  |  |                 break; | 
 |  |  |             case "viladate": | 
 |  |  |                 var data = checkStatus.data; | 
 |  |  |                 if (data.length === 0){ | 
 |  |  |                     layer.msg('请选择数据'); | 
 |  |  |                 } else { | 
 |  |  |                     layer.confirm('确定校验'+(data.length===1?'此':data.length)+'条数据吗', function(){ | 
 |  |  |                         $.ajax({ | 
 |  |  |                             url: baseUrl+"/pla/viladate/auth", | 
 |  |  |                             headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                             data: JSON.stringify(data), | 
 |  |  |                             contentType:'application/json;charset=UTF-8', | 
 |  |  |                             method: 'POST', | 
 |  |  |                             traditional:true, | 
 |  |  |                             success: function (res) { | 
 |  |  |                                 if (res.code === 200){ | 
 |  |  |                                     layer.closeAll(); | 
 |  |  |                                     tableReload(false); | 
 |  |  |                                 } else if (res.code === 403){ | 
 |  |  |                                     top.location.href = baseUrl+"/"; | 
 |  |  |                                 } else { | 
 |  |  |                                     layer.msg(res.msg) | 
 |  |  |                                 } | 
 |  |  |                             } | 
 |  |  |                         }) | 
 |  |  |                     }); | 
 |  |  |                 } | 
 |  |  |         } | 
 |  |  |     }) | 
 |  |  |  |