feat: 交接记录关联审批暂不支持撤销
This commit is contained in:
parent
45c224c10e
commit
fa38cfdbdd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue