feat: wmaterial筛选条件优化来料已完成
This commit is contained in:
parent
cdb9083def
commit
139aa6de27
|
|
@ -53,7 +53,7 @@ class WMaterialFilter(filters.FilterSet):
|
||||||
qs = queryset.exclude(material__id__in=matoutIds)|queryset.filter(state=WMaterial.WM_REPAIR)
|
qs = queryset.exclude(material__id__in=matoutIds)|queryset.filter(state=WMaterial.WM_REPAIR)
|
||||||
return qs
|
return qs
|
||||||
elif value == "done":
|
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
|
return qs
|
||||||
else:
|
else:
|
||||||
raise ParseError("请提供工段查询条件")
|
raise ParseError("请提供工段查询条件")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue