| 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}`) | 
| } |