|
|
@@ -6,8 +6,16 @@ export enum SectorType {
|
|
|
CONDITION = 'condition', // 条件
|
|
|
}
|
|
|
|
|
|
+export enum ProcessStatus {
|
|
|
+ WAITING = 'waiting', // 待审批
|
|
|
+ APPROVED = 'approved', // 审批通过
|
|
|
+ ACTIVATING = 'activating', // 当前流程
|
|
|
+ FAILED = 'failed', // 审批退回
|
|
|
+}
|
|
|
+
|
|
|
// 审批方式
|
|
|
export enum ApprovalWay {
|
|
|
+ REPORT = 'report', // 上报审批
|
|
|
ACCOUNT = 'account', // 指定用户
|
|
|
JOINTLYSIGN = 'jointlySign', // 会签
|
|
|
ORSIGN = 'orSign', // 或签
|
|
|
@@ -32,8 +40,10 @@ export enum AccountConfigure {
|
|
|
export interface IProcessAccount {
|
|
|
// ID 账号ID name 名称institutionID 企事业ID
|
|
|
ID: string;
|
|
|
- name: string;
|
|
|
- institutionID?: string; // 可能不会用到
|
|
|
+ name: string; // 曾用名,不会变动
|
|
|
+ institutionID?: string; // 单位ID(可能不会用到)
|
|
|
+ institutionName?: string; // 单位名称(不要保存到数据库,而是在使用的时候通过ID去查)
|
|
|
+ status: ProcessStatus; // 审批状态
|
|
|
configure: AccountConfigure[];
|
|
|
remark?: string; // 审批意见
|
|
|
}
|
|
|
@@ -51,6 +61,7 @@ export interface IProcess {
|
|
|
name: string;
|
|
|
sectorType: SectorType;
|
|
|
seq?: number;
|
|
|
+ time?: number; // 当前环节完成时间(仅当审批通过或审批退回时会有时间)
|
|
|
participantInfo: IParticipantInfo;
|
|
|
}
|
|
|
|