diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index 1ff9c5d..1b63890 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -442,7 +442,7 @@ class DoFormSubmit(CreateAPIView, GenericAPIView): else: 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.pre_step=vdata['step'] if hasNext: