Browse Source

护理记录患者详情

lihong 2 years ago
parent
commit
9d32288f7a
1 changed files with 46 additions and 9 deletions
  1. 46 9
      src/views/medical-advice/nursing-manage/NursingRecord.vue

+ 46 - 9
src/views/medical-advice/nursing-manage/NursingRecord.vue

@@ -14,7 +14,7 @@
                     <el-button @click="addHlInfo" icon="Edit" type="primary">新增</el-button>
                     <el-button icon="Delete" type="danger" @click="delInfo">删除</el-button>
                     <el-button icon="Printer" type="success" @click="daYingClick">打印</el-button>
-                    <el-button icon="Search" type="primary" @click="openPatientInfo">患者信息</el-button>
+                    <el-button icon="Search" type="primary" @click="openPatientInfo">患者详情</el-button>
                     <el-button icon="Search" type="primary" @click="bingAnShouYe">病案首页信息</el-button>
                 </div>
                 <div style="width: 100%;height: 40px;padding-left: 10px;">
@@ -841,6 +841,14 @@
     <el-dialog v-model="hulidanDialogFlag"  title="编辑护理记录" draggable destroy-on-close="true" style="width: 75%;height: 750px; ">
             <FirstHuLiDan @refreshHuLidan="refreshHuLidan" :nursingRecordData="nursingRecordData" @closeHld="closeHld" ></FirstHuLiDan>
     </el-dialog>
+    <pat-infomation-dialog
+            v-if="patientInfoDialog"
+            @closed="patientInfoDialog = false"
+            :admiss-date="patientInfoDialogData.admissDate"
+            :pat-no="patientInfoDialogData.patNo"
+            :times="patientInfoDialogData.admissTimes"
+            :leave-hospital="patientInfoDialogData.leaveHospital"
+            :dics="dics"/>
 </template>
 
 <script setup name='nursingRecord'>
@@ -858,6 +866,10 @@ import Sleep from "@/utils/sleep";
 import {getNursingEditQuanXian} from "@/components/medical-advice/MedicalAdviceCommonUtil";
 import store from '@/store';
 import {getWindowSize} from "@/utils/window-size";
+import PatInfomationDialog from "@/components/pat-info-list/PatInfomationDialog.vue";
+import {getAllDictionary} from "@/api/case-front-sheet";
+import {operations} from "@/data";
+import {autopsies, haveOrNot, yesOrNo} from "@/views/hospitalization/case-front-sheet/common";
 
 const showFlag= ref(true)
 const showFlagName= ref('<')
@@ -872,6 +884,8 @@ const showFlagClick = ()=>{
     }
 }
 
+
+
 const tableHeight = ref(0)
 const getCode =   store.state.user.info.code
 const queryParam =ref({
@@ -999,14 +1013,26 @@ const bingAnShouYe=() =>{
     })
 }
 
+const patientInfoDialog = ref(false)
+const patientInfoDialogData = ref({
+    patNo:'',
+    admissTimes:null,
+    leaveHospital:1,
+    admissDate:null
+})
+
+
+const dics = ref([])
+
+
 //患者信息
-const openPatientInfo=()=>{
-    router.push({
-        name: 'patientInformationInquiry',
-        query: {
-            patNo: patientInfo.value.inpatientNo,
-        }
-    })
+const openPatientInfo= async ()=>{
+    patientInfoDialogData.value.patNo=patientInfo.value.inpatientNo
+    patientInfoDialogData.value.admissTimes=patientInfo.value.admissTimes
+    patientInfoDialogData.value.admissDate=getFormatDatetime(patientInfo.value.admissDate,'yyyy-MM-DD HH:mm:ss')
+    console.log('patientInfoDialogData',patientInfoDialogData.value)
+    console.log('dics',dics.value)
+    patientInfoDialog.value =true
 }
 
 
@@ -1187,8 +1213,11 @@ font-size:32px ;
 
 `
 
+
+
 const selectPatientInfo=(val)=>{
     patientInfo.value =  val.patientInfo
+    patientInfoDialogData.value.leaveHospital = val.inOutStatusFlag=='1' ? 2 : 1
     handletabPane()
 }
 
@@ -1220,7 +1249,7 @@ const queryInfo=()=>{
 
 
 
-onMounted(() => {
+onMounted(async () => {
     tableHeight.value = getWindowSize.value.h/1.2-260;
     console.log('tableHeight',tableHeight)
     initLodop()
@@ -1229,6 +1258,14 @@ onMounted(() => {
         ward.value = res
     })
 
+    getAllDictionary().then(res => {
+        res.getOperations = operations;
+        res.getYesOrNo = yesOrNo;
+        res.getHaveOrNot = haveOrNot;
+        res.getAutopsies = autopsies;
+        dics.value = res
+    })
+
 })
 const daYingClick = () => {
     let LODOP = getLodop()