2026-09-15 10:54:51 +08:00

51 lines
1.7 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/config/axios'
// 文档审批流程配置 VO
export interface DocumentFlowsSettingVO {
id: number // 主键
name: string // 流程名称
defaultFlow: boolean // 是否默认流程
remark: string //备注
data: string //数据
progress: number //当前进度
variables?: Array<{
code: string // 变量代码(A-Z)
name: string // 变量名称
value?: string // 用户ID(当progress >= 0时使用)
userName?: string // 用户名称(当progress >= 0时使用)
}> // 流程变量配置
}
// 文档审批流程配置 API
export const DocumentFlowsSettingApi = {
// 查询文档审批流程配置分页
getDocumentFlowsSettingPage: async (params: any) => {
return await request.get({ url: `/sas/document-flows-setting/page`, params })
},
// 查询文档审批流程配置详情
getDocumentFlowsSetting: async (id: number) => {
return await request.get({ url: `/sas/document-flows-setting/get?id=` + id })
},
// 新增文档审批流程配置
createDocumentFlowsSetting: async (data: DocumentFlowsSettingVO) => {
return await request.post({ url: `/sas/document-flows-setting/create`, data })
},
// 修改文档审批流程配置
updateDocumentFlowsSetting: async (data: DocumentFlowsSettingVO) => {
return await request.put({ url: `/sas/document-flows-setting/update`, data })
},
// 删除文档审批流程配置
deleteDocumentFlowsSetting: async (id: number) => {
return await request.delete({ url: `/sas/document-flows-setting/delete?id=` + id })
},
// 导出文档审批流程配置 Excel
exportDocumentFlowsSetting: async (params) => {
return await request.download({ url: `/sas/document-flows-setting/export-excel`, params })
},
}