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

This commit is contained in:
曹前明 2022-06-14 09:21:56 +08:00
parent 8aeb70e024
commit 3773482b93
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ class WPlanViewSet(ListModelMixin, GenericViewSet):
perms_map = {'get': '*'}
queryset = SubProductionPlan.objects.select_related(
'process', 'workshop', 'subproduction', 'product').filter(
production_plan__state__in =[
ProductionPlan.PLAN_STATE_WORKING, ProductionPlan.PLAN_STATE_ASSGINED
state__in =[
SubProductionPlan.SUBPLAN_STATE_ASSGINED, SubProductionPlan.SUBPLAN_STATE_WORKING
]
)
search_fields = []