提交基础采购
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除采购订单主
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user