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 @@
-
+
@@ -715,6 +716,11 @@ const jsRowclick = (row) => {
selectRow.value = row
}
+const dblClickRow = (row) => {
+ selectRow.value = row
+ handleConfirm()
+}
+
const handleRowClick = (row: any) => {
selectRow.value = row
getBloodMatchInfo()
diff --git a/src/views/blood/recheck/index.vue b/src/views/blood/recheck/index.vue
index 5126581..56ca9ba 100644
--- a/src/views/blood/recheck/index.vue
+++ b/src/views/blood/recheck/index.vue
@@ -344,8 +344,8 @@
-
+
@@ -524,6 +524,11 @@ const handleRowClick = (row: TableRowItem) => {
selectedRow.value = row
}
+const dblClickRow = (row: TableRowItem) => {
+ selectedRow.value = row
+ handleConfirm()
+}
+
const handleSearch = () => {
searchForm.value.stime = dayjs(searchForm.value.stime).format('YYYY-MM-DD') + ' 00:00:00'
searchForm.value.etime = dayjs(searchForm.value.etime).format('YYYY-MM-DD') + ' 23:59:59'
diff --git a/src/views/doctor/application/index.vue b/src/views/doctor/application/index.vue
index dd12ad1..5fb8d1c 100644
--- a/src/views/doctor/application/index.vue
+++ b/src/views/doctor/application/index.vue
@@ -344,7 +344,7 @@
- 天内
@@ -508,7 +508,7 @@
+ @row-click="handleRowClick" highlight-current-row :cell-style="cellStyle" @row-dblclick="dblClickRow">
{{ formatDict(scope.row.bill_stasus, 'billApplyStatus') }}
@@ -803,6 +803,11 @@ const handleConfirm = () => {
const handleRowClick = (row) => {
selectRow.value = row
}
+
+const dblClickRow = (row) => {
+ getQueryOneInfo(row.bill_no)
+ visible.value = false
+}
// 检索列表
const getList = () => {
const data = {
diff --git a/src/views/doctor/assessment/index.vue b/src/views/doctor/assessment/index.vue
index 35e5db3..f4ed8c6 100644
--- a/src/views/doctor/assessment/index.vue
+++ b/src/views/doctor/assessment/index.vue
@@ -233,7 +233,7 @@
+ @row-click="handleRowClick" highlight-current-row @row-dblclick="dblClick">
@@ -423,6 +423,12 @@ const selectRow = ref({})
const handleRowClick = (row) => {
selectRow.value = row
}
+
+const dblClick = (row) => {
+ evaluationInfo.value.billNo = row.bill_no
+ getBillInfo()
+ visible.value = false
+}
//查询单据信息
const getList = () => {
const data = {