Blame view

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

yuanbo committed
9 10 11 12 13
/**
 * @description: 初始化
 * @param {*} data
 * @author: renchao
 */
任超 committed
14
export function Init (data) {
田浩浩 committed
15 16 17
    let apiUrl = "";
    switch (data.get("djlx")) {
        case "100":
田浩浩 committed
18
            apiUrl = "/rest/ywbl/jsydsyqlr/fristInit";
田浩浩 committed
19 20
            break;
        case "200":
田浩浩 committed
21
            apiUrl = "/rest/ywbl/jsydsyqlr/transferInit";
田浩浩 committed
22 23
            break;
        case "300":
田浩浩 committed
24
            apiUrl = "/rest/ywbl/jsydsyqlr/changeInit";
田浩浩 committed
25 26
            break;
        case "400":
田浩浩 committed
27
            apiUrl = "/rest/ywbl/jsydsyqlr/logoutInit";
田浩浩 committed
28 29
            break;
        case "500":
田浩浩 committed
30
            apiUrl = "/rest/ywbl/jsydsyqlr/riviseInit";
田浩浩 committed
31 32
            break;
        case "901":
田浩浩 committed
33
            apiUrl = "/rest/ywbl/jsydsyqlr/renewalInit";
田浩浩 committed
34 35
            break;
        case "902":
田浩浩 committed
36
            apiUrl = "/rest/ywbl/jsydsyqlr/replaceInit";
田浩浩 committed
37 38 39
            break;
    }
    return request({
田浩浩 committed
40
        url: SERVER.SERVERAPI + apiUrl,
田浩浩 committed
41 42 43 44
        method: 'post',
        data
    })
}
45 46 47 48 49
/**
 * @description: 受理信息保存
 * @param {*} data
 * @author: renchao
 */
任超 committed
50
export function saveData (data) {
51
    return request({
任超 committed
52
        url: SERVER.SERVERAPI + '/rest/ywbl/jsydsyqlr/saveData',
53 54 55 56
        method: 'post',
        data
    })
}