feat: 出入库明细筛选条件
This commit is contained in:
parent
fe032c8e1d
commit
784d1a79dc
|
@ -185,10 +185,11 @@ class MIOItemViewSet(ListModelMixin, BulkCreateModelMixin, BulkDestroyModelMixin
|
||||||
serializer_class = MIOItemSerializer
|
serializer_class = MIOItemSerializer
|
||||||
create_serializer_class = MIOItemCreateSerializer
|
create_serializer_class = MIOItemCreateSerializer
|
||||||
select_related_fields = ['warehouse', 'mio',
|
select_related_fields = ['warehouse', 'mio',
|
||||||
'material', 'mio__type', 'mio__state']
|
'material', 'mio__type']
|
||||||
filterset_fields = {
|
filterset_fields = {
|
||||||
"warehouse": ["exact"],
|
"warehouse": ["exact"],
|
||||||
"mio": ["exact"],
|
"mio": ["exact"],
|
||||||
|
"mio__state": ["exact"],
|
||||||
"material": ["exact"],
|
"material": ["exact"],
|
||||||
"test_date": ["isnull", "exact"]
|
"test_date": ["isnull", "exact"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue