| | |
| | | } |
| | | |
| | | /** |
| | | * 反审核操作 |
| | | */ |
| | | @Log(title = "销售台账反审核", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/counterReview") |
| | | @ApiOperation("反审核操作:作废或重新生成") |
| | | public AjaxResult counterReview(@RequestBody CounterReviewDto dto) { |
| | | List<Long> newLedgerIds = salesLedgerService.counterReview(dto); |
| | | AjaxResult result = AjaxResult.success("反审核成功"); |
| | | if (newLedgerIds != null && !newLedgerIds.isEmpty()) { |
| | | result.put("newLedgerIds", newLedgerIds); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * 删除销售台账 |
| | | */ |
| | | @Log(title = "销售台账", businessType = BusinessType.DELETE) |
| | |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @PostMapping("/scanShipApply") |
| | | @ApiOperation("销售订单扫码-发起发货审批(填写车牌/快递、审批人、附件;通过后自动扣库存并标记已发货)") |
| | | public AjaxResult scanShipApply(@RequestBody SalesScanShipDto dto) { |
| | | salesLedgerService.scanShipApply(dto); |
| | | return AjaxResult.success("发货审批已发起"); |
| | | } |
| | | |
| | | @PostMapping("/scanOutboundUnqualified") |
| | | @ApiOperation("销售订单扫码-不合格出库") |
| | | public AjaxResult scanOutboundUnqualified(@RequestBody SalesScanInboundDto dto) { |
| | |
| | | @ApiOperation("销售发货历史数据导入-已发货导入模板下载") |
| | | public void shippingImportTemplate(HttpServletResponse response) { |
| | | ExcelUtil<SalesShippingImportDto> excelUtil = new ExcelUtil<>(SalesShippingImportDto.class); |
| | | excelUtil.importTemplateExcel(response, "已发货导入模板下载"); |
| | | excelUtil.importTemplateExcel(response, "已出库导入模板下载"); |
| | | } |
| | | |
| | | @PostMapping("/salesHistory/notShippingImportTemplate") |
| | | @ApiOperation("销售发货历史数据导入-未发货导入模板下载") |
| | | public void notShippingImportTemplate(HttpServletResponse response) { |
| | | ExcelUtil<SalesNotShippingImportDto> excelUtil = new ExcelUtil<>(SalesNotShippingImportDto.class); |
| | | excelUtil.importTemplateExcel(response, "未发货导入模板下载"); |
| | | excelUtil.importTemplateExcel(response, "未出库导入模板下载"); |
| | | } |
| | | |
| | | } |