Newer
Older
KaiFengPC / src / api / project / qualityRectification.js
@鲁yixuan 鲁yixuan on 19 Aug 3 KB updata
import request from '@/utils/request';
// 获取项目列列表
export function getInfo(params) {
  return request({
    url: `/business/projectQualityReformRecord/page`,
    method: 'get',
    params,
  });
}
export const projectInfoAdd = data => {
  return request({
    url: `/business/projectQualityReformRecord/add`,
    method: 'post',
    data,
  });
};
export const projectInfoDelete = ids => {
  return request({
    url: `/business/projectQualityReformRecord/${ids}`,
    method: 'delete',
  });
};

export const projectInfoGet = ids => {
  return request({
    url: `/business/projectQualityReformRecord/${ids}`,
    method: 'get',
  });
};
//导出接口
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,
  });
}

export function projectPatrolProblemPage(p) {
  return request({
    url: `/business/projectInfoNew/selectProjectInfoByProjectNo//${p}`,
    method: 'get',
  });
}
export function projectPatrolProblemselectByProjectNo(p) {
  return request({
    url: `/business/projectPatrolProblem/selectByProjectNo/${p}`,
    method: 'get',
  });
}

export function projectQualityReformRecordAdd(data) {
  return request({
    url: `/business/projectQualityReformRecord/add`,
    method: 'post',
    data,
  });
}

export function getInfoMamin(params) {
  return request({
    url: `/business/projectQualityReformRecord/myPage`,
    method: 'get',
    params,
  });
}

export function projectQualityReformRecordEdit(data) {
  return request({
    url: `/business/projectQualityReformRecord/edit`,
    method: 'put',
    data,
  });
}

export function projectQualityReformRecordapprove(data) {
  return request({
    url: `/business/projectQualityReformRecord/approve`,
    method: 'post',
    data,
  });
}

export function projectQualityReformRecordSubmit(data) {
  return request({
    url: `/business/projectQualityReformRecord/submit`,
    method: 'post',
    data,
  });
}

// 详细搜索项目质量问题整改明细
export function getProjectQualityReformDetailById(id) {
  return request({
    url: `/business/projectQualityReformDetail/${id}`,
    method: 'get',
  });
}

// 质量问题处理
export function projectQualityReformDetailEdit(data) {
  return request({
    url: '/business/projectQualityReformDetail/edit',
    method: 'put',
    data,
  });
}