From 436db3ff84176cad8fce92ad393b3006281f7ee2 Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Tue, 17 Dec 2024 17:54:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BF=83=E7=94=B5=E5=9B=BE?= =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/applyregistration/applyform/index.ts | 2 + src/api/tblist/patientexamlist/index.ts | 14 ++- src/views/Home/Index.vue | 125 ++++++++++--------- src/views/Home/YY.vue | 21 ++-- src/views/Home/mw.vue | 2 +- src/views/Home/zx.vue | 32 ++--- 6 files changed, 110 insertions(+), 86 deletions(-) diff --git a/src/api/applyregistration/applyform/index.ts b/src/api/applyregistration/applyform/index.ts index 511e93d9..a631f17c 100644 --- a/src/api/applyregistration/applyform/index.ts +++ b/src/api/applyregistration/applyform/index.ts @@ -118,4 +118,6 @@ export const ApplyformApi = { GetReglistCount: async () => { return await request.get({ url: `/applyregistration/applyform/getreglisrcount`}) }, + + } diff --git a/src/api/tblist/patientexamlist/index.ts b/src/api/tblist/patientexamlist/index.ts index fd8e41eb..49197e82 100644 --- a/src/api/tblist/patientexamlist/index.ts +++ b/src/api/tblist/patientexamlist/index.ts @@ -106,11 +106,20 @@ export const PatientexamlistApi = { WholeDiagFlagCount: async () => { return await request.get({ url: `/tblist/patientexamlist/WholeDiagFlagCount` }) }, + + // 获取心电已分析数据的男女是否申请危急值统计 + EcgWholeDiagFlagCount: async () => { + return await request.get({ url: `/tblist/patientexamlist/EcgWholeDiagFlagCount` }) + }, // 获取一周已检查全部的阴性阳性重大阳性统计 GetDateYYZDYXCount: async () => { return await request.get({ url: `/tblist/patientexamlist/GetDateYYZDYXCount` }) }, + //统计一周内的心电上级申请和危急值统计 + GetEcgDateYYZDYXCount: async () => { + return await request.get({ url: `/tblist/patientexamlist/GetEcgDateYYZDYXCount` }) + }, // 收藏功能 CollectAndCancellation: async (id: String, type: string) => { return await request.get({ url: `/tblist/patientexamlist/CollectAndCancellation?id=${id}&&type=${type}` }) @@ -123,5 +132,8 @@ export const PatientexamlistApi = { Updatetblistwarning: async (id: String, type: string) => { return await request.get({ url: `/tblist/patientexamlist/Updatetblistwarning?id=${id}&&type=${type}` }) }, - +// 获取心电首页统计 +getECGStatistics: async () => { + return await request.get({ url: `/tblist/patientexamlist/getECGStatistics`}) +}, } diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue index 7dd03d3e..5455ee42 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -21,14 +21,14 @@
- 累计已检查登记单概况 + 累计已分析数据概况
@@ -42,7 +42,7 @@
- 已检查登记单概况分布 + 周期危急值概况分布
- 检查状态概况 + 数据状态概况
- 登记单累计总数 + 累计总数 {{ regtotalcount }}
@@ -98,11 +98,11 @@ align-items: flex-start; " > - 登记单未分检数 - {{ wfj }} + 已分析数 + {{ analyzedCount }}
({{ usePercentageCalculation(regtotalcount, wfj) }}%)({{ usePercentageCalculation(regtotalcount, analyzedCount) }}%)
@@ -123,11 +123,11 @@ align-items: flex-start; " > - 登记单未检查数 - {{ wjc }} + 未分析数 + {{ unanalyzedCount }}
({{ usePercentageCalculation(regtotalcount, wjc) }}%)({{ usePercentageCalculation(regtotalcount, unanalyzedCount) }}%)
@@ -148,11 +148,11 @@ align-items: flex-start; " > - 登记单已检查数 - {{ yjc }} + 阳性数 + {{ positiveCount }} ({{ usePercentageCalculation(regtotalcount, yjc) }}%)({{ usePercentageCalculation(regtotalcount, positiveCount) }}%) @@ -173,11 +173,11 @@ align-items: flex-start; " > - 登记单已放弃数 - {{ yfq }} + 危急值数 + {{ criticalCount }} ({{ usePercentageCalculation(regtotalcount, yfq) }}%)({{ usePercentageCalculation(regtotalcount, criticalCount) }}%) @@ -235,29 +235,29 @@ let projects = reactive([]) const getProject = async () => { const data = [ { - name: '登记单列表', - message: '/reservation/applyform' + name: '心电工作台', + message: '/diagnosis/patientexamlistECG' }, { - name: '预约登记', - message: '/reservation/reservationInfo' + name: '阳性统计', + message: '/stat/positiveStatistics' }, { - name: '病例管理', - message: '/reservation/illnessCase' + name: '工作量统计', + message: '/stat/ECGStat' }, { - name: '超声工作台', - message: '/diagnosis/patientexamlistultrasonic' + name: '危急值统计', + message: '/stat/warningStatisticsReport' }, - { - name: '影像工作台', - message: '/diagnosis/patientexamlist' - }, - { - name: '报告打印统计', - message: '/stat/reportPrintStatistics' - } + // { + // name: '影像工作台', + // message: '/diagnosis/patientexamlist' + // }, + // { + // name: '报告打印统计', + // message: '/stat/reportPrintStatistics' + // } ] projects = Object.assign(projects, data) } @@ -267,11 +267,15 @@ const totalcount = ref() const zdyx = ref() const F = ref() const M = ref() +const wjz=ref()//危急值 +const sq=ref()//申请 const GetWholeDiagFlagCount = async () => { - const data = await PatientexamlistApi.WholeDiagFlagCount() + const data = await PatientexamlistApi.EcgWholeDiagFlagCount() totalcount.value = data.totalcount //总数 + wjz.value=data.wjz + sq.value=data.sq y.value = data.y - yx.value = data.yx + yx.value = data.dictyx zdyx.value = data.zdyx F.value = data.f M.value = data.m @@ -285,29 +289,28 @@ const yArray = ref(new Array(7).fill(0)) const zdyxArray = ref(new Array(7).fill(0)) const GetDateYYZDYXCount = async () => { - const data = await PatientexamlistApi.GetDateYYZDYXCount() + const data = await PatientexamlistApi.GetEcgDateYYZDYXCount() for (let i = 0; i < data.length; i++) { - yxArray.value[i] = data[i].yx - yArray.value[i] = data[i].y - zdyxArray.value[i] = data[i].zdyx + yxArray.value[i] = data[i].sq + zdyxArray.value[i] = data[i].wjz } iszxDataReady.value = true } const regtotalcount = ref(0) -const wfj = ref(0) -const wjc = ref(0) -const yjc = ref(0) -const yfq = ref(0) +const analyzedCount = ref(0) +const unanalyzedCount = ref(0) +const positiveCount = ref(0) +const criticalCount = ref(0) const GetReglistCount = async () => { - const data = await ApplyformApi.GetReglistCount() - regtotalcount.value = data.totalcount - wfj.value = data.wfj - wjc.value = data.wjc - yjc.value = data.yjc - yfq.value = data.yfq + const data = await PatientexamlistApi.getECGStatistics() + regtotalcount.value = data.totalCount + analyzedCount.value = data.analyzedCount + unanalyzedCount.value = data.unanalyzedCount + positiveCount.value = data.positiveCount + criticalCount.value = data.criticalCount } // 封装计算百分比的方法 @@ -345,10 +348,10 @@ const getAllApi = async () => { // 动态切换图片 function getImageUrl(name) { const imageMap = { - 登记单列表: '/static/登记单列表.jpg', - 预约登记: '/static/预约登记.jpg', - 病例管理: '/static/病例管理.jpg', - 超声工作台: '/static/超声.jpg', + 心电工作台: '/static/登记单列表.jpg', + 阳性统计: '/static/预约登记.jpg', + 工作量统计: '/static/病例管理.jpg', + 危急值统计: '/static/超声.jpg', 影像工作台: '/static/影像.jpg', 报告打印统计: '/static/报告打印.jpg' } @@ -357,10 +360,10 @@ function getImageUrl(name) { // 动态获取背景颜色 function getbackground(name) { const backgroundMap = { - 登记单列表: 'background: rgb(220, 228, 245);', - 预约登记: 'background: rgb(250, 239, 232);', - 病例管理: 'background: rgb(235, 245, 244);', - 超声工作台: 'background: rgb(247, 240, 218);', + 心电工作台: 'background: rgb(220, 228, 245);', + 阳性统计: 'background: rgb(250, 239, 232);', + 工作量统计: 'background: rgb(235, 245, 244);', + 危急值统计: 'background: rgb(247, 240, 218);', 影像工作台: 'background: rgb(250, 231, 235);', 报告打印统计: 'background: rgb(227, 228, 252);' } @@ -370,10 +373,10 @@ function getbackground(name) { // 动态切换箭头图片 function getarrowImageUrl(name) { const imageMap = { - 登记单列表: '/static/djjt.jpg', - 预约登记: '/static/yydj.jpg', + 心电工作台: '/static/djjt.jpg', + 阳性统计: '/static/yydj.jpg', 病例管理: '/static/blgl.jpg', - 超声工作台: '/static/cs.jpg', + 危急值统计: '/static/cs.jpg', 影像工作台: '/static/yx.jpg', 报告打印统计: '/static/bg.jpg' } diff --git a/src/views/Home/YY.vue b/src/views/Home/YY.vue index 16d7387f..3064e1be 100644 --- a/src/views/Home/YY.vue +++ b/src/views/Home/YY.vue @@ -5,7 +5,7 @@