|  |  |  | 
|---|
|  |  |  | var pageCurr; | 
|---|
|  |  |  | function getCol() { | 
|---|
|  |  |  | var cols = [ | 
|---|
|  |  |  | {field: 'appeTime$', title: '入库时间', align: 'center', width: 200} | 
|---|
|  |  |  | ,{field: 'stay_time', align: 'center',title: '滞留天数'} | 
|---|
|  |  |  | ,{field: 'loc_no', align: 'center',title: '库位号'} | 
|---|
|  |  |  | ,{field: 'zpallet', align: 'center',title: '货架条码', hide: false} | 
|---|
|  |  |  | // ,{field: 'suppCode', align: 'center',title: '货架码', hide: false} | 
|---|
|  |  |  | ,{field: 'matnr', align: 'center',title: '商品编码'} | 
|---|
|  |  |  | ,{field: 'anfme', align: 'center',title: '数量'} | 
|---|
|  |  |  | ,{field: 'batch', align: 'center',title: '批次自由项', hide: true} | 
|---|
|  |  |  | ,{field: 'maktx', align: 'center',title: '商品名称'} | 
|---|
|  |  |  | ,{field: 'order_no', align: 'center',title: '单据编号', hide: false} | 
|---|
|  |  |  | ,{field: 'three_code', align: 'center',title: '销售订单号'} | 
|---|
|  |  |  | ,{field: 'deadTime', align: 'center',title: '销售订单行号' ,hide: true} | 
|---|
|  |  |  | ,{field: 'specs', align: 'center',title: '规格型号', hide: true} | 
|---|
|  |  |  | ,{field: 'model', align: 'center',title: '通用型号', hide: true} | 
|---|
|  |  |  | ,{field: 'processSts$', align: 'center',title: '工序', hide: true} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ,{field: 'brand', align: 'center',title: '商品分类编码', hide: true} | 
|---|
|  |  |  | ,{field: 'color', align: 'center',title: '商品分类名称', hide: true} | 
|---|
|  |  |  | ,{field: 'unit', align: 'center',title: '计量单位', hide: true} | 
|---|
|  |  |  | ,{field: 'price', align: 'center',title: '进项税', hide: true} | 
|---|
|  |  |  | ,{field: 'units', align: 'center',title: '销项税', hide: true} | 
|---|
|  |  |  | ,{field: 'dsDate', align: 'center',title: '启用日期', hide: true} | 
|---|
|  |  |  | ,{field: 'appeUser$', align: 'center',title: '用户'} | 
|---|
|  |  |  | ,{field: 'dInvCreateDatetime', align: 'center',title: '建档日期', hide: true} | 
|---|
|  |  |  | ]; | 
|---|
|  |  |  | //cols.push.apply(cols, detlCols); | 
|---|
|  |  |  | return cols; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | layui.use(['table','laydate', 'form'], function(){ | 
|---|
|  |  |  | var table = layui.table; | 
|---|
|  |  |  | var $ = layui.jquery; | 
|---|
|  |  |  | 
|---|
|  |  |  | limits: [16, 30, 50, 100, 200, 500], | 
|---|
|  |  |  | toolbar: '#toolbar', | 
|---|
|  |  |  | cellMinWidth: 50, | 
|---|
|  |  |  | cols: [[ | 
|---|
|  |  |  | {type: 'checkbox'} | 
|---|
|  |  |  | ,{field: 'appe_time', title: '入库时间', sort: true, align: 'center'} | 
|---|
|  |  |  | ,{field: 'stay_time', align: 'center',title: '滞留天数'} | 
|---|
|  |  |  | ,{field: 'loc_no', align: 'center',title: '库位号'} | 
|---|
|  |  |  | ,{field: 'matnr', align: 'center',title: '物料'} | 
|---|
|  |  |  | ,{field: 'maktx', align: 'center',title: '物料描述'} | 
|---|
|  |  |  | // ,{field: 'lgnum', align: 'center',title: '仓库号'} | 
|---|
|  |  |  | // ,{field: 'tbnum', align: 'center',title: '请求编号'} | 
|---|
|  |  |  | // ,{field: 'zmatid', align: 'center',title: '物料标签ID'} | 
|---|
|  |  |  | // ,{field: 'werks', align: 'center',title: '工厂'} | 
|---|
|  |  |  | ,{field: 'anfme', align: 'center',title: '数量'} | 
|---|
|  |  |  | ,{field: 'altme', align: 'center',title: '单位'} | 
|---|
|  |  |  | // ,{field: 'bname', align: 'center',title: '用户ID'} | 
|---|
|  |  |  | ,{field: 'zpallet', align: 'center',title: '托盘码',fixed: 'right'} | 
|---|
|  |  |  | ]], | 
|---|
|  |  |  | cols: [getCol()], | 
|---|
|  |  |  | request: { | 
|---|
|  |  |  | pageName: 'curr', | 
|---|
|  |  |  | pageSize: 'limit' | 
|---|
|  |  |  | 
|---|
|  |  |  | switch(obj.event) { | 
|---|
|  |  |  | case 'exportData': | 
|---|
|  |  |  | layer.confirm('确定导出Excel吗', {shadeClose: true}, function(){ | 
|---|
|  |  |  | layer.load(2, {time: 600*1000}); | 
|---|
|  |  |  | var titles=[]; | 
|---|
|  |  |  | var fields=[]; | 
|---|
|  |  |  | obj.config.cols[0].map(function (col) { | 
|---|