Blame view

src/api/workflow/jsydsyqFlow.js 1.39 KB
1
import request from '@/utils/request'
2
import SERVER from '../config'
田浩浩 committed
3 4

// 初始化内容
任超 committed
5
export function Init (data) {
田浩浩 committed
6 7 8
    let apiUrl = "";
    switch (data.get("djlx")) {
        case "100":
田浩浩 committed
9
            apiUrl = "/rest/ywbl/jsydsyqlr/fristInit";
田浩浩 committed
10 11
            break;
        case "200":
田浩浩 committed
12
            apiUrl = "/rest/ywbl/jsydsyqlr/transferInit";
田浩浩 committed
13 14
            break;
        case "300":
田浩浩 committed
15
            apiUrl = "/rest/ywbl/jsydsyqlr/changeInit";
田浩浩 committed
16 17
            break;
        case "400":
田浩浩 committed
18
            apiUrl = "/rest/ywbl/jsydsyqlr/logoutInit";
田浩浩 committed
19 20
            break;
        case "500":
田浩浩 committed
21
            apiUrl = "/rest/ywbl/jsydsyqlr/riviseInit";
田浩浩 committed
22 23
            break;
        case "901":
田浩浩 committed
24
            apiUrl = "/rest/ywbl/jsydsyqlr/renewalInit";
田浩浩 committed
25 26
            break;
        case "902":
田浩浩 committed
27
            apiUrl = "/rest/ywbl/jsydsyqlr/replaceInit";
田浩浩 committed
28 29 30
            break;
    }
    return request({
田浩浩 committed
31
        url: SERVER.SERVERAPI + apiUrl,
田浩浩 committed
32 33 34 35
        method: 'post',
        data
    })
}
36
// 受理信息保存
任超 committed
37
export function saveData (data) {
38
    return request({
任超 committed
39
        url: SERVER.SERVERAPI + '/rest/ywbl/jsydsyqlr/saveData',
40 41 42 43 44
        method: 'post',
        data
    })
}

任超 committed
45
// 流程图
任超 committed
46
export function getWorkFlowImage (bsmSlsq, bestepid) {
任超 committed
47
    return request({
任超 committed
48
        url: SERVER.SERVERAPI + '/rest/business/workFlow/getWorkFlowImage',
任超 committed
49 50
        method: 'get',
        params: {
任超 committed
51 52
            bsmSlsq: bsmSlsq,
            bestepid: bestepid
任超 committed
53 54
        }
    })
任超 committed
55
}