| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping(value = "/trayCode/print/preview") |
| | | @RequestMapping(value = "/trayCode/latest") |
| | | @ManagerAuth |
| | | public R trayCodeLatest() { |
| | | TrayCode latest = trayCodeService.selectOne(new EntityWrapper<TrayCode>().orderBy("id", false)); |
| | | return R.ok().add(latest==null?"000001":latest.getTrayNo()); |
| | | } |
| | | |
| | | @RequestMapping(value = "/trayCode/print/preview") |
| | | @ManagerAuth |
| | | public R printPreview(@RequestParam String startNo, |
| | | @RequestParam Integer count, |
| | |
| | | content: $('#print-windows'), |
| | | success: function(layero, index){ |
| | | layer.iframeAuto(index) |
| | | http.post(baseUrl+"/trayCode/latest", null, function (res) { |
| | | $('#startNo').val(res.data); |
| | | }) |
| | | }, |
| | | }); |
| | | break; |