You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

35 lines
1.4 KiB

import request from '@/utils/request'
// 申诉审批台账(审批人视角,待办/已办;返回 PageInfo,行内含 canApprove/isInitiator)
export function listAppealTodo(params) {
return request({ url: '/business/points/appeal/todoList', method: 'get', params })
}
// 申诉详情(含完整申诉字段与流程进度信息)
export function getAppealDetail(id) {
return request({ url: '/business/points/appeal/detail/' + id, method: 'get' })
}
// 根据流程实例 ID 获取流程详情,用于补齐当前待办任务 taskId
export function getAppealProcessDetail(flowInstanceId) {
return request({
url: '/flowable/busiInfo/getProcessDetail',
method: 'get',
params: { id: flowInstanceId }
})
}
// 申诉流程流转记录(节点名/办理人/时间/意见),用于详情与审批弹窗展示「审批进度」
// 注意:detail/{id} 虽文档标注「含流程进度信息」,实测只返回实体字段,流程进度需单独调本接口
export function getAppealFlowRecord(procInsId) {
return request({
url: '/flowable/task/flowRecord',
method: 'get',
params: { procInsId }
})
}
// 审批申诉流程(通过/驳回当前节点);流程结束时后端按 adjustPoints 补/扣分并推送消息
export function completeAppealFlow(data) {
return request({ url: '/business/points/appeal/completeFlow', method: 'post', data })
}