|  |  |  | 
|---|
|  |  |  | function pakoutPreview(ids,amount) { | 
|---|
|  |  |  | let loadIndex = layer.load(2); | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: baseUrl + "/out/pakout/preview/auth", | 
|---|
|  |  |  | url: baseUrl + "/out/pakout/OrderOutGetLoc/auth", | 
|---|
|  |  |  | headers: {'token': localStorage.getItem('token')}, | 
|---|
|  |  |  | contentType: 'application/json;charset=UTF-8', | 
|---|
|  |  |  | data: JSON.stringify(ids), | 
|---|
|  |  |  | 
|---|
|  |  |  | cols: [[ | 
|---|
|  |  |  | // {type: 'checkbox', merge: ['orderNo']}, | 
|---|
|  |  |  | {field: 'orderNo', title: '单据编号', merge: true, align: 'center'}, | 
|---|
|  |  |  | {field: 'title', title: '商品', merge: true, align: 'center', width: 350}, | 
|---|
|  |  |  | {field: 'batch', title: '序列码', align: 'center'}, | 
|---|
|  |  |  | {field: 'title', title: '商品', merge: true, align: 'center'}, | 
|---|
|  |  |  | {field: 'batch', title: '批次', align: 'center'}, | 
|---|
|  |  |  | {field: 'supp', align: 'center',title: '供应商', hide: false} | 
|---|
|  |  |  | ,{field: 'sku', align: 'center',title: '客户名称', hide: false} | 
|---|
|  |  |  | ,{field: 'suppCode', align: 'center',title: '来源单号', hide: false}, | 
|---|
|  |  |  | {field: 'anfme', title: '数量', align: 'center', width: 90, style: 'font-weight: bold'}, | 
|---|
|  |  |  | {field: 'locNo', title: '货位', align: 'center', width: 100, templet: '#locNoTpl'}, | 
|---|
|  |  |  | {field: 'staNos', align: 'center', title: '出库站', merge: ['locNo'], templet: '#tbBasicTbStaNos'}, | 
|---|
|  |  |  | 
|---|
|  |  |  | json.ids = ids | 
|---|
|  |  |  | json.amount = amount | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: baseUrl + "/out/pakout/previewCustomQuantity/auth", | 
|---|
|  |  |  | url: baseUrl + "/out/pakout/OrderOutGetLoc.number/auth", | 
|---|
|  |  |  | headers: {'token': localStorage.getItem('token')}, | 
|---|
|  |  |  | contentType: 'application/json;charset=UTF-8', | 
|---|
|  |  |  | data: JSON.stringify(json), | 
|---|