| import request from '../../utils/request' | 
|   | 
| // 查询 | 
| export function fetchList (data) { | 
|   return request.post('/business/shop/page', data, { | 
|     trim: true | 
|   }) | 
| } | 
| // 查询 | 
| export function fetchListByParent (pid) { | 
|   return request.get(`/business/shop/listByParent?parentId=${pid||''}`, { | 
|     trim: true | 
|   }) | 
| } | 
| export function areaList (data) { | 
|   return request.post('/business/zhongtai/areaList',data, { | 
|     trim: true | 
|   }) | 
| } | 
| // 查询 | 
| export function fetchList3 (data) { | 
|   return request.get(`/business/shop/tree`, { | 
|     trim: true | 
|   }) | 
| } | 
| export function importExcel (data) { | 
|   return request.post('/business/shop/importExcel', data) | 
| } | 
| export function importFcodeBatch (data) { | 
|   return request.post('/business/shop/importFcodeBatch', data) | 
| } | 
| export function importCategoryBatch (data) { | 
|   return request.post('/business/shop/importCategoryBatch', data) | 
| } | 
| // 导出Excel | 
| export function exportExcel (data) { | 
|   return request.post('/business/shop/exportExcel', data, { | 
|     trim: true, | 
|     download: true | 
|   }) | 
| } | 
|   | 
| export function sort (data) { | 
|   return request.post('/business/shop/updateSort', data) | 
| } | 
| export function resetRelations (data) { | 
|   return request.post('/business/shop/resetRelations', data) | 
| } | 
|   | 
| // 部门信息同步 | 
| export function companySync (data) { | 
|   return request.post('/business/shop/syncAll', data) | 
| } | 
|   | 
| // 创建 | 
| export function create (data) { | 
|   return request.post('/business/shop/create', data) | 
| } | 
|   | 
| // 修改 | 
| export function updateById (data) { | 
|   return request.post('/business/shop/updateById', data) | 
| } | 
|   | 
| // 删除 | 
| export function deleteById (id) { | 
|   return request.get(`/business/shop/delete/${id}`) | 
| } | 
|   | 
| // 批量删除 | 
| export function deleteByIdInBatch (ids) { | 
|   return request.get('/business/shop/delete/batch', { | 
|     params: { | 
|       ids | 
|     } | 
|   }) | 
| } |