生产执行里只显示下发的子计划
This commit is contained in:
parent
3773482b93
commit
f4906d4d8b
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue