Browse Source

病案质控 todo

yuwandanmian 2 years ago
parent
commit
142df1eb4d
2 changed files with 68 additions and 5 deletions
  1. 16 5
      src/views/allcase/caseViews.vue
  2. 52 0
      src/views/allcase/components/CaseQualityBox.vue

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

@@ -105,6 +105,7 @@
         <!-- 住院病案质控 -->
         <ErrorMsg v-if="is_active == 0" class="cont-reight" :titleName="titleName" :errorList="errorList" :score="score" @ss="getBlankIndexss"></ErrorMsg>
         <ErrorMsg2 v-if="is_active == 292" class="cont-reight" :titleName="titleName" :errorList="errorList" :score="score"></ErrorMsg2>
+        <!-- <CaseQualityBox :list="results" /> -->
       </template>
     </div>
   </div>
@@ -129,6 +130,7 @@ import ShouShuRecord2 from './components/ShouShuRecord2.vue';
 import ShouShuRecord4 from './components/ShouShuRecord4.vue';
 import NoFormatText from './components/NoFormatText.vue';
 import OutHospitalRecord from './components/OutHospitalRecord.vue';
+import CaseQualityBox from './components/CaseQualityBox.vue'
 
 export default {
   components: {
@@ -151,6 +153,7 @@ export default {
     ShouShuRecord4,
     NoFormatText,
     OutHospitalRecord,
+    CaseQualityBox
   },
   directives: {},
   filters: {},
@@ -214,7 +217,6 @@ export default {
           }
         }
       }
-      console.log(liIds)
       return liIds;
     },
     shoushuLiIds() {
@@ -252,9 +254,20 @@ export default {
       this.funQuery();
     }
     this.getTree();
+    // this.getCaseQualityResults()
   },
 
   methods: {
+    // 获取新病案指控结果
+    getCaseQualityResults() {
+      const params = {
+        // id: this.valData,
+        id: 723264
+      };
+      this.$axios.post('/get_case_quality', params).then(res => {
+        this.results = res.data
+      });
+    },
     reload() {
       // 移除组件
       this.update = false;
@@ -301,7 +314,6 @@ export default {
       });
     },
     clickTree(b, n, item) {
-      console.log(b, n, item)
       this.titleName = n;
       this.parentType = b;
       let that = this;
@@ -317,7 +329,6 @@ export default {
       } else {
         that.is_active = b;
       }
-      console.log(that.is_active)
       that.name_title = n;
       this.errorList = [];
       if (b != 0 && b != 292 && b != 1) {
@@ -473,7 +484,7 @@ export default {
   width: 250px;
   margin: 0 0 0 15px;
   min-height: 650px;
-  height: 830px;
+  height: 820px;
   overflow-y: scroll;
   background: #ffffff;
 }
@@ -481,7 +492,7 @@ export default {
   flex: 1;
   min-height: 650px;
   margin: 0 5px;
-  height: 830px;
+  height: 820px;
   overflow-y: scroll;
   background: #ffffff;
   border: 1px solid #e2e2e2;

+ 52 - 0
src/views/allcase/components/CaseQualityBox.vue

@@ -0,0 +1,52 @@
+<template>
+  <div class="caseQualityBox">
+    <div class="name">病案质控</div>
+    <div class="list-box">
+      <el-card v-for="(item, index) of list" :key="index" class="box-card">
+        <el-descriptions title="" :column="1">
+          <el-descriptions-item label="类型">
+            <el-tag type="danger" size="small">{{ item.error_field }}</el-tag>
+          </el-descriptions-item>
+          <el-descriptions-item label="描述">{{ item.notice }}</el-descriptions-item>
+      </el-descriptions>
+      </el-card>
+    </div>
+  </div>
+</template>
+
+<script>
+  export default {
+    props: {
+      list: {
+        type: Array,
+        default() {
+          return []
+        }
+      }
+    }
+  }
+</script>
+
+<style lang="scss" scoped>
+.caseQualityBox {
+  width: 300px;
+  min-height: 650px;
+  height: 820px;
+  overflow-x: hidden;
+  overflow-y: scroll;
+  background: #ffffff;
+  border: 1px solid #e2e2e2;
+  box-sizing: border-box;
+  padding: 0 20px;
+  .name {
+    text-align: center;
+    font-size: 22px;
+    font-weight: bold;
+    line-height: 40px;
+    margin: 10px 0;
+  }
+  .box-card {
+    margin-bottom: 16px;
+  }
+}
+</style>