feat: route create update 强校验2
This commit is contained in:
parent
4b9e65ba40
commit
6b3a34879e
|
@ -270,6 +270,8 @@ class RouteSerializer(CustomModelSerializer):
|
|||
if material_out:
|
||||
if material_out.process is None:
|
||||
material_out.process = process
|
||||
if material_out_tracking != material_out.tracking:
|
||||
raise ParseError("物料跟踪类型不一致!请前往物料处修改")
|
||||
if instance.material:
|
||||
material_out.parent = instance.material
|
||||
material_out.save()
|
||||
|
|
Loading…
Reference in New Issue