You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.4 KiB
71 lines
1.4 KiB
import request from '@/utils/request';
|
|
import { AxiosPromise } from 'axios';
|
|
|
|
const BASE_URL = '/web/supervision/report/enterprises-inspected-noft';
|
|
|
|
/** 查询参数 */
|
|
export interface EINOFTQuery {
|
|
pageNum?: number;
|
|
pageSize?: number;
|
|
enterpriseName?: string;
|
|
num?: string;
|
|
beginTime?: string;
|
|
endTime?: string;
|
|
enterpriseNumber?: string;
|
|
}
|
|
|
|
/** 企业受检次数行VO */
|
|
export interface EnterprisesInspectedVo {
|
|
enterpriseName: string;
|
|
enterpriseNumber: string;
|
|
num: number;
|
|
enforcementTime: string;
|
|
district: string;
|
|
street: string;
|
|
}
|
|
|
|
/** 详情VO(逐条展示) */
|
|
export interface EINOFTDetailVo {
|
|
bureauDeptName: string;
|
|
lawEnforcementItemText: string;
|
|
enforcementTime: string;
|
|
}
|
|
|
|
/** 统计结果 */
|
|
export interface EINOFTStatistics {
|
|
enterpriseCount: number;
|
|
totalEnforcementCount: number;
|
|
}
|
|
|
|
/**
|
|
* 企业受检次数列表(分页)
|
|
*/
|
|
export const listEINOFT = (params: EINOFTQuery): AxiosPromise => {
|
|
return request({
|
|
url: `${BASE_URL}/list`,
|
|
method: 'get',
|
|
params
|
|
});
|
|
};
|
|
|
|
/**
|
|
* 统计(被执法企业数量 + 总执法次数)
|
|
*/
|
|
export const getStatistics = (params: EINOFTQuery): AxiosPromise => {
|
|
return request({
|
|
url: `${BASE_URL}/statistics`,
|
|
method: 'get',
|
|
params
|
|
});
|
|
};
|
|
|
|
/**
|
|
* 详情(指定企业执法明细)
|
|
*/
|
|
export const getDetail = (params: EINOFTQuery): AxiosPromise => {
|
|
return request({
|
|
url: `${BASE_URL}/detail`,
|
|
method: 'get',
|
|
params
|
|
});
|
|
};
|
|
|