fqsq.js 4.6 KB
/*
 * @Description: 
 * @Autor: renchao
 * @LastEditTime: 2023-05-16 14:01:26
 */
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
/**
 * @description: 转出
 * @param {*} data
 * @author: renchao
 */
export function completeTask (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/completeTask',
        method: 'post',
        data
    })
}
/**
 * @description: 回退表格数据
 * @param {*} params
 * @author: renchao
 */
export function getTaskBackNode (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/getTaskBackNode',
        method: 'get',
        params: params
    })
}
/**
 * @description: 退回确认接口
 * @param {*} data
 * @author: renchao
 */
export function sendBackTask (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/sendBackTask',
        method: 'post',
        data
    })
}
/**
 * @description: 获取左侧列表
 * @param {*} data
 * @author: renchao
 */
export function leftMenu (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/leftMenu',
        method: 'post',
        data
    })
}

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

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

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

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

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

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

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

/**
 * @description: 登簿接口
 * @param {*} data
 * @author: renchao
 */
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
    })
}

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

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