Blame view

src/api/workflow/cfdjFlow.js 1.05 KB
1 2 3 4 5
/*
 * @Description: 
 * @Autor: renchao
 * @LastEditTime: 2023-04-20 09:39:44
 */
6
import request from '@/utils/request'
7
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
8

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

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

// 批量数据保存
export function batchSaveData (data) {
    return request({
任超 committed
42
        url: SERVER.SERVERAPI + '/rest/ywbl/cfdj/batchSaveData',
蔡俊立 committed
43 44 45 46
        method: 'post',
        data
    })
}