yuan
18 小时以前 816e5b54488621cf3bf57b770641f167190b5b43
src/main/java/com/ruoyi/purchase/controller/PurchaseLedgerController.java
@@ -157,6 +157,7 @@
    /**
     * 修改采购台账审批状态
     */
    @Log(title = "采购台账", businessType = BusinessType.UPDATE)
    @PostMapping("/updateApprovalStatus")
    public AjaxResult addOrEditPurchase(@RequestBody PurchaseLedger purchaseLedger){
        return toAjax(purchaseLedgerService.updateById(purchaseLedger));
@@ -249,4 +250,13 @@
    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);
    }
}