|  |  |  | 
|---|
|  |  |  | var matCodeData = []; | 
|---|
|  |  |  | function getCol() { | 
|---|
|  |  |  | var cols = [ | 
|---|
|  |  |  | {fixed: 'left', field: 'count', title: '数量(必填)', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'} | 
|---|
|  |  |  | {fixed: 'left', field: 'count', title: '数量(必填)', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'}, | 
|---|
|  |  |  | {field: 'matnr', align: 'center', title: '商品编码'}, | 
|---|
|  |  |  | {field: 'anfme', align: 'center', title: '数量'}, | 
|---|
|  |  |  | {field: 'qty', align: 'center', title: '完成数量'}, | 
|---|
|  |  |  | {field: 'orderNo', align: 'center', title: '单据编号'}, | 
|---|
|  |  |  | {field: 'maktx', align: 'center', title: '商品名称'}, | 
|---|
|  |  |  | {field: 'batch', align: 'center', title: '批号'}, | 
|---|
|  |  |  | {field: 'specs', align: 'center', title: '规格'} | 
|---|
|  |  |  | ]; | 
|---|
|  |  |  | cols.push.apply(cols, matCols); | 
|---|
|  |  |  | // cols.push.apply(cols, matCols); | 
|---|
|  |  |  | cols.push({fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:80}) | 
|---|
|  |  |  | return cols; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | data: JSON.stringify({ | 
|---|
|  |  |  | nodeId: data.field.nodeSel, | 
|---|
|  |  |  | mats: matCodeData | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }), | 
|---|
|  |  |  | contentType:'application/json;charset=UTF-8', | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | 
|---|
|  |  |  | maxmin: true, | 
|---|
|  |  |  | area: [top.detailWidth, top.detailHeight], | 
|---|
|  |  |  | shadeClose: true, | 
|---|
|  |  |  | content: 'matQuery.html', | 
|---|
|  |  |  | content: 'orderQuery.html', | 
|---|
|  |  |  | success: function(layero, index){ | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|