瀏覽代碼

pacs报告查看

yeguodong 3 周之前
父節點
當前提交
68e71c1225
共有 3 個文件被更改,包括 42 次插入39 次删除
  1. 9 9
      src/api/inspections/index.js
  2. 1 1
      src/auto-imports.d.ts
  3. 32 29
      src/views/examination/InspectionReportIndex.vue

+ 9 - 9
src/api/inspections/index.js

@@ -80,26 +80,26 @@ export function updateWxBookableFlag(data) {
   });
 }
 
-export function getMzJyReqByPatientId(patientId) {
+export function getMzYjReqByPatientId(patientId, reqType) {
   return request({
-    url: '/Lis/getMzJyReqByPatientId',
+    url: '/Lis/getMzYjReqByPatientId',
     method: 'get',
-    params: {patientId}
+    params: {patientId, reqType}
   });
 }
 
-export function getMzJyReqDetail(reqNo) {
+export function getLabRpt(reportId, patientId) {
   return request({
-    url: '/Lis/getMzJyReqDetail',
+    url: '/Lis/getLabRpt',
     method: 'get',
-    params: {reqNo}
+    params: {reportId, patientId}
   });
 }
 
-export function getLabRpt(reportId, patientId) {
+export function getCheckData(reportId) {
   return request({
-    url: '/Lis/getLabRpt',
+    url: '/Pacs/getCheckData',
     method: 'get',
-    params: {reportId, patientId}
+    params: {reportId}
   });
 }

+ 1 - 1
src/auto-imports.d.ts

@@ -65,6 +65,6 @@ declare global {
 // for type re-export
 declare global {
   // @ts-ignore
-  export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
+  export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
   import('vue')
 }

+ 32 - 29
src/views/examination/InspectionReportIndex.vue

@@ -81,7 +81,7 @@
           ></el-table-column>
           <el-table-column
             prop="orderName"
-            label="检验名称"
+            :label="reportCategory === 'JY' ? '检验名称' : '检查名称'"
             width="170"
           ></el-table-column>
           <el-table-column
@@ -114,7 +114,7 @@
           </div>
         </div>
         <div v-if="reportCategory === 'JC'">
-          <div v-if="jcbg.reportUrl">
+          <div v-if="jcbg.reportUrlllllllllllllll">
             <el-image :src="jcbg.reportUrl"></el-image>
           </div>
           <div v-else>
@@ -130,25 +130,25 @@
               {{ env.VITE_HOSPITAL_NAME }}检查报告单
             </h3>
             <div style="display: flex">
-              <div style="width: 32%">姓名:{{ jcbg.patientName }}</div>
+              <div style="width: 32%">姓名:{{ base.pname }}</div>
               <div style="width: 32%">
                 {{ ptntType }}:
-                {{ jcbg.patNo }}
+                {{ base.patientId }}
               </div>
               <div style="width: 32%">
-                <div>申请项目:{{ jcbg.examPurpose.substring(0, 13) }}</div>
-                <div>{{ jcbg.examPurpose.substring(13) }}</div>
+                <div>申请项目:{{ jcbg.orderName }}</div>
+<!--                <div>{{ jcbg.examPurpose }}</div>-->
               </div>
             </div>
             <div style="display: flex">
-              <div style="width: 32%">医生姓名:{{ jcbg.doctorName }}</div>
-              <div style="width: 32%">检查时间:{{ jcbg.reportTime }}</div>
-              <div style="width: 32%">报告时间:{{ jcbg.trscDate }}</div>
+              <div style="width: 32%">医生姓名:{{ base.doctorName }}</div>
+              <div style="width: 32%">检查时间:{{ base.chargeDate }}</div>
+              <div style="width: 32%">报告时间:{{ base.transDt }}</div>
             </div>
             <el-divider content-position="left">检查所见</el-divider>
             <div v-html="jcbg.examinationSee"></div>
             <el-divider content-position="left">检查结论</el-divider>
-            <div v-html="jcbg.examinationreSult"></div>
+            <div v-html="jcbg.examinationResult"></div>
             <div v-if="jcbg.reportUrl" style="margin-top: 30px">
               <el-button type="primary" size="large" link @click="showJcImage"
                 >查看图像</el-button
@@ -171,8 +171,8 @@ import {
   checkExamDetail,
   checkIndexByCategory,
   checkTestDetail,
-  getMzJyReqByPatientId,
-  getMzJyReqDetail,
+  getMzYjReqByPatientId,
+  getCheckData,
   getLabRpt
 } from "@/api/inspections";
 import router from "@/router";
@@ -250,14 +250,18 @@ const queryIndex = () => {
   /*checkIndexByCategory(params).then(res => {
     inspectionIndex.value = res;
   });*/
-  getMzJyReqByPatientId(patNo.value).then(res => {
+  let reqType = reportCategory.value === "JC" ? '3' : '2';
+  getMzYjReqByPatientId(patNo.value, reqType).then(res => {
     inspectionIndex.value = res;
   });
 };
 
 const blxdUrl = ref("");
-
+const jcbg = ref({
+});
+const base = ref({})
 function beforeQueryDetail(row) {
+  base.value = row;
   if (reportCategory.value === "JY") {
     queryJyDetail(row, true);
   } else if (reportCategory.value === "JC") {
@@ -267,25 +271,25 @@ function beforeQueryDetail(row) {
   }
 }
 
-const jcbg = ref({
-  examPurpose: "",
-});
-
-
-
 function queryJcDetail(row) {
-  checkTestDetail({
-    reportId: row.patientUid,
-  }).then(res => {
-    jcbg.value = res;
-  });
+  if(row.reportId) {
+    getCheckData(row.reportId).then(res => {
+      jcbg.value = res;
+    });
+  } else {
+    ElMessage({
+      message: "当前检查还未生成报告",
+      type: "warning",
+      duration: 2000,
+      showClose: true,
+    });
+  }
 }
 
 const queryJyDetail = (row, clear) => {
   if (clear) {
     jyDataList.value = [];
   }
-  console.log("row", row)
   return new Promise((resolve, reject) => {
     getLabRpt(row.reportId, row.patientId).then(res => {
       const halfBacSize = res ? Math.ceil(res.length / 2) : 1;
@@ -296,7 +300,6 @@ const queryJyDetail = (row, clear) => {
         halfBacSize: halfBacSize
       }
       jyDataList.value.push(jyData);
-      console.log("jyData.value=", jyData.value)
     });
     /*checkExamDetail({
       reportId: row.reportId,
@@ -433,7 +436,7 @@ const reportTypes = [
         label: "检查报告",
         value: "JC",
       },
-      {
+      /*{
         label: "病理报告",
         value: "BL",
       },
@@ -441,7 +444,7 @@ const reportTypes = [
       {
         label: "心电报告",
         value: "XD",
-      },
+      },*/
     ],
   },
 ];