From ee89b0bdedba8954e79b2b1340816453bb51e94a Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 6 Sep 2024 09:31:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20handover=20=E6=8A=A5=E5=BA=9F=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/serializers.py | 4 ---- 1 file changed, 4 deletions(-) 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: