|  |  |  | 
|---|
|  |  |  | function getCol() { | 
|---|
|  |  |  | var cols = [ | 
|---|
|  |  |  | {field: 'locNo$', align: 'center',title: '库位号'} | 
|---|
|  |  |  | ,{field: 'suppCode', align: 'center',title: '料箱码', sort:true} | 
|---|
|  |  |  | ,{field: 'matnr', align: 'center',title: '存货编码', sort:true} | 
|---|
|  |  |  | ,{field: 'maktx', align: 'center',title: '存货名称', sort:true} | 
|---|
|  |  |  | ,{field: 'suppCode', align: 'center',title: '货架码', sort:true} | 
|---|
|  |  |  | ,{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: '序列码', sort:true} | 
|---|
|  |  |  | ,{field: 'anfme', align: 'center',title: '数量'} | 
|---|
|  |  |  | ,{field: 'units', align: 'center',title: '销售订单号', hide: true} | 
|---|
|  |  |  | ,{field: 'units', align: 'center',title: '销售订单行号', hide: true} | 
|---|
|  |  |  | ,{field: 'threeCode', align: 'center',title: '销售订单号', hide: true} | 
|---|
|  |  |  | ,{field: 'deadTime', align: 'center',title: '销售订单行号', hide: true} | 
|---|
|  |  |  | ,{field: 'zpallet', align: 'center',title: '托盘条码'} | 
|---|
|  |  |  | ,{field: 'specs', align: 'center',title: '规格型号', hide: true} | 
|---|
|  |  |  | ,{field: 'model', align: 'center',title: '通用型号', hide: true} | 
|---|
|  |  |  | ,{field: 'brand', align: 'center',title: '存货分类编码', hide: true} | 
|---|
|  |  |  | ,{field: 'color', 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} | 
|---|
|  |  |  | 
|---|
|  |  |  | layer.close(loadIndex); | 
|---|
|  |  |  | layer.closeAll(); | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | res.data.forEach((item,index) => { | 
|---|
|  |  |  | if (item[0] != null) { | 
|---|
|  |  |  | item[0] = "'" + item[0]; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (item[1] != null) { | 
|---|
|  |  |  | item[1] = "'" + item[1]; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (item[2] != null) { | 
|---|
|  |  |  | item[2] = "'" + item[2]; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | table.exportFile(titles,res.data,'xls'); | 
|---|
|  |  |  | } else if (res.code === 403) { | 
|---|
|  |  |  | top.location.href = baseUrl+"/"; | 
|---|