// import { openApiRequest } from '@/utils/request'
import http from '@/utils/http'
import type { AxiosRequestConfig } from 'axios'
/**首页模块统计上报
* http://127.0.0.1:8811/openApi/moduleStat/report
*/
export function report(data: any) {
// return openApiRequest({ url: '/auth/login', method: 'post', data })
return http.post('/moduleStat/report', data)
}
// /daikin-登录
// POST http://admin.echo.mteam01.com/openApi/auth/login
// | 参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
// | -------- | ----------- | -------- | -------- | ---------------- |
// | account | 15014131272 | String | 是 | 账号 15014131272 |
// | password | 123456 | String | 是 | 密码 123456 |
// 成功响应示例
// {"msg":"b5c17f42-4f63-4fbd-b5cf-9c82b033c9a7","code":200}
export interface LoginReq {
// 账号 13923879210
account: string
// 密码 123456
password: string
authType: string
}
export function login(data: LoginReq) {
// return openApiRequest({ url: '/auth/login', method: 'post', data })
return http.post('/auth/login', {
...data
})
}
// /daikin-获取登录信息
// POST http://admin.echo.mteam01.com/openApi/auth/getCurLogin
// {
// "msg": "操作成功",
// "code": 200,
// "data": {
// "id": 62423423423,
// "account": "15014131272",
// "realname": "王",
//账号类型 1-管理员 2-调达本部内部课长 3-调达本部内部一般人员 4-公司其他部门人员 5-供应商
// "type": 1
// }
// }
export async function getCurLogin() {
// return openApiRequest({ url: '/auth/getCurLogin', method: 'post' })
return http.post('/auth/getCurLogin', {})
}
/**通知列表
* http://127.0.0.1:8811/openApi/notice/getList
*/
export async function getAllNoticeList() {
return http.get('/notice/getList')
}
/**
* 接口URL: daikin-获取部门数据(树级)
GET
http://127.0.0.1:8811/openApi/user/deptTree
*/
export async function deptTree(params: any) {
return http.get('/user/deptTree', { params })
}
export interface userPage {
pageNum?: string
pageSize?: string
phonenumber?: string
status?: string
beingTime: string
endTime: string
deptId?: string
nickName: string
reviewSource: string
}
/**
* 接口URL:daikin-获取用户分页列表
GET
http://127.0.0.1:8811/openApi/user/getPage
*
*
*
*/
export async function getPage(params: userPage) {
return http.get('/user/getPage', { params })
}
// daikin-情报列表
// GET http://admin.echo.mteam01.com/openApi/article/getPage?pageNum=1&pageSize=10&type=1
// | 参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
// | -------- | ------ | -------- | -------- | -------------------------- |
// | pageNum | 1 | String | 是 | 页码 |
// | pageSize | 10 | String | 是 | 页面数量 |
// | type | 1 | String | 是 | 类型 1-外部情报 2-内部情报 |
// {
// "total": 2,
// "rows": [
// {
// "id": 1,
// "type": 1,
// "title": "测试标题啊",
// "content": "

12312312312312213123
",
// "tag": "测试",
// "source": "管理后台",
// "publishTime": "1970-01-01T08:00:00.000+08:00"
// }
// ],
// "code": 200,
// "msg": "查询成功"
// }
export interface ArticlePageReq {
// 页码 1
pageNum: string
// 页面数量 10
pageSize: string
// 类型 1-外部情报 2-内部情报
type?: string
// 分类 1-外部环境 2-竞争对手 3-供方动向 4-大金集团 5-中国据点 6-调达本部 7-news 8-重要通知
cate?: String
position: String
}
export async function getArticlePage(params: ArticlePageReq) {
// return openApiRequest({ url: '/article/getPage', params })
return http.get('/article/getPage', { params })
}
export async function getArticleList(params: ArticlePageReq) {
// return openApiRequest({ url: '/article/getList', params })
return http.get('/article/getList', { params })
}
// /daikin-情报详情
// GET 127.0.0.1:8811/openApi/article/getDetail/1
// {
// "msg": "操作成功", //token,用于登录会话保持
// "code": 200,
// "data": {
// "id": 1, //标识 id
// "type": 1, //账号类型 1-管理员 2-调达本部内部课长 3-调达本部内部一般人员 4-公司其他部门人员 5-供应商
// "title": "测试标题啊",
// "content": "

