车间操作创建
This commit is contained in:
parent
c6cae6e455
commit
12895757ac
|
@ -313,13 +313,15 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Gen
|
||||||
opr.is_filled = False
|
opr.is_filled = False
|
||||||
opr.save()
|
opr.save()
|
||||||
# 查询需要使用的生产设备
|
# 查询需要使用的生产设备
|
||||||
equips = step.equipements
|
equips = step.equipments
|
||||||
for i in equips:
|
for i in equips:
|
||||||
ope = OperationEquip()
|
ope = OperationEquip()
|
||||||
ope.operation = op
|
ope.operation = op
|
||||||
ope.equip = i
|
ope.equip = i
|
||||||
ope.save()
|
ope.save()
|
||||||
return Response()
|
return Response()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue