From 89aca50f44f956b38a9b7ef124cf5fe8ff5c1097 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 3 Jul 2025 11:36:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=AD=A3=E5=B8=B8=E4=BA=A4=E6=8E=A5?= =?UTF-8?q?=E6=94=B6=E6=96=99=E5=B7=A5=E6=AE=B5=E4=B8=8E=E9=80=81=E6=96=99?= =?UTF-8?q?=E5=B7=A5=E6=AE=B5=E4=B8=8D=E8=83=BD=E7=9B=B8=E5=90=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wpm/serializers.py b/apps/wpm/serializers.py index 7a824ea6..b32a27c5 100644 --- a/apps/wpm/serializers.py +++ b/apps/wpm/serializers.py @@ -1078,7 +1078,7 @@ class HandoverSerializer(CustomModelSerializer): if not attrs.get('send_dept', None) and not attrs.get('send_mgroup', None): raise ParseError('必须指定送料车间或送料工段') - if attrs["type"] == Handover.H_NORMAL and attrs.get("recive_mgroup", None) == attrs.get("send_mgroup", None): + if attrs["mtype"] == Handover.H_NORMAL and attrs.get("recive_mgroup", None) == attrs.get("send_mgroup", None): raise ParseError('正常交接收料工段与送料工段不能相同') t_count = 0 tracking = attrs["material"].tracking