From f8db7adab5f4b841152524fd0f309e8dec2b916d Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 19 Nov 2025 10:54:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=B9=E7=89=88=E4=BA=A4=E6=8E=A5?= =?UTF-8?q?=E6=94=AF=E6=8C=81new=5Fwm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index 7bb9a5d5..27ea58fa 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -857,7 +857,9 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, else: raise ParseError("不支持非工段报废") elif handover.type == Handover.H_CHANGE: - if handover.recive_mgroup: + if handover.new_wm: + wm_to = handover.new_wm + elif handover.recive_mgroup: wm_to, _ = WMaterial.objects.get_or_create( batch=batch, material=handover.material_changed,