Compare commits
No commits in common. "0e783a92e09a78d7e0887d0c34ddd14b0e66bc70" and "10d4a64c3a2e75dd360f960ada38709ae595bfe6" have entirely different histories.
0e783a92e0
...
10d4a64c3a
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
from apps.wf.models import Ticket
|
from apps.wf.models import Ticket
|
||||||
# TicketFlow, Transition, Workflow, CustomField, State,
|
# TicketFlow, Transition, Workflow, CustomField, State,
|
||||||
from apps.ofm.models import LendingSeal
|
from apps.ofm.models import SealManage, LendingSeal
|
||||||
from rest_framework.exceptions import ParseError
|
from rest_framework.exceptions import ParseError
|
||||||
|
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ def seal_submit_validate(ins: LendingSeal):
|
||||||
raise ParseError('该任务已停止!')
|
raise ParseError('该任务已停止!')
|
||||||
|
|
||||||
def bind_lendingseal(ticket: Ticket, transition, new_ticket_data: dict):
|
def bind_lendingseal(ticket: Ticket, transition, new_ticket_data: dict):
|
||||||
ins = LendingSeal.objects.get(id=new_ticket_data['t_id'])
|
ins = SealManage.objects.get(id=new_ticket_data['t_id'])
|
||||||
if ins.submit_time is not None:
|
if ins.submit_time is not None:
|
||||||
raise ParseError('该印章申请不可提交审批')
|
raise ParseError('该印章申请不可提交审批')
|
||||||
# seal_submit_validate(ins)
|
# seal_submit_validate(ins)
|
||||||
|
|
Loading…
Reference in New Issue