liukangdong
2024-09-29 b2d360d9113b6955287108ca9e90d76a1f3c1419
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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
    }
  })
}