feat: handover 报废处理
This commit is contained in:
parent
fbaf4b5767
commit
ee89b0bded
|
@ -646,10 +646,6 @@ class HandoverSerializer(CustomModelSerializer):
|
|||
if wm.count_xtest is not None:
|
||||
raise ParseError(f'第{ind+1}物料检验中,不能进行交接')
|
||||
attrs["count"] = t_count
|
||||
if attrs['type'] == Handover.H_SCRAP:
|
||||
attrs['recive_mgroup'] = attrs['send_mgroup']
|
||||
attrs['recive_dept'] = attrs['send_dept']
|
||||
attrs['recive_user'] = attrs['send_user']
|
||||
if attrs['type'] == Handover.H_REPAIR:
|
||||
recive_mgroup = attrs.get("recive_mgroup", None)
|
||||
if recive_mgroup is None:
|
||||
|
|
Loading…
Reference in New Issue