Newer
Older
Nanping_sponge_GCYPG / src / api / preassess / noopReview.js
@liyingjing liyingjing on 25 Oct 2023 1 KB 工程预评估
import request from "@/utils/request";


// 分页查询智能审查
export const getIntelligentApprovePage = (params) => {
  return request({
    url: "/sponge/intelligentApprove/page",
    method: "get",
    params
  });
};

// 保存智能审查数据和合理性分析数据
export const updateIntelligentApprove = (data) => {
  return request({
    url: "/sponge/intelligentApprove/updateIntelligentApprove",
    method: "post",
    data
  });
};

// 计算
export const calculate = (data) => {
  return request({
    url: "/sponge/intelligentApprove/calculate",
    method: "post",
    data
  });
};

// 提交

// 保存智能审查数据和合理性分析数据
export const intelligentApproveAdd = (data) => {
  return request({
    url: "/sponge/intelligentApprove/add",
    method: "post",
    data
  });
};

// 删除智能审查
export const intelligentApproveDel = (ids) => {
  return request({
    url: `/sponge/intelligentApprove/${ids}`,
    method: "delete"
  });
};

// 详细查询智能审查
export const intelligentApproveDetails = (id) => {
  return request({
    url: `/sponge/intelligentApprove/${id}`,
    method: "get"
  });
};

// 详细查询智能审查
export const getDicts = (type) => {
  return request({
    url: `/system/dict/data/type/${type}`,
    method: "get"
  });
};

// 上传CAD文件
export const uploadCadFile = (data) => {
  return request({
    url: '/sponge/intelligentApprove/uploadCadFile',
    method: "post",
    data
  });
};