diff --git a/apps/wpm/serializers.py b/apps/wpm/serializers.py index 9989011a..1814e00c 100644 --- a/apps/wpm/serializers.py +++ b/apps/wpm/serializers.py @@ -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: