From fadd16eb1f7630ccffc1f378450af222131a122f Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sat, 29 Jan 2022 15:53:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=BA=8F=E4=B8=AD=E6=A3=80=E9=AA=8C?= =?UTF-8?q?=E6=9C=80=E5=90=8E=E4=B8=80=E6=AD=A5=E6=97=B6=E8=AE=BE=E4=B8=BA?= =?UTF-8?q?=E6=9C=AA=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index cf607ec..43d9cee 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -689,6 +689,7 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd wp.material = wsp.product if wp.test:# 如果有正在进行的工序中检验 wp.test.is_midtesting = False + wp.test.is_submited = False wp.test.save() else: wp.act_state = WProduct.WPR_ACT_STATE_DOWAIT @@ -740,6 +741,7 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd wproduct.act_state = WProduct.WPR_ACT_STATE_TOTEST if wproduct.test:# 如果有正在进行的工序中检验 wproduct.test.is_midtesting = False + wproduct.test.is_submited = False wproduct.test.save() else: wproduct.act_state = WProduct.WPR_ACT_STATE_DOWAIT