| | |
| | | remark?: string; |
| | | /** 创建时间 */ |
| | | createTime?: number; |
| | | /** BPM 流程实例编号 */ |
| | | processInstanceId?: string; |
| | | } |
| | | |
| | | export interface PageParams extends PageParam { |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 审核(待审核→待归档) */ |
| | | export function auditPdProject(id: number) { |
| | | return requestClient.put('/mes/pd/project/audit', undefined, { |
| | | params: { id }, |
| | | /** 提交审批(待审核→审批中) */ |
| | | export function submitPdProjectApproval(id: number, processDefinitionKey: string) { |
| | | return requestClient.put('/mes/pd/project/submit-approval', undefined, { |
| | | params: { id, processDefinitionKey }, |
| | | }); |
| | | } |
| | | |
| | | /** 获得审批流程列表 */ |
| | | export function getPdProjectApproveProcessList() { |
| | | return requestClient.get<Array<{ id: string; name: string; key: string }>>( |
| | | '/mes/pd/project/approve-process-list', |
| | | ); |
| | | } |
| | | |
| | | /** 归档(待归档→已归档),后端自动创建归档台账记录 */ |
| | | export function archivePdProject(id: number) { |
| | | return requestClient.put('/mes/pd/project/archive', undefined, { |