duhuizhe
2023-10-16 3aa55dd3f62cee2c1c4c0aa74e1570acf83f8927
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
import request from '@/utils/request'
import SettingIplatform from '@/utils/settingIplatform';
 
/**
 * @Description 查询区划树
 * @Author wh
 * @Date 2023/7/13 20:11
 */
export function getTree(parameter) {
  return request.get(SettingIplatform.apiBaseURL + '/pc/fin/sys/tenant/select/tree_fin_tenant', {params: parameter})
}
 
/**
 * @Description 根据首字母查询区划列表
 * @Author sgp
 * @Date 2023/9/7 20:11
 */
export function allList(parameter) {
  return request.get(SettingIplatform.apiBaseURL + '/pc/fin/sys/tenant/select/allList', {params: parameter})
}
// 新增
export function add(data) {
  return request({
    url: '/pc/fin/sys/tenant/add',
    method: 'post',
    data: data
  })
}
 
// 修改
export function edit(data) {
  return request({
    url: '/pc/fin/sys/tenant/edit',
    method: 'post',
    data: data
  })
}
 
// 查询部门
export function getOegs(parameter) {
  return request.get(SettingIplatform.apiBaseURL + '/pc/fin/sys/org/select/down/list', {params: parameter})
}
 
// 删除机构信息
export function del(data) {
  return request({
    url: '/pc/fin/sys/tenant/del',
    method: 'post',
    data: data
  })
}
 
/**
 * @Description 根据机构id获取用户
 * @Author wh
 * @Date 2023/10/4 16:10
 */
export function getUserByOrgId(parameter) {
  return request.get(SettingIplatform.apiBaseURL + '/pc/fin/sys/tenant/getUserByOrgId', {params: parameter})
}