接口bug

This commit is contained in:
caoqianming 2021-11-24 09:53:04 +08:00
parent eae407c690
commit 277a1419b6
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class PickSerializer(serializers.Serializer):
first_step = Step.objects.get(pk=sp.steps[0]['id'])
wproducts.update(step=first_step, is_executed=False,
act_state=WProduct.WPR_ACT_STATE_DOING, is_hidden=False, warehouse=None,
subproduction_plan=sp, production_plan=sp.production_plan)
subproduction_plan=sp)
sp.is_picked=True
sp.state = SubProductionPlan.SUBPLAN_STATE_WORKING #生产中
sp.state_date_real = timezone.now() #实际开工日期