173 lines
3.3 KiB
TypeScript
173 lines
3.3 KiB
TypeScript
import type { PageParam } from '@/api';
|
|
|
|
/**
|
|
* 单据查询条件
|
|
*/
|
|
export interface ApprovalQueryParam extends PageParam {
|
|
// 单据类型 completion/coordination
|
|
docType?: string;
|
|
// 单号
|
|
bizNo?: string;
|
|
// 关键词:单号、名称或标题、实施单位
|
|
keyword?: string;
|
|
// 报送部门id
|
|
reportOrgId?: number;
|
|
// 受理部门id
|
|
acceptOrgId?: number;
|
|
// 发起人id
|
|
reporterId?: number;
|
|
// 单据状态
|
|
status?: string;
|
|
// 提交时间起
|
|
submitTimeStart?: string;
|
|
// 提交时间止
|
|
submitTimeEnd?: string;
|
|
// 归档时间起
|
|
archiveTimeStart?: string;
|
|
// 归档时间止
|
|
archiveTimeEnd?: string;
|
|
}
|
|
|
|
/**
|
|
* 单据列表行
|
|
*/
|
|
export interface ApprovalItem {
|
|
id?: number;
|
|
bizNo?: string;
|
|
docType?: string;
|
|
docTypeName?: string;
|
|
status?: string;
|
|
statusName?: string;
|
|
// 名称或标题
|
|
title?: string;
|
|
submitTime?: string;
|
|
currentNodeName?: string;
|
|
reporterId?: number;
|
|
reporterName?: string;
|
|
reportOrgName?: string;
|
|
acceptOrgName?: string;
|
|
archiveTime?: string;
|
|
}
|
|
|
|
/**
|
|
* 附件
|
|
*/
|
|
export interface ApprovalAttachment {
|
|
id?: number;
|
|
fileId?: number;
|
|
name?: string;
|
|
url?: string;
|
|
length?: number;
|
|
category?: string;
|
|
categoryName?: string;
|
|
uploaderId?: number;
|
|
uploaderName?: string;
|
|
createTime?: string;
|
|
}
|
|
|
|
/**
|
|
* 处理记录
|
|
*/
|
|
export interface ApprovalRecord {
|
|
id?: number;
|
|
taskId?: number;
|
|
nodeKey?: string;
|
|
nodeName?: string;
|
|
operatorId?: number;
|
|
operatorName?: string;
|
|
action?: string;
|
|
actionName?: string;
|
|
opinion?: string;
|
|
round?: number;
|
|
createTime?: string;
|
|
}
|
|
|
|
/**
|
|
* 当前轮存档确认
|
|
*/
|
|
export interface ApprovalConfirm {
|
|
userId?: number;
|
|
userName?: string;
|
|
status?: string;
|
|
statusName?: string;
|
|
handleTime?: string;
|
|
}
|
|
|
|
/**
|
|
* 我的待处理任务
|
|
*/
|
|
export interface ApprovalMyTask {
|
|
id?: number;
|
|
nodeKey?: string;
|
|
nodeType?: string;
|
|
status?: string;
|
|
}
|
|
|
|
/**
|
|
* 单据详情
|
|
*/
|
|
export interface ApprovalInstance {
|
|
id?: number;
|
|
bizNo?: string;
|
|
docType?: string;
|
|
docTypeName?: string;
|
|
flowCode?: string;
|
|
status?: string;
|
|
statusName?: string;
|
|
round?: number;
|
|
reporterId?: number;
|
|
reporterName?: string;
|
|
reportOrgId?: number;
|
|
reportOrgName?: string;
|
|
acceptOrgId?: number;
|
|
acceptOrgName?: string;
|
|
currentNodeKey?: string;
|
|
currentNodeType?: string;
|
|
currentNodeName?: string;
|
|
submitTime?: string;
|
|
approveTime?: string;
|
|
archiveTime?: string;
|
|
archivistId?: number;
|
|
archivistName?: string;
|
|
// 业务完成确认单
|
|
name?: string;
|
|
implementOrg?: string;
|
|
fee?: number;
|
|
serviceContent?: string;
|
|
// 内部协调单
|
|
title?: string;
|
|
content?: string;
|
|
remark?: string;
|
|
dispatchTargetId?: number;
|
|
dispatchTargetName?: string;
|
|
attachments?: ApprovalAttachment[];
|
|
records?: ApprovalRecord[];
|
|
confirms?: ApprovalConfirm[];
|
|
myTask?: ApprovalMyTask | null;
|
|
permissions?: Record<string, boolean>;
|
|
}
|
|
|
|
/**
|
|
* 审批目录组织
|
|
*/
|
|
export interface ApprovalOrganization {
|
|
organizationId?: number;
|
|
parentId?: number;
|
|
organizationName?: string;
|
|
organizationFullName?: string;
|
|
organizationCode?: string;
|
|
leaderId?: number;
|
|
}
|
|
|
|
/**
|
|
* 审批目录用户
|
|
*/
|
|
export interface ApprovalUser {
|
|
userId?: number;
|
|
username?: string;
|
|
nickname?: string;
|
|
realName?: string;
|
|
organizationId?: number;
|
|
organizationName?: string;
|
|
}
|