From c86e15cef9953ee9760eebfd623a138fd918732a Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 24 Dec 2025 08:50:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20check=5Fbatch=5Fexist=20=E6=9A=82?= =?UTF-8?q?=E6=97=B6=E5=85=88=E5=8E=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index b9dea08d..f785b55a 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -733,8 +733,9 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, batches = [new_batch] else: raise ParseError("合并批次时请提供新批次号") - if handover.new_wm is None: - check_batch_exist = True + # 暂时去除以下校验 + # if handover.new_wm is None: + # check_batch_exist = True target_b, _ = BatchSt.g_create(batch=new_batch, handover=handover, material_start=material, check_batch_exist=check_batch_exist) exclude_batchst_ids.append(target_b.id) elif mtype == Handover.H_DIV: