生产执行里只显示下发的子计划

This commit is contained in:
曹前明 2022-06-14 09:23:49 +08:00
parent 3773482b93
commit f4906d4d8b
1 changed files with 1 additions and 5 deletions

View File

@ -49,11 +49,7 @@ class WPlanViewSet(ListModelMixin, GenericViewSet):
"""
perms_map = {'get': '*'}
queryset = SubProductionPlan.objects.select_related(
'process', 'workshop', 'subproduction', 'product').filter(
state__in =[
SubProductionPlan.SUBPLAN_STATE_ASSGINED, SubProductionPlan.SUBPLAN_STATE_WORKING
]
)
'process', 'workshop', 'subproduction', 'product').exclude(state=SubProductionPlan.SUBPLAN_STATE_PLANING)
search_fields = []
serializer_class = SubProductionPlanListSerializer
filterset_fields = ['production_plan',