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