67 lines
2.7 KiB
TypeScript
67 lines
2.7 KiB
TypeScript
|
|
import { ResPage, User } from "@/api/types/common";
|
|||
|
|
// import { BASEURL } from "@/api/config/servicePort";
|
|||
|
|
import http from "@/api";
|
|||
|
|
import { ReqAddReport } from "../types";
|
|||
|
|
|
|||
|
|
const BASEURL = import.meta.env.VITE_API_URL;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* @name 项目
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
// 项目的首页
|
|||
|
|
export const getProjectPage = () => {
|
|||
|
|
return http.get(BASEURL + `/project/project/queryBySelf`);
|
|||
|
|
};
|
|||
|
|
// 获取所有模块标签 就是labelName
|
|||
|
|
export const getModuleList = () => {
|
|||
|
|
return http.get(BASEURL + `/xmgl/baseModule/queryTitle`);
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
// 项目报监!!!!!!!!!!!!!!!
|
|||
|
|
/** 列表查询相对应资质的企业 */
|
|||
|
|
export const queryMainType = (data: any) => http.post(BASEURL + "/project/enterprise/listByMainType", data);
|
|||
|
|
|
|||
|
|
/** 添加工程 */
|
|||
|
|
export const addEngineering = (data: ReqAddReport) => http.post(BASEURL + "/project/engineering/add", data);
|
|||
|
|
|
|||
|
|
export const editEngineering = (data: ReqAddReport) => http.post(BASEURL + "/project/engineering/edit", data);
|
|||
|
|
|
|||
|
|
/** 查询当前账号对应的项目信息 */
|
|||
|
|
export const getEngineeringName = () => http.get(BASEURL + "/project/project/queryBySelf");
|
|||
|
|
|
|||
|
|
// 政务下的工程审批下的编辑按钮获取名称
|
|||
|
|
export const geteditEngineeringName = (params: { projectId: string }) => http.post(BASEURL + "/project/project/queryById");
|
|||
|
|
|
|||
|
|
// 报监记录 !!!!!!!!!!!!!!!
|
|||
|
|
export const getProjectRecordPage = (params: User.ReqUserParams) => {
|
|||
|
|
return http.post<ResPage<User.ResUserList>>(BASEURL + `/project/engineering/page`, params);
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
// 项目审批 !!!!!!!!!!!!!
|
|||
|
|
// 获取项目审批页面信息
|
|||
|
|
// 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);
|
|||
|
|
// };
|
|||
|
|
// // 企业审批
|
|||
|
|
// export const editCompanyApprove = (params: { enterpriseId: string; suggest: number }) => {
|
|||
|
|
// return http.post(BASEURL + `/gov/enterprise/examine`, params);
|
|||
|
|
// };
|