feat: wmaterial筛选条件优化来料已完成

This commit is contained in:
caoqianming 2025-04-26 00:07:44 +08:00
parent cdb9083def
commit 139aa6de27
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class WMaterialFilter(filters.FilterSet):
qs = queryset.exclude(material__id__in=matoutIds)|queryset.filter(state=WMaterial.WM_REPAIR)
return qs
elif value == "done":
qs = queryset.filter(material__id__in=matoutIds)|queryset.filter(state=WMaterial.WM_REPAIRED)
qs = queryset.filter(material__id__in=matoutIds).exclude(state=WMaterial.WM_REPAIR)|queryset.filter(state=WMaterial.WM_REPAIRED)
return qs
else:
raise ParseError("请提供工段查询条件")