feat: 改版交接支持new_wm
This commit is contained in:
parent
3ff6072ae1
commit
f8db7adab5
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue