|
|
@@ -0,0 +1,62 @@
|
|
|
+import { http } from '@/utils/http/axios';
|
|
|
+
|
|
|
+// 安全责任落实
|
|
|
+export interface ResponsibilityImplementation {
|
|
|
+ rate: string; // 签订率
|
|
|
+ leaderTotal: number; // 院领导总数
|
|
|
+ leaderSign: number; // 院领导签署数
|
|
|
+ firstDeptTotal: number; // 所/中心/智能.....(一级部门)总数
|
|
|
+ firstDeptSign: number; // 所/中心/智能.....(一级部门)签订数
|
|
|
+ secondDeptTotal: number; // 所/中心.....(二级部门)总数
|
|
|
+ secondDeptSign: number; // 所/中心.....(二级部门)签订数
|
|
|
+ unitTotal: number; // 科室总数
|
|
|
+ unitSign: number; // 科室签订数
|
|
|
+ employeeTotal: number; // 员工总数
|
|
|
+ employeeSign: number; // 员工签署数
|
|
|
+ supplierTotal: number; // 常驻供应商总数
|
|
|
+ supplierSign: number; // 常驻供应商签署数
|
|
|
+}
|
|
|
+export const getResponsibilityImplementation = (): Promise<ResponsibilityImplementation> => {
|
|
|
+ return http.request({
|
|
|
+ url: '/h5HomePage/queryResponsibility',
|
|
|
+ method: 'get',
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
+// 安全教育培训
|
|
|
+export interface EducationTraining {
|
|
|
+ trainingCount: number; // 培训次数
|
|
|
+ participateNum: number; // 参与人数
|
|
|
+}
|
|
|
+export const getEducationTraining = (): Promise<EducationTraining> => {
|
|
|
+ return http.request({
|
|
|
+ url: '/h5HomePage/trainingTotal',
|
|
|
+ method: 'get',
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
+// 风险的识别与管控
|
|
|
+export interface RiskIdentification {
|
|
|
+ dangerNum: number; // 危险作业数
|
|
|
+ constructionNum: number; // 施工作业数
|
|
|
+}
|
|
|
+export const getRiskIdentification = (): Promise<RiskIdentification> => {
|
|
|
+ return http.request({
|
|
|
+ url: '/h5HomePage/nowWorkTotal',
|
|
|
+ method: 'get',
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
+// 隐患的排查与治理
|
|
|
+export interface DangerInvestigation {
|
|
|
+ totalCount: number; // 隐患数(未删除且未作废的隐患总数)
|
|
|
+ rectifyingCount: number; // 整改中(状态为待整改的隐患数)
|
|
|
+ closedLoopCount: number; // 闭环(状态为已完成的隐患数)
|
|
|
+ safeCheckCount: number; // 安全生产检查(检查记录总数)
|
|
|
+}
|
|
|
+export const getDangerInvestigation = (): Promise<DangerInvestigation> => {
|
|
|
+ return http.request({
|
|
|
+ url: '/productionHiddenDanger/mobile/statistics',
|
|
|
+ method: 'get',
|
|
|
+ });
|
|
|
+};
|