| | |
| | | {type: 'checkbox'} |
| | | ,{field: 'id', align: 'center',title: 'ID', hide:true} |
| | | ,{field: 'hostId', align: 'center',title: '', hide:true} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号'} |
| | | ,{field: 'orderId$', align: 'center',title: '订单内码', width: 100} |
| | | ,{field: 'anfme', align: 'center',title: '待上架数量', width: 100} |
| | | ,{field: 'inQty', align: 'center',title: '已上架数量', width: 100} |
| | | ,{field: 'anfme', align: 'center',title: '应入库量', width: 100} |
| | | ,{field: 'inQty', align: 'center',title: '已入库量', width: 100} |
| | | ,{field: 'matnr', align: 'center',title: '商品编码'} |
| | | ,{field: 'maktx', align: 'center',title: '商品名称'} |
| | | ,{field: 'state$', align: 'center',title: '订单状态'} |
| | | ,{field: 'name', align: 'center',title: '名称', hide:true} |
| | | ,{field: 'specs', align: 'center',title: '规格', hide:true} |
| | | ,{field: 'model', align: 'center',title: '型号', hide:true} |
| | |
| | | pageSize: 'limit' |
| | | }, |
| | | parseData: function (res) { |
| | | console.log(res) |
| | | return { |
| | | 'code': res.code, |
| | | 'msg': res.msg, |
| | |
| | | } |
| | | }); |
| | | function startIn(data) { |
| | | |
| | | admin.open({ |
| | | type:1 |
| | | ,area: '600px' |
| | |
| | | form.val('inDetail',data); |
| | | |
| | | form.on('submit(inLoc)',function (data) { |
| | | |
| | | var loc = insXmSel.getValue('valueStr'); |
| | | alert(loc); |
| | | console.log(data); |
| | | // alert(loc); |
| | | console.log(data.field); |
| | | $.ajax({ |
| | | url: baseUrl+"/receiveDetl/addIn" |
| | | ,headers: {'token':localStorage.getItem('token')} |
| | | ,data: data |
| | | // ,data: data.field |
| | | ,data: JSON.stringify(data.field) |
| | | ,contentType:'application/json;charset=UTF-8' |
| | | ,method: 'POST' |
| | | ,success: function (res) { |
| | | console.log(res) |
| | | layer.closeAll(); |
| | | if(res.code === 200){ |
| | | layer.msg(res.msg); |
| | | } |
| | | if (res.code === 500){ |
| | | layer.msg(res.msg); |
| | | } |
| | | } |
| | | }) |
| | | return false; |
| | | }); |