Blame view

src/api/fqsq.js 4.6 KB
1 2 3
/*
 * @Description: 
 * @Autor: renchao
4
 * @LastEditTime: 2023-05-16 14:01:26
5
 */
liangyifan committed
6
import request from '@/utils/request'
7
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
8 9 10 11 12
/**
 * @description: 转出
 * @param {*} data
 * @author: renchao
 */
任超 committed
13
export function completeTask (data) {
liangyifan committed
14
    return request({
任超 committed
15
        url: SERVER.SERVERAPI + '/rest/business/workFlow/completeTask',
liangyifan committed
16 17 18 19
        method: 'post',
        data
    })
}
20 21 22 23 24
/**
 * @description: 回退表格数据
 * @param {*} params
 * @author: renchao
 */
任超 committed
25
export function getTaskBackNode (params) {
liangyifan committed
26
    return request({
任超 committed
27
        url: SERVER.SERVERAPI + '/rest/business/workFlow/getTaskBackNode',
田浩浩 committed
28 29
        method: 'get',
        params: params
liangyifan committed
30
    })
田浩浩 committed
31
}
32 33 34 35 36
/**
 * @description: 退回确认接口
 * @param {*} data
 * @author: renchao
 */
任超 committed
37
export function sendBackTask (data) {
liangyifan committed
38
    return request({
任超 committed
39
        url: SERVER.SERVERAPI + '/rest/business/workFlow/sendBackTask',
liangyifan committed
40 41 42 43
        method: 'post',
        data
    })
}
44 45 46 47 48
/**
 * @description: 获取左侧列表
 * @param {*} data
 * @author: renchao
 */
任超 committed
49
export function leftMenu (data) {
liangyifan committed
50
    return request({
任超 committed
51
        url: SERVER.SERVERAPI + '/rest/business/workFlow/leftMenu',
liangyifan committed
52 53 54 55
        method: 'post',
        data
    })
}
蔡俊立 committed
56

57 58 59 60 61
/**
 * @description: 获取下一环节信息
 * @param {*} params
 * @author: renchao
 */
任超 committed
62
export function getNextLinkInfo (params) {
蔡俊立 committed
63
    return request({
任超 committed
64
        url: SERVER.SERVERAPI + '/rest/business/workFlow/getNextLinkInfo',
蔡俊立 committed
65 66
        method: 'get',
        params: params
田浩浩 committed
67
    });
蔡俊立 committed
68 69
}

70 71 72 73 74
/**
 * @description: 获取单元对应的环节表单信息
 * @param {*} data
 * @author: renchao
 */
任超 committed
75
export function getStepFormInfo (data) {
76
    return request({
任超 committed
77
        url: SERVER.SERVERAPI + '/rest/business/workFlow/getStepFormInfo',
78 79 80 81
        method: 'post',
        data
    });
}
82 83 84 85 86
/**
 * @description: 环节扩展信息
 * @param {*} data
 * @author: renchao
 */
任超 committed
87
export function stepExpandInfo (data) {
蔡俊立 committed
88
    return request({
任超 committed
89
        url: SERVER.SERVERAPI + '/rest/business/workFlow/stepExpandInfo',
蔡俊立 committed
90 91 92 93
        method: 'post',
        data
    })
}
蔡俊立 committed
94

95 96 97 98 99
/**
 * @description: 获取审批意见
 * @param {*} data
 * @author: renchao
 */
任超 committed
100
export function getSpyjList (data) {
蔡俊立 committed
101
    return request({
蔡俊立 committed
102
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/getSpyjList',
蔡俊立 committed
103 104 105 106 107
        method: 'post',
        data
    })
}

108 109 110 111 112
/**
 * @description: 保存审批意见
 * @param {*} data
 * @author: renchao
 */
任超 committed
113
export function saveSpyj (data) {
蔡俊立 committed
114
    return request({
蔡俊立 committed
115
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/saveSpyj',
蔡俊立 committed
116 117 118 119
        method: 'post',
        data
    })
}
120 121 122 123 124
/**
 * @description: 根据受理申请保存审批意见
 * @param {*} data
 * @author: renchao
 */
任超 committed
125
export function saveSpyjBySlsq (data) {
蔡俊立 committed
126
    return request({
蔡俊立 committed
127
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/saveSpyjBySlsq',
蔡俊立 committed
128 129 130 131
        method: 'post',
        data
    })
}
132

133 134 135 136 137
/**
 * @description: 获取用户常用意见
 * @param {*} data
 * @author: renchao
 */
138 139 140 141 142 143 144 145
export function getUserCommonOpinion (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/getUserCommonOpinion',
        method: 'post',
        data
    })
}

146 147 148 149 150
/**
 * @description: 新增用户常用意见
 * @param {*} params
 * @author: renchao
 */
151 152 153 154 155 156 157 158
export function addUserCommonOpinion (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/addUserCommonOpinion',
        method: 'get',
        params
    })
}

159 160 161 162 163
/**
 * @description: 删除常用意见
 * @param {*} params
 * @author: renchao
 */
蔡俊立 committed
164 165 166 167 168 169 170 171
export function delUserCommonOpinion (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/delUserCommonOpinion',
        method: 'get',
        params
    })
}

172 173 174 175 176
/**
 * @description: 登簿接口
 * @param {*} data
 * @author: renchao
 */
任超 committed
177
export function record (data) {
田浩浩 committed
178
    return request({
任超 committed
179
        url: SERVER.SERVERAPI + '/rest/business/workFlow/record',
田浩浩 committed
180 181 182 183
        method: 'post',
        data
    })
}
蔡俊立 committed
184

蔡俊立 committed
185 186 187
// 终止任务
export function stopTask (data) {
    return request({
任超 committed
188
        url: SERVER.SERVERAPI + '/rest/business/workFlow/stopTask',
蔡俊立 committed
189 190 191 192
        method: 'post',
        data
    })
}
蔡俊立 committed
193

194 195 196 197 198
/**
 * @description: 获取用户任务权限
 * @param {*} params
 * @author: renchao
 */
蔡俊立 committed
199 200 201 202 203 204 205
export function judgeUserTaskPermission (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/judgeUserTaskPermission',
        method: 'get',
        params
    })
}
蔡俊立 committed
206

207 208 209 210 211
/**
 * @description: 获取申请书数据
 * @param {*} data
 * @author: renchao
 */
蔡俊立 committed
212 213 214 215 216 217 218
export function getPrintApplicationInfo (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/getPrintApplicationInfo',
        method: 'post',
        data
    })
}