From 08033e15dd52f565ff1df210623c0c1abba721e7 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期一, 17 二月 2025 18:50:28 +0800
Subject: [PATCH] 34

---
 src/views/home/components/patient_file.vue            |   38 ++++++++++++++++++++++++++++++++++++--
 src/views/home/components/suifangjilu/editDietary.vue |    2 +-
 2 files changed, 37 insertions(+), 3 deletions(-)

diff --git a/src/views/home/components/patient_file.vue b/src/views/home/components/patient_file.vue
index 5c3f4aa..f230d60 100644
--- a/src/views/home/components/patient_file.vue
+++ b/src/views/home/components/patient_file.vue
@@ -78,7 +78,7 @@
                         <tr>
                             <td colspan="2">证件号:{{ patientsInfo.patientIdentityNo }}</td>
                             <td>透析龄:<span v-if="patientsInfo.medHistoryStatByMonth">{{
-            patientsInfo.medHistoryStatByMonth }}
+                                patientsInfo.medHistoryStatByMonth }}
                                     (月)</span></td>
                             <td>最近体重:<span>{{ state.patientData.上一次透前体重 }} (kg)</span></td>
                             <td>BMI:<span>{{ BMI }}</span></td>
@@ -92,6 +92,15 @@
                         </tr>
                         <tr>
                             <td colspan="5">患者诊断:{{ state.patientData.诊断 }}</td>
+                        </tr>
+                        <tr>
+                            <td colspan="5">外院出院诊断:{{ state.patientData.出院诊断 }} 
+                                <span>
+                                    <el-icon :size="14" color="#409EFF" @click="updateZD">
+                                        <Edit />
+                                    </el-icon>
+                                </span>
+                                </td>
                         </tr>
                     </table>
                 </div>
@@ -178,7 +187,8 @@
         证件号: "",
         诊断: '',
         身高: '',
-        上一次透前体重: ''
+        上一次透前体重: '',
+        出院诊断:'',
     },
     listData: <any>{}
 })
@@ -209,6 +219,30 @@
         })
     }
 }
+const updateZD=()=>{
+    ElMessageBox.prompt('请输入你要编辑的外院出院诊断', '提示', {
+        confirmButtonText: '确认',
+        cancelButtonText: '取消',
+        inputValue: state.patientData.出院诊断,
+    })
+        .then(({ value }) => {
+            const params = {
+                id: patientsInfo.value.id,
+                outDiagnoseFromPrevHospital: value
+            }
+            update(params).then(re => {
+                getPatData({ patCode: patientsInfo.value.code, }).then(res => {
+                    state.patientData = res.data
+                })
+            })
+        })
+        .catch(() => {
+            ElMessage({
+                type: 'info',
+                message: '取消修改',
+            })
+        })
+}
 /**打开修改身高 */
 const updateSg = () => {
     ElMessageBox.prompt('请输入你要修改的身高单位cm', '提示', {
diff --git a/src/views/home/components/suifangjilu/editDietary.vue b/src/views/home/components/suifangjilu/editDietary.vue
index 5ac4412..1f889d5 100644
--- a/src/views/home/components/suifangjilu/editDietary.vue
+++ b/src/views/home/components/suifangjilu/editDietary.vue
@@ -308,7 +308,7 @@
         更新日期: formatDate(new Date(),'YYYY-mm-dd'),
         记录者: userInfos.value.userName,
         干体重:state.patientData?.干体重,
-        脱水量:state.patientData?.脱水量,
+        脱水量:state.patientData?.上一次超滤总量,
         指导建议:'',
         执行反馈:'',
         随眠近况:'',

--
Gitblit v1.8.0