feat: 支持个号转批号6

This commit is contained in:
caoqianming 2025-04-28 15:59:29 +08:00
parent ced3e7a16c
commit e59c83aa3f
1 changed files with 1 additions and 0 deletions

View File

@ -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('该车间库存非本任务使用')