Blame view

src/api/workflow/cfdjFlow.js 1.77 KB
1 2 3
/*
 * @Description: 
 * @Autor: renchao
4
 * @LastEditTime: 2023-05-17 10:25:58
5
 */
6
import request from '@/utils/request'
7
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
8

9 10 11 12 13
/**
 * @description: 批量初始化
 * @param {*} data
 * @author: renchao
 */
任超 committed
14
export function BatchInit (data) {
蔡俊立 committed
15 16 17
    let apiUrl = "";
    switch (data.get("djlx")) {
        case "300":
18
            apiUrl = SERVER.SERVERAPI + "/rest/ywbl/cfdj/changeBatchInit";
蔡俊立 committed
19 20
            break;
        case "400":
21
            apiUrl = SERVER.SERVERAPI + "/rest/ywbl/cfdj/logoutBatchInit";
蔡俊立 committed
22 23
            break;
        case "800":
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
            apiUrl = SERVER.SERVERAPI + "/rest/ywbl/cfdj/seizeBatchInit";
            break;
    }
    return request({
        url: apiUrl,
        method: 'post',
        data
    })
}

export function Init (data) {
    let apiUrl = "";
    switch (data.get("djlx")) {
        case "300":
            apiUrl = SERVER.SERVERAPI + "/rest/ywbl/cfdj/changeInit";
            break;
        case "400":
            apiUrl = SERVER.SERVERAPI + "/rest/ywbl/cfdj/logoutInit";
            break;
        case "800":
            apiUrl = SERVER.SERVERAPI + "/rest/ywbl/cfdj/seizeInit";
蔡俊立 committed
45 46
            break;
    }
蔡俊立 committed
47
    return request({
蔡俊立 committed
48
        url: apiUrl,
49 50 51 52 53
        method: 'post',
        data
    })
}

54 55 56 57 58
/**
 * @description: 数据保存
 * @param {*} data
 * @author: renchao
 */
蔡俊立 committed
59
export function saveData (data) {
60
    return request({
任超 committed
61
        url: SERVER.SERVERAPI + '/rest/ywbl/cfdj/saveData',
62 63 64 65
        method: 'post',
        data
    })
}
蔡俊立 committed
66

67 68 69 70 71
/**
 * @description: 批量数据保存
 * @param {*} data
 * @author: renchao
 */
蔡俊立 committed
72 73
export function batchSaveData (data) {
    return request({
任超 committed
74
        url: SERVER.SERVERAPI + '/rest/ywbl/cfdj/batchSaveData',
蔡俊立 committed
75 76 77 78
        method: 'post',
        data
    })
}