From fec244765aad92eb0dd9e153efbbd8ed0f392fed Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 20 Jun 2025 11:11:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=20=E8=AF=A5=E4=BA=A4=E6=8E=A5=E5=8D=95?= =?UTF-8?q?=E4=B8=8D=E6=94=AF=E6=8C=81=E6=92=A4=E9=94=80=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index ff59693a..36c35949 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -921,6 +921,8 @@ def handover_revert(handover:Handover): handover_type = handover.type handover_mtype = handover.mtype if handover_type in [Handover.H_NORMAL, Handover.H_REPAIR] and handover_mtype == Handover.H_NORMAL: + pass + else: raise ParseError('该交接单不支持撤销!') handoverb_qs = Handoverb.objects.filter(handover=handover) material = handover.material