wpm filter notok
This commit is contained in:
parent
8dcabaf8dc
commit
aa10f7cee1
|
@ -44,6 +44,9 @@ class WProductFilterSet(filters.FilterSet):
|
|||
elif value == 'notok':
|
||||
queryset = queryset.filter(act_state__in=[WProduct.WPR_ACT_STATE_NOTOK, WProduct.WPR_ACT_STATE_SCRAP])\
|
||||
.exclude(step__process__id = 1) # 不算冷加工的报废
|
||||
elif value == 'ok':
|
||||
queryset = queryset.filter(act_state__in=[WProduct.WPR_ACT_STATE_INM,
|
||||
WProduct.WPR_ACT_STATE_OK, WProduct.WPR_ACT_STATE_SELLED])
|
||||
return queryset
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue