companyUtil.js
12.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
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
import * as fetch from './fetch';
const COMPANY_PATH = '/api/empmgm';
const ORDER_PATH = '/api/psiorder';
const FRONT_PROCESS= '/api/psiorder/front-process';
const OP_ADMIN = '/api/psiorder/back-op-admin';
export const getBuildOrderInsUtil=(params,options={})=>{//入离职接单 - 人员险种信息
const url=COMPANY_PATH+'/statistics-insurance';
return fetch.post(url,params,options);
}
export const getEntIndPersonInsuranceUtil=(params,options={})=>{//参保人 - 获取政策+参保人险种
const url=ORDER_PATH+'/ent-insured-persons/'+params.id+'/abnormal'+(params.query?'?'+params.query:'');
return fetch.get(url,options);
}
export const deleteOrderListUtil=(params,options={})=>{//接单 - 删除记录
const url=ORDER_PATH+'/front-delete/record'+(params?'?'+params:'');
return fetch.get(url,options);
}
export const getLimitRangeDetailUtil=(params,options={})=>{//接单 - 处理异常获取回填的信息数据的上线控制
const url=ORDER_PATH+'/form/'+params.id+'/base-range'+(params.query?'?'+params.query:'');
return fetch.get(url,options);
}
export const getHistoryDetailUtil=(id,options={})=>{//历史缴纳记录详情
const url=ORDER_PATH+'/pre-bill-detail/'+id;
return fetch.get(url,options);
}
export const getEntRenewDetailUtil=(id,options={})=>{//接单列表--正常汇缴 -- 详情接口
const url=ORDER_PATH+'/pre-bill-detail/'+id;
return fetch.get(url,options);
}
export const getOrderList = (params, options = {}) => {
const url = COMPANY_PATH + '/do-form-status' + params;
return fetch.get(url, options);
}
//获取户籍性质列表
export const getGegisterList = (id, options = {}) => {
const url = '/api/sipolicy/policy-hhr/' + id;
return fetch.get(url, options);
}
//接单统计信息
export const getOrderCount = () => {
const url = ORDER_PATH + '/ent-form-statistics';
return fetch.get(url);
}
//办理信息失败统计
export const getInfoFieldCount = () => {
const url = ORDER_PATH + '/ent-process-statistics';
return fetch.get(url);
}
//资料信息统计
export const getDataInfoCount = () => {
const url = ORDER_PATH + '/ent-datum-statistics';
return fetch.get(url);
}
//参保人员列表
export const getInsuredMember = (params, options = {}) => {
const url = ORDER_PATH + '/ent-insured-persons' + params;
return fetch.get(url, options);
}
//客户统计列表
export const getCustomerCount = () => {
const url = ORDER_PATH + '/customer-statistics';
return fetch.get(url);
}
//生成接单表增员
export const orderOperate = (params, options = {}) => {
const url = ORDER_PATH + '/form/op/confirm-increase';
return fetch.post(url, params, options);
}
//生成接单表减员
export const orderDecrease = (params, options = {}) => {
const url = ORDER_PATH + '/form/op/confirm-decrease';
return fetch.post(url, params, options);
}
//接单表确认提交
export const orderSubmit = (params, options = {}) => {
const url = ORDER_PATH + '/form-submit';
return fetch.post(url, params, options);
}
//接单表再次确认提交
export const orderAgainSubmit = (params, options = {}) => {
const url = ORDER_PATH + '/form-re-submit';
return fetch.post(url, params, options);
}
//资料信息列表
export const getDataInfoList = (params, options = {}) => {
const url = ORDER_PATH + '/datum-check' + params;
return fetch.get(url, options);
}
//提醒上传资料
export const hintUpdate = (params,options = {}) => {
const url = ORDER_PATH + '/datum-check/warning';
return fetch.post(url, params, options);
}
//历史缴纳记录列表
export const getHistoryList = (params, options = {}) => {
const url = ORDER_PATH + '/pre-bill-detail' + params;
return fetch.get(url, options);
}
//预收明细导出
export const presellBillImport = (params, options = {}) => {
const url = ORDER_PATH + '/pre-bills/op/export';
return fetch.post(url,params, options);
}
//预收账单列表
export const getPreseList = (params, options = {}) => {
const url = ORDER_PATH + '/pre-bill' + (params?'?'+params:'');
return fetch.get(url, options);
}
//预收账单详情列表
export const getPreseDetailList = (params, options = {}) => {
const url = ORDER_PATH + '/pre-bill/' + params.id + '/op/detail?' + params.query ;
return fetch.get(url, options);
}
//所需办理资料
export const getDataNeeded = (params, options = {}) => {
const url = '/api/sipolicy/datum-fields';
return fetch.post(url, params, options);
}
//增员
export const addMember = (params, options = {}) => {
const url = ORDER_PATH + '/pre-bill-increase';
return fetch.post(url, params, options);
}
//接单表列表
export const getOrderFormList = (params, options = {}) => {
const url = ORDER_PATH + '/form' + params;
return fetch.get(url, options);
}
//生成账单明细
export const buildOrder = (params, options = {}) => {
const url = ORDER_PATH + '/pre-bill-generate';
return fetch.post(url, params, options);
}
//生成账单明细再次提交
export const againSubmit = (params, options = {}) => {
const url = ORDER_PATH + '/pre-bill-submit';
return fetch.post(url, params, options);
}
//上传接单模板
export const getOrderTem = (params) =>{
const url=ORDER_PATH + '/do-import-template';
return fetch.post(url,params);
}
//新建社保接单模板
export const addSocialOrderTem = (params, options = {}) => {
const url = ORDER_PATH + '/form-template';
return fetch.post(url,params, options);
}
//处理政策异常
export const dealPolicy = (params, options = {}) => {
const url = ORDER_PATH + '/form-handle-policy/'+params.id;
return fetch.post(url, params, options);
}
//接单明细详情
export const getBillListDetailUtil = (id, options = {}) => {
const url = ORDER_PATH + '/pre-bill-detail/' + id;
return fetch.get(url, options);
}
//接单列表详情
export const getOrderListDetail = (id, options = {}) => {
const url = ORDER_PATH + '/form/' + id;
return fetch.get(url, options);
}
//参保人员详情
export const getInsuredDetail = (id, options = {}) => {
const url = ORDER_PATH + '/ent-insured-persons/' + id;
return fetch.get(url, options);
}
//社保人员批量导入
export const socialImport = (params, options = {}) => {
const url = ORDER_PATH + '/ent-insured-persons/op/import';
return fetch.post(url, params, options);
}
//接单详情修改
export const detailUpdate = (params, options = {}) => {
const url = ORDER_PATH + '/form/'+params.id;
return fetch.put(url, params, options);
}
//预收明细详情修改
export const presellUpdate = (params, options = {}) => {
const url = ORDER_PATH + '/pre-bill-detail/'+params.id;
return fetch.put(url, params, options);
}
//接单表删除
export const orderDel = (params, options = {}) => {
const url = ORDER_PATH + '/form';
return fetch.del(url,params,options);
}
//接单模板列表
export const getFormTem = (params, options = {}) => {
const url = ORDER_PATH + '/form-templates' + params;
return fetch.get(url, options);
}
//接单表删除
export const delTem = (id, options = {}) => {
const url = ORDER_PATH + '/form-templates/'+id;
return fetch.del(url, options);
}
//参保人员处理政策异常
export const insuredDeaPolicy = (params, options = {}) => {
const url = ORDER_PATH + '/ent-insured-persons/'+params.id+'/op/handle-policy';
return fetch.put(url, params, options);
}
//参保人员缺少信息处理异常
export const insuredDealWith = (params, options = {}) => {
const url = ORDER_PATH + '/ent-insured-persons/'+params.id;
return fetch.put(url, params, options);
}
//客户统计信息
export const getCustomerStatistics = () => {
const url = ORDER_PATH + '/ent-customer-statistics';
return fetch.get(url);
}
//社保人员减员
export const insuredDecrease = (params, options = {}) => {
const url = ORDER_PATH + '/ent-insured-persons/'+params.id+'/op/decrease';
return fetch.put(url,params,options);
}
//社保人员删除
export const insuredDelete = (params, options = {}) => {
const url = ORDER_PATH + '/ent-insured-persons/'+params.id;
return fetch.del(url,options);
}
//预收明细导出
export const prebillExport = (params, options = {}) => {
const url = ORDER_PATH + '/pre-bill-export?id='+params.id;
return fetch.post(url,params,options);
}
//导入接单
export const importOrder = (params) =>{
const url=ORDER_PATH + '/form/do-import';
return fetch.post(url,params);
}
//接单预导入
export const preImportOrder = (params) =>{
const url=ORDER_PATH + '/form/pre-import';
return fetch.post(url,params);
}
//导入接单
export const getAccountInfo = (params) =>{
const url=ORDER_PATH + '/pre-bill-policy-accounts';
return fetch.post(url,params);
}
/**********************************企业前后道**********************************/
//后道资料更新
export const backUpdateFilesUtil = (params,options={}) => {
const url = ORDER_PATH+'/insured-person-back/'+params.id;
return fetch.putJson(url,params,options);
}
//前道列表
export const getFrontProcessList = (params,options={}) =>{
const url=FRONT_PROCESS+(params?'?target_type=ent&'+params:'');
return fetch.get(url,options);
}
//前道详情
export const getFrontProcessDetail = (params,options={}) =>{
const url=FRONT_PROCESS+'/'+params.id+'?target_type=ent';
return fetch.get(url,options);
}
//前道资料更新
export const updateFiles = (params,options={}) => {
const url = ORDER_PATH+'/insured-person/'+params.insured_person_id;
return fetch.put(url,params,options);
}
//获取后道负责人列表
export const getAjustAdminList = (params,options={}) => {
const url = OP_ADMIN+(params?'?'+params:'');
return fetch.get(url,options);
}
//前道资料审核
export const checkDatum = (params,options={}) => {
const url = ORDER_PATH+'/datum-check';
return fetch.post(url,params,options);
}
//前道确认提交
export const applyAct = (params,options={}) => {
const url = FRONT_PROCESS+'/op/apply';
return fetch.post(url,params,options);
}
//前道下月新增且补缴
export const increaseAndPayback = (params,options={}) => {
const url = FRONT_PROCESS+'/op/increase-and-payback';
return fetch.post(url,params,options);
}
//前道取消
export const frontProcessCancel = (params,options={}) => {
const url = FRONT_PROCESS+`/op/cancel`
return fetch.post(url,params,options);
}
//前道下月补缴
export const onlyPayback = (params,options={}) => {
const url = FRONT_PROCESS+`/op/payback`
return fetch.post(url,params,options);
}
//分配实操负责人
export const opBackAdmin = (params,options={}) => {
const url = OP_ADMIN;
return fetch.post(url,params,options);
}
//获取后道办理人详情
export const getBackAdminDetail = (params,options={}) => {
const url = OP_ADMIN+'/'+params.id;
return fetch.get(url,options);
}
//获取后道办理人账户客户信息
export const getBackAccountCustomerList = (params,options={}) => {
const url = '/api/psiorder/back-account-customer';
return fetch.get(url,options);
}
//取消后道分配办理人
export const cancelBackAdmin = (params,options={}) => {
const url = '/api/psiorder/back-op-admin/'+params.id;
return fetch.del(url,params,options);
}
//获取前道按基数处理回填数据
export const getBackClict = (params,options={}) => {
const url = '/api/psiorder/conflict-check/'+params.id+'/info';
return fetch.get(url,options);
}
//前道按基数处理操作
export const handleBackClict = (params,options={}) => {
const url = '/api/psiorder/conflict-check/'+params.front_process_id+'/op/handle';
return fetch.put(url,params,options);
}
//获取所有险种
export const getInsuranceByParams = (params,options={}) =>{
const url = '/api/sipolicy/insurances';
return fetch.post(url,params,options);
}
//上传历史缴纳记录模板
export const hisImportTemplate = (params,options={}) =>{
const url = '/api/psiorder/historical/import-template';
return fetch.post(url,params,options);
}
//创建历史缴纳记录模板
export const addHisImportTemplate = (params,options={}) =>{
const url = '/api/psiorder/historical/create-template';
return fetch.post(url,params,options);
}
// 导入记录列表(社保)
export const getCompanyServerRecordsUitl=(params,options={})=>{
const url='/api/psiorder/import-jobs'+(params?'?'+params:'');
return fetch.get(url,options);
}
//导入失败记录列表(社保)
export const getFailCompanyServerRecordsUitl=(params,options={})=>{
const url='/api/psiorder/import-jobs/'+params.id+'/records';
return fetch.get(url,options);
}
// 社保办理后道导入
// 获取法务实体列表
export const getLegalAll=(data,options={})=>{
const url=`/api/uaa/tenants/${data.tenant_id}/legal-entities?customer=true`
return fetch.get(url,options)
}
// 新建社保导入模板
export const addSocialOrderTemImport = (params, options = {}) => {
const url = `/api/psiorder/back_process/ext/do-import`
return fetch.post(url,params, options);
}
// 删除退回险种 //撤销参保
export const deleteSendBack = (params, options = {}) => {
const url = FRONT_PROCESS + '/op/' + params.op_type
return fetch.post(url,params, options);
}
// 后道退回 获取其他账户的险种
export const getAssociatedRisks = (params, options = {}) => {
const url = '/api/psiorder/back-process/account/' + params+ '/otherins'
return fetch.get(url, options);
}