80 lines
2.9 KiB
TypeScript
Raw Normal View History

2023-03-24 19:36:11 +08:00
import { ResPage, User } from "@/api/types/common";
// import { BASEURL } from "@/api/config/servicePort";
import http from "@/api";
const BASEURL = import.meta.env.VITE_API_URL;
/**
* @name
*/
// 政府的首页
export const getHomePage = () => {
return http.get(BASEURL + `/xmgl/baseModule/queryBySelf`);
};
// 获取所有模块标签 就是labelName
export const getModuleList = () => {
return http.get(BASEURL + `/xmgl/baseModule/queryTitle`);
};
// 项目审批
// 获取项目审批页面信息
export const getProjectApproveList = (params: User.ReqUserParams) => {
return http.post<ResPage<User.ResUserList>>(BASEURL + `/gov/project/page`, params);
};
// * 项目通过与驳回
export const editProjectApprove = (params: { projectId: string; suggest: number }) => {
return http.post(BASEURL + `/gov/project/examine`, params);
};
// 企业审批
export const getCompanyApproveList = (params: User.ReqUserParams) => {
return http.post<ResPage<User.ResUserList>>(BASEURL + `/gov/enterprise/page`, params);
};
// 通过id查询企业信息
export const getIdCompanyList = (params: { enterpriseId: string }) => {
return http.post(BASEURL + `/gov/enterprise/queryById`, params);
};
// 通过id查询企业详细信息
export const getIdCompanyDetail = (params: { id: string }) => {
return http.post(BASEURL + `/gov/enterprise/getDetailById`, params);
};
// 企业审批的编辑
2023-03-24 19:36:11 +08:00
export const editCompanyApprove = (params: { enterpriseId: string; suggest: number }) => {
return http.post(BASEURL + `/gov/enterprise/examine`, params);
};
// 工程审批!!!!!!!!!!!!!!!!!!
export const getEngineeringApproveList = (params: User.ReqUserParams) => {
return http.post<ResPage<User.ResUserList>>(BASEURL + `/gov/engineering/page`, params);
};
// 通过id查询项目工程详细信息
export const getIdEngApproveList = (params: { id: string }) => {
return http.post(BASEURL + `/gov/engineering/queryDetailById`, params);
};
// 通过id查询项目工程表信息
export const getIdEngApprovettable = (params: { id: string }) => {
return http.post(BASEURL + `/gov/engineering/queryById`, params);
};
// 编辑项目工程表信息
export const getEditEngApprove = (params: { id: string }) => {
return http.post(BASEURL + `/gov/engineering/edit`, params);
};
// 工程审批与驳回
export const rejectEngineeringApprove = (params: { id: string; suggest: number; rejectReason?: string }) => {
return http.post(BASEURL + `/gov/engineering/examine`, params);
};
// 修改工程定位信息
export const editEngineeringApprovePosition = (params: { id: string; latitude: string; longitude: string }) => {
return http.post(BASEURL + `/gov/engineering/edit`, params);
};
// 所在区域
export const getEngineeringApproveArea = () => {
return http.get(BASEURL + `/gov/engineering/queryDistrict`);
};