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/Routine.vue | 70 ++++++++++++++++++++++++++++++-----
1 files changed, 60 insertions(+), 10 deletions(-)
diff --git a/src/views/ecg/doctor/Routine.vue b/src/views/ecg/doctor/Routine.vue
index e52cfe8..37517b4 100644
--- a/src/views/ecg/doctor/Routine.vue
+++ b/src/views/ecg/doctor/Routine.vue
@@ -135,16 +135,23 @@
}
}
-/** 鎾ら攢"妫�鏌ュ畬鎴�"锛氭妸鏈�杩戜竴浣嶅凡瀹屾垚鎮h�呴��鍥炲�欒瘖鍖� */
-const undoFinish = async () => {
- const last = await DoctorApi.lastFinishedPatient(roomBedVO)
- if (!last || !last.patId) {
- ElMessage.warning('鏈伐浣嶄粖鏃ユ殏鏃犲凡瀹屾垚鐨勬鏌ヨ褰�')
+/**
+ * 鎾ら攢銆屾鏌ュ畬鎴愩�嶏細鎾ら攢**閫変腑鐨勯偅鏉�**瀹屾垚璁板綍锛�2026-11-25 闇�姹傦級銆�
+ *
+ * 鍘熷疄鐜扮敱鍚庣 lastFinishedPatient 鍙�"鏈�杩戜竴鏉�"锛屽尰鐢熸棤娉曢�夋嫨锛�
+ * 鍚屼竴鎮h�呬竴澶╁彲鑳藉仛澶氫釜妫�鏌ラ」鐩椂瀹规槗鎾ら敊浜恒�傜幇鍦ㄧ敱宸插畬鎴愬垪琛ㄤ紶鍏ラ�変腑琛岋紝
+ * 鎸夈�屾偅鑰� + 妫�鏌ラ」鐩�嶇簿纭挙閿�锛堝悓涓�鎮h�呯殑澶氭潯璁板綍浜掍笉褰卞搷锛夈��
+ */
+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: '鍙栨秷' }
)
@@ -155,8 +162,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 || '宸叉挙閿�')
// 銆愭挙閿�鏍囪瘑銆戞挙閿�鍚庣珛鍒诲埛鏂般�屽凡瀹屾垚璁板綍銆嶅垪琛紝璁╄繖鏉¤褰曟樉绀烘垚銆屽凡鎾ら攢銆�
@@ -170,12 +177,27 @@
const finishNextPatient = async () => {
finishFlag.value = true
try {
+ // 銆愭湰闇�姹傘�戝彨鍙峰墠鑻ヤ粛鏈夈�屽氨璇婁腑(30)銆嶆偅鑰呬笖鏈偣銆屾鏌ュ畬鎴愩�嶏紝鍏堣嚜鍔ㄥ畬鎴愪粬锛屽啀鍙笅涓�浣嶃��
+ // 鑷姩瀹屾垚澶嶇敤闈㈡澘鐨� submitForm锛堜笌銆屾鏌ュ畬鎴愩�嶆寜閽悓涓�濂楅�昏緫锛氬畬鎴愭鏌� + 鑷姩纭垂 + 鍐欎綔涓氳褰曪級銆�
+ const onstage = patientList.value.find((item) => item.status === 30)
+ if (onstage) {
+ const ok = (await routimePanelRef.value?.completeCurrent?.()) !== false
+ if (!ok) {
+ ElMessage.warning('鑷姩銆屾鏌ュ畬鎴愩�嶆湭鎴愬姛锛岃鍏堟墜鍔ㄥ畬鎴愬綋鍓嶆偅鑰�')
+ return
+ }
+ }
patientList.value = await DoctorApi.finishNextPatient(roomBedVO)
patientStat.value = await DoctorApi.getPatientStatistic(roomBedVO)
getOnstagePatient()
- // 鐢ㄤ簬瑙e喅 宸︿晶閲嶇疆鍚� 鑾峰彇褰撳墠銆愬氨璇婁腑銆戞偅鑰�
- setOnStagePatient(onStagePatient)
+ // 鐢ㄤ簬瑙e喅 宸︿晶閲嶇疆鍚� 鑾峰彇褰撳墠銆愬氨璇婁腑銆戞偅鑰咃紱
+ // 鑻ュ凡鏃犲氨璇婁腑鎮h�咃紙鍒氬畬鎴愪笖娌℃湁涓嬩竴浣嶏級锛屾竻绌哄乏涓婅锛岄伩鍏嶆妸鍒氬畬鎴愮殑浜哄張鏄剧ず鍥炴潵
+ if (patientList.value.some((item) => item.status === 30)) {
+ setOnStagePatient(onStagePatient)
+ } else {
+ routimePanelRef.value?.setPatient?.(undefined)
+ }
console.log(onStagePatient, '998')
} finally {
finishFlag.value = false
@@ -281,6 +303,33 @@
console.warn('[onEventPullWaiting] 鎷夊叆澶辫触', e)
}
await initLoad()
+}
+
+/**
+ * 銆愰渶姹偮蜂紭鍏堟鏌ャ�戝彸渚у垪琛ㄧ偣銆屾鏌ャ�嶏細**涓嶅彨鍙�**锛岀洿鎺ユ妸杩欎綅鎮h�呭姞杞借繘琛ㄥ崟鍋氭鏌ャ��
+ *
+ * 璇箟涓庛�岀揣鎬ュ姞鍋氥�嶅畬鍏ㄤ竴鑷达紙= 杈撳叆鐢宠鍗曞彿/灏辫瘖鍙�/鎮h�呯紪鍙� 鍚庡洖杞︽煡鍒伴绾﹁褰曪級
+ * 路 涓嶆帓闃熴�佷笉鍙栧彿銆佷笉鍐欏彨鍙疯褰� 鈫� 澶у睆/璇婇棿灞忎笉浼氬嚭鐜�"灏辫瘖涓�"锛岄伩鍏嶅叾浠栫梾浜鸿浼氾紱
+ * 路 闃熷垪鐘舵�佸叏绋嬩笉鍙橈紱銆屾鏌ュ畬鎴愩�嶆椂鍚庣鍙寜銆屾偅鑰� + 妫�鏌ラ」鐩�嶆敹灏句粬鑷繁鐨勬帓闃熻銆�
+ *
+ * 鍓嶇疆绾︽潫锛堟湰闇�姹傦級锛氭湰宸ヤ綅宸叉湁銆屽氨璇婁腑銆嶆偅鑰呮椂锛屽厛鎻愮ず瀹屾垚锛屼笉鍏佽鍚屾椂鍋氫袱涓��
+ */
+const onEventExamine = async (item: any) => {
+ if (!item) return
+
+ const onstage = patientList.value.find((p) => p.status === 30)
+ if (onstage) {
+ const who = `${onstage.patName || '褰撳墠鎮h��'}${onstage.seqNum != null ? `锛�${onstage.seqNum} 鍙凤級` : ''}`
+ await ElMessageBox.alert(
+ `褰撳墠鏈夊氨璇婁腑鎮h�呫��${who}銆嶏紝璇峰厛瀹屾垚鍏舵鏌ワ紝鍐嶅姞杞芥柊鐨勬偅鑰呫�俙,
+ '鏆傛椂涓嶈兘寮�濮嬫柊鐨勬鏌�',
+ { confirmButtonText: '鐭ラ亾浜�', type: 'warning' }
+ )
+ return
+ }
+
+ const loaded = await routimePanelRef.value?.examineFromQueue?.(item)
+ if (loaded) await initLoad()
}
/**
@@ -509,6 +558,7 @@
:fetch-info="fetchInfo"
@event_RecallFinish="onEventRecallFinish"
@event_PullWaiting="onEventPullWaiting"
+ @event_Examine="onEventExamine"
@event_HurryUp="onEventHurryUp" />
</template>
--
Gitblit v1.9.3