From 163cfda20493e8f1e8a874dc8f1ae0102fbba234 Mon Sep 17 00:00:00 2001 From: wuyy Date: Fri, 4 Sep 2026 09:18:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E7=B4=A2=E5=8A=A0=E5=8F=8C=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/msg.ts | 8 ++++++++ src/components/WsMsgList/index.vue | 27 +++++++++++++++++++++---- src/layout/components/Navbar.vue | 4 +++- src/layout/index.vue | 6 +++--- src/utils/webSocket.ts | 2 +- src/views/blood/clinical/index.vue | 9 +++++++-- src/views/blood/crossMatching/index.vue | 12 ++++++++--- src/views/blood/recheck/index.vue | 9 +++++++-- src/views/doctor/application/index.vue | 9 +++++++-- src/views/doctor/assessment/index.vue | 8 +++++++- 10 files changed, 75 insertions(+), 19 deletions(-) diff --git a/src/api/msg.ts b/src/api/msg.ts index dd78d08..3192424 100644 --- a/src/api/msg.ts +++ b/src/api/msg.ts @@ -39,4 +39,12 @@ export function queryNoReadCount(query?: Object) { method: 'get', params: query }) +} +// 批量更新消息状态 +export function batchUpdateFlag(query?: Object) { + return request({ + url: '/bus/bloodbank/msg/batchUpdateFlag', + method: 'post', + data: query + }) } \ No newline at end of file diff --git a/src/components/WsMsgList/index.vue b/src/components/WsMsgList/index.vue index c846d35..21e81f2 100644 --- a/src/components/WsMsgList/index.vue +++ b/src/components/WsMsgList/index.vue @@ -28,7 +28,7 @@
查询 - + 一键已读
@@ -57,11 +57,13 @@ diff --git a/src/utils/webSocket.ts b/src/utils/webSocket.ts index e06c24b..0b6121c 100644 --- a/src/utils/webSocket.ts +++ b/src/utils/webSocket.ts @@ -40,7 +40,7 @@ export function initWebSocket(options: WebSocketInternalOptions) { const msgType = rawMsg.type; //根据消息类型发送事件 //APPLY_NOTICE 输血申请保存 - emitter.emit(msgType, rawMsg); + emitter.emit("newMsg", rawMsg); // 重置未读消息数 emitter.emit('resetCount') } catch (err) { diff --git a/src/views/blood/clinical/index.vue b/src/views/blood/clinical/index.vue index f2ca6ab..31e08dc 100644 --- a/src/views/blood/clinical/index.vue +++ b/src/views/blood/clinical/index.vue @@ -322,8 +322,8 @@ - + @@ -661,6 +661,11 @@ const jsRowclick = (row) => { selectRow.value = row } +const dblClickRow = (row) => { + selectRow.value = row + handleConfirm() +} + const getBloodMatchInfo = () => { queryOutInfo({ billNo: selectRow.value.bill_no }).then(res => { diff --git a/src/views/blood/crossMatching/index.vue b/src/views/blood/crossMatching/index.vue index 8516a28..73e22e4 100644 --- a/src/views/blood/crossMatching/index.vue +++ b/src/views/blood/crossMatching/index.vue @@ -354,7 +354,7 @@ - +
- + @@ -391,7 +391,8 @@ - +