|  |  |  | 
|---|
|  |  |  | var tableData; | 
|---|
|  |  |  | function getCol() { | 
|---|
|  |  |  | var cols = [ | 
|---|
|  |  |  | {field: 'matnr', align: 'center',title: '存货编码'} | 
|---|
|  |  |  | {field: 'matnr', align: 'center',title: '商品编码'} | 
|---|
|  |  |  | ,{field: 'csocode', align: 'center',title: '销售订单号', sort:true} | 
|---|
|  |  |  | ,{field: 'isoseq', align: 'center',title: '销售订单行号', sort:true} | 
|---|
|  |  |  | ,{field: 'iquantity', align: 'center',title: 'ERP存货数量', sort:true} | 
|---|
|  |  |  | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | 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) { | 
|---|