From 242c311490aaea01f32e37ea19c8ed59a4f5cd6c Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 1 Mar 2022 11:35:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E6=9C=89=E6=AD=A3=E5=9C=A8?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E7=9A=84=E5=B7=A5=E5=BA=8F=E4=B8=AD=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index c27f599..cb2ad0f 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -713,6 +713,10 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd wp.act_state = WProduct.WPR_ACT_STATE_DOWAIT if needTest: wp.act_state = WProduct.WPR_ACT_STATE_TOTEST + if wp.test:# 如果有正在进行的工序中检验 + wp.test.is_midtesting = False + wp.test.is_submited = False + wp.test.save() wp.operation = None wp.update_by = request.user