Просмотр исходного кода

科室质控-审核明细列表跳转详情页时根据质控类型选中病历智审结果对应的tab页签

liyanyan 3 дней назад
Родитель
Сommit
16a8c59fe6

+ 4 - 1
src/views/recordsRoom/qc/components/CaseQualityBox2.vue

@@ -449,7 +449,7 @@ export default {
   created() {
   created() {
   },
   },
   mounted() {
   mounted() {
-    const { ZYH, id } = this.$route.query
+    const { ZYH, id, qualityType } = this.$route.query
     this.MEDRECID = this.$route.path == '/whitelist-qualityResults' ? id : ZYH;
     this.MEDRECID = this.$route.path == '/whitelist-qualityResults' ? id : ZYH;
     if(!(this.$route.path == '/whitelist-qualityResults' || this.$route.path == '/whitelist-bmyQualityResult')) {
     if(!(this.$route.path == '/whitelist-qualityResults' || this.$route.path == '/whitelist-bmyQualityResult')) {
       if(this.$route.query.from == 'review') {
       if(this.$route.query.from == 'review') {
@@ -458,6 +458,9 @@ export default {
         this.getMessageNum();
         this.getMessageNum();
       }
       }
     }
     }
+    if(qualityType) {
+      this.activeName = qualityType == 1 ? 'first' :  qualityType == 3 ? 'third' : 'second'
+    }
     this.getTabsData()
     this.getTabsData()
   },
   },
 
 

+ 3 - 2
src/views/recordsRoom/qc/components/correction/TableBox.vue

@@ -152,9 +152,10 @@ export default {
   methods: {
   methods: {
     moment,
     moment,
     toPage(row) {
     toPage(row) {
-      const { ZYH } = row;
+      const { ZYH, type } = row;
       this.$router.push({ path: '/qc/caseViews', query: {
       this.$router.push({ path: '/qc/caseViews', query: {
-        ZYH
+        ZYH,
+        qualityType: type
       }});
       }});
     },
     },