| | |
| | | {field: 'realAnfme', title: '真实数量',style: 'color: blue;font-weight: bold', edit: true}, |
| | | {field: 'diffAnfme', title: '差异数量', style: 'font-weight: bold'}, |
| | | {field: 'type$', title: '状态'}, |
| | | {field: 'owner$', title: '货主'}, |
| | | {field: 'payment$', title: '货物状态'}, |
| | | {align: 'center', title: '操作', toolbar: '#formSSXMTableBar3', minWidth: 80, width: 80, fixed: 'right'} |
| | | ]], |
| | | request: { |
| | |
| | | }); |
| | | }else if (layEvent === 'wrkTrace'){ |
| | | showWrkTrace(data.id); |
| | | }else if (layEvent === 'printExcel'){ |
| | | printExcel(data); |
| | | } |
| | | }); |
| | | //单据明细表 审核按钮 |
| | |
| | | {field: 'matnr', title: '商品编码', width: 160}, |
| | | {field: 'maktx', title: '商品名称', width: 160}, |
| | | {field: 'locNo', title: '库位号'}, |
| | | {field: 'owner$', title: '货主'}, |
| | | {field: 'payment$', title: '货物状态'}, |
| | | {field: 'anfme', title: '库存数量'}, |
| | | {field: 'realAnfme', title: '真实数量'}, |
| | | {field: 'diffAnfme', title: '差异数量', style: 'font-weight: bold'}, |
| | |
| | | json.data = selectList; |
| | | console.log(json); |
| | | |
| | | if ( tp == 2 || tp == ''){ |
| | | if ( tp == 3 || tp == ''){ |
| | | $.ajax({ |
| | | url: baseUrl+"/orderCheck/create/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | |
| | | method: 'POST', |
| | | async: false, |
| | | success: function (res) { |
| | | xxDataList = [] |
| | | if (res.code === 200){ |
| | | for (var i =0;i<res.data.length;i++){ |
| | | xxDataList.push(res.data[i]); |
| | |
| | | } |
| | | } |
| | | }) |
| | | }else if (tp == 3){ |
| | | }else if (tp == 2){ |
| | | $.ajax({ |
| | | url: baseUrl+"/orderCheck/create/loc/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | |
| | | console.log(obj.data) |
| | | }) |
| | | |
| | | function printExcel(data){ |
| | | layer.confirm('确定导出Excel吗', {shadeClose: true}, function(){ |
| | | |
| | | // window.open("http://localhost:8082/stwms/orderCheck/printExport/auth?orderNo="+data.orderNo); |
| | | layer.closeAll(); |
| | | layer.load(1, {shade: [0.1,'#fff']}); |
| | | // location.href = "http://192.168.4.121:8082/stwms/orderCheck/printExport/auth?orderNo="+data.orderNo; |
| | | location.href = "http://10.114.97.100:8080/stwms/orderCheck/printExport/auth?orderNo="+data.orderNo; |
| | | layer.closeAll('loading'); |
| | | }); |
| | | } |
| | | |
| | | |
| | | }); |