更新日志
This commit is contained in:
parent
2fe8e5814c
commit
42fa7022de
|
@ -596,7 +596,7 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd
|
||||||
newstep, _ = WpmServies.get_next_step(i.subproduction_plan, step)
|
newstep, _ = WpmServies.get_next_step(i.subproduction_plan, step)
|
||||||
wpr = dict(material=i.material, step=newstep,
|
wpr = dict(material=i.material, step=newstep,
|
||||||
act_state=WProduct.WPR_ACT_STATE_DOWAIT, remark='',
|
act_state=WProduct.WPR_ACT_STATE_DOWAIT, remark='',
|
||||||
subproduction_plan=i.subproduction_plan)
|
subproduction_plan=i.subproduction_plan, create_by=request.user)
|
||||||
for x in range(i.count):
|
for x in range(i.count):
|
||||||
ins = WProduct.objects.create(**wpr)
|
ins = WProduct.objects.create(**wpr)
|
||||||
# 添加日志
|
# 添加日志
|
||||||
|
|
Loading…
Reference in New Issue