| | |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.framework.web.page.TableDataInfo; |
| | | import com.ruoyi.purchase.dto.PurchaseLedgerDto; |
| | | import com.ruoyi.purchase.dto.PurchaseScanStockDto; |
| | | import com.ruoyi.purchase.mapper.PurchaseLedgerTemplateMapper; |
| | | import com.ruoyi.purchase.mapper.SalesLedgerProductTemplateMapper; |
| | | import com.ruoyi.purchase.pojo.PurchaseLedger; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查询采购台账和产品父子列表 |
| | | */ |
| | | @GetMapping("/getPurchaseByCode") |
| | | public PurchaseLedgerDto getPurchaseByCode(PurchaseLedgerDto purchaseLedgerDto) { |
| | | return purchaseLedgerService.getPurchaseByCode(purchaseLedgerDto); |
| | | } |
| | | |
| | | /** |
| | | * 删除采购台账 |
| | | */ |
| | | @Log(title = "采购台账", businessType = BusinessType.DELETE) |
| | |
| | | public AjaxResult createPurchaseNo() { |
| | | return AjaxResult.success("生成成功",purchaseLedgerService.getPurchaseNo()); |
| | | } |
| | | |
| | | @PostMapping("/scanInbound") |
| | | @ApiOperation("采购订单扫码-合格入库") |
| | | public AjaxResult scanInbound(@RequestBody PurchaseScanStockDto dto) { |
| | | purchaseLedgerService.scanInbound(dto); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @PostMapping("/scanInboundUnqualified") |
| | | @ApiOperation("采购订单扫码-不合格入库") |
| | | public AjaxResult scanInboundUnqualified(@RequestBody PurchaseScanStockDto dto) { |
| | | purchaseLedgerService.scanInboundUnqualified(dto); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @PostMapping("/scanOutbound") |
| | | @ApiOperation("采购订单扫码-合格出库") |
| | | public AjaxResult scanOutbound(@RequestBody PurchaseScanStockDto dto) { |
| | | purchaseLedgerService.scanOutbound(dto); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @PostMapping("/scanOutboundUnqualified") |
| | | @ApiOperation("采购订单扫码-不合格出库") |
| | | public AjaxResult scanOutboundUnqualified(@RequestBody PurchaseScanStockDto dto) { |
| | | purchaseLedgerService.scanOutboundUnqualified(dto); |
| | | return AjaxResult.success(); |
| | | } |
| | | } |