提交基础采购

This commit is contained in:
2025-11-18 16:45:28 +08:00
parent 7c04e13198
commit 617e149fc8
7 changed files with 233 additions and 23 deletions

View File

@@ -85,6 +85,46 @@ public class ErpPurchaseOrderController extends BaseController {
return toAjax(iErpPurchaseOrderService.updateByBo(bo));
}
/**
* 下达采购订单
*/
@Log(title = "采购订单主", businessType = BusinessType.UPDATE)
@PutMapping("/{orderId}/confirm")
public R<Void> confirm(@NotNull(message = "主键不能为空")
@PathVariable Long orderId) {
return toAjax(iErpPurchaseOrderService.confirmOrder(orderId, getUsername()));
}
/**
* 标记部分到货
*/
@Log(title = "采购订单主", businessType = BusinessType.UPDATE)
@PutMapping("/{orderId}/partial")
public R<Void> partial(@NotNull(message = "主键不能为空")
@PathVariable Long orderId) {
return toAjax(iErpPurchaseOrderService.markPartialArrival(orderId));
}
/**
* 标记订单完成
*/
@Log(title = "采购订单主", businessType = BusinessType.UPDATE)
@PutMapping("/{orderId}/complete")
public R<Void> complete(@NotNull(message = "主键不能为空")
@PathVariable Long orderId) {
return toAjax(iErpPurchaseOrderService.completeOrder(orderId));
}
/**
* 取消采购订单
*/
@Log(title = "采购订单主", businessType = BusinessType.UPDATE)
@PutMapping("/{orderId}/cancel")
public R<Void> cancel(@NotNull(message = "主键不能为空")
@PathVariable Long orderId) {
return toAjax(iErpPurchaseOrderService.cancelOrder(orderId));
}
/**
* 删除采购订单主
*