feat: mio增加筛选条件
This commit is contained in:
parent
ea63c29a69
commit
768a07a39a
|
@ -124,7 +124,12 @@ class MIOViewSet(CustomModelViewSet):
|
|||
'submit_user', 'supplier', 'order', 'customer', 'pu_order']
|
||||
serializer_class = MIOListSerializer
|
||||
retrieve_serializer_class = MIODetailSerializer
|
||||
filterset_fields = ['state', 'type', 'pu_order', 'order']
|
||||
filterset_fields = {
|
||||
'state': ["exact", "in"],
|
||||
"type": ["exact", "in"],
|
||||
"pu_order": ["exact"],
|
||||
"order": ["exact"]
|
||||
}
|
||||
search_fields = ['number']
|
||||
data_filter = True
|
||||
|
||||
|
|
Loading…
Reference in New Issue