获取下一步子工序bug

This commit is contained in:
caoqianming 2021-11-18 09:42:06 +08:00
parent decb1e4aac
commit 216537c742
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ class DoFormSubmit(CreateAPIView, GenericAPIView):
else: else:
for wproduct in vdata['wproducts']: for wproduct in vdata['wproducts']:
# 获取下一步子工序 # 获取下一步子工序
newstep, hasNext = WpmServies.get_next_step(i['subproduction_plan'], vdata['step']) newstep, hasNext = WpmServies.get_next_step(wproduct.subproduction_plan, vdata['step'])
wproduct.step = newstep wproduct.step = newstep
wproduct.pre_step=vdata['step'] wproduct.pre_step=vdata['step']
if hasNext: if hasNext: