feat: 改版交接支持new_wm

This commit is contained in:
caoqianming 2025-11-19 10:54:42 +08:00
parent 3ff6072ae1
commit f8db7adab5
1 changed files with 3 additions and 1 deletions

View File

@ -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,