创建operation bug
This commit is contained in:
parent
684f4b997f
commit
d2fb2ffd55
|
@ -21,7 +21,7 @@ class WpmServies(object):
|
||||||
"""
|
"""
|
||||||
通过半成品列表获取所属子计划
|
通过半成品列表获取所属子计划
|
||||||
"""
|
"""
|
||||||
splans = SubProductionPlan.objects.filter(is_deleted=False, wproduct__subplan__in=wproducts)
|
splans = SubProductionPlan.objects.filter(is_deleted=False, wproduct_subplan__in=wproducts)
|
||||||
return splans
|
return splans
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
@ -259,7 +259,7 @@ class WProductViewSet(ListModelMixin, GenericViewSet):
|
||||||
wproduct.save()
|
wproduct.save()
|
||||||
return Response()
|
return Response()
|
||||||
|
|
||||||
class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, UpdateModelMixin, GenericViewSet):
|
class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, UpdateModelMixin, DestroyModelMixin, GenericViewSet):
|
||||||
"""
|
"""
|
||||||
生产操作记录
|
生产操作记录
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue