feat: wm todo排除repaired
This commit is contained in:
parent
fa38cfdbdd
commit
b3b77db0c1
|
@ -50,7 +50,7 @@ class WMaterialFilter(filters.FilterSet):
|
||||||
process = Mgroup.objects.get(id=mgroup).process
|
process = Mgroup.objects.get(id=mgroup).process
|
||||||
matoutIds = process.get_canout_mat_ids()
|
matoutIds = process.get_canout_mat_ids()
|
||||||
if value == "todo":
|
if value == "todo":
|
||||||
qs = queryset.exclude(material__id__in=matoutIds)|queryset.filter(state=WMaterial.WM_REPAIR)
|
qs = queryset.exclude(material__id__in=matoutIds).exclude(state=WMaterial.WM_REPAIRED)|queryset.filter(state=WMaterial.WM_REPAIR)
|
||||||
return qs
|
return qs
|
||||||
elif value == "done":
|
elif value == "done":
|
||||||
qs = queryset.filter(material__id__in=matoutIds).exclude(state=WMaterial.WM_REPAIR)|queryset.filter(state=WMaterial.WM_REPAIRED)
|
qs = queryset.filter(material__id__in=matoutIds).exclude(state=WMaterial.WM_REPAIR)|queryset.filter(state=WMaterial.WM_REPAIRED)
|
||||||
|
|
Loading…
Reference in New Issue