fqsq.js 3.5 KB
import request from '@/utils/request'
import SERVER from './config'
// 转出
export function completeTask (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/completeTask',
        method: 'post',
        data
    })
}
// 回退表格数据
export function getTaskBackNode (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/getTaskBackNode',
        method: 'get',
        params: params
    })
}
//   退回确认接口
export function sendBackTask (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/sendBackTask',
        method: 'post',
        data
    })
}
// 获取左侧列表
export function leftMenu (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/leftMenu',
        method: 'post',
        data
    })
}

// 获取下一环节信息
export function getNextLinkInfo (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/getNextLinkInfo',
        method: 'get',
        params: params
    });
}

//获取单元对应的环节表单信息
export function getStepFormInfo (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/getStepFormInfo',
        method: 'post',
        data
    });
}
// 环节扩展信息
export function stepExpandInfo (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/stepExpandInfo',
        method: 'post',
        data
    })
}

// 获取审批意见
export function getSpyjList (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/getSpyjList',
        method: 'post',
        data
    })
}

// 保存审批意见
export function saveSpyj (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/saveSpyj',
        method: 'post',
        data
    })
}
// 根据受理申请保存审批意见
export function saveSpyjBySlsq (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/saveSpyjBySlsq',
        method: 'post',
        data
    })
}

// 获取用户常用意见
export function getUserCommonOpinion (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/getUserCommonOpinion',
        method: 'post',
        data
    })
}

// 新增用户常用意见
export function addUserCommonOpinion (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/addUserCommonOpinion',
        method: 'get',
        params
    })
}

//删除常用意见
export function delUserCommonOpinion (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/delUserCommonOpinion',
        method: 'get',
        params
    })
}

// 登簿接口
export function record (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/record',
        method: 'post',
        data
    })
}

// 终止任务
export function stopTask (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/stopTask',
        method: 'post',
        data
    })
}

// 获取用户任务权限
export function judgeUserTaskPermission (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/judgeUserTaskPermission',
        method: 'get',
        params
    })
}

// 获取申请书数据
export function getPrintApplicationInfo (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/getPrintApplicationInfo',
        method: 'post',
        data
    })
}