From 015491f4697b9a57232e3ffe851e0eee2086309b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 3 Dec 2021 09:33:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E5=93=81=E6=A3=80=E9=AA=8Cbug?= 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, 1 insertion(+), 1 deletion(-) diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index fc3653d..39a7b08 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -227,7 +227,7 @@ class WProductViewSet(ListModelMixin, GenericViewSet): if obj.is_testok: if wproduct.act_state == WProduct.WPR_ACT_STATE_TORETEST: wproduct.act_state = WProduct.WPR_ACT_STATE_DOWAIT # 复检 - elif wproduct.material.type == Material.MA_TYPE_GOOD: + elif wproduct.act_state == WProduct.WPR_ACT_STATE_TOTEST and wproduct.material.type == Material.MA_TYPE_GOOD: wproduct.act_state = WProduct.WPR_ACT_STATE_TOFINALTEST # 成品检验 else: wproduct.act_state = WProduct.WPR_ACT_STATE_OK