| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/trayCode/list/auth") |
| | | @ManagerAuth |
| | | // @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/trayCode/print/preview") |
| | | @ManagerAuth |
| | | @PostMapping(value = "/trayCode/print/preview") |
| | | // @ManagerAuth |
| | | public R printPreview(@RequestParam String startNo, |
| | | @RequestParam Integer count, |
| | | @RequestParam Integer type) { |
| | | @RequestParam Integer count, |
| | | @RequestParam Integer type) { |
| | | if (count <= 0) { |
| | | return R.error("数量必须大于零"); |
| | | } |
| | | List<String> res = new ArrayList<>(); |
| | | List<Map<String, Object>> res = new ArrayList<>(); |
| | | for (int i = 0; i<count; i++) { |
| | | res.add(String.valueOf(Integer.parseInt(startNo)+i)); |
| | | res.add(Cools.add("item", String.valueOf(Integer.parseInt(startNo)+i))); |
| | | } |
| | | return R.ok().add(res); |
| | | } |
| | | |
| | | @RequestMapping(value = "/trayCode/print/auth") |
| | | @ManagerAuth(memo = "托盘码打印") |
| | | // @ManagerAuth(memo = "托盘码打印") |
| | | public R print(@RequestParam String startNo, |
| | | @RequestParam Integer count, |
| | | @RequestParam Integer type){ |