diff --git a/apps/wpm/serializers.py b/apps/wpm/serializers.py index f85cce27..fe1a62c1 100644 --- a/apps/wpm/serializers.py +++ b/apps/wpm/serializers.py @@ -724,6 +724,7 @@ class MlogbInSerializer(CustomModelSerializer): attrs['batch'] = wm_in.batch attrs["batch_ofrom"] = wm_in.batch_ofrom attrs["material_ofrom"] = wm_in.material_ofrom + attrs["number_from"] = wm_in.number_from if route and route.batch_bind and mtask is not None: if not WMaterial.mat_in_qs(mtask).filter(id=wm_in.id).exists(): raise ParseError('该车间库存非本任务使用')