Blame view

src/api/diyaqFlow.js 1.73 KB
1
import request from '@/utils/request'
任超 committed
2
import SERVER from './config'
3

4 5
// 初始化内容
export function Init (data) {
6 7 8
    let apiUrl = "";
    switch (data.get("djlx")) {
        case "100":
1  
jiaozeping@pashanhoo.com committed
9
            apiUrl = "/rest/ywbl/dyaq/fristInit";
10 11
            break;
        case "200":
1  
jiaozeping@pashanhoo.com committed
12
            apiUrl = "/rest/ywbl/dyaq/transferInit";
13 14
            break;
        case "300":
1  
jiaozeping@pashanhoo.com committed
15
            apiUrl = "/rest/ywbl/dyaq/changeInit";
16 17
            break;
        case "400":
1  
jiaozeping@pashanhoo.com committed
18
            apiUrl = "/rest/ywbl/dyaq/logoutInit";
19 20
            break;
        case "500":
1  
jiaozeping@pashanhoo.com committed
21
            apiUrl = "/rest/ywbl/dyaq/riviseInit";
22 23
            break;
        case "901":
1  
jiaozeping@pashanhoo.com committed
24
            apiUrl = "/rest/ywbl/dyaq/renewalInit";
25 26
            break;
        case "902":
1  
jiaozeping@pashanhoo.com committed
27
            apiUrl = "/rest/ywbl/dyaq/replaceInit";
28 29
            break;
    }
30
    return request({
31
        url: SERVER.SERVERAPI + apiUrl,
32 33 34
        method: 'post',
        data
    })
35 36
}
// 受理信息保存
1  
jiaozeping@pashanhoo.com committed
37
export function saveData  (data) {
38
    return request({
1  
jiaozeping@pashanhoo.com committed
39
        url: SERVER.SERVERAPI + '/rest/ywbl/dyaq/saveData',
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
        method: 'post',
        data
    })
}

// 流程图
export function getWorkFlowImage (bsmSlsq, bestepid) {
    return request({
        url: SERVER.SERVERAPI + '/rest/business/workFlow/getWorkFlowImage',
        method: 'get',
        params: {
            bsmSlsq: bsmSlsq,
            bestepid: bestepid
        }
    })
}
// 上传单个文件 
export function sjClmxUpload (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/zhcx/sjClmx/upload',
        method: 'post',
        data
    })
}
// 删除上传文件
export function sjClmxDelete (bsmClmx) {
    return request({
        url: SERVER.SERVERAPI + '/rest/zhcx/sjClmx/delete?bsmClmx=' + bsmClmx,
        method: 'delete'
    })
70
}