feat: 交接记录关联审批暂不支持撤销

This commit is contained in:
caoqianming 2025-07-25 22:53:49 +08:00
parent 45c224c10e
commit fa38cfdbdd
1 changed files with 3 additions and 0 deletions

View File

@ -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