| | |
| | | @RequestMapping("/stock/out/print") |
| | | @ManagerAuth(memo = "拣货单打印") |
| | | public R stockOutPrint(@RequestBody StockOutParam stockOutParam) { |
| | | |
| | | |
| | | return workService.stockInPrint(stockOutParam, getUserId(), getHostId()); |
| | | return workService.stockOutPrint(stockOutParam, getUserId(), getHostId()); |
| | | } |
| | | |
| | | @RequestMapping("/stock/allot") |
| | |
| | | return R.ok().add(orderNo); |
| | | } |
| | | |
| | | @RequestMapping("/receive/init") |
| | | @ManagerAuth(memo = "生成销售订单") |
| | | public R initReceive(@RequestBody InitOrderParam param) { |
| | | return workService.initReceive(param, getUserId(), getHostId()); |
| | | } |
| | | @RequestMapping("/order/init") |
| | | @ManagerAuth(memo = "生成销售订单") |
| | | public R initOrder(@RequestBody InitOrderParam param) { |
| | | return workService.initOrder(param, getUserId(), getHostId()); |
| | | } |
| | | |
| | | |
| | | @RequestMapping("/stock/transfer") |
| | | @ManagerAuth(memo = "库存调拨") |
| | |
| | | // 获取所有单据类型 |
| | | @RequestMapping("/docType/all/get") |
| | | @ManagerAuth |
| | | public R getDocTypeData() { |
| | | List<DocType> docTypes = docTypeService.selectList(new EntityWrapper<DocType>().eq("status", 1).eq("host_id", getHostId()).orderBy("create_time", false).eq("doc_class",1)); |
| | | public R getDocTypeData(Integer docClass) { |
| | | List<DocType> docTypes = docTypeService.selectList(new EntityWrapper<DocType>().eq("status", 1). |
| | | eq("host_id", getHostId()).orderBy("create_time", false).eq("doc_class",docClass)); |
| | | return R.ok().add(docTypes); |
| | | } |
| | | @RequestMapping("docType/out/get") |
| | | @ManagerAuth |
| | | public R getDocOutTypeData(Integer docClass){ |
| | | List<DocType> docTypes = docTypeService.selectList(new EntityWrapper<DocType>().eq("status", 1). |
| | | eq("host_id", getHostId()).orderBy("create_time", false).eq("doc_class",docClass)); |
| | | return R.ok().add(docTypes); |
| | | } |
| | | |