车间操作创建

This commit is contained in:
caoqianming 2021-11-19 11:08:09 +08:00
parent c6cae6e455
commit 12895757ac
1 changed files with 3 additions and 1 deletions

View File

@ -313,7 +313,7 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Gen
opr.is_filled = False
opr.save()
# 查询需要使用的生产设备
equips = step.equipements
equips = step.equipments
for i in equips:
ope = OperationEquip()
ope.operation = op
@ -324,6 +324,8 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Gen
class OperationWproductViewSet(ListModelMixin, DestroyModelMixin, GenericViewSet):
"""
操作使用的半成品