fix: 正常交接收料工段与送料工段不能相同

This commit is contained in:
caoqianming 2025-07-03 11:36:18 +08:00
parent 0284117297
commit 89aca50f44
1 changed files with 1 additions and 1 deletions

View File

@ -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