Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YZ4DskSRKsSiheQonFtQvx
This commit is contained in:
@@ -155,6 +155,8 @@ func Setup(r *gin.Engine, db *gorm.DB) {
|
||||
stockIn.PUT("/orders/:id/reject", stockInH.Reject)
|
||||
// 撤回(审核中→草稿):管理员/超管任意单,操作员限本人单(handler 内判权)
|
||||
stockIn.PUT("/orders/:id/withdraw", stockInH.Withdraw)
|
||||
// 退单(已审核单退货,库存删除+冲应付):仅管理员/超管(service 内判权)
|
||||
stockIn.POST("/orders/:id/return", stockInH.Return)
|
||||
}
|
||||
|
||||
// 出库
|
||||
@@ -170,6 +172,8 @@ func Setup(r *gin.Engine, db *gorm.DB) {
|
||||
stockOut.PUT("/orders/:id/reject", stockOutH.Reject)
|
||||
// 撤回(审核中→草稿):管理员/超管任意单,操作员限本人单(handler 内判权)
|
||||
stockOut.PUT("/orders/:id/withdraw", stockOutH.Withdraw)
|
||||
// 退单(已审核单退货,库存加回+冲应收):管理员/超管 或 本人(service 内判权)
|
||||
stockOut.POST("/orders/:id/return", stockOutH.Return)
|
||||
}
|
||||
|
||||
// 库存
|
||||
|
||||
Reference in New Issue
Block a user