| import request from '../../utils/request' | 
|   | 
| // 查询 | 
| export function fetchList (data) { | 
|     return request.post('/business/solutions/page', data, { | 
|         trim: true | 
|     }) | 
| } | 
|   | 
| // 创建 | 
| export function create (data) { | 
|     return request.post('/business/solutions/create', data) | 
| } | 
|   | 
| // 查询全部保险方案 | 
| export function all (data, type) { | 
|     if (!type) { | 
|         data.status = 0 | 
|     } | 
|     return request.post('/business/solutions/list', data) | 
| } | 
|   | 
| // 禁用启用 | 
| export function updateStatus (data) { | 
|     return request.post('/business/solutions/updateStatus', data) | 
| } | 
|   | 
| // 修改 | 
| export function updateById (data) { | 
|     return request.post('/business/solutions/updateById', data) | 
| } | 
|   | 
| // 根据ID查询 | 
| export function solutionsId (id) { | 
|     return request.get(`/business/solutions/${id}`) | 
| } | 
|   | 
| // 查询企业全部关联方案 | 
| export function listForCompany (data) { | 
|     return request.post('/business/companySolution/listForCompany', data) | 
| } | 
|   | 
| // 根据历史版本查询当前最新启用版本 | 
| export function getNewVersion (id) { | 
|     return request.get(`/business/solutions/getNewVersion?solutionId=${id}`) | 
| } | 
|   | 
| // 查询企业可使用方案(已签署) | 
| export function getUseList (companyId, dateType) { | 
|     return request.get(`/business/solutions/getUseList?companyId=${companyId}&dateType=${dateType}`) | 
| } | 
|   | 
| // 根据ID删除 | 
| export function deleteById (id) { | 
|     return request.get(`/business/solutions/delete/${id}`) | 
| } |