12312312312312213123
",
// "tag": "测试",
// "source": "管理后台",
// "publishTime": null
// }
// }
export async function getArticleDetail(id: string) {
// return openApiRequest({ url: `/article/getDetail/${id}` })
return http.get(`/article/getDetail/${id}`)
}
// 外部情报-管理详情
export async function getManagerDetail(id: string) {
return http.get(`/article/getManagerDetail/${id}`)
}
// 撤回
export async function deleteWithdraw(id: string) {
return http.get('/article/withdraw?id=' + id)
}
// 外部情报-管理列表
export async function getManagerList(params: { pageNum: any; pageSize: any }) {
return http.get('/article/getManagerList', { params })
}
// -------------------------------------列表start
// news/重要通知-流程详情
export async function getExternalManagerDetail(id: string) {
return http.get(`/article/external/getManagerDetail/${id}`)
}
// news/重要通知-撤回
export async function externalWithdraw(id: string) {
return http.get('/article/external/withdraw?id=' + id)
}
// news/重要通知-流程列表
export async function getExternalManagerList(params: {
pageNum: any
pageSize: any
}) {
return http.get('/article/external/getManagerList', { params })
}
// -------------------------------------列表end
export interface ArticleSave {
title: string //标题
content: string //内容
tag: string //标签 紧急/New
source: string //"网站添加", //来源 文本
type?: string
cate?: string //分类 1-外部环境 2-竞争对手 3-供方动向 4-大金集团 5-中国据点 6-调达本部
reviewSource: number
}
// 接口URL: 提交情报
// POST
// 127.0.0.1:8811/openApi/article/save
// {
// "title": "测试1111", //标题
// "content": "内容", //内容
// "tag": "紧急", //标签 紧急/New
// "source": "网站添加", //来源 文本
// "cate": 1 //分类 1-外部环境 2-竞争对手 3-供方动向 4-大金集团 5-中国据点 6-调达本部
// }
export async function saveArticle(data: ArticleSave) {
// return openApiRequest({ url: `/article/save`, data })
return http.post('/article/save', data)
}
// 接口URL: 分类文件-上下拖动排序
// POST
// 127.0.0.1:8811/openApi/db/cateFileSort
// {
// "cateId": 3, //分类id
// "curId": 2, //当前拖动的文件id
// "lastId": 5 //被移动位置的文件id
// }
export async function dragFile(data: ArticleSave) {
return http.post('/db/cateFileSort', data)
}
/**情报banner图
* http://127.0.0.1:8811/openApi/article/getBannerList?type=1
*
*/
export async function getBannerList(params: any) {
return http.get('/article/getBannerList', { params })
}
export interface notice {
reviewStatus: number
reviewSource: number
}
/** 情报-通知列表
* 接口URL:
GET
http://127.0.0.1:8811/openApi/article/getNoticeList
token
674f3e91-38de-4065-a4e2-2ce8981864fa
*/
export async function getNoticeList(params: notice) {
return http.get('/article/getNoticeList', { params })
}
/** 首页列表
* 接口URL:
GET
http://127.0.0.1:8811/openApi/article/getNoticeList
token
674f3e91-38de-4065-a4e2-2ce8981864fa
*/
export async function getHomeList(params: notice) {
return http.get('/cd/homeList', { params })
}
export async function statDel(params: notice) {
return http.get('/cd/statDel', { params })
}
/** 树数据
* 接口URL:
GET
http://127.0.0.1:8811/openApi/article/getNoticeList
token
674f3e91-38de-4065-a4e2-2ce8981864fa
*/
export async function getTreeList(params: notice) {
return http.get('/cd/treeList', { params })
}
export async function statEdit(data: ArticleReview) {
return http.post('/cd/statEdit', data)
}
export interface msg {
pageNum: number
treeSource: number
pageSize: number
}
/**留言板列表
* http://127.0.0.1:8811/openApi/article/boardMsgList
*
*
*/
export async function boardMsgList(params: msg) {
return http.get('/article/boardMsgList', { params })
}
export async function deleteMsgById(id: string) {
return http.get('/article/delMsgList?id=' + id)
}
/**
* 动态 接口URL:
POST
http://127.0.0.1:8811/openApi/supplier/trendsAdd
*/
export async function trendsAdd(data: { title: any; content: string }) {
return http.post('/supplier/trendsAdd', data)
}
/**
* 留言板-动态-详情
http://127.0.0.1:8811/openApi/supplier/trendsDetail?id=1
*/
export async function trendsDetail(params: any) {
return http.get('/supplier/trendsDetail', { params })
}
/**留言板-动态-分页列表
* http://127.0.0.1:8811/openApi/supplier/trendsPage?pageNum=1&pageSize=20
*/
export async function trendsPage(params: {
pageNum: number
pageSize: number
}) {
return http.get('/supplier/trendsPage', { params })
}
/**留言板-需求依赖-添加
* POST
http://127.0.0.1:8811/openApi/supplier/demandAdd
*/
export async function demandAdd(data: any) {
return http.post('/supplier/demandAdd', data)
}
/**
* 留言板-需求依赖-详情
* http://127.0.0.1:8811/openApi/supplier/demandDetail?id=1
*/
export async function demandDetail(params: any) {
return http.get('/supplier/demandDetail', { params })
}
/**
* 留言板-需求依赖-分页列表
* http://127.0.0.1:8811/openApi/supplier/demandPage?pageNum=1&pageSize=20
*/
export async function demandPage(params: {
pageNum: number
pageSize: number
}) {
return http.get('/supplier/demandPage', { params })
}
/***
* 留言板-供应商留言-添加
* http://127.0.0.1:8811/openApi/supplier/faqAdd
*/
export async function faqAdd(data: any) {
return http.post('/supplier/faqAdd', data)
}
/**留言板-供应商留言-详情
* http://127.0.0.1:8811/openApi/supplier/faqDetail?id=2
*/
export async function faqDetail(params: any) {
return http.get('/supplier/faqDetail', { params })
}
/**留言板-供应商留言-分页列表
* http://127.0.0.1:8811/openApi/supplier/faqPage?pageNum=1&pageSize=20
*/
export async function faqPage(params: { pageNum: number; pageSize: number }) {
return http.get('/supplier/faqPage', { params })
}
/**留言删除
* http://127.0.0.1:8811/openApi/supplier/faqDel?id=2
*/
export async function faqPageDelete(params: any) {
return http.get(`/supplier/faqDel`, { params })
}
/**留言删除
* http://127.0.0.1:8811/openApi/supplier/demandDel?id=1
*/
export async function demandDel(params: any) {
return http.get(`/supplier/demandDel`, { params })
}
/**留言板-回复
* http://127.0.0.1:8811/openApi/supplier/reply
*/
export async function reply(data: any) {
return http.post('/supplier/reply', data)
}
/**留言板-供应商留言-撤回
* http://127.0.0.1:8811/openApi/supplier/faqWithdraw
*/
export async function faqWithdraw(data: any) {
return http.post(`/supplier/faqWithdraw`, data)
}
/**留言板-需求依赖-撤回
* http://127.0.0.1:8811/openApi/supplier/demandWithdraw
*/
export async function demandWithdraw(data: any) {
return http.post(`/supplier/demandWithdraw`, data)
}
export interface ArticleReview {
id?: string
title: string
content: string
source: string
cate?: string
noticeId?: string
userIdList: any[]
}
/**
* 接口URL:
POST
http://127.0.0.1:8811/openApi/article/review
{
"id": 53,
"title": "测试1111", //标题
"content": "这里是今天测试的内容啊", //内容
"tag": "紧急", //标签 紧急/New
"source": "网站添加", //来源 文本
"cate": 1, //分类 1-外部环境 2-竞争对手 3-供方动向 4-大金集团 5-中国据点 6-调达本部
"userIdList": [
1
] //用户 id 集合
}
* @returns
*/
export async function review(data: ArticleReview) {
return http.post('/article/review', data)
}
/**
* CD-首页发注金额列表
* @returns http://127.0.0.1:8811/openApi/cd/amountList
*/
export async function amountList() {
return http.get('/cd/amountList')
}
/**
* "number": "DIS", //编号 DIS/DSZ/DISH
"amount": "30"
* @returns http://127.0.0.1:8811/openApi/cd/updateAmount
*/
export async function updateAmount(data: any) {
return http.post('/cd/updateAmount', data)
}
// 接口URL:
// GET
// http://127.0.0.1:8811/openApi/cdCate/treeList
// 获取CD业种-树级列表
export async function treeList() {
return http.get('/cdCate/treeList')
}
export interface getData {
cateId: number
}
// 接口URL:
// GET
// http://127.0.0.1:8811/openApi/cdCate/toYearDataList
// CD业种-当年度数据列表
export async function toYearDataList(data: getData) {
return http.post('/cdCate/toYearDataList', data)
}
/*
接口URL:
POST
http://127.0.0.1:8811/openApi/cdCate/curYearDataStat
{
"cateId": 1
}
CD业种-当年度数据统计
*/
export async function curYearDataStat(data: getData) {
return http.post('/cdCate/curYearDataStat', data)
}
export interface hisYearD {
cateId: number
yearTime: string
}
/*
接口URL:
POST
http://127.0.0.1:8811/openApi/cdCate/hisYearDataStat
{
"cateId": 1
"yearTime": "2021" //年份
}
CD业种-历史数据统计
*/
export async function hisYearDataStat(data: hisYearD) {
return http.post('/cdCate/hisYearDataStat', data)
}
/**
* CD业种-历史度数据列表
* http://127.0.0.1:8811/openApi/cdCate/hisDataList
*
*
* {
"cateId": 3
}
*/
export async function hisDataList(data: getData) {
return http.post('/cdCate/hisDataList', data)
}
export interface list {
type: number
}
/**
* 接口URL:市场汇率预测列表
POST
http://127.0.0.1:8811/openApi/marketPre/getList
*
* {
"type": 2
}
*
*/
export async function getList(data: list) {
return http.post('/marketPre/getList', data)
}
/**市况汇率文件删除
* http://127.0.0.1:8811/openApi/marketPre/delete?id=3&module_id=1 模块id, 1市况文件 2汇率文件
*/
export async function marketPreDelete(params: any) {
return http.get('/marketPre/delete', { params })
}
/**
*
*
* 接口URL:
POST
http://127.0.0.1:8811/openApi/common/upload
* openApi/common/upload
multipart/form-data
*/
export async function upload(
params: any,
Headers: AxiosRequestConfig | undefined
) {
return http.post('/common/upload', params, Headers)
}
/**
* 接口URL:获取分组列表
GET
http://127.0.0.1:8811/openApi/group/getList
*
*
*
*/
export async function getGroupList() {
return http.get('/group/getList')
}
export interface getNotice {
id: string
name: string
userIdList: Array
}
/**
* 接口URL:添加分组 修改分组
POST
http://127.0.0.1:8811/openApi/group/add
*
*/
export async function addGroup(
params: getNotice,
Headers: AxiosRequestConfig | undefined
) {
return http.post('/group/add', params, Headers)
}
export interface group {
id: string
}
/**删除分组
* http://127.0.0.1:8811/openApi/group/delete?id=2
*
*
*/
export async function deleteGroup(params: group) {
return http.get('/group/delete', { params })
}
export interface newPwd {
newPassword: string
oldPassword: string
}
/**
* POST 修改密码
http://127.0.0.1:8811/openApi/auth/updatePwd
*
*/
export async function updatePwd(
params: newPwd,
Headers: AxiosRequestConfig | undefined
) {
return http.post('/auth/updatePwd', params, Headers)
}
export interface work {
pageNum: number
}
/**
* 外部系统-情报列表
* http://127.0.0.1:8811/openApi/article/externalList
*/
export async function externalList(params: work) {
return http.get('/article/externalList', { params })
}
/**
* 外部系统-情报详情
http://127.0.0.1:8811/openApi/article/externalInfo/56
*/
export async function externalInfo(id: any) {
return http.get(`/article/externalInfo/${id}`)
}
/***
* 调查表列表
* http://127.0.0.1:8811/openApi/worksheet/getPage
*/
export async function getPageWork(params: work) {
return http.get('/worksheet/getPage', { params })
}
export interface visit {
pageNum: number
status: number
source: number
}
/***
* 邀请函列表
http://127.0.0.1:8811/openApi/inv/getPage
*
*
*/
export async function getPageInv(params: visit) {
return http.get('/inv/getPage', { params })
}
/**拜访列表
* http://127.0.0.1:8811/openApi/visit/getPage
*
*
*/
export async function getPageVisit(params: visit) {
return http.get('/visit/getPage', { params })
}
export interface pupid {
title: string
content: string
actName: string
actSTime: string
actETime: string
position: string
userIdList: Array
}
/**发布邀请函
* :
POST
http://127.0.0.1:8811/openApi/inv/add
*/
export async function addPageInv(
params: pupid,
Headers: AxiosRequestConfig | undefined
) {
return http.post('/inv/add', params, Headers)
}
/**
大金
发布拜访
* 接口URL:
POST
http://127.0.0.1:8811/openApi/visit/add
*/
export async function addPageVisit(
params: pupid,
Headers: AxiosRequestConfig | undefined
) {
return http.post('/visit/add', params, Headers)
}
/**
* 接口URL: 拜访详情
GET
http://127.0.0.1:8811/openApi/visit/getDetail/1
*
* */
export async function visitInfo(id: string) {
return http.get(`/visit/getDetail/${id}`)
}
/**邀请函详情
* 接口URL:
GET
http://127.0.0.1:8811/openApi/inv/getDetail/1
*
* */
export async function invInfo(id: string) {
return http.get(`/inv/getDetail/${id}`)
}
/**
* 获取CSR属性信息
* http://127.0.0.1:8811/openApi/csr/getDetail
*/
export async function getCSRDetail() {
return http.get(`/csr/getDetail`)
}
export interface CSR {
id: string
content: Object
}
/**
* http://127.0.0.1:8811/openApi/csr/updateFootprint
* 碳足迹板块信息-新增/更新
*/
export async function updateFootprint(data: CSR) {
return http.post(`/csr/updateFootprint`, data)
}
/**
* 碳足迹板块信息-列表
* http://127.0.0.1:8811/openApi/csr/getFootprintList
*/
export async function getFootprintList(params: {
pageNum: number
pageSize: number
moduleId: string
}) {
return http.get(`/csr/getFootprintList`, { params })
}
/**碳足迹板块用户权限-新增/更新
* http://127.0.0.1:8811/openApi/csr/saveFootprintUser
*/
export async function saveFootprintUser(data: CSR) {
return http.post(`/csr/saveFootprintUser`, data)
}
/** 碳足迹板块信息-删除
* http://127.0.0.1:8811/openApi/csr/delFootprint?id=4
*/
export async function delFootprint(params: any) {
return http.get(`/csr/delFootprint`, { params })
}
/**
* 更新CSR属性信息
* http://127.0.0.1:8811/openApi/csr/add
*/
export async function CSRAdd(data: CSR) {
return http.post(`/csr/add`, data)
}
/**获取PLUS活动信息
* http://127.0.0.1:8811/openApi/csr/getCsrActList
*/
export async function getCsrActList() {
return http.get(`/csr/getCsrActList`)
}
/**
* 更新PLUS活动信息
http://127.0.0.1:8811/openApi/csr/updateAct
*/
export async function updateAct(data: any) {
return http.post(`/csr/updateAct`, data)
}
/**获取Lab属性信息
* http://127.0.0.1:8811/openApi/lab/getDetail
*/
export async function getLabActList() {
return http.get(`/lab/getDetail`)
}
/**
* 更新Lab属性信息
http://127.0.0.1:8811/openApi/lab/add
*/
export async function addLab(data: any) {
return http.post(`/lab/add`, data)
}
/**更新基础研究方向活动信息
* http://127.0.0.1:8811/openApi/lab/updateAct
*/
// 取消使用了
export async function updateLab(data: any) {
return http.post(`/lab/updateAct`, data)
}
/**更新/添加研究方向活动信息(单条)
* http://127.0.0.1:8811/openApi/lab/updateActOne
*/
export async function updateActOne(data: any) {
return http.post(`/lab/updateActOne`, data)
}
/**
* 删除-基础研究方向活动信息
* @param params http://127.0.0.1:8811/openApi/lab/actDel?id = 836
* @returns
*/
export async function actLABDel(params: any) {
return http.get(`/lab/actDel`, { params })
}
/**获取基础研究方向信息
* http://127.0.0.1:8811/openApi/lab/getCsrActList
*/
export async function getLabCsrActList(params: any) {
return http.get(`/lab/getCsrActList`, { params })
}
/**分类列表
* http://127.0.0.1:8811/openApi/lab/getCateList
*
*/
export async function getCateList(params: any) {
return http.get(`/lab/getCateList`, { params })
}
/**更新分类
* http://127.0.0.1:8811/openApi/lab/updateCate
*/
export async function updateCate(data: any) {
return http.post(`/lab/updateCate`, data)
}
/**删除分类
* http://127.0.0.1:8811/openApi/lab/deleteCate
*/
export async function deleteCate(params: any) {
return http.get(`/lab/deleteCate`, { params })
}
/**更新分类下的列表数据
* http://127.0.0.1:8811/openApi/lab/editCateItem
*/
export async function editCateItem(data: any) {
return http.post(`/lab/editCateItem`, data)
}
/**
* 删除分类下的列表数据
* http://127.0.0.1:8811/openApi/lab/deleteCateItem?id=3
*/
export async function deleteCateItem(params: { id: any }) {
return http.get(`/lab/deleteCateItem`, { params })
}
/**
* http://127.0.0.1:8811/openApi/lab/getCateItemList?pageNum=1&cateId=1
*/
export async function getCateItemList(params: any) {
return http.get(`/lab/getCateItemList`, { params })
}
/**更新BCP属性信息
* http://127.0.0.1:8811/openApi/bcp/add
*/
export async function addBPC(data: any) {
return http.post(`/bcp/add`, data)
}
/**获取BCP属性信息
* http://127.0.0.1:8811/openApi/bcp/getDetail
*/
export async function getDetailBPC() {
return http.get(`/bcp/getDetail`)
}
/**更新BCP今日简报
* http://127.0.0.1:8811/openApi/bcp/updateAct
*/
export async function updateBPC(data: any) {
return http.post(`/bcp/updateAct`, data)
}
/**更新情报分类
* http://127.0.0.1:8811/openApi/bcp/updateAct
*/
export async function updateActCate(data: any) {
return http.post(`/bcp/addActCate`, data)
}
/**删除情报分类
* http://127.0.0.1:8811/openApi/bcp/updateAct
*/
export async function delActCate(params: { id: any }) {
return http.get(`/bcp/delActCate`, { params })
}
export async function updateBPCOne(data: any) {
return http.post(`/bcp/updateOne`, data)
}
export async function getBPCUser(params: { moduleId: any }) {
return http.get(`/bcp/getUser`, { params })
}
export async function getCateTreeList(params: { moduleId: any }) {
return http.get(`/bcp/cateTreeList`, { params })
}
export async function getActCateFileList(params: { cateId: any }) {
return http.get(`/bcp/getActCateFileList`, { params })
}
export async function getCateTreePage(params: { moduleId: any }) {
return http.get(`/bcp/cateTreePage`, { params })
}
/**获取BCP今日简报
* http://127.0.0.1:8811/openApi/bcp/getCsrActList
*/
export async function getBPCActList(params: { id: any }) {
return http.get(`/bcp/getActList`, { params })
}
/**获取BCP今日简报
* http://127.0.0.1:8811/openApi/bcp/getCsrActList
*/
export async function getBPCEditList(params: { id: any }) {
return http.get(`/bcp/getEditInfo`, { params })
}
/**删除BCP今日简报
* http://127.0.0.1:8811/openApi/bcp/updateAct
*/
export async function delBPCActList(params: { id: any }) {
return http.get(`/bcp/delAct`, { params })
}
/**获取BCP图片
* http://127.0.0.1:8811/openApi/bcp/updateAct
*/
export async function BPCDownload(params: { id: any }) {
// return http.get(`/bcp/download`,{params})
return http({
method: 'get',
url: '/bcp/download?id=' + params.id,
responseType: 'arraybuffer'
})
}
/**获取用户权限
* http://127.0.0.1:8811/openApi/bcp/updateAct
*/
export async function BPCSaveUser(data: any) {
return http.post(`/bcp/saveUser`, data)
}
/**首页-市况列表
* http://127.0.0.1:8811/openApi/market/homePage
*/
export async function homePageMarket() {
return http.get(`/market/homePage`)
}
/**查询用户权限
* http://127.0.0.1:8811/openApi/marketPre/getUser?moduleId=1 //模块id,1-市况预测,2-汇率预测
*/
export async function getMarketUser(params: any) {
return http.get(`/marketPre/getUser`, { params })
}
/**添加市况权限
* http://127.0.0.1:8811/openApi/marketPre/saveUser
*/
export async function saveMarketUser(data: any) {
return http.post(`/marketPre/saveUser`, data)
}
/**下载文件
* http://127.0.0.1:8811/openApi/marketPre/download?id=3
*/
export async function MarketDownload(params: { id: any }) {
// return http.get(`/bcp/download`,{params})
return http({
method: 'get',
url: '/marketPre/download?id=' + params.id,
responseType: 'arraybuffer'
})
}
/**预览文件
* http://127.0.0.1:8811/openApi/marketPre/preview?id=11
*/
export async function MarketPreview(params: { id: any }) {
return http.get('/marketPre/preview', { params })
}
/***获取近7天数据-市况
* http://127.0.0.1:8811/openApi/market/historySevenDay
*/
export async function historyMarketSevenDay(data: any) {
return http.post(`/market/historySevenDay`, data)
}
/**获取近7天数据-汇率
* http://127.0.0.1:8811/openApi/stat/historySevenDay
*/
export async function historyStatSevenDay(data: any) {
return http.post(`/stat/historySevenDay`, data)
}
/**获取历年数据-市况
* "number": "Cu", //Cu Al
"beginTime": "2013-01-01", //开始时间
"endTime": "2013-04-01" //结束时间
* http://127.0.0.1:8811/openApi/market/historyStat
*/
export async function historyStat(data: any) {
return http.post(`/market/historyStat`, data)
}
/**获取历年数据-汇率
* "currencyCodeFrom": "CNA",
"currencyCodeTo": "USD"
* http://127.0.0.1:8811/openApi/rate/historyStat
*/
export async function rateHistoryStat(data: any) {
return http.post(`/rate/historyStat`, data)
}
/**获取汇率币种列表
* http://127.0.0.1:8811/openApi/common/getCurrencyList
*/
export async function getCurrencyList() {
return http.get('/common/getCurrencyList')
}
/**获取市况材料列表
* http://127.0.0.1:8811/openApi/common/getMetalList
*/
export async function getMetalList() {
return http.get('/common/getMetalList')
}
/**首页-汇率列表
* http://127.0.0.1:8811/openApi/rate/homePage
*/
export async function homePageRate() {
return http.get(`/rate/homePage`)
}
/**
* 添加市况/汇率预测
* http://127.0.0.1:8811/openApi/marketPre/add
*/
export async function marketPreADD(data: any) {
return http.post(`/marketPre/add`, data)
}
/**不良情报-添加
*
* http://127.0.0.1:8811/openApi/quality/badartAdd
*/
export async function badartAdd(data: any) {
return http.post(`/quality/badartAdd`, data)
}
/**不良情报-删除
* http://127.0.0.1:8811/openApi/quality/badartDel?id=3
*/
export async function badartDel(params: { id: any }) {
return http.get(`/quality/badartDel`, { params })
}
/**外部优质情报-添加
* http://127.0.0.1:8811/openApi/quality/highAdd
*/
export async function highAdd(data: any) {
return http.post(`/quality/highAdd`, data)
}
/**外部优质情报-删除
* http://127.0.0.1:8811/openApi/quality/highDel?id=3
*/
export async function highDel(params: { id: any }) {
return http.get(`/quality/highDel`, { params })
}
/**品质活动进展-添加
* http://127.0.0.1:8811/openApi/quality/actAdd
*/
export async function actAdd(data: any) {
return http.post(`/quality/actAdd`, data)
}
/**品质活动进展-删除
*
http://127.0.0.1:8811/openApi/quality/actDel?id=3
*/
export async function actDel(params: { id: any }) {
return http.get(`/quality/actDel`, { params })
}
/**不良情报top-添加
* http://127.0.0.1:8811/openApi/quality/topAdd
*/
export async function topAdd(data: any) {
return http.post(`/quality/topAdd`, data)
}
export async function topDel(data: any) {
return http.get(`/quality/topDel`, { params: data })
}
/**
* 不良情报-列表
*
http://127.0.0.1:8811/openApi/quality/badartList?pageNum=1
*/
export async function badartList() {
return http.get(`/quality/badartList?pageNum=1&pageSize=1000`)
}
/**外部优质情报-列表
* http://127.0.0.1:8811/openApi/quality/highList?pageNum=1
*/
export async function highList() {
return http.get(`quality/highList?pageNum=1&pageSize=1000`)
}
/**品质活动进展-列表
* http://127.0.0.1:8811/openApi/quality/actList?pageNum=1
*/
export async function actList() {
return http.get(`/quality/actList?pageNum=1&pageSize=1000`)
}
/**不良情报top-列表
* http://127.0.0.1:8811/openApi/quality/topList?pageNum=1
*/
export async function topList() {
return http.get(`/quality/topList?pageNum=1&pageSize=1000`)
}
/**不良情报top-统计图表
* http://127.0.0.1:8811/openApi/quality/topStat
*/
export async function topStat() {
return http.get(`/quality/topStat`)
}
// DATABASE
/**添加分类
* http://127.0.0.1:8811/openApi/db/cateAdd
*/
export async function cateAdd(data: any) {
return http.post(`/db/cateAdd`, data)
}
/**更新分类
* http://127.0.0.1:8811/openApi/db/cateUpdate
*/
export async function cateUpdate(data: any) {
return http.post(`/db/cateUpdate`, data)
}
/**
* 分类列表-树结构
* http://127.0.0.1:8811/openApi/db/treeList
*/
export async function treeDbList(params: any) {
return http.get(`/db/treeList`, { params })
}
/**分类详情
* http://127.0.0.1:8811/openApi/db/cateInfo?id=1
*/
export async function cateInfo(params: any) {
return http.get(`/db/cateInfo`, { params })
}
/**分类删除
* http://127.0.0.1:8811/openApi/db/cateDel?id=1
*/
export async function cateDel(params: any) {
return http.get(`/db/cateDel`, { params })
}
/**
* 添加/更新文件信息
* http://127.0.0.1:8811/openApi/db/cateFileUpdate
*/
export async function cateFileUpdate(data: any) {
return http.post(`/db/cateFileUpdate`, data)
}
/**分类文件删除
* http://127.0.0.1:8811/openApi/db/cateFileDel?id=1
*/
export async function cateFileDel(params: any) {
return http.get(`/db/cateFileDel`, { params })
}
/**分类文件列表-分页
* http://127.0.0.1:8811/openApi/db/cateFileList?cateId=3
*/
export async function cateFileList(params: any) {
return http.get(`/db/cateFileList`, { params })
}
/***
* 分类文件下载
* http://127.0.0.1:8811/openApi/db/download?id=1
*/
export async function download(params: any) {
return http({
method: 'get',
url: '/db/download?id=' + params.id,
responseType: 'arraybuffer'
})
}
/**
* 足迹 http://127.0.0.1:8811/openApi/moduleStat/timeStat openApi/moduleStat/timeStat
*/
export async function timeStat(data: any) {
return http.post(`/moduleStat/timeStat`, data)
}
/**
* 网站外部足迹 https://console-docs.apipost.cn/preview/24b343ac43bb13e7/d871c156cc579e86?target_id=5edbf818-b7c7-426f-83c0-fb16f48c196c
*/
export async function externalTimeStat(data: any) {
return http.post(`/moduleStat/externalTimeStat`, data)
}
/**
* csr供应商月份列表 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb
*/
export async function fetchCsrSupplier(params: any) {
return http.get(`/csrSupplier/statList`, { params })
}
/**
* csr供应商右侧排行列表(分页) https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb
*/
export async function fetchCsrSupplierTopList(params: any) {
return http.get(`/csrSupplier/topList`, { params })
}
/**
* csr供应商右侧排行列表(分页) https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb
*/
export async function fetchCsrSupplierList(params: any) {
return http.get(`/csrSupplier/statMonthList`, { params })
}
/**
* csr供应商更新时间 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb
*/
export async function fetchCsrSupplierTaskInfo(params?: any) {
return http.get(`/csrSupplier/taskInfo`, { params })
}
/**
* csr原材料-列表(分页) https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb
*/
export async function fetchMaterialPage(params?: any) {
return http.get(`/material/getPage`, { params })
}
/**
* csr原材料-删除 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb
*/
export async function fetchMaterialPageDel(params?: any) {
return http.get(`/material/delInfo`, { params })
}
/**
* csr原材料-主图 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb
*/
export async function fetchStatListlBar(params?: any) {
return http.get(`/material/statList`, { params })
}
/** !!!!!!
* csr原材料-饼图 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb
*/
export async function fetchStatListlPie(params?: any) {
return http.get(`/material/proportionList`, { params })
}
/**
* csr原材料-填报数据 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=5e2e22e5-fab5-4c46-8a93-8f0c3a3675cb
*/
export async function fetchMaterialAddInfo(data?: any) {
return http.post(`/material/addInfo`, data)
}
/**
* 查看模块查看范围历史 https://console-docs.apipost.cn/preview/d9d2c859db1009cd/18265d950ad924e4?target_id=4c25a720-44f2-472e-be82-c2eaf41d9a43
*/
export async function fetchGetViewScope(params?: any) {
return http.get(`/common/getViewScope`, { params })
}
/**
* DB添加上传/审核者 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=a11153dc-ab84-41ca-aa1c-45fda68c4156
*/
export async function fetchdbAuthAdd(data?: any) {
return http.post(`/dbAuth/add`, data)
}
/**
* DB获取上传/审核者信息 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=a11153dc-ab84-41ca-aa1c-45fda68c4156
*/
export async function fetchdbAuthGetInfo(params?: any) {
return http.get(`/dbAuth/getInfo`, { params })
}
/**
* DB撤回 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=a11153dc-ab84-41ca-aa1c-45fda68c4156
*/
export async function fetchdbWithdraw(params?: any) {
return http.get(`/db/withdraw`, { params })
}
/**
* DB文件审核 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=a11153dc-ab84-41ca-aa1c-45fda68c4156
*/
export async function fetchdbReview(params?: any) {
return http.get(`/db/review`, { params })
}
/**
* DB审核列表分页 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=a11153dc-ab84-41ca-aa1c-45fda68c4156
*/
export async function fetchdbReviewFileList(params?: any) {
return http.get(`/dbAuth/reviewFileList`, { params })
}
/**
* 获取市况数据列表 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=a11153dc-ab84-41ca-aa1c-45fda68c4156
*/
export async function fetchGetHisPage(params?: any) {
return http.get(`/market/getHisPage`, { params })
}
/**
* 删除市况数据 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=a11153dc-ab84-41ca-aa1c-45fda68c4156
*/
export async function fetchDelHis(params?: any) {
return http.get(`/market/delHis`, { params })
}
/**
* 新增市况数据 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=a11153dc-ab84-41ca-aa1c-45fda68c4156
*/
export async function fetchSaveHis(data?: any) {
return http.post(`/market/saveHis`, data)
}
/**
* 编辑市况数据 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=a11153dc-ab84-41ca-aa1c-45fda68c4156
*/
export async function fetchUpdateHis(data?: any) {
return http.post(`/market/updateHis`, data)
}
/**
* 获取有权限的分类节点 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=a11153dc-ab84-41ca-aa1c-45fda68c4156
*/
export async function fetchReviewAuthCateList(params?: any) {
return http.get(`/db/getReviewAuthCateList`, { params })
}
/**
* 外部系统-统计列表 https://console-docs.apipost.cn/preview/9ac14c51f96ce4d8/75274687248efb1c?target_id=a11153dc-ab84-41ca-aa1c-45fda68c4156
*/
export async function fetchmoduleStatExternalPage(params?: any) {
return http.get(`/moduleStat/externalPage`, { params })
}