| | |
| | | /** |
| | | * 修改采购台账审批状态 |
| | | */ |
| | | @Log(title = "采购台账", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/updateApprovalStatus") |
| | | public AjaxResult addOrEditPurchase(@RequestBody PurchaseLedger purchaseLedger){ |
| | | return toAjax(purchaseLedgerService.updateById(purchaseLedger)); |
| | |
| | | public AjaxResult createPurchaseNo() { |
| | | return AjaxResult.success("生成成功",purchaseLedgerService.getPurchaseNo()); |
| | | } |
| | | |
| | | /** |
| | | * 导出采购订单Word文档 |
| | | */ |
| | | @Log(title = "采购台账", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/exportDocx") |
| | | public void exportDocx(HttpServletResponse response, @RequestParam Long id) { |
| | | purchaseLedgerService.exportPurchaseOrderDocx(response, id); |
| | | } |
| | | } |