Newer
Older
Nanping_sponge_GCGL / src / api / xmbglishi.js
@liyingjing liyingjing on 25 Oct 2023 2 KB 海绵工程管理
import request from '@/utils/request'
// 获取项目列列表
export function projectbyUserId(params) {
    return request({
        url: `/business/projectPlanMonthlyInfo/collectPage`,
        method: 'get',
        params
    })
}

export function projectPlanMonthlyInfolast(data) {
  return request({
      url: `/business/projectPlanMonthlyInfo/last`,
      method: 'post',
      data
  })
}

export const projectInfoAdd = data => {
    return request({
        url: `/business/projectPlanMonthlyInfo/add`,
        method: "post",
        data
    });
};
export const projectPlanMonthlyInfo = ids => {
    return request({
        url: `/business/projectPlanMonthlyInfo/${ids}`,
        method: "get",
    });
};

export const projectPlanMonthlyInfoReportDetail = ids => {
  return request({
      url: `/business/projectPlanMonthlyInfo/reportDetail/${ids}`,
      method: "get",
  });
};


// export const projectPlanTemplateList = ids => {
//     return request({
//         url: `/business/projectPlanMonthlyInfo/last`,
//         method: "post",
//     });
// };
//导出接口
export const multiTableWrite = params => {
    return request({
        url: `/newApi/report/multiTableWrite?time=${params}`,
        method: "get",
        responseType: "arraybuffer",
    });
};

// 表查询项目类型
export function projectTypeList(params) {
    return request({
        url: `/business/projectType/list`,
        method: 'get',
        params
    })
}
// 列表查询项目单位
export function projectCompany(params) {
    return request({
        url: `/business/projectCompany/list`,
        method: 'get',
        params
    })
}

// 查询用户个人信息
export function getUserProfile() {
    return request({
      url: "/system/user/profile",
      method: "get",
    });
  }

  export function userList() {
    return request({
      url: "/system/user/list",
      method: "get",
    });
  }

  export function projectInfoSubmit(data) {
    return request({
      url: "/business/projectInfo/submit",
      method: "post",
      data
    });
  }
//   审核项目立项
  export function projectInfoapprovet(data) {
    return request({
      url: "/business/projectInfo/approve",
      method: "post",
      data
    });
  }