|  |  | 
 |  |  |             {type: 'checkbox'} | 
 |  |  |             ,{field: 'locNo', align: 'center',title: '库位号'} | 
 |  |  |             ,{field: 'locSts$', align: 'center',title: '库位状态', width: 180, style: 'color: #8E2323'} | 
 |  |  |             // ,{field: 'whsType$', align: 'center',title: '库位类型'} | 
 |  |  |             ,{field: 'crnNo', align: 'center',title: '堆垛机号'} | 
 |  |  |             ,{field: 'whsType$', align: 'center',title: '库位类型'} | 
 |  |  |             ,{field: 'barcode', align: 'center',title: '托盘码'} | 
 |  |  |             //,{field: 'crnNo', align: 'center',title: '堆垛机号'} | 
 |  |  |             ,{field: 'row1', align: 'center',title: '排'} | 
 |  |  |             ,{field: 'bay1', align: 'center',title: '列'} | 
 |  |  |             ,{field: 'lev1', align: 'center',title: '层'} | 
 |  |  |             ,{field: 'owner', align: 'center',title: '货主'} | 
 |  |  |             ,{field: 'fullPlt', align: 'center',title: '满板', templet:function(row){ | 
 |  |  |                     var html = "<input value='fullPlt' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'"; | 
 |  |  |                     if(row.fullPlt === 'Y'){html += " checked ";} | 
 |  |  | 
 |  |  |                 },width:80} | 
 |  |  |             ,{field: 'modiUser$', align: 'center',title: '修改人员'} | 
 |  |  |             ,{field: 'modiTime$', align: 'center',title: '修改时间', width: 180} | 
 |  |  |             ,{ fixed: 'right', title:'操作', align: 'center', toolbar: '#operate'} | 
 |  |  |             ,{ fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width: 300} | 
 |  |  |         ]], | 
 |  |  |         request: { | 
 |  |  |             pageName: 'curr', | 
 |  |  | 
 |  |  |                 } | 
 |  |  |                 locDetlToLayer(data.locNo); | 
 |  |  |                 break; | 
 |  |  |             // 查看图片 | 
 |  |  |             case 'showPic': | 
 |  |  |                 let imgHtml = '<div style="height:100%;display: flex;justify-content: space-around;align-items: center;flex-wrap: wrap;">'; | 
 |  |  |                 $.ajax({ | 
 |  |  |                     url: baseUrl+"/locMast/picUrl", | 
 |  |  |                     headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                     data: { | 
 |  |  |                         locNo: data.locNo | 
 |  |  |                     }, | 
 |  |  |                     method: 'GET', | 
 |  |  |                     traditional:true, | 
 |  |  |                     success: function (res) { | 
 |  |  |                         if (res.code === 200){ | 
 |  |  |                             res.data.forEach((item) => { | 
 |  |  |                                 let locNo = item.locNo; | 
 |  |  |                                 let pics = item.pics; | 
 |  |  |                                 pics.forEach((pic) => { | 
 |  |  |                                     let tmp = '<div><div><img width="600" src="' + pic + '" /></div><div>' + locNo + '</div></div>'; | 
 |  |  |                                     imgHtml += tmp; | 
 |  |  |                                 }) | 
 |  |  |                             }) | 
 |  |  |                             imgHtml += "</div>"; | 
 |  |  |  | 
 |  |  |                             layer.open({ | 
 |  |  |                                 type: 1, | 
 |  |  |                                 title: '查看图片', | 
 |  |  |                                 area: [top.detailWidth, top.detailHeight], | 
 |  |  |                                 shadeClose: true, | 
 |  |  |                                 content: imgHtml, | 
 |  |  |                                 success: function(layero, index){ | 
 |  |  |                                 } | 
 |  |  |                             }); | 
 |  |  |  | 
 |  |  |                         } else if (res.code === 403){ | 
 |  |  |                             top.location.href = baseUrl+"/"; | 
 |  |  |                         } else { | 
 |  |  |                             layer.msg(res.msg) | 
 |  |  |                         } | 
 |  |  |                     } | 
 |  |  |                 }); | 
 |  |  |                 break; | 
 |  |  |         } | 
 |  |  |     }); | 
 |  |  |  |