entSocialSecurityUtil.js
1.3 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
import * as fetch from './fetch';
const SET_POLICY_LIST = '/api/psiorder/policy-config';
const API_POLICY = '/api/sipolicy/';
export const getPolicyStoreUtil=(params,options={})=>{//用地区code 从社保通获取部分企业社保政策信息
const url=API_POLICY+'policy-store'+(params?'?'+params:'');;
return fetch.get(url,options);
}
export const setPolicysListUtil=(params,options={})=>{//政策配置 - 列表
const url=SET_POLICY_LIST+(params?'?'+params:'');
return fetch.get(url,options);
}
export const setPolicyServiceAreaListUtil=(params,options={})=>{//政策配置 - 服务地区 - 列表
const url=SET_POLICY_LIST+'/'+params.id+'/area';
return fetch.get(url,options);
}
export const addPolicyServiceAreaListUtil=(params,options={})=>{//政策配置 - 新增服务地区
const url=SET_POLICY_LIST+'/'+params.id+'/area';
return fetch.post(url,params,options);
}
export const editPolicyServiceAreaUtil=(params,options={})=>{//政策配置 - 修改服务地区
const url='/api/psiorder/policy-config-area/'+params.id;
return fetch.putJson(url,params,options);
}
export const deletePolicyServiceAreaUtil=(params,options={})=>{//政策配置 - 删除服务地区
const url='/api/psiorder/policy-config-area/'+params.id;
return fetch.del(url,options);
}