fix: 修复顺运宝采购完成状态与重复采购 (#169)
This commit is contained in:
@@ -268,6 +268,12 @@ func validatePurchaseRequest(q repository.Execer, request PurchaseTaskRequest) (
|
||||
if context == nil {
|
||||
return "顺运宝明细不存在", nil, "", nil
|
||||
}
|
||||
if context.HasSucceededPurchaseTask {
|
||||
return "该顺运宝明细已有成功采购任务,禁止重复采购", context, "", nil
|
||||
}
|
||||
if context.HasManualReviewPurchaseTask {
|
||||
return "该顺运宝明细有待人工核对的采购任务,请先核对订单,禁止重复采购", context, "", nil
|
||||
}
|
||||
if context.Order.SpecKey == "" {
|
||||
return "顺运宝未提供规格", context, "", nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user