Blame view

src/api/workflow/cfdjFlow.js 972 Bytes
1
import request from '@/utils/request'
2
import SERVER from '../config'
3

蔡俊立 committed
4
//批量初始化
任超 committed
5
export function BatchInit (data) {
蔡俊立 committed
6 7 8
    let apiUrl = "";
    switch (data.get("djlx")) {
        case "300":
蔡俊立 committed
9
            apiUrl = SERVER.SERVERAPI + "/rest/ywbl/cfdj/xfBatchInit";
蔡俊立 committed
10 11
            break;
        case "400":
蔡俊立 committed
12
            apiUrl = SERVER.SERVERAPI + "/rest/ywbl/cfdj/jfBatchInit";
蔡俊立 committed
13 14
            break;
        case "800":
蔡俊立 committed
15
            apiUrl = SERVER.SERVERAPI + "/rest/ywbl/cfdj/cfBatchInit";
蔡俊立 committed
16 17
            break;
    }
蔡俊立 committed
18
    return request({
蔡俊立 committed
19
        url: apiUrl,
20 21 22 23 24
        method: 'post',
        data
    })
}

蔡俊立 committed
25 26
// 数据保存
export function saveData (data) {
27
    return request({
任超 committed
28
        url: SERVER.SERVERAPI + '/rest/ywbl/cfdj/saveData',
29 30 31 32
        method: 'post',
        data
    })
}
蔡俊立 committed
33 34 35 36

// 批量数据保存
export function batchSaveData (data) {
    return request({
任超 committed
37
        url: SERVER.SERVERAPI + '/rest/ywbl/cfdj/batchSaveData',
蔡俊立 committed
38 39 40 41
        method: 'post',
        data
    })
}