Blame view

src/api/cfdjFlow.js 1.23 KB
1 2 3
import request from '@/utils/request'

// 初始化内容
蔡俊立 committed
4 5
export function Init(data) {
    let apiUrl = "";
蔡俊立 committed
6 7
    switch (data.get("djlx")) {
        case "300":
蔡俊立 committed
8 9
            apiUrl = "/ywbl/cfdj/xfInit";
            break;
蔡俊立 committed
10
        case "400":
蔡俊立 committed
11 12
            apiUrl = "/ywbl/cfdj/jfInit";
            break;
蔡俊立 committed
13
        case "800":
蔡俊立 committed
14 15 16
            apiUrl = "/ywbl/cfdj/cfInit";
            break;
    }
17
    return request({
蔡俊立 committed
18
        url: apiUrl,
蔡俊立 committed
19 20 21 22
        method: 'post',
        data
    })
}
蔡俊立 committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36
//批量初始化
export function BatchInit(data) {
    let apiUrl = "";
    switch (data.get("djlx")) {
        case "300":
            apiUrl = "/ywbl/cfdj/xfBatchInit";
            break;
        case "400":
            apiUrl = "/ywbl/cfdj/jfBatchInit";
            break;
        case "800":
            apiUrl = "/ywbl/cfdj/cfBatchInit";
            break;
    }
蔡俊立 committed
37
    return request({
蔡俊立 committed
38
        url: apiUrl,
39 40 41 42 43
        method: 'post',
        data
    })
}

蔡俊立 committed
44 45
// 数据保存
export function saveData (data) {
46
    return request({
蔡俊立 committed
47
        url: '/ywbl/cfdj/saveData',
48 49 50 51
        method: 'post',
        data
    })
}
蔡俊立 committed
52 53 54 55 56 57 58 59 60

// 批量数据保存
export function batchSaveData (data) {
    return request({
        url: '/ywbl/cfdj/batchSaveData',
        method: 'post',
        data
    })
}