Blame view

src/api/fqsq.js 3.5 KB
liangyifan committed
1
import request from '@/utils/request'
任超 committed
2
import SERVER from './config'
liangyifan committed
3
// 转出
任超 committed
4
export function completeTask (data) {
liangyifan committed
5
    return request({
任超 committed
6
        url: SERVER.SERVERAPI + '/rest/business/workFlow/completeTask',
liangyifan committed
7 8 9 10
        method: 'post',
        data
    })
}
liangyifan committed
11
// 回退表格数据
任超 committed
12
export function getTaskBackNode (params) {
liangyifan committed
13
    return request({
任超 committed
14
        url: SERVER.SERVERAPI + '/rest/business/workFlow/getTaskBackNode',
田浩浩 committed
15 16
        method: 'get',
        params: params
liangyifan committed
17
    })
田浩浩 committed
18
}
liangyifan committed
19
//   退回确认接口
任超 committed
20
export function sendBackTask (data) {
liangyifan committed
21
    return request({
任超 committed
22
        url: SERVER.SERVERAPI + '/rest/business/workFlow/sendBackTask',
liangyifan committed
23 24 25 26
        method: 'post',
        data
    })
}
liangyifan committed
27
// 获取左侧列表
任超 committed
28
export function leftMenu (data) {
liangyifan committed
29
    return request({
任超 committed
30
        url: SERVER.SERVERAPI + '/rest/business/workFlow/leftMenu',
liangyifan committed
31 32 33 34
        method: 'post',
        data
    })
}
蔡俊立 committed
35 36

// 获取下一环节信息
任超 committed
37
export function getNextLinkInfo (params) {
蔡俊立 committed
38
    return request({
任超 committed
39
        url: SERVER.SERVERAPI + '/rest/business/workFlow/getNextLinkInfo',
蔡俊立 committed
40 41
        method: 'get',
        params: params
田浩浩 committed
42
    });
蔡俊立 committed
43 44
}

45
//获取单元对应的环节表单信息
任超 committed
46
export function getStepFormInfo (data) {
47
    return request({
任超 committed
48
        url: SERVER.SERVERAPI + '/rest/business/workFlow/getStepFormInfo',
49 50 51 52
        method: 'post',
        data
    });
}
蔡俊立 committed
53
// 环节扩展信息
任超 committed
54
export function stepExpandInfo (data) {
蔡俊立 committed
55
    return request({
任超 committed
56
        url: SERVER.SERVERAPI + '/rest/business/workFlow/stepExpandInfo',
蔡俊立 committed
57 58 59 60
        method: 'post',
        data
    })
}
蔡俊立 committed
61 62

// 获取审批意见
任超 committed
63
export function getSpyjList (data) {
蔡俊立 committed
64
    return request({
蔡俊立 committed
65
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/getSpyjList',
蔡俊立 committed
66 67 68 69 70 71
        method: 'post',
        data
    })
}

// 保存审批意见
任超 committed
72
export function saveSpyj (data) {
蔡俊立 committed
73
    return request({
蔡俊立 committed
74
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/saveSpyj',
蔡俊立 committed
75 76 77 78
        method: 'post',
        data
    })
}
蔡俊立 committed
79
// 根据受理申请保存审批意见
任超 committed
80
export function saveSpyjBySlsq (data) {
蔡俊立 committed
81
    return request({
蔡俊立 committed
82
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/saveSpyjBySlsq',
蔡俊立 committed
83 84 85 86
        method: 'post',
        data
    })
}
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105

// 获取用户常用意见
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
    })
}

蔡俊立 committed
106 107 108 109 110 111 112 113 114
//删除常用意见
export function delUserCommonOpinion (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/opinion/delUserCommonOpinion',
        method: 'get',
        params
    })
}

田浩浩 committed
115
// 登簿接口
任超 committed
116
export function record (data) {
田浩浩 committed
117
    return request({
任超 committed
118
        url: SERVER.SERVERAPI + '/rest/business/workFlow/record',
田浩浩 committed
119 120 121 122
        method: 'post',
        data
    })
}
蔡俊立 committed
123

蔡俊立 committed
124 125 126
// 终止任务
export function stopTask (data) {
    return request({
任超 committed
127
        url: SERVER.SERVERAPI + '/rest/business/workFlow/stopTask',
蔡俊立 committed
128 129 130 131
        method: 'post',
        data
    })
}
蔡俊立 committed
132 133 134 135 136 137 138 139 140

// 获取用户任务权限
export function judgeUserTaskPermission (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/judgeUserTaskPermission',
        method: 'get',
        params
    })
}
蔡俊立 committed
141 142 143 144 145 146 147 148 149

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