feat: 取消handover_submit无用校验
This commit is contained in:
parent
5dfb903c4a
commit
c440707612
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue