|  |  | 
 |  |  |             ,{field: 'orderNo', align: 'center',title: '单据编号', templet: '#orderNoTpl', width: 160} | 
 |  |  |             ,{field: 'matnr', align: 'center',title: '商品编码', width: 160} | 
 |  |  |             ,{field: 'maktx', align: 'center',title: '商品名称', width: 200} | 
 |  |  |             ,{field: 'batch', align: 'center',title: '序列码'} | 
 |  |  |             ,{field: 'specs', align: 'center',title: '规格'} | 
 |  |  |             ,{field: 'owner$', align: 'center',title: '货主'} | 
 |  |  |             ,{field: 'payment$', align: 'center',title: '货物形态'} | 
 |  |  |             ,{field: 'owner', align: 'center',title: '货主', hide: true} | 
 |  |  |             ,{field: 'payment', align: 'center',title: '货物形态', hide: true} | 
 |  |  |             // ,{field: 'anfme', align: 'center',title: '数量'} | 
 |  |  |             // ,{field: 'qty', align: 'center',title: '作业数量', style: 'font-weight: bold'} | 
 |  |  |             ,{field: 'enableQty', align: 'center',title: '总数量', style: 'font-weight: bold'} | 
 |  |  |             ,{field: 'anfme', align: 'center',title: '总数量', style: 'font-weight: bold'} | 
 |  |  |             // ,{field: 'name', align: 'center',title: '名称'} | 
 |  |  |             // ,{field: 'model', align: 'center',title: '型号'} | 
 |  |  |             ,{field: 'unit', align: 'center',title: '单位', hide: true} | 
 |  |  | 
 |  |  |                                     {field: 'orderNo', title: '单据编号', merge: true, align: 'center'}, | 
 |  |  |                                     {field: 'title', title: '商品', merge: true, align: 'center', width: 350}, | 
 |  |  |                                     {field: 'batch', title: '序列码', align: 'center'}, | 
 |  |  |                                     { title: '剩余需求量', align: 'center' , width: 120, toolbar: '#checkNeedQty'}, | 
 |  |  |                                     {field: 'manu', title: '仓库', align: 'center'}, | 
 |  |  |                                     // { title: '剩余需求量', align: 'center' , width: 120, toolbar: '#checkNeedQty'}, | 
 |  |  |                                     // {field: 'anfme', title: '实际数量', align: 'center', width: 90, style: 'font-weight: bold'}, | 
 |  |  |                                     { title: '立库余量', align: 'center', width: 90, toolbar: '#checkAnfme'}, | 
 |  |  |                                     { title: '出库数量', align: 'center',field: 'anfme', width: 90, style: 'font-weight: bold; color: red'}, | 
 |  |  |                                     {field: 'locNo', title: '货位', align: 'center', width: 100, templet: '#locNoTpl'}, | 
 |  |  |                                     {field: 'staNos', align: 'center', title: '出库站', merge: ['locNo'], templet: '#tbBasicTbStaNos'}, | 
 |  |  |                                     {type: 'checkbox', merge: ['locNo']}, | 
 |  |  |                                     // {type: 'checkbox', merge: ['locNo']}, | 
 |  |  |                                 ]], | 
 |  |  |                                 done: function (res) { | 
 |  |  |                                     tableMerge.render(this); | 
 |  |  | 
 |  |  |                         ,yes: function(index, layero){ | 
 |  |  |                             //按钮【立即出库】的回调 | 
 |  |  |                             pakout(tableCache, index); | 
 |  |  |                             pakout2(tableCache, index); | 
 |  |  |                         } | 
 |  |  |                         ,btn2: function(index, layero){ | 
 |  |  |                             //按钮【稍后处理】的回调 | 
 |  |  | 
 |  |  |         }); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     function pakout2(tableCache, layerIndex) { | 
 |  |  |         // let loadIndex = layer.load(2); | 
 |  |  |         notice.msg('正在生成拣货单......', {icon: 4}); | 
 |  |  |         $.ajax({ | 
 |  |  |             url: baseUrl + "/out/pakout2/auth", | 
 |  |  |             headers: {'token': localStorage.getItem('token')}, | 
 |  |  |             contentType: 'application/json;charset=UTF-8', | 
 |  |  |             data: JSON.stringify(tableCache), | 
 |  |  |             method: 'POST', | 
 |  |  |             success: function (res) { | 
 |  |  |                 notice.destroy(); | 
 |  |  |                 if (res.code === 200) { | 
 |  |  |                     layer.close(layerIndex); | 
 |  |  |                     layer.msg(res.msg, {icon: 1}); | 
 |  |  |                     insTb.reload({where: null}); | 
 |  |  |                     insTb2.reload({where: null, page: {curr: 1}}); | 
 |  |  |                 } else if (res.code === 403) { | 
 |  |  |                     top.location.href = baseUrl + "/"; | 
 |  |  |                 } else { | 
 |  |  |                     layer.msg(res.msg, {icon: 2}) | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         }); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /* 删除订单 */ |