zhitong.yu
8 天以前 378d781e6f35f89652aa36e079a8b7fc44cea77e
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
import { ResPage, User } from "@/api/interface/index";
import http from "@/api";
 
/**
 * @name 公司管理模块
 */
// 获取公司列表
export const getComapnyList = (params: User.ReqUserParams) => {
  return http.post<ResPage<User.ResUserList>>(`/Company/FindCompanyInfo`, params);
};
 
//获取登录用户公司系统名称
export const FindCompanyName = () => {
  return http.post(`/Company/FindCompanyName`);
};
//获取登录用户公司所属ID
export const SelectCompanyId = () => {
  return http.post(`/Company/SelectCompanyId`);
};
// 新增公司
export const addCompany = (params: { id: string }) => {
  return http.post(`/Company/add`, params);
};
 
// 编辑公司
export const editCompany = (params: { id: string }) => {
  return http.post(`/Company/update`, params);
};
 
// 删除公司
export const deleteCompany = (params: { id: string[] }) => {
  return http.post(`/Company/delete`, params);
};
 
// 检查公司是否可以删除
export const checkCompanyDelete = (params: { id: string }) => {
  return http.post(`/Company/checkDelete`, params);
};
 
// 公司下拉列表
export const CompanyAutocomplete = (params: { id: any }) => {
  return http.post(`/Company/CompanyAutocomplete`, params);
};
 
// 围栏公司下拉列表
export const FenceCompanyAutocomplete = () => {
  return http.post(`/Company/FenceCompanyAutocomplete`);
};