jiangping
2025-06-09 663dbe4ddca1fa409e6acbc1f77d924c161b0c39
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
import request from '../../utils/request'
 
// 查询
export function fetchList (data) {
  return request.post('/business/insurance/page', data, {
    trim: true
  })
}
 
// 导出Excel
export function exportExcel (data) {
  return request.post('/business/insurance/exportExcel', data, {
    trim: true,
    download: true
  })
}
 
// 创建
export function create (data) {
  return request.post('/business/insurance/create', data)
}
 
// 存储理赔配置
export function saveLpInfo (data) {
  return request.post('/business/insurance/saveLpInfo', data)
}
 
// 查询全部
export function all (data) {
  return request.post('/business/insurance/list', data)
}
 
// 修改
export function updateById (data) {
  return request.post('/business/insurance/updateById', data)
}
 
// 修改状态
export function updateStatus (data) {
  return request.post('/business/insurance/updateStatus', data)
}
 
// 根据ID查询
export function getById (id, type) {
  if (type && type === 1) {
    return request.get(`/business/insurance/${id}?type=${type}`)
  }
  return request.get(`/business/insurance/${id}`)
}