| | |
| | | {type: 'checkbox'} |
| | | ,{field: 'id', align: 'center',title: 'ID', hide:true} |
| | | ,{field: 'hostId', align: 'center',title: '', hide:true} |
| | | ,{field: 'orderId$', align: 'center',title: '订单内码', width: 100} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', width: 185} |
| | | ,{field: 'anfme', align: 'center',title: '应入库量', width: 100} |
| | | ,{field: 'inQty', align: 'center',title: '已入库量', width: 100} |
| | | ,{field: 'matnr', align: 'center',title: '商品编码'} |
| | |
| | | form.val('inDetail',{ |
| | | "remain": remain |
| | | }); |
| | | |
| | | form.val('inDetail',data); |
| | | |
| | | form.on('submit(inLoc)',function (data) { |
| | | |
| | | var loc = insXmSel.getValue('valueStr'); |
| | | var storeQty =data.field.remain; |
| | | |
| | | if(storeQty> data.field.anfme - data.field.inQty || storeQty<=0){ |
| | | layer.msg("数量不对"); |
| | | return; |
| | | } |
| | | if(loc===""){ |
| | | layer.msg("库位号为空"); |
| | | return; |
| | | } |
| | | |
| | | $.ajax({ |
| | | url: baseUrl+"/receiveDetl/addIn" |
| | | ,headers: {'token':localStorage.getItem('token')} |
| | |
| | | layer.closeAll(); |
| | | if(res.code === 200){ |
| | | layer.msg(res.msg); |
| | | tableReload(); |
| | | } |
| | | if (res.code === 500){ |
| | | layer.msg(res.msg); |