feat: material增加筛选条件

This commit is contained in:
caoqianming 2023-12-28 09:55:24 +08:00
parent a09ae16fa0
commit 059aee0acf
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@ class MaterialFilter(filters.FilterSet):
"process": ["exact", "in", "isnull"],
"orderitem_material__order": ['exact'],
"pu_orderitem_material__pu_order": ["exact"],
"route_material_out__mgroup": ["exact"]
"route_material_out__mgroup": ["exact"],
"count": ["gte", "lte", "exact", "gt", "lt"],
"count_safe": ["gte", "lte", "exact", "gt", "lt"]
}
def filter_tag(self, queryset, name, value):