Newer
Older
Nanping_sponge_GCGL / src / views / project / projectManagement / api / index.js
@liyingjing liyingjing on 25 Oct 2023 5 KB 海绵工程管理
import request from '@/utils/request'
// 获取用户详细信息
export function getInfo(flag) {
    return request({
        url: `/business/report/progress/count/category/1?flag=1`,
        method: 'get'
    })
}
export const progressCount = params => {
    return request({
        url: `/business/report/progress/count/info?timeMillis=${params}`,
        method: "get",
    });
};
//导出接口
export const multiTableWrite = params => {
    return request({
        url: `/business/report/multiTableWrite?time=${params}`,
        method: "get",
        responseType: "arraybuffer",
    });
};
// 下载图片
export const downloadImage = params => {
        return request({
            url: `/business/report/progress/image/download?time=${params}`,
            method: "get",
        });
    }
    //曲区县下拉接口
export const getProjectCategory = () => {
        return request({
            url: `/business/projectCategory/list/select`,
            method: "get",
        });
    }
    // 点击查询项目进度表
export const reportlist = (params) => {
        return request({
            url: `/business/report/progress/list`,
            method: "get",
            params: {...params }
        });
    }
    // 点击查询项目进度统计数据上报
export const progressList = (params) => {
    return request({
        url: `/business/report/progress/by/type/list`,
        method: "get",
        params: {...params }
    });
}

// 点击查询项目进度统计数据上报详情
export const projectInfo = (id) => {
    return request({
        url: `/business/report/project/info/${id}`,
        method: "get",
    });
}

// 新增多个项目用户关联
export const projectUserAdd = (data) => {
    return request({
        url: `/business/projectUser/addList`,
        method: "POST",
        data
    });
}


// 点击查询项目进度统计数据上报详情
export const projectUserList = (id) => {
        return request({
            url: `/business/projectUser/list?projectId=${id}`,
            method: "get",
        });
    }
    // 项目基本信息表 详情 修改
export const projectList = (params) => {
        return request({
            url: `/business/report/project/list`,
            method: "get",
            params: {...params }
        });
    }
    //项目资料管理  资料管理接口
export const fileList = (params) => {
    return request({
        url: `/business/report/project/file/list`,
        method: "get",
        params: {...params }
    });
}


//项目变更审核 查询接口
export const changePage = (params) => {
    return request({
        url: `/business/report/project/change/page`,
        method: "get",
        params: {...params }
    });
}


//曲区县下拉接口
export const countySelect = () => {
        return request({
            url: `/business/sys/county/select`,
            method: "get",
        });
    } //项目进度上报 查询接口
export const projectbyUserId = (params) => {
        return request({
            url: `/business/report/project/list/byUserId`,
            method: "get",
            params: {...params }
        });
    }
    //上报月度数据 保存
export const progressSave = (data) => {
    return request({
        url: `/business/report/progress/save`,
        method: "POST",
        data,
    });
}

//上报月度数据 保存
export const fileUpload = (data) => {
        return request({
            url: `/business/report/file/upload`,
            method: "POST",
            data,
        });
    }
    // 项目进度历史信息批量删除
export const progressDelete = (data) => {
    return request({
        url: `/business/report/progress/delete`,
        method: "POST",
        data,
    });
}

//获取绑定项目
export const proprietorUsd = (params) => {
        return request({
            url: `/business/sys/user/list/proprietor?page=1&limit=10&username=&searchStr=`,
            method: "get",
            params: {...params }
        });
    }
    // 业主上报情况
export const proprietorCounty = (params) => {
    return request({
        url: `/business/report/project/list/proprietor/county`,
        method: "get",
        params: {...params }
    });
}


// 业主上报历史信息查询
export const proprietorList = (params) => {
    return request({
        url: `/business/report/proprietor/list/county`,
        method: "get",
        params: {...params }
    });
}


//项目变更历史信息 查询接口
export const projectChange = (params) => {
    return request({
        url: `/business/report/project/change/list/by/user`,
        method: "get",
        params: {...params }
    });
}

//项目变更历史信息 查询接口
export const changeDelete = (data) => {
        return request({
            url: `/business/report/project/change/delete`,
            method: "post",
            data
        });
    }
    //提交变更审核信息
export const projectChangeSave = (data) => {
    return request({
        url: `/business/report/project/change/save`,
        method: 'post',
        data: data
    });
}

// 项目变更历史信息查看
export const projectChangeInfo = (id) => {
    return request({
        url: `/business/report/project/change/info/${id}`,
        method: "get",
    });
}

// 文件上传接口
export const systemUpload = data => {
    return request({
        url: `/dev-api/system/upload`,
        method: "post",
        data,
        headers: { "Content-Type": "multipart/form-data" }
    });
};

export const progressUpdate = (data) => {
        return request({
            url: `/business/report/progress/update`,
            method: "POST",
            data,
        });
    }
    // 分页查询站点基本信息
export const progressOInfo = (id) => {
    return request({
        url: `/business/report/progress/info/${id}`,
        method: "get",
    });
}