Newer
Older
KaiFengPC / src / api / project / dwwh.js
@鲁yixuan 鲁yixuan on 19 Aug 1 KB updata
/*
 * @Author: liyingjing ll47991367@qq.com
 * @Date: 2023-06-28 15:02:35
 * @LastEditors: liyingjing ll47991367@qq.com
 * @LastEditTime: 2023-07-17 14:55:28
 * @FilePath: \ProductEngineering\src\api\dwwh.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import request from '@/utils/request';
// 获取项目列列表
export function getInfo(params) {
  return request({
    url: `/business/projectCompany/page`,
    method: 'get',
    params,
  });
}
export const projectInfoAdd = data => {
  return request({
    url: `/business/projectCompany/add`,
    method: 'post',
    data,
  });
};
export const projectInfoDelete = ids => {
  return request({
    url: `/business/projectCompany/${ids}`,
    method: 'delete',
  });
};
//导出接口
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 const projectCompanyGet = ids => {
  return request({
    url: `/business/projectCompany/${ids}`,
    method: 'get',
  });
};

export const projectInfoEdit = data => {
  return request({
    url: `/business/projectCompany/edit`,
    method: 'put',
    data,
  });
};