Browse Source

九防页面添加打印功能

unknown 9 hours ago
parent
commit
fa01baefe8

+ 11 - 0
src/views/elderly/apply/nine-precautions/anti-entertainment/index.vue

@@ -0,0 +1,11 @@
+<script setup lang="ts">
+
+</script>
+
+<template>
+
+</template>
+
+<style scoped lang="scss">
+
+</style>

+ 18 - 10
src/views/elderly/apply/nine-precautions/communication/AddForm.vue

@@ -113,7 +113,11 @@
         <!-- 备注 -->
         <div class="remark-section">
           <span class="remark-label">备注:</span>
-          <span class="remark-text">若平日戴老花镜或近视镜,应在佩戴眼镜的情况下评估。</span>
+          <div style="flex-direction: column;display: flex;justify-content: center;">
+            <span class="remark-text">1.若平日戴老花镜或近视镜,应在佩戴眼镜的情况下评估。</span>
+            <span class="remark-text">2.风险程度判断:无风险:0分;低风险:1分;中风险:2分,高风险:≥3分。</span>
+            <span class="remark-text">3.院内老人均需进行简易精神状态评价量表(MMSE),如老人存在视觉异常需增加《感知觉与沟通评估表》,两表同时使用时按分高为最终评估结果。</span>
+          </div>
         </div>
 
         <!-- 风险程度判断 -->
@@ -121,16 +125,16 @@
           <div class="risk-judgment-title">风险程度判断:</div>
           <div class="risk-options">
             <el-radio v-model="form.riskLevel" label="none" :disabled="isDetail">
-                无风险:0分
+                无风险
             </el-radio>
             <el-radio v-model="form.riskLevel" label="low" :disabled="isDetail">
-                低风险:1分
+                低风险
             </el-radio>
             <el-radio v-model="form.riskLevel" label="medium" :disabled="isDetail">
-                中风险:2分
+                中风险
             </el-radio>
             <el-radio v-model="form.riskLevel" label="high" :disabled="isDetail">
-                高风险:≥3分
+                高风险
             </el-radio>
           </div>
         </div>
