From 7d2fee8409800df3ce735a00edd3e7cb7976f649 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 4 Aug 2025 10:09:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=85=E5=90=88=E6=A0=BC=E5=93=81?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=80=80=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index 3b1c8740..553440a7 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -885,6 +885,8 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, else: raise ParseError("改版交接必须指定接收工段") elif handover.type == Handover.H_BACK: + if wm_from and wm_from.state != WMaterial.WM_OK: + raise ParseError("仅合格品支持退回") if mtype == Handover.H_MERGE and handover.new_wm: wm_to = handover.new_wm else: