From 0fb897d75b7cabd0cffd9c65c1546f7ccb3fdf62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Wed, 29 Jun 2022 10:56:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=B8=8B=E4=B8=80=E6=AD=A5?= =?UTF-8?q?=E5=AD=90=E5=B7=A5=E5=BA=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/models.py | 2 +- hb_server/apps/wpm/views.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hb_server/apps/wpm/models.py b/hb_server/apps/wpm/models.py index a78c6ee..78e3a3f 100644 --- a/hb_server/apps/wpm/models.py +++ b/hb_server/apps/wpm/models.py @@ -139,7 +139,7 @@ class WProduct(CommonAModel): @property def last_wp_test(self): """ - 最后提交的本产品自检 + 最后提交的本产品工序自检 """ return self.test_wproduct.filter(is_submited=True).order_by('-id').first() diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index d448544..c20918c 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -707,7 +707,7 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd if step == newstep: wp.act_state = WProduct.WPR_ACT_STATE_TOTEST - last_test = wp.last_wp_test + last_test = wp.last_process_test if last_test and reuseForm: last_test.is_midtesting = False last_test.is_submited = False @@ -718,7 +718,7 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd wp.act_state = WProduct.WPR_ACT_STATE_DOWAIT if needTest: #子工序若需要检验 wp.act_state = WProduct.WPR_ACT_STATE_TOTEST - last_test = wp.last_wp_test + last_test = wp.last_process_test if last_test and reuseForm: last_test.is_midtesting = True last_test.is_submited = False @@ -770,7 +770,7 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd wproduct.subproduction_plan = oms_w.subproduction_plan if step == newstep: wproduct.act_state = WProduct.WPR_ACT_STATE_TOTEST - last_test = wproduct.last_wp_test + last_test = wproduct.last_process_test if last_test and reuseForm: last_test.is_midtesting = False last_test.is_submited = False @@ -781,7 +781,7 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd wproduct.act_state = WProduct.WPR_ACT_STATE_DOWAIT if needTest: wproduct.act_state = WProduct.WPR_ACT_STATE_TOTEST - last_test = wproduct.last_wp_test + last_test = wproduct.last_process_test if last_test and reuseForm: last_test.is_midtesting = True last_test.is_submited = False