|  |  | 
 |  |  | var pageCurr; | 
 |  |  | function getCol() { | 
 |  |  |     var cols = [ | 
 |  |  |         {field: 'locNo$', align: 'center',title: '库位号'}, | 
 |  |  |         {field: 'matnr', align: 'center',title: '商品编号', sort:true} | 
 |  |  |         ,{field: 'maktx', align: 'center',title: '商品名称', sort:true} | 
 |  |  |         ,{field: 'orderNo', align: 'center',title: '单据编号', hide: false} | 
 |  |  |         ,{field: 'batch', align: 'center',title: '序列码', width: 300, sort:true} | 
 |  |  |         ,{field: 'anfme', align: 'center',title: '数量'} | 
 |  |  |         {field: 'locNo$', align: 'center',title: '库位号'} | 
 |  |  |         ,{field: 'zpallet', align: 'center',title: '托盘条码'} | 
 |  |  |         ,{field: 'matnr', align: 'center',title: '商品编号', sort:true} | 
 |  |  |         ,{field: 'maktx', align: 'center',title: '商品名称', sort:true} | 
 |  |  |         ,{field: 'specs', align: 'center',title: '规格'} | 
 |  |  |         ,{field: 'memo', align: 'center',title: '备注',sort: true} | 
 |  |  |         ,{field: 'batch', align: 'center',title: '批号', sort:true} | 
 |  |  |         ,{field: 'orderNo', align: 'center',title: '单据编号', hide: false} | 
 |  |  |  | 
 |  |  |         ,{field: 'specs', align: 'center',title: '配置'} | 
 |  |  |         ,{field: 'anfme', align: 'center',title: '数量'} | 
 |  |  |  | 
 |  |  |         ,{field: 'model', align: 'center',title: '代码', hide: true} | 
 |  |  |         ,{field: 'color', align: 'center',title: '颜色', hide: true} | 
 |  |  |         ,{field: 'brand', align: 'center',title: '品牌', hide: true} | 
 |  |  | 
 |  |  |         ,{field: 'units', align: 'center',title: '单位量', hide: true} | 
 |  |  |         ,{field: 'barcode', align: 'center',title: '条码', hide: true} | 
 |  |  |         ,{field: 'origin', align: 'center',title: '产地', hide: true} | 
 |  |  |         ,{field: 'manu', align: 'center',title: '厂家', hide: true} | 
 |  |  |         ,{field: 'manu', align: 'center',title: '客户信息', hide: false} | 
 |  |  |         ,{field: 'manuDate', align: 'center',title: '生产日期', hide: true} | 
 |  |  |         ,{field: 'itemNum', align: 'center',title: '品项数', hide: true} | 
 |  |  |         ,{field: 'safeQty', align: 'center',title: '安全库存量', hide: true} | 
 |  |  | 
 |  |  |         url: baseUrl+'/locDetl/list/auth', | 
 |  |  |         page: true, | 
 |  |  |         limit: 20, | 
 |  |  |         where:{ | 
 |  |  |           unreason: false | 
 |  |  |         }, | 
 |  |  |         limits: [20, 30, 50, 100, 200, 500], | 
 |  |  |         even: true, | 
 |  |  |         toolbar: '#toolbar', | 
 |  |  | 
 |  |  |                         'locDetl': exportData, | 
 |  |  |                         'fields': fields | 
 |  |  |                     }; | 
 |  |  |                     var loadIndex = layer.load(2); | 
 |  |  |                     var loadIndex = layer.msg('正在导出...', {icon: 16, shade: 0.01, time: false}); | 
 |  |  |                     $.ajax({ | 
 |  |  |                         url: baseUrl+"/locDetl/export/auth", | 
 |  |  |                         headers: {'token': localStorage.getItem('token')}, | 
 |  |  | 
 |  |  |         tableReload(false); | 
 |  |  |     }); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     // 搜索栏重置事件 | 
 |  |  |     form.on('submit(reset)', function (data) { | 
 |  |  |         pageCurr = 1; | 
 |  |  |         clearFormVal($('#search-box')); | 
 |  |  |         tableReload(false); | 
 |  |  |     }); | 
 |  |  |  | 
 |  |  |     //查看异常数据 | 
 |  |  |     form.on('submit(unreason)', function (data) { | 
 |  |  |         pageCurr = 1; | 
 |  |  |  | 
 |  |  |         tableIns.reload({ | 
 |  |  |             where: { | 
 |  |  |                 unreason: true | 
 |  |  |             }, | 
 |  |  |             page: { | 
 |  |  |                 curr: pageCurr | 
 |  |  |             }, | 
 |  |  |             done: function (res, curr, count) { | 
 |  |  |  | 
 |  |  |                 if (res.code === 403) { | 
 |  |  |                     top.location.href = baseUrl+"/"; | 
 |  |  |                 } | 
 |  |  |                 pageCurr=curr; | 
 |  |  |  | 
 |  |  |                 limit(child); | 
 |  |  |             } | 
 |  |  |         }); | 
 |  |  |     }); | 
 |  |  |  | 
 |  |  |     // 时间选择器 | 
 |  |  | 
 |  |  | }); | 
 |  |  |  | 
 |  |  | function tableReload(child) { | 
 |  |  |     var searchData = {}; | 
 |  |  |     var searchData = { | 
 |  |  |         unreason: false | 
 |  |  |     }; | 
 |  |  |     $.each($('#search-box [name]').serializeArray(), function() { | 
 |  |  |         searchData[this.name] = this.value; | 
 |  |  |     }); |