From a986a8d6fb5e44f7044469f5f420ce0d7b5bf235 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 26 十一月 2025 11:36:02 +0800
Subject: [PATCH] 11

---
 src/views/ecg/doctor/components/RoutinePanel.vue |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/views/ecg/doctor/components/RoutinePanel.vue b/src/views/ecg/doctor/components/RoutinePanel.vue
index 076ce48..61a6a6d 100644
--- a/src/views/ecg/doctor/components/RoutinePanel.vue
+++ b/src/views/ecg/doctor/components/RoutinePanel.vue
@@ -266,14 +266,15 @@
   formRef.value?.resetFields()
 }
 const yddownload = async () => {
-  const obj = await DoctorApi.yddownload(props.setappointmentId)
-  console.log(obj,'xml');
-  
-  downloadWordFile(obj, '骞虫澘杩愬姩蹇冪數鍥剧煡鎯呭悓鎰忎功.doc');
+  const response = await DoctorApi.yddownload(props.setappointmentId)
+  console.log(response, 'xml1')
+  console.log(response.fileContent, 'xml2')
+  console.log(DoctorApi.yddownload(props.setappointmentId));
+  downloadWordFile(response.fileContent, response.fileName)
 }
 const sgdownload = async () => {
   const obj = await DoctorApi.sgdownload(props.setappointmentId)
-  downloadWordFile(obj, '椋熺蹇冭剰鐢电敓鐞嗚瘖鐤楃煡鎯呭悓鎰忎功.doc');
+  downloadWordFile(obj, '椋熺蹇冭剰鐢电敓鐞嗚瘖鐤楃煡鎯呭悓鎰忎功.doc')
 }
 const downloadWordFile = (data, filename = 'document') => {
   try {

--
Gitblit v1.9.3