From bd3f4b0a9b9207b647de0f0d8c52600a2742fd56 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期四, 26 十一月 2026 09:34:58 +0800
Subject: [PATCH] 修改了框架,适用chrome85
---
src/views/ecg/doctor/index.vue | 37 ++++++++++++++++++++++++++++---------
1 files changed, 28 insertions(+), 9 deletions(-)
diff --git a/src/views/ecg/doctor/index.vue b/src/views/ecg/doctor/index.vue
index 2c3ddeb..c45eebe 100644
--- a/src/views/ecg/doctor/index.vue
+++ b/src/views/ecg/doctor/index.vue
@@ -61,12 +61,26 @@
const finishNextPatient = async () => {
finishFlag.value = true
try {
+ // 銆愭湰闇�姹傘�戝彨鍙峰墠鑻ヤ粛鏈夈�屽氨璇婁腑(30)銆嶆偅鑰呬笖鏈偣銆岄鐢ㄥ畬鎴愩�嶏紝鍏堣嚜鍔ㄥ畬鎴愪粬锛屽啀鍙笅涓�浣�
+ const onstage = patientList.value.find((item) => item.status === 30)
+ if (onstage) {
+ const ok = (await devReadyPanelRef.value?.completeCurrent?.()) !== false
+ if (!ok) {
+ ElMessage.warning('鑷姩銆岄鐢ㄥ畬鎴愩�嶆湭鎴愬姛锛岃鍏堟墜鍔ㄥ畬鎴愬綋鍓嶆偅鑰�')
+ return
+ }
+ }
patientList.value = await DoctorApi.finishReceiveNextPatient(roomBedVO)
patientStat.value = await DoctorApi.getDevReadyStatistic(roomBedVO)
getOnstagePatient()
- // 鐢ㄤ簬瑙e喅 宸︿晶閲嶇疆鍚� 鑾峰彇褰撳墠 銆愬氨璇婁腑銆戞偅鑰�
- setOnStagePatient(onStagePatient)
+ // 鐢ㄤ簬瑙e喅 宸︿晶閲嶇疆鍚� 鑾峰彇褰撳墠銆愬氨璇婁腑銆戞偅鑰咃紱
+ // 鑻ュ凡鏃犲氨璇婁腑鎮h�咃紙鍒氬畬鎴愪笖娌℃湁涓嬩竴浣嶏級锛屾竻绌哄乏涓婅锛岄伩鍏嶆妸鍒氬畬鎴愮殑浜哄張鏄剧ず鍥炴潵
+ if (patientList.value.some((item) => item.status === 30)) {
+ setOnStagePatient(onStagePatient)
+ } else {
+ devReadyPanelRef.value?.setPatient?.(undefined)
+ }
} finally {
finishFlag.value = false
}
@@ -139,15 +153,20 @@
}
}
-const undoFinish = async () => {
- const last = await DoctorApi.lastFinishedPatient(roomBedVO)
- if (!last || !last.patId) {
- ElMessage.warning('鏈伐浣嶄粖鏃ユ殏鏃犲凡瀹屾垚鐨勬鏌ヨ褰�')
+/**
+ * 鎾ら攢銆岄鐢ㄥ畬鎴愩�嶏細鎾ら攢**閫変腑鐨勯偅鏉�**瀹屾垚璁板綍锛�2026-11-25 闇�姹傦級銆�
+ * 鍘熷疄鐜扮敱鍚庣 lastFinishedPatient 鍙栨渶杩戜竴鏉★紝鍖荤敓鏃犳硶閫夋嫨锛涚幇鎸夈�屾偅鑰� + 妫�鏌ラ」鐩�嶇簿纭挙閿�銆�
+ */
+const undoFinish = async (record?: any) => {
+ if (!record || !record.patId) {
+ ElMessage.warning('璇峰厛鍦ㄣ�屽凡瀹屾垚鍒楄〃銆嶄腑鐐归�変竴鏉¤褰曪紝鍐嶇偣銆屾挙閿�銆�')
return
}
+ const who = record.patName || record.patId
+ const ctName = record.checkTypeName || record.checkType || ''
try {
await ElMessageBox.confirm(
- `纭畾鎾ら攢銆�${last.patName || last.patId}銆嶇殑銆屽畬鎴愩�嶇姸鎬佸悧锛熻鎮h�呭皢鍥炲埌鍊欒瘖鍖恒�俙,
+ `纭畾鎾ら攢銆�${who}銆嶇殑銆�${ctName || '棰嗙敤'}銆嶅畬鎴愯褰曞悧锛熻鎮h�呭皢鍥炲埌鍊欒瘖鍖恒�俙,
'鎾ら攢',
{ type: 'warning', confirmButtonText: '纭畾鎾ら攢', cancelButtonText: '鍙栨秷' }
)
@@ -158,8 +177,8 @@
try {
const msg = await DoctorApi.undoFinishPatient({
...roomBedVO,
- patId: last.patId,
- checkType: last.bookCheckType
+ patId: record.patId,
+ checkType: record.checkType
} as any)
ElMessage.success(msg || '宸叉挙閿�')
// 銆愭挙閿�鏍囪瘑銆戞挙閿�鍚庣珛鍒诲埛鏂般�屽凡瀹屾垚璁板綍銆嶅垪琛紝璁╄繖鏉¤褰曟樉绀烘垚銆屽凡鎾ら攢銆�
--
Gitblit v1.9.3