|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 查询 | 
|---|
|  |  |  | export function fetchList (data) { | 
|---|
|  |  |  | return request.post('/company/findPlatformPage', data, { | 
|---|
|  |  |  | trim: true | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | return request.post('/business/company/page', data, { | 
|---|
|  |  |  | trim: true | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 创建 | 
|---|
|  |  |  | export function create (data) { | 
|---|
|  |  |  | return request.post('/company/create', data) | 
|---|
|  |  |  | return request.post('/business/company/create', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 修改 | 
|---|
|  |  |  | export function updateById (data) { | 
|---|
|  |  |  | return request.post('/company/updateById', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 修改 | 
|---|
|  |  |  | export function update (data) { | 
|---|
|  |  |  | return request.post('/company/update', data) | 
|---|
|  |  |  | return request.post('/business/company/updateById', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 删除 | 
|---|
|  |  |  | export function deleteById (id) { | 
|---|
|  |  |  | return request.get(`/company/delete/${id}`) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | export function pageAll (data) { | 
|---|
|  |  |  | return request.post('/business/company/list', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 查询全部数据(账号分配企业使用) | 
|---|
|  |  |  | export function allForFp (data) { | 
|---|
|  |  |  | return request.post('/business/company/pageAll', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 批量删除 | 
|---|
|  |  |  | export function deleteByIdInBatch (ids) { | 
|---|
|  |  |  | return request.get('/company/delete/batch', { | 
|---|
|  |  |  | params: { | 
|---|
|  |  |  | ids | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | // 根据ID禁用启用 | 
|---|
|  |  |  | export function updateStatus (data) { | 
|---|
|  |  |  | return request.post('/business/company/updateStatus', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | export function exportComFiles (data) { | 
|---|
|  |  |  | return request.post('/business/company/exportFiles', data, { | 
|---|
|  |  |  | trim: true, | 
|---|
|  |  |  | download: true | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 根据ID查询 | 
|---|
|  |  |  | export function getById (id) { | 
|---|
|  |  |  | return request.get(`/business/company/${id}`) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 企业更换手机号 | 
|---|
|  |  |  | export function updatePhone (data) { | 
|---|
|  |  |  | return request.post('/business/company/updatePhone', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 修改保险方案 | 
|---|
|  |  |  | export function updateSolutions (data) { | 
|---|
|  |  |  | return request.post('/business/company/updateSolutions', data) | 
|---|
|  |  |  | } | 
|---|