busiInsuranceUtil.js
4.5 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
import * as fetch from './fetch'
const URL = '/api/busiinsurance'
// 产品列表
export const getProductsListUtil = (params, options = {}) => {
const url = `${URL}/products${params}`
return fetch.get(url, options)
}
// 新增产品
export const postAddProductsUtil = (params, options = {}) => {
const url = `${URL}/products`
return fetch.post(url, params, options)
}
// 删除产品
export const delProductsUtil = (id, options = {}) => {
const url = `${URL}/products/${id}`
return fetch.del(url, options)
}
// 购买产品
export const buyProductUtil = (params, options = {}) => {
const url = `${URL}/buy-product`
return fetch.post(url, params, options)
}
// 产品详情
export const getProductsDetailsUtil = (id, options = {}) => {
const url = `${URL}/products/${id}`
return fetch.get(url, options)
}
// 方案列表
export const getProgrammesListUtil = (params, options = {}) => {
const url = `${URL}/programmes${params}`
return fetch.get(url, options)
}
// 新增方案
export const postAddProgrammesUtil = (params, options = {}) => {
const url = `${URL}/programmes`
return fetch.post(url, params, options)
}
// 删除方案
export const delProgrammesUtil = (id, options = {}) => {
const url = `${URL}/programmes/${id}`
return fetch.del(url, options)
}
// 方案详情
export const getProgrammesDetailsUtil = (id, options = {}) => {
const url = `${URL}/programmes/${id}`
return fetch.get(url, options)
}
// 编辑方案
export const putEditProgrammesUtil = (params, options = {}) => {
const url = `${URL}/programmes`
return fetch.put(url, params, options)
}
// 配置方案
export const getSetProgrammesListUtil = (params, options = {}) => {
const url = `${URL}/set-programmes${params}`
return fetch.get(url, options)
}
// 配置方案 删除
export const postSetProgrammesUtil = (params, options = {}) => {
const url = `${URL}/set-programmes`
return fetch.post(url, params, options)
}
// 配置方案 删除
export const delSetProgrammesUtil = (id, options = {}) => {
const url = `${URL}/set-programmes/${id}`
return fetch.del(url, options)
}
// 导入在保人员
export const postOninsuredImportUtil = (params, options = {}) => {
const url = `${URL}/oninsured-import`
return fetch.post(url, params, options)
}
// 商保首页统计
export const getInsurancesCountUtil = (options = {}) => {
const url = `${URL}/index-statistics`
return fetch.get(url, options)
}
// 今日/月加/减保
export const getPersonInsurancesListUtil = (params, options = {}) => {
const url = `${URL}/person-insurances${params}`
return fetch.get(url, options)
}
// 今日/月加/减保 详情
export const getPersonInsurancesDetailsUtil = (id, options = {}) => {
const url = `${URL}/person-insurances/${id}`
return fetch.get(url, options)
}
// 批量加保、减保
export const postAddinsurancesImportUtil = (params, options = {}) => {
let url = ''
if (params.type == 'add') {
url = `${URL}/addinsurances-import`
}
if (params.type == 'reduce') {
url = `${URL}/reduce-import`
}
return fetch.post(url, params, options)
}
// 单独加保
export const postPersonInsurancesUtil = (params, options = {}) => {
const url = `${URL}/person-insurances`
return fetch.post(url, params, options)
}
// 获取员工信息
export const getEmployeeInfoeUtil = (params, options = {}) => {
const url = `${URL}/get-employees?${params}`
return fetch.get(url, options)
}
// 失败待处理 删除
export const delPersonInsuranceUtil = (query, options = {}) => {
const url = `${URL}/person-insurances/${query.id}`
return fetch.del(url, query, options)
}
// 办理列表
export const getDealListUtil = (params, options = {}) => {
const url = `${URL}/deal-list${params}`
return fetch.get(url, options)
}
// 导入办理结果
export const postDealresultImportUtil = (params, options = {}) => {
const url = `${URL}/dealresult-import`
return fetch.post(url, params, options)
}
// 导出办理
export const getDealresultExportUtil = (programme_id, options = {}) => {
const url = `${URL}/dealresult-export/${programme_id}`
return fetch.get(url, options)
}
// 导入记录
export const getImportRecordListUtil = (params, options = {}) => {
const url = `${URL}/import-list${params}`
return fetch.get(url, options)
}
// 导入记录详情
export const getImportRecordDetailsUtil = (id, options = {}) => {
const url = `${URL}/import-detail/${id}`
return fetch.get(url, options)
}
// 确认生效/拒绝/减保/加保
export const postPersonInsurancesActionUtil = (params, options = {}) => {
const url = `${URL}/person-insurances/op/actions`
return fetch.put(url, params, options)
}