From fa38cfdbddc6f23737025e4f46811daeddbc8283 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 25 Jul 2025 22:53:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BA=A4=E6=8E=A5=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E5=85=B3=E8=81=94=E5=AE=A1=E6=89=B9=E6=9A=82=E4=B8=8D=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=92=A4=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index 678c031e..883a3c4d 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -935,6 +935,9 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, def handover_revert(handover:Handover): if handover.submit_time is None: raise ParseError('该交接单未提交!') + ticket:Ticket = handover.ticket + if ticket: + raise ParseError('该交接单已关联审批,暂不支持撤销!') mids = [] # handover_type = handover.type # handover_mtype = handover.mtype