|
@@ -3,7 +3,7 @@ import { CptModelName, SubModelName, ActionType } from './base';
|
|
|
import { BusinessTypeKey } from './gather';
|
|
import { BusinessTypeKey } from './gather';
|
|
|
import { IExecutorApprovaledPermission } from './gatherExecutor';
|
|
import { IExecutorApprovaledPermission } from './gatherExecutor';
|
|
|
import { executorMember } from './approvalStatus';
|
|
import { executorMember } from './approvalStatus';
|
|
|
-import { IStepMatter } from './matter';
|
|
|
|
|
|
|
+import { IProcessMatter, IStepMatter } from './matter';
|
|
|
|
|
|
|
|
// 环节类型
|
|
// 环节类型
|
|
|
export enum SectorType {
|
|
export enum SectorType {
|
|
@@ -109,6 +109,8 @@ export interface IParticipantInfo {
|
|
|
accounts: IProcessAccount[];
|
|
accounts: IProcessAccount[];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// 后台的
|
|
|
|
|
+
|
|
|
// 流程中的一个环节
|
|
// 流程中的一个环节
|
|
|
export interface IProcess {
|
|
export interface IProcess {
|
|
|
ID: string;
|
|
ID: string;
|
|
@@ -141,9 +143,13 @@ export interface IProcessExecutor {
|
|
|
setType: string;
|
|
setType: string;
|
|
|
name: string;
|
|
name: string;
|
|
|
reportTime?: string; // 三合一审批流程第一位的上报时间
|
|
reportTime?: string; // 三合一审批流程第一位的上报时间
|
|
|
- approvaledPermission: IExecutorApprovaledPermission[];
|
|
|
|
|
|
|
+ approvaledPermission: string[];
|
|
|
scope?: string;
|
|
scope?: string;
|
|
|
members?: Members[];
|
|
members?: Members[];
|
|
|
|
|
+ // 事项中组件及其权限
|
|
|
|
|
+ inProcessMatters?: IProcessMatter[];
|
|
|
|
|
+ // 事项后组件及其权限
|
|
|
|
|
+ afterProcessMatters?: IProcessMatter[];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export interface SimpleDynamicStep {
|
|
export interface SimpleDynamicStep {
|
|
@@ -166,7 +172,10 @@ export interface ICollaborator {
|
|
|
institutionID?: string; // 机构ID,只在协审角色为审批单位的时候存在
|
|
institutionID?: string; // 机构ID,只在协审角色为审批单位的时候存在
|
|
|
name?: string; // 用户姓名
|
|
name?: string; // 用户姓名
|
|
|
deadline: string; // 截至时间
|
|
deadline: string; // 截至时间
|
|
|
- // permissions?: ICollaboratorPermission[]; // 协审权限
|
|
|
|
|
|
|
+ // 事项中组件及其权限
|
|
|
|
|
+ inProcessMatters?: IProcessMatter[];
|
|
|
|
|
+ // 事项后组件及其权限
|
|
|
|
|
+ afterProcessMatters?: IProcessMatter[];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 3合1添加协审下拉选项
|
|
// 3合1添加协审下拉选项
|
|
@@ -191,10 +200,12 @@ export interface IProcedureParticipantInfo {
|
|
|
configure: string[];
|
|
configure: string[];
|
|
|
members?: Members[];
|
|
members?: Members[];
|
|
|
reportTime?: string;
|
|
reportTime?: string;
|
|
|
|
|
+ inProcessMatters?: IProcessMatter[];
|
|
|
|
|
+ afterProcessMatters?: IProcessMatter[];
|
|
|
};
|
|
};
|
|
|
- collaborator: ICollaborator[];
|
|
|
|
|
|
|
+ collaborators: ICollaborator[];
|
|
|
dynamicSteps: SimpleDynamicStep[];
|
|
dynamicSteps: SimpleDynamicStep[];
|
|
|
- stepMatters: IStepMatter[];
|
|
|
|
|
|
|
+ stepMatters?: IStepMatter[];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 3合1分支判断信息
|
|
// 3合1分支判断信息
|
|
@@ -206,11 +217,12 @@ export interface IConditionItem {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 3合1分支条件信息
|
|
// 3合1分支条件信息
|
|
|
-export interface IConditionInfoItem {
|
|
|
|
|
|
|
+// eslint-disable-next-line prettier/prettier, no-use-before-define
|
|
|
|
|
+export interface IConditionInfoItem<T = IProcedureProcess> {
|
|
|
ID: string;
|
|
ID: string;
|
|
|
conditions: IConditionItem[];
|
|
conditions: IConditionItem[];
|
|
|
// eslint-disable-next-line prettier/prettier, no-use-before-define
|
|
// eslint-disable-next-line prettier/prettier, no-use-before-define
|
|
|
- process: IProcedureProcess[];
|
|
|
|
|
|
|
+ process: T[];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 3合1步骤中的一个环节
|
|
// 3合1步骤中的一个环节
|
|
@@ -238,7 +250,7 @@ export interface IProcedureItem {
|
|
|
content: string;
|
|
content: string;
|
|
|
approvalTime: string;
|
|
approvalTime: string;
|
|
|
executor?: IProcessExecutor;
|
|
executor?: IProcessExecutor;
|
|
|
- collaborator?: ICollaborator[];
|
|
|
|
|
|
|
+ collaborators?: ICollaborator[];
|
|
|
isReportProcess?: boolean;
|
|
isReportProcess?: boolean;
|
|
|
// members?: executorMember[];
|
|
// members?: executorMember[];
|
|
|
approvalWay?: string;
|
|
approvalWay?: string;
|
|
@@ -262,6 +274,24 @@ export interface IApproval {
|
|
|
businessType?: BusinessTypeKey;
|
|
businessType?: BusinessTypeKey;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// 三合一后台配置的步骤模板数据
|
|
|
|
|
+export interface I3in1ProcessTemplateItem {
|
|
|
|
|
+ ID: string;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ sectorType: SectorType;
|
|
|
|
|
+ conditionInfo: IConditionInfoItem<I3in1ProcessTemplateItem>[];
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 三合一后台配置的业务数据(approval表)
|
|
|
|
|
+export interface I3in1Approval {
|
|
|
|
|
+ ID: string;
|
|
|
|
|
+ // 主体ID
|
|
|
|
|
+ gatherID: string;
|
|
|
|
|
+ // 业务类型
|
|
|
|
|
+ businessType: BusinessTypeKey;
|
|
|
|
|
+ process: I3in1ProcessTemplateItem[];
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export enum ApprovalStatus {
|
|
export enum ApprovalStatus {
|
|
|
CREATED = 'created', // 创建完成
|
|
CREATED = 'created', // 创建完成
|
|
|
PROCESSING = 'processing', // 正在审批
|
|
PROCESSING = 'processing', // 正在审批
|