diff --git a/apps/wpm/models.py b/apps/wpm/models.py index 54390bb0..fd0ca921 100644 --- a/apps/wpm/models.py +++ b/apps/wpm/models.py @@ -601,7 +601,7 @@ class BatchSt(BaseModel): raise ParseError(f"{batch} 该批号已存在不可用") if mio is None and handover is None and mlog is None: raise ParseError("mio or handover or mlog must be provided") - BatchSt.objects.create(batch=batch, mio=mio, handover=handover, mlog=mlog) + BatchSt.objects.create(batch=batch, mio=mio, handover=handover, mlog=mlog, material_start=material_start)