feat: mlog添加b_mlog__batch查询条件

This commit is contained in:
caoqianming 2025-05-16 10:12:39 +08:00
parent 1f96162de9
commit d1ccc9043f
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ class MlogViewSet(CustomModelViewSet):
filterset_class = MlogFilter
search_fields = ['material_in__name',
'material_in__number', 'material_in__specification', 'batch', 'material_in__model',
'material_out__name', 'material_out__number', 'material_out__specification', 'material_out__model']
'material_out__name', 'material_out__number', 'material_out__specification', 'material_out__model', "b_mlog__batch"]
def add_info_for_item(self, data):
if data.get("oinfo_json", {}):