合并
This commit is contained in:
13
src/api/enterpriseLarge/index.ts
Normal file
13
src/api/enterpriseLarge/index.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
|
||||
/**
|
||||
* 查询企业关键指标
|
||||
*/
|
||||
|
||||
export const keyIndex = () => {
|
||||
return request({
|
||||
url: '/enterprise/big/screen/keyIndex',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
@ -98,3 +98,18 @@ export const cashTotal = () => {
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
//安全天数
|
||||
export const getSafetyDay = (projectId) => {
|
||||
return request({
|
||||
url: '/money/big/screen/safetyDay/' + projectId,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
//安全天数
|
||||
export const getWeather = (projectId) => {
|
||||
return request({
|
||||
url: '/money/big/screen/weather/' + projectId,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
43
src/api/outputApi/index.ts
Normal file
43
src/api/outputApi/index.ts
Normal file
@ -0,0 +1,43 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
|
||||
/**
|
||||
* 查询项目数据
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const projectProgress = (query?: any): any => {
|
||||
return request({
|
||||
url: '/enterprise/big/screen/projectProgress',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 产值
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const outpuProgress = (query?: any): any => {
|
||||
return request({
|
||||
url: '/enterprise/big/screen/projectOutputValueComparison',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 预警
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const earlyWarning = (query?: any): any => {
|
||||
return request({
|
||||
url: '/enterprise/big/screen/riskEarlyWarning',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
@ -64,3 +64,27 @@ export const getScreenGeneralize = (projectId: number | string) => {
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
// 获取gps数据
|
||||
export const getGps = (projectId) => {
|
||||
return request({
|
||||
url: '/project/big/screen/getClientList/' + projectId,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 选中列表
|
||||
export const getSelectList = (params) => {
|
||||
return request({
|
||||
url: '/project/big/screen/getList',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
||||
// 设置选中
|
||||
export const setSelect = (data) => {
|
||||
return request({
|
||||
url: '/project/big/screen/setList',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
@ -61,3 +61,22 @@ export const delSupplierInput = (id: string | number | Array<string | number>) =
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
//导入供商入库
|
||||
export const leadingIn = (formData: FormData, projectId) => {
|
||||
return request({
|
||||
url: '/supplierInput/supplierInput/import?projectId=' + projectId,
|
||||
method: 'post',
|
||||
data: formData,
|
||||
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
}
|
||||
});
|
||||
};
|
||||
//导入供商出库
|
||||
export const leadingOut = () => {
|
||||
return request({
|
||||
url: '/supplierInput/supplierInput/export',
|
||||
method: 'post'
|
||||
});
|
||||
};
|
||||
|
@ -31,3 +31,20 @@ export function delOss(ossId: string | number | Array<string | number>) {
|
||||
export function downLoadOss(ossId: { id?: string | number; idList?: string | number | Array<string | number> }, url: string, fileName: string) {
|
||||
return download(url, ossId, fileName);
|
||||
}
|
||||
|
||||
//识别身份证
|
||||
export function recognizeidCard(data: any, type: any) {
|
||||
return request({
|
||||
url: '/contractor/constructionUser/idCard?idCardSide=' + type,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
//识别银行卡
|
||||
export function recognizeBankCard(data: any) {
|
||||
return request({
|
||||
url: '/contractor/constructionUser/bankCard',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user