Skip to content

Commit de2c527

Browse files
authored
Merge pull request #10 from wccdev/dev
feat: 流程节点表增加节点类型NODETYPE
2 parents 5d16228 + 1bd6fa3 commit de2c527

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

drf_oa_workflow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
__author__ = """Leslie Chan"""
44
__email__ = '[email protected]'
5-
__version__ = '0.5.3'
5+
__version__ = '0.5.4'

drf_oa_workflow/choices.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,10 @@ class OAWFHandleReSubmit(TextChoices):
8484
class OAWFHandleReSubmitDefault(TextChoices):
8585
BY_STEP = "0", "逐级审批"
8686
BY_DIRECT = "1", "直达本节点"
87+
88+
89+
class OAFlowNodeType(TextChoices):
90+
CREATE = "0", "创建"
91+
REVIEW = "1", "审批"
92+
SUBMIT = "2", "提交"
93+
ARCHIVE = "3", "归档"

drf_oa_workflow/models/oa_workflow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from django.db import models
44

55
from drf_oa_workflow.choices import (
6+
OAFlowNodeType,
67
OAWFCOIsRemarks,
78
OAWFCOViewType,
89
OAWFHandleReSubmit,
@@ -187,6 +188,9 @@ class WorkflowFlowNode(OADbBaseModel):
187188
ISSUBMITDIRECTNODEDEFT = models.CharField(
188189
max_length=10, null=True, blank=True, choices=OAWFHandleReSubmitDefault.choices, verbose_name="默认退回后再提交到达节点处理方式"
189190
)
191+
NODETYPE = models.CharField(
192+
max_length=10, null=True, blank=True, choices=OAFlowNodeType.choices, verbose_name="节点类型"
193+
)
190194

191195
class Meta:
192196
managed = False

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool]
22
[tool.poetry]
33
name = "drf-oa-workflow"
4-
version = "0.5.3"
4+
version = "0.5.4"
55
homepage = "https://github.com/wccdev/drf-oa-workflow"
66
description = "Skeleton project created by Cookiecutter PyPackage."
77
authors = ["Leslie CHan <[email protected]>"]

0 commit comments

Comments
 (0)