@@ -794,17 +798,21 @@ const handleExport = () => {
       <!-- 备注 -->
       <div class="remark-section">
         <span class="remark-label">备注:</span>
-        <span>若平日戴老花镜或近视镜,应在佩戴眼镜的情况下评估。</span>
+        <div style="flex-direction: column;display: flex;justify-content: center;">
+            <span class="remark-text">1.若平日戴老花镜或近视镜,应在佩戴眼镜的情况下评估。</span>
+            <span class="remark-text">2.风险程度判断:无风险:0分;低风险:1分;中风险:2分,高风险:≥3分。</span>
+            <span class="remark-text">3.院内老人均需进行简易精神状态评价量表(MMSE),如老人存在视觉异常需增加《感知觉与沟通评估表》,两表同时使用时按分高为最终评估结果。</span>
+          </div>
       </div>
 
       <!-- 风险程度判断 -->
       <div class="risk-judgment-section">
         <div class="risk-judgment-title">风险程度判断:</div>
         <div class="risk-options">
-          <span class="risk-option">${form.riskLevel === 'none' ? '☑' : '☐'} 无风险:0分</span>
-          <span class="risk-option">${form.riskLevel === 'low' ? '☑' : '☐'} 低风险:1分</span>
-          <span class="risk-option">${form.riskLevel === 'medium' ? '☑' : '☐'} 中风险:2分</span>
-          <span class="risk-option">${form.riskLevel === 'high' ? '☑' : '☐'} 高风险:≥3分</span>
+          <span class="risk-option">${form.riskLevel === 'none' ? '☑' : '☐'} 无风险</span>
+          <span class="risk-option">${form.riskLevel === 'low' ? '☑' : '☐'} 低风险</span>
+          <span class="risk-option">${form.riskLevel === 'medium' ? '☑' : '☐'} 中风险</span>
+          <span class="risk-option">${form.riskLevel === 'high' ? '☑' : '☐'} 高风险</span>
         </div>
       </div>
 

+ 54 - 19
src/views/elderly/apply/nine-precautions/risk-disclosure-statement/index.vue

@@ -51,7 +51,7 @@
         <el-button type="primary" @click="handleAdd">
           <Icon icon="ep:plus" class="mr-5px" /> 新增
         </el-button>
-         <el-button type="success" @click="handleAdd">
+         <el-button type="success" @click="handleExport">
           <Icon icon="ep:upload" class="mr-5px" /> 导出
         </el-button>
       </template>
@@ -178,8 +178,20 @@
   <!-- 新增/编辑弹窗 -->
   <SafetyRiskNoticeForm ref="formRef" @success="getList" />
   
-  <!-- 防噎食评估详情弹窗 -->
+  <!-- 各项评估详情弹窗 -->
   <AsphyxiationForm ref="asphyxiationFormRef" />
+  <PressureSoresForm ref="pressureSoresFormRef" />
+  <FallDownForm ref="fallDownFormRef" />
+  <FallPreventionForm ref="fallPreventionFormRef" />
+  <EmpyrosisForm ref="empyrosisFormRef" />
+  <WanderAwayForm ref="wanderAwayFormRef" />
+  <CommitSuicideForm ref="commitSuicideFormRef" />
+  <MMSEForm ref="mmseFormRef" />
+  <AttackForm ref="attackFormRef" />
+  <CommunicationForm ref="communicationFormRef" />
+  <EquilibriumForm ref="equilibriumFormRef" />
+  <DailyLifeForm ref="dailyLifeFormRef" />
+  <NutritionalRiskForm ref="nutritionalRiskFormRef" />
 
 
 </template>
@@ -193,6 +205,18 @@ import {
 import { formatTime } from '@/utils'
 import SafetyRiskNoticeForm from './Form.vue'
 import AsphyxiationForm from '@/views/elderly/apply/nine-precautions/asphyxiation-by-choking/AddForm.vue'
+import PressureSoresForm from '@/views/elderly/apply/nine-precautions/pressure-sores/AddForm.vue'
+import FallDownForm from '@/views/elderly/apply/nine-precautions/fall-down/AddForm.vue'
+import FallPreventionForm from '@/views/elderly/apply/nine-precautions/fall-prevention-measures/AddForm.vue'
+import EmpyrosisForm from '@/views/elderly/apply/nine-precautions/empyrosis/AddForm.vue'
+import WanderAwayForm from '@/views/elderly/apply/nine-precautions/wander-away/AddForm.vue'
+import CommitSuicideForm from '@/views/elderly/apply/nine-precautions/commit-suicide/AddForm.vue'
+import MMSEForm from '@/views/elderly/apply/nine-precautions/MMSE/AddForm.vue'
+import AttackForm from '@/views/elderly/apply/nine-precautions/attack/AddForm.vue'
+import CommunicationForm from '@/views/elderly/apply/nine-precautions/communication/AddForm.vue'
+import EquilibriumForm from '@/views/elderly/apply/nine-precautions/equilibrium/AddForm.vue'
+import DailyLifeForm from '@/views/elderly/apply/nine-precautions/daily-life/AddForm.vue'
+import NutritionalRiskForm from '@/views/elderly/apply/nine-precautions/nutritional-risk/AddForm.vue'
 
 defineOptions({ name: 'RiskDisclosureStatement' })
 
@@ -240,54 +264,65 @@ const resetQuery = () => {
 // 新增
 const formRef = ref()
 const handleAdd = () => {
-   formRef.value?.open()
+  // formRef.value?.open()
 
 
 }
 
-// 防噎食评估弹窗
+// 各项评估弹窗引用
 const asphyxiationFormRef = ref()
+const pressureSoresFormRef = ref()
+const fallDownFormRef = ref()
+const fallPreventionFormRef = ref()
+const empyrosisFormRef = ref()
+const wanderAwayFormRef = ref()
+const commitSuicideFormRef = ref()
+const mmseFormRef = ref()
+const attackFormRef = ref()
+const communicationFormRef = ref()
+const equilibriumFormRef = ref()
+const dailyLifeFormRef = ref()
+const nutritionalRiskFormRef = ref()
+
+// 各项评估点击处理方法
 const handleOpenAsphyxiation = (row: any) => {
-  // 打开防噎食评估详情弹窗,传入租户ID和长者ID
   asphyxiationFormRef.value?.open(row.tenantId, row.asphyxiationId, true)
 }
-
-// 其他评估弹窗处理方法(待实现)
 const handleOpenPressureUlcer = (row: any) => {
-  message.info('防压疮评估功能开发中')
+  pressureSoresFormRef.value?.open(row.tenantId, row.pressureSoresId, true)
 }
 const handleOpenFall = (row: any) => {
-  message.info('防跌倒评估功能开发中')
+  fallDownFormRef.value?.open(row.tenantId, row.fallDownId, true)
 }
 const handleOpenBedFall = (row: any) => {
-  message.info('防坠床评估功能开发中')
+  fallPreventionFormRef.value?.open(row.tenantId, row.fallPreventionId, true)
 }
 const handleOpenScald = (row: any) => {
-  message.info('防烫伤评估功能开发中')
+  empyrosisFormRef.value?.open(row.tenantId, row.empyrosisId, true)
 }
 const handleOpenWandering = (row: any) => {
-  message.info('防走失评估功能开发中')
+  wanderAwayFormRef.value?.open(row.tenantId, row.wanderAwayId, true)
 }
 const handleOpenSuicide = (row: any) => {
-  message.info('防自杀评估功能开发中')
+  commitSuicideFormRef.value?.open(row.tenantId, row.commitSuicideId, true)
 }
 const handleOpenMental = (row: any) => {
-  message.info('简易精神状态功能开发中')
+  mmseFormRef.value?.open(row.tenantId, row.mmseId, true)
 }
 const handleOpenAttack = (row: any) => {
-  message.info('攻击风险评估功能开发中')
+  attackFormRef.value?.open(row.tenantId, row.attackId, true)
 }
 const handleOpenPerception = (row: any) => {
-  message.info('感知觉与沟通评估功能开发中')
+  communicationFormRef.value?.open(row.tenantId, row.communicationId, true)
 }
 const handleOpenBalance = (row: any) => {
-  message.info('平衡能力评估功能开发中')
+  equilibriumFormRef.value?.open(row.tenantId, row.equilibriumId, true)
 }
 const handleOpenDailyLiving = (row: any) => {
-  message.info('日常生活能力评估功能开发中')
+  dailyLifeFormRef.value?.open(row.tenantId, row.dailyLifeId, true)
 }
 const handleOpenNutrition = (row: any) => {
-  message.info('营养评估功能开发中')
+  nutritionalRiskFormRef.value?.open(row.tenantId, row.nutritionalRiskId, true)
 }
 
 /**