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