| | |
| | | detl.setUserCode(comb.getMatnr()); |
| | | detl.setQty(comb.getAnfme()); |
| | | detl.setPrice(0.0D); |
| | | detail.add(detl); |
| | | } |
| | | |
| | | System.out.println(JSON.toJSONString(uploadBill)); |
| | | String response = new HttpHandler.Builder() |
| | | .setUri(ErpScheduler.URI) |
| | | .setPath(ErpScheduler.UPLOAD_BILL) |
| | | .setJson(JSON.toJSONString(uploadBill)) |
| | | .build() |
| | | .doPost(); |
| | | |
| | | if (!Cools.isEmpty(response)) { |
| | | log.warn(response); |
| | | Result result = JSON.parseObject(response, Result.class); |
| | |
| | | |
| | | |
| | | function confirm() { |
| | | var zpallet = $('#code').val(); |
| | | if (isEmpty(zpallet)) { |
| | | tips("托盘条码为空", true); |
| | | return; |
| | | } |
| | | var node = $('#node').val(); |
| | | if (isEmpty(node)) { |
| | | tips("货位为空", true); |
| | | return; |
| | | } |
| | | if (matData.length === 0) { |
| | | tips("请提取物料", true); |
| | | return; |
| | | } |
| | | layer.open({ |
| | | type: 1, |
| | | title: '单据类型', |
| | |
| | | tips("请提取物料", true); |
| | | return; |
| | | } |
| | | layer.closeAll(); |
| | | $.ajax({ |
| | | url: baseUrl+"/work/stock/in", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | |
| | | }) |
| | | } |
| | | |
| | | function doPost() { |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 提示信息 |
| | | * @param msg 提示内容 |