realBackUtil.js
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import * as fetch from './fetch';
import {USE_MOCK} from '../redux/constants/Constants';
const PSIORDER = '/api/psiorder/';
//后道实缴明细 - 确认实缴
export const realConfirmUtil= (params,options={}) => {
const url =PSIORDER+'real-confirm';
return fetch.post(url,params,options);
}
//后道实缴明细列表
export const backRealListUtil= (params,options={}) => {
const url =PSIORDER+'real'+(params?'?'+params:'');
return fetch.get(url,options);
}
//后道实缴明细列表---人员列表
export const backPersonRealListUtil= (params,options={}) => {
const url =PSIORDER+'real-detail'+(params?'?'+params:'');
return fetch.get(url,options);
}
//后道实缴模板列表
export const backTemplateListUtil= (params,options={}) => {
const url =PSIORDER+'real-templates'+(params?'?'+params:'');
return fetch.get(url,options);
}
//后道删除实缴模板
export const delBackTemplateUtil= (params,options={}) => {
const url =PSIORDER+'real-templates/'+params.id;
return fetch.del(url,options);
}
//新增模板:获取账户列表
export const backAccountsListUtil= (params,options={}) => {
const url =PSIORDER+'accounts'+(params?'?'+params:'');
return fetch.get(url,options);
}
//新增模板:上传
export const importBackTemplateUtil= (params,options={}) => {
const url =PSIORDER+'do-import-real-template';
return fetch.post(url,params,options);
}
//新增模板:新建实缴模板
export const addBackTemplateUtil= (params,options={}) => {
const url =PSIORDER+'real-template';
return fetch.post(url,params,options);
}
//导入实缴:获取险种映射表
export const getMappingUtil= (params,options={}) => {
const url =PSIORDER+'get-real-mapping';
return fetch.post(url,params,options);
}
//导入实缴:导入操作
export const importTemplateUtil= (params,options={}) => {
const url =PSIORDER+'real/do-import';
return fetch.post(url,params,options);
}