From c4cde1c5eaa5e22184b6073524e2b1d74f1fc9c8 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 26 Jun 2025 10:54:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20handover=5Frevert=E5=B0=9D=E8=AF=95?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=85=A8=E9=83=A8=E6=92=A4=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index afa29ef2..c2a228e0 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -918,12 +918,12 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, def handover_revert(handover:Handover): if handover.submit_time is None: raise ParseError('该交接单未提交!') - 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('该交接单不支持撤销!') + # 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 for item in handoverb_qs: