生产执行里只显示下发的子计划
This commit is contained in:
parent
3773482b93
commit
f4906d4d8b
|
@ -49,11 +49,7 @@ class WPlanViewSet(ListModelMixin, GenericViewSet):
|
||||||
"""
|
"""
|
||||||
perms_map = {'get': '*'}
|
perms_map = {'get': '*'}
|
||||||
queryset = SubProductionPlan.objects.select_related(
|
queryset = SubProductionPlan.objects.select_related(
|
||||||
'process', 'workshop', 'subproduction', 'product').filter(
|
'process', 'workshop', 'subproduction', 'product').exclude(state=SubProductionPlan.SUBPLAN_STATE_PLANING)
|
||||||
state__in =[
|
|
||||||
SubProductionPlan.SUBPLAN_STATE_ASSGINED, SubProductionPlan.SUBPLAN_STATE_WORKING
|
|
||||||
]
|
|
||||||
)
|
|
||||||
search_fields = []
|
search_fields = []
|
||||||
serializer_class = SubProductionPlanListSerializer
|
serializer_class = SubProductionPlanListSerializer
|
||||||
filterset_fields = ['production_plan',
|
filterset_fields = ['production_plan',
|
||||||
|
|
Loading…
Reference in New Issue