Newer
Older
KaiFengPC / src / api / project / dwwh.js
@zhangdeliang zhangdeliang on 20 May 1 KB 项目初始化
/*
 * @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
    });
};