Browse Source

病案详情-重新质控后刷新数据

liyanyan 1 week ago
parent
commit
c4b6b8644a
2 changed files with 31 additions and 27 deletions
  1. 23 22
      src/views/allcase/caseViews.vue
  2. 8 5
      src/views/allcase/components/CaseQualityBox2.vue

+ 23 - 22
src/views/allcase/caseViews.vue

@@ -149,7 +149,7 @@
       <!-- status 不存在 意味着不脱敏、医院自助查询 -->
       <template v-if="!$route.query.status && isControl">
         <!-- 病案首页质控 -->
-        <CaseQualityBox :mainHomeData="mainHomeData" :MED_REC_ID="valData" type="type_v" :width="340" :height="820" @hightRight="hightRight" />
+        <CaseQualityBox ref="CaseQualityBoxRef" :mainHomeData="mainHomeData" :MED_REC_ID="valData" type="type_v" :width="340" :height="820" @hightRight="hightRight" />
       </template>
     </div>
 
@@ -392,6 +392,12 @@ export default {
     this.isControl = localStorage.getItem('isControl') == 'true' ? true : false;
     console.log(!this.$route.query.status && this.isControl, !this.$route.query.status, this.isControl);
     this.valData = this.$route.query.from == 'expertQualityControl'? this.$route.query.ZYH : this.storageGet('getData');
+    this.ruleId = this.storageGet('getDataRule');
+    let xqItemError = this.storageGet('xqItemError');
+    if(xqItemError){
+      this.xqItemError = JSON.parse(xqItemError);
+      // this.is_VueDragResize= true;
+    }
   },
   mounted() {
     this.getInitData();
@@ -418,24 +424,13 @@ export default {
       })
     },
     getInitData() {
-      this.ruleId = this.storageGet('getDataRule');
-      let xqItemError = this.storageGet('xqItemError');
-      if(xqItemError){
-        this.xqItemError = JSON.parse(xqItemError);
-        // this.is_VueDragResize= true;
-      }
-
       if (this.valData) {
         if (this.$route.query.from !== 'forewarning') {
-          if(this.$route.query.bllb && this.$route.query.bllb == '-1') {
-            this.is_active = 0
-            this.funQuery();
-          } else {
+          if(this.$route.query.from != 'expertQualityControl') {
             this.is_active = 0
             this.funQuery();
           }
         }
-        this.getCaseQualityResults();
       }
       this.getTree();
     },
@@ -491,15 +486,17 @@ export default {
       this.$axios2.get(`/quality_handle?zyh=${this.valData}`, {
         timeout: 180000
       }).then(res => {
-        if (res.data === true) {
-          this.valData = this.storageGet('getData');
-          if (this.valData) {
-            if (this.$route.query.from !== 'forewarning') {
-              this.funQuery();
-            }
-            this.getCaseQualityResults();
-          }
-          this.getTree();
+        if (res.code == 200) {
+          // this.valData = this.storageGet('getData');
+          // if (this.valData) {
+          //   if (this.$route.query.from !== 'forewarning') {
+          //     this.funQuery();
+          //   }
+          //   this.getCaseQualityResults();
+          // }
+          // this.getTree();
+          this.getInitData()
+          this.$refs.CaseQualityBoxRef.getInitData();
         }
       });
     },
@@ -584,6 +581,10 @@ export default {
     },
     setCurrentTreeNode() {
       const currentTreeRow = this.treeList[this.$route.query.currentKey]
+      if(this.$route.query.bllb && this.$route.query.bllb == '-1') {
+        this.is_active = 0
+        this.funQuery();
+      }
       if (this.$route.query.bllb && this.$route.query.bllb != '-1' && !this.$route.query.blbh) {
         // this.$message.success('请求多组')
         if(this.$route.query.specialName) { // 如果是医嘱

+ 8 - 5
src/views/allcase/components/CaseQualityBox2.vue

@@ -273,13 +273,16 @@ import { examineAppeal, getAppealData, getBrry } from '@/api/qc';
       }
     },
     mounted(){
-      if(this.$route.path != '/whitelist-caseControl' ) {
-        this.getTableData();
-      }
-      this.getTaskNameList();
-      this.getBaseInfo();
+      this.getInitData();
     },
     methods: {
+      getInitData() {
+        if(this.$route.path != '/whitelist-caseControl' ) {
+          this.getTableData();
+        }
+        this.getTaskNameList();
+        this.getBaseInfo();
+      },
       getBaseInfo() {
         getBrry({zyh: this.$props.MED_REC_ID}).then(res => {
           if (res.code == 200) {