| | |
| | | throw new CoolException("该物料与其他托盘绑定,不能与当前托盘"+waitPakin.getBarcode()+"绑定,与该物料绑定的托盘是"+matBarcode.getZpallet()); |
| | | } |
| | | } |
| | | if (mat.getColor().equals("报废")){ |
| | | throw new CoolException("该物料已报废,请勿绑定"); |
| | | } |
| | | if (Cools.isEmpty(waitPakin.getBarcode())||Cools.isEmpty(waitPakin.getModiUser())||Cools.isEmpty(waitPakin.getAnfme())){ |
| | | return R.error(BaseRes.PARAM); |
| | | } |
| | |
| | | if (matBarcode != null){ |
| | | throw new CoolException("该物料已经绑定托盘,请勿重复绑定"); |
| | | } |
| | | if (mat.getColor().equals("报废")){ |
| | | throw new CoolException("该物料已报废,请勿绑定"); |
| | | } |
| | | MatBarcode mb=new MatBarcode(); |
| | | mb.setZpallet(waitPakin.getBarcode()); |
| | | mb.setMatnr(mat.getMatnr()); |
| | |
| | | layer.msg("请输入数字", {icon: 2}); |
| | | modify = false; |
| | | } else { |
| | | if (vle <= 0) { |
| | | if (vle < 0) { |
| | | layer.msg("数量必须大于零", {icon: 2}); |
| | | modify = false; |
| | | } |