gaohaiyong 5 сар өмнө
parent
commit
012cb3fbb9

+ 120 - 37
src/views/allcase/caseViews.vue

@@ -11,9 +11,13 @@
         </div>
         </div>
         <ul class="el-menu-vertical-demo el-menu">
         <ul class="el-menu-vertical-demo el-menu">
           <!-- 预警信息不展示病案首页 -->
           <!-- 预警信息不展示病案首页 -->
-          <li v-if="$route.query.from !== 'forewarning'" class="li-left-item" :class="is_active == 0 ? 'is-active' : ''" @click="clickTree(0, '病案首页')">
+
+          <li v-if="$route.query.from !== 'forewarning' && valData != 'sl_001'" class="li-left-item" :class="is_active == 0 ? 'is-active' : ''" @click="clickTree(0, '病案首页')">
             <span>病案首页</span>
             <span>病案首页</span>
           </li>
           </li>
+          <li v-if="valData == 'sl_001'" class="li-left-item" :class="is_active == 292 ? 'is-active' : ''" @click="clickTree(292, '入院记录')">
+            <span>入院记录</span>
+          </li>
           <li
           <li
             :class="[
             :class="[
               is_active == item.bllb && item.bllb != 49 ? 'is-active' : '',
               is_active == item.bllb && item.bllb != 49 ? 'is-active' : '',
@@ -220,6 +224,70 @@ export default {
       results: null,
       results: null,
       is_tm_path: ['/hospital-caseViews', '/embedIndex-caseViews', '/reviewIndex-caseViews', '/whitelist-caseViews', '/whitelist-search'],
       is_tm_path: ['/hospital-caseViews', '/embedIndex-caseViews', '/reviewIndex-caseViews', '/whitelist-caseViews', '/whitelist-search'],
       isControl: false,
       isControl: false,
+      sl_data:{
+        department: '内科',
+        name: {
+          value: '张三',
+        },
+        sex: {
+          value: '男'
+        },
+        age: {
+          value: '35'
+        },
+        bed_no: {
+          value: 'ch_001'
+        },
+        hospital_no: {
+          value: 'zy_001'
+        },
+        local_address: {
+          value: '北京市海淀区XX路XX号'
+        },
+        job: {
+          value: '工程师'
+        },
+        ry_time: {
+          value: '-'
+        },
+        nation: {
+          value: '汉'
+        },
+        record_time: {
+          value: '-'
+        },
+        marriage: {
+          value: '已婚'
+        },
+        narrator: {
+          value: '张三'
+        },
+        CJSJ: '-',
+        ZXSJ: '-',
+        zhusu: {
+          value: '患者自述近一周来感到疲劳乏力,伴有食欲不振,偶尔有头晕现象,无发热,睡眠质量差,易醒且难以再次入睡。'
+        },
+        xianbingshi: {
+          value: '患者于一周前开始出现上述症状,起初以为是工作压力大所致,未予重视。但症状逐渐加重,影响日常生活。患者否认近期有重大生活事件或情绪波动,饮食习惯正常,大小便正常,体重无明显变化。'
+        },
+        jiwangshi: {
+          value: '患者既往体健,否认高血压、糖尿病、心脏病等慢性疾病。•否认手术史及药物过敏史。'
+        },
+        gerenshi: {
+          value: '•生活规律,作息时间较为固定。•无烟酒嗜好。•工作环境良好,无特殊接触史。'
+        },
+        jzs: {
+          value: '家族中无类似疾病史,父母均健康。'
+        },
+        tgjc: {
+          value: '一般情况:神志清楚,精神状态欠佳,面色稍苍白。•舌象:舌质淡红,苔薄白。•脉象:脉细弱。'
+        },
+        WCSJ: '2024年12月4日',
+        doctor_name: '李华',
+        fzjc: {
+          value: []
+        },
+      }
     };
     };
   },
   },
   computed: {
   computed: {
@@ -272,13 +340,22 @@ export default {
   },
   },
   mounted() {
   mounted() {
     this.valData = this.storageGet('getData');
     this.valData = this.storageGet('getData');
+    console.log(this.valData)
     if (this.valData) {
     if (this.valData) {
-      if (this.$route.query.from !== 'forewarning') {
-        this.funQuery();
+      // 展示示例的死数据
+      if(this.valData == 'sl_001'){
+        this.is_active = 292
+        this.admissionRecord = this.sl_data;
+      }else{
+        if (this.$route.query.from !== 'forewarning') {
+          this.funQuery();
+        }
+        this.getCaseQualityResults();
+        this.getTree();
       }
       }
-      this.getCaseQualityResults();
+    }else{
+      this.getTree();
     }
     }
-    this.getTree();
   },
   },
   methods: {
   methods: {
     onControll() {
     onControll() {
@@ -379,8 +456,43 @@ export default {
         }
         }
       } else {
       } 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();
+        if(this.valData != 'sl_001'){
+          this.is_active = 0;
+          this.funQuery();
+          // 病程记录
+          if (item.bllb === 294) {
+            if (that.is_active) {
+              // 请求前先重置之前的数据
+              that.caseRecodeInfo = {};
+              let parm = { blbh: that.is_active };
+              if (this.is_tm_path.includes(this.$route.path)) {
+                parm.is_tm = 1;
+              }
+              that.$axios.post('/get_bc_data', parm).then(res => {
+                that.caseRecodeInfo = res.data[0].bc_data;
+                that.caseRecodeInfo.is_format = res.data[0].is_format;
+              });
+            }
+          }
+          // 手术记录
+          if (item.bllb === 303) {
+            if (that.is_active) {
+              // 请求前先重置之前的数据
+              that.surgeryData = {};
+              let parm = { blbh: that.is_active };
+              if (this.is_tm_path.includes(this.$route.path)) {
+                parm.is_tm = 1;
+              }
+              that.$axios.post('/get_surgery_data', parm).then(res => {
+                that.surgeryData = res.data[0].surgery_data;
+                that.surgeryData.is_format = res.data[0].is_format;
+              });
+            }
+          }
+        }else{
+          
+        }
+        
       }
       }
       this.titleName = n;
       this.titleName = n;
       this.parentType = b;
       this.parentType = b;
@@ -481,36 +593,7 @@ export default {
           this.pacsDetail = res.data;
           this.pacsDetail = res.data;
         });
         });
       }
       }
-      // 病程记录
-      if (item.bllb === 294) {
-        if (that.is_active) {
-          // 请求前先重置之前的数据
-          that.caseRecodeInfo = {};
-          let parm = { blbh: that.is_active };
-          if (this.is_tm_path.includes(this.$route.path)) {
-            parm.is_tm = 1;
-          }
-          that.$axios.post('/get_bc_data', parm).then(res => {
-            that.caseRecodeInfo = res.data[0].bc_data;
-            that.caseRecodeInfo.is_format = res.data[0].is_format;
-          });
-        }
-      }
-      // 手术记录
-      if (item.bllb === 303) {
-        if (that.is_active) {
-          // 请求前先重置之前的数据
-          that.surgeryData = {};
-          let parm = { blbh: that.is_active };
-          if (this.is_tm_path.includes(this.$route.path)) {
-            parm.is_tm = 1;
-          }
-          that.$axios.post('/get_surgery_data', parm).then(res => {
-            that.surgeryData = res.data[0].surgery_data;
-            that.surgeryData.is_format = res.data[0].is_format;
-          });
-        }
-      }
+      
     },
     },
     //质控依据高亮方法
     //质控依据高亮方法
     hightRight(hightKeyWord, bllb, zyh) {
     hightRight(hightKeyWord, bllb, zyh) {

+ 13 - 2
src/views/middleCaseControl/caseNumber.vue

@@ -78,6 +78,15 @@ export default {
         problem:'all'
         problem:'all'
       },
       },
       tableData: [],
       tableData: [],
+      tableData_1: {
+        AAC11N: '内科',
+        AAA28: '001',
+        MED_REC_ID: 'sl_001',
+        AAC01: '-',
+        AAA01: '张三',
+        ABC01N: '肝脾失调',
+        ICD9_NAME: '无'
+      },
       // 分页数据
       // 分页数据
       paginationData: {
       paginationData: {
         total: 10,
         total: 10,
@@ -138,10 +147,12 @@ export default {
       };
       };
       this.$axios.post('/qualityList', pramse).then(res => {
       this.$axios.post('/qualityList', pramse).then(res => {
         console.log(res);
         console.log(res);
-
         this.paginationData.total = res.data.count;
         this.paginationData.total = res.data.count;
         this.tableData = res.data.list;
         this.tableData = res.data.list;
-      });
+        this.tableData.unshift(this.tableData_1)
+      }).catch( e =>{
+        this.tableData.unshift(this.tableData_1)
+      })
     },
     },
     reset() {
     reset() {
       // 重置数据
       // 重置数据