feat: check_batch_exist 暂时先去除

This commit is contained in:
caoqianming 2025-12-24 08:50:45 +08:00
parent da1f587036
commit c86e15cef9
1 changed files with 3 additions and 2 deletions

View File

@ -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: