Browse Source

优化病例详情

gaohaiyong 9 months ago
parent
commit
21d10ce5f4

+ 31 - 13
src/api/qc.js

@@ -39,25 +39,31 @@ export function getCaseQuality(data) {
 }
 
 // 病案室-病案详情-病历内容
+// export function getCasePlatform(data) {
+//   return request({
+//     url: '/bl_zk/getCasePlatform',
+//     method: 'post',
+//     data: data
+//   })
+// }
 export function getCasePlatform(data) {
-  return request({
-    url: '/bl_zk/getCasePlatform',
+  return request2({
+    url: '/get_case_platform',
     method: 'post',
     data: data
   })
 }
-
 export function getAllCase(data) {
-  return request({
-    url: '/bl_zk/getAllCase',
+  return request3({
+    url: '/getAllCase',
     method: 'post',
     data: data
   })
 }
 
 export function getLong(data) {
-  return request({
-    url: '/bl_zk/long',
+  return request3({
+    url: '/long',
     method: 'post',
     data: data
   })
@@ -71,22 +77,34 @@ export function getTemporary(data) {
   })
 }
 
+// export function getPacsData(data) {
+//   return request({
+//     url: '/bl_zk/getPacsData',
+//     method: 'post',
+//     data: data
+//   })
+// }
 export function getPacsData(data) {
-  return request({
-    url: '/bl_zk/getPacsData',
+  return request3({
+    url: '/get_pacs_data',
     method: 'post',
     data: data
   })
 }
-
+// export function getBcData(data) {
+//   return request({
+//     url: '/bl_zk/getBcData',
+//     method: 'post',
+//     data: data
+//   })
+// }
 export function getBcData(data) {
-  return request({
-    url: '/bl_zk/getBcData',
+  return request3({
+    url: '/get_bc_data',
     method: 'post',
     data: data
   })
 }
-
 export function getHomeData(data) {
   return request({
     url: '/bl_zk/getHomeData',

+ 31 - 35
src/views/recordsRoom/qc/caseViews.vue

@@ -50,12 +50,13 @@
           <!-- 出院记录 -->
           <OutHospitalRecord :data="outHospitalRecordData" />
         </div>
-        <div v-else-if="bcjlLiIds.includes(Number(is_active))">
+        <div v-else-if="bcjlLiIds.includes(is_active)">
           <!-- 病程记录 -->
+          <div>病程记录</div>
           <CaseRecord v-if="caseRecodeInfo.is_format === 1" :data="caseRecodeInfo" />
           <NoFormatText v-else :text="caseRecodeInfo.content" :data="caseRecodeInfo" name="" />
         </div>
-        <div v-else-if="shoushuLiIds.includes(Number(is_active))">
+        <div v-else-if="shoushuLiIds.includes(is_active)">
           <!-- 手术记录 -->
           <template v-if="surgeryData.is_format">
             <ShouShuRecord1 v-if="surgeryData.type === 1" :data="surgeryData" />
@@ -482,46 +483,41 @@ export default {
           this.is_active_blbh = event.target.id
         }
       } else {
-        this.is_active_blbh = this.mainHomeData.MED_REC_ID
+        // this.is_active_blbh = this.mainHomeData.MED_REC_ID
+        this.is_active = 0;
+        this.funQuery();
       }
       this.titleName = n
       this.parentType = b
       const that = this
       // 判断点击的
-      if (event.target.id || !item.list) {
+      if (event.target.id || !item?.list) {
         if (event.target.outerText == '长期医嘱' || event.target.outerText == '临时医嘱') {
-          that.is_active = event.target.outerText
-        } else if ([329, 288, 34, 87, 303, 294, 2000002].includes(b)) {
-          that.is_active = event.target.id
+          that.is_active = event.target.outerText;
+        } else if (b == 2000002) {
+          that.is_active = event.target.id;
+        } else if (b == 294) {
+          that.is_active = event.target.id;
+        } else if (b == 303) {
+          that.is_active = event.target.id;
         } else {
-          that.is_active = b
+          that.is_active = b;
         }
       }
       that.name_title = n
       if (b != 0 && b != 292 && b != 1) {
-        if ([329, 288, 34, 87].includes(b)) {
-          // 授权同意类, 医患沟通类, 死亡记录类, 医疗常用表格
-          if (this.is_active_blbh) {
-            getBlInfo({blbh: this.is_active_blbh}).then(res => {
-              that.text = [res.p]
-              that.dataObj = [res.p]
-              that.reload()
-            })
-          }
-        } else {
-          const params = {
-            MED_REC_ID: that.valData,
-            bllb: b
-          }
-          if (this.$route.query.status) {
-            params.is_tm = 1
-          }
-          getAllCase(params).then(res => {
-            that.text = res.p
-            that.dataObj = res.p
-            that.reload()
-          })
+        const params = {
+          MED_REC_ID: that.valData,
+          bllb: b
+        }
+        if (this.$route.query.status) {
+          params.is_tm = 1
         }
+        getAllCase(params).then(res => {
+          that.text = res.data
+          that.dataObj = res.data
+          that.reload()
+        })
       } else if (b == 292) {
         // 获取详情
         const params = {
@@ -532,7 +528,7 @@ export default {
           params.is_tm = '1'
         }
         getCasePlatform(params).then(res => {
-          this.admissionRecord = res.p
+          this.admissionRecord = res.data
         })
       } else if (b == 1) {
         // 获取详情
@@ -544,7 +540,7 @@ export default {
           params.is_tm = 1
         }
         getCasePlatform(params).then(res => {
-          this.outHospitalRecordData = res.p
+          this.outHospitalRecordData = res.data;
         })
       }
       if (that.is_active == '长期医嘱') {
@@ -587,7 +583,7 @@ export default {
         })
 
         getPacsData(parm).then(res => {
-          this.pacsDetail = res.p
+          this.pacsDetail = res.data
         })
       }
       // 病程记录
@@ -600,8 +596,8 @@ export default {
             parm.is_tm = 1
           }
           getBcData(parm).then(res => {
-            that.caseRecodeInfo = res.p[0].bc_data
-            that.caseRecodeInfo.is_format = res.p[0].is_format
+            that.caseRecodeInfo = res.data[0].bc_data
+            that.caseRecodeInfo.is_format = res.data[0].is_format
           })
         }
       }

+ 20 - 15
src/views/recordsRoom/qc/components/CaseQualityBox2.vue

@@ -29,15 +29,18 @@
                 <el-image v-else class="typeImg" :src="require('../../../../assets/images/kefu.png')" fit="contain">
                 </el-image>
               </div>
-              <div class="list-basis-text" :class="item.show?'show':''">
-                <div v-for="(yItem, yIndex) of item.basis" :key="yIndex" style="margin-bottom: 10px;">
-                  <div>
-                    <span class="span-index">{{ yIndex+1 }}</span>
-                    <span>
-                      <span v-for="(cItem, cIndex) of yItem" :key="cIndex" style="font-size: 12px;">{{ cItem }}</span>
-                    </span>
+              <div class="list-basis-text">
+                <div class="list-basis-text-t" :class="item.show?'show':''">
+                  <div v-for="(yItem, yIndex) of item.basis" :key="yIndex" style="margin-bottom: 10px;">
+                    <div>
+                      <span class="span-index">{{ yIndex+1 }}</span>
+                      <span>
+                        <span v-for="(cItem, cIndex) of yItem" :key="cIndex" style="font-size: 12px;">{{ cItem }}</span>
+                      </span>
+                    </div>
                   </div>
                 </div>
+                
                 <div class="list-basis-bottom-box">
                   <div class="list-basis-bottom-tips">
                     <el-tooltip class="appeal-status-box" effect="dark" :content="item.reject_content" placement="top">
@@ -434,15 +437,17 @@
       }
       
     }
-    .list-basis-text{
-      height: 0;
-      overflow: hidden;
-      position: relative;
-      &.show{
-        height: auto;
-        padding: 10px 0 10px 10px;
+    .list-basis-text {
+      height: auto;
+      .list-basis-text-t{
+        height: 0;
+        overflow: hidden;
+        position: relative;
+        &.show{
+          height: auto;
+          padding: 10px 0 10px 10px;
+        }
       }
-      
     }
     .list-basis-bottom-box{
       margin-top: 14px;