Compare commits
2 Commits
1ea9ef48a6
...
a5f32dbeda
| Author | SHA1 | Date |
|---|---|---|
|
|
a5f32dbeda | |
|
|
e491d7b4fe |
|
|
@ -38,9 +38,11 @@ class WprFilter(filters.FilterSet):
|
|||
elif value == "done":
|
||||
matoutIds = process.get_canout_mat_ids()
|
||||
qs = queryset.filter(material__id__in=matoutIds).exclude(state=WMaterial.WM_REPAIR)|queryset.filter(state=WMaterial.WM_REPAIRED, wm__mgroup__id=mgroupId)
|
||||
return qs
|
||||
elif value == "canfix":
|
||||
matoutIds = process.get_canout_mat_ids()
|
||||
qs = queryset.filter(state=WMaterial.WM_REPAIR, wm__mgroup__id=mgroupId)| queryset.filter(material__id__in=matoutIds, state=WMaterial.WM_NOTOK)
|
||||
return qs
|
||||
else:
|
||||
raise ParseError("请提供工段查询条件")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue