From bf1f2ab4e9afc141775ddb4f2fc9bfaeb8cd4c27 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 1 Mar 2022 10:34:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=B6=88=E8=80=97=E7=89=A9?= =?UTF-8?q?=E6=96=99=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index d405773..8d77fed 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -660,8 +660,9 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd if set(list(sps_omi_l)) != set(list(sps_omo_l)): raise exceptions.APIException('消耗与产出不一致') else: - if omis.exists() and processId !=1: # 不是冷加工 - raise exceptions.APIException('请选择消耗物料') + pass + # if omis.exists() and processId !=1: # 不是冷加工 + # raise exceptions.APIException('请选择消耗物料') # 检查自定义表单填写 if OperationRecord.objects.filter(operation=op, is_filled=False).exists():