feat: 取消handover_submit无用校验

This commit is contained in:
caoqianming 2025-12-17 16:06:10 +08:00
parent 5dfb903c4a
commit c440707612
1 changed files with 0 additions and 3 deletions

View File

@ -625,9 +625,6 @@ class HandoverViewSet(CustomModelViewSet):
交接记录撤回
"""
ins: Handover = self.get_object()
if ins.new_batch: # 如果是合批
if Handoverb.objects.filter(batch=ins.new_batch, handover__submit_time__isnull=True).exists():
raise ParseError("该合批存在未提交的交接记录,不可撤回")
if ins.submit_time:
handover_revert(ins, handler=request.user)
return Response()