Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drf_oa_workflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = """Leslie Chan"""
__email__ = 'leslie_chan@wochacha.com'
__version__ = '0.5.3'
__version__ = '0.5.4'
7 changes: 7 additions & 0 deletions drf_oa_workflow/choices.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,10 @@ class OAWFHandleReSubmit(TextChoices):
class OAWFHandleReSubmitDefault(TextChoices):
BY_STEP = "0", "逐级审批"
BY_DIRECT = "1", "直达本节点"


class OAFlowNodeType(TextChoices):
CREATE = "0", "创建"
REVIEW = "1", "审批"
SUBMIT = "2", "提交"
ARCHIVE = "3", "归档"
4 changes: 4 additions & 0 deletions drf_oa_workflow/models/oa_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from django.db import models

from drf_oa_workflow.choices import (
OAFlowNodeType,
OAWFCOIsRemarks,
OAWFCOViewType,
OAWFHandleReSubmit,
Expand Down Expand Up @@ -187,6 +188,9 @@ class WorkflowFlowNode(OADbBaseModel):
ISSUBMITDIRECTNODEDEFT = models.CharField(
max_length=10, null=True, blank=True, choices=OAWFHandleReSubmitDefault.choices, verbose_name="默认退回后再提交到达节点处理方式"
)
NODETYPE = models.CharField(
max_length=10, null=True, blank=True, choices=OAFlowNodeType.choices, verbose_name="节点类型"
)

class Meta:
managed = False
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool]
[tool.poetry]
name = "drf-oa-workflow"
version = "0.5.3"
version = "0.5.4"
homepage = "https://github.com/wccdev/drf-oa-workflow"
description = "Skeleton project created by Cookiecutter PyPackage."
authors = ["Leslie CHan <ampedee@gmail.com>"]
Expand Down