Compare commits

..

2 Commits

1 changed files with 2 additions and 0 deletions

View File

@ -1208,6 +1208,8 @@ class HandoverSerializer(CustomModelSerializer):
new_defect = new_wm.defect
if not attrs.get("new_batch", None):
raise ParseError("必须指定合并后的批次")
if 'undefined' in attrs['new_batch'] or 'null' in attrs['new_batch']:
raise ParseError("新批次号错误!")
wm:WMaterial = attrs.get('wm', None)