车间操作创建

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

View File

@ -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