瀏覽代碼

病案详情-增加授权同意类、左侧树渲染、详情接口请求和渲染

liyanyan 1 周之前
父節點
當前提交
d56ba3396f
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      src/views/allcase/caseViews.vue

+ 5 - 4
src/views/allcase/caseViews.vue

@@ -28,7 +28,7 @@
             v-for="(item, index) in treeList"
             :class="[
               is_active == item.bllb ? 'is-active' : '',
-              item.bllb == 49 || [2000002, 294, 303, 288, 87].includes(item.bllb) ? 'li-left-itemyz' : 'li-left-item',
+              item.bllb == 49 || [2000002, 294, 303, 329, 288, 87].includes(item.bllb) ? 'li-left-itemyz' : 'li-left-item',
             ]"
             :key="index"
           >
@@ -63,7 +63,7 @@
               </div>
             </div>
             <!-- 病程记录、手术记录 -->
-            <div v-if="[294, 303, 288, 87].includes(item.bllb) && !item.collapse">
+            <div v-if="[294, 303, 329, 288, 87].includes(item.bllb) && !item.collapse">
               <div
                 v-for="(jitem, jindex) in item.list"
                 :class="['li-left-item-li', parentType == item.bllb && is_active == jitem.blbh ? 'is-active' : '']"
@@ -92,7 +92,7 @@
           <OutHospitalRecord  v-if="!outHospitalRecordData.HTML_PRINT" :data="outHospitalRecordData" />
           <NoFormatText :text="outHospitalRecordData.HTML_PRINT" :data="outHospitalRecordData" name="" v-else />
         </div>
-        <div v-else-if="parentType == 294 && is_active != 294">
+        <div v-else-if="(parentType == 294 && is_active != 294) || (parentType == 329 && is_active != 329)">
           <!-- 病程记录 -->
           <CaseRecord :data="caseRecodeInfo" v-if="caseRecodeInfo.is_format === 1" :ZYH="valData"/>
           <NoFormatText :text="caseRecodeInfo.content" :data="caseRecodeInfo" name="" v-else />
@@ -625,6 +625,7 @@ export default {
       this.parentType = b;
       let that = this;
       that.name_title = n;
+      console.log('>>>>>>>>>>>>', this.parentType,this.is_active )
       if (b != 0 && b != 292 && b != 1 && !isLeaf) {
         const params = {
           MED_REC_ID: that.valData,
@@ -703,7 +704,7 @@ export default {
         });
       }
       // 病程记录
-      if (b == 294 && isLeaf) {
+      if ((b == 294 || b == 329) && isLeaf) {
         // if (that.is_active) {
           // 请求前先重置之前的数据
           that.caseRecodeInfo = {};