Blame view

src/api/fwsyqFlow.js 1.34 KB
1
import request from '@/utils/request'
任超 committed
2
import SERVER from './config'
3
// 初始化内容
4
export function Init(data) {
5 6 7
    let apiUrl = "";
    switch (data.get("djlx")) {
        case "100":
8
            apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/fristInit";
9 10
            break;
        case "200":
11
            apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/transferInit";
12 13
            break;
        case "300":
14
            apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/changeInit";
15 16
            break;
        case "400":
17
            apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/logoutInit";
18 19
            break;
        case "500":
20
            apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/riviseInit";
21 22
            break;
        case "901":
23
            apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/renewalInit";
24 25
            break;
        case "902":
26
            apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/replaceInit";
27 28
            break;
    }
29
    return request({
30 31 32 33 34
        url: apiUrl,
        method: 'post',
        data
    })
}
35 36
// 注销登记提交数据
export function saveLogoutData(data) {
37
    return request({
38
        url: '/ywbl/fdcq2lr/saveLogoutData',
39 40 41
        method: 'post',
        data
    })
42 43 44 45 46 47 48 49 50
}
// 首次登记提交
export function saveBatchData(data) {
  return request({
    url: '/ywbl/fdcq2lr/saveBatchData',
    method: 'post',
    data
  })
}