Kaynağa Gözat

增加申诉数量查询接口和显示,兼容科室质控数量

liyanyan 2 gün önce
ebeveyn
işleme
21101ff561

+ 11 - 0
src/api/qc.js

@@ -289,6 +289,17 @@ export function getNumberInfo(data) {
   });
 }
 
+//获取消息
+export function getAppealNumberInfo(data) {
+  return request({
+    url: '/appeal_tab_nums',
+    method: 'get',
+    params: data,
+  });
+}
+
+
+
 // 获取病案首页接口
 export function getQualityResult(data) {
   return request({

+ 13 - 2
src/views/recordsRoom/qc/components/CaseQualityBox2.vue

@@ -318,7 +318,7 @@
 </template>
 
 <script>
-import { examineAppeal, examineReview, getCaseQualityBazb, getAppealData, getNumberInfo } from '@/api/qc';
+import { examineAppeal, examineReview, getCaseQualityBazb, getAppealData, getNumberInfo, getAppealNumberInfo } from '@/api/qc';
 import AppealModal from '@/components/appealModal/index.vue'
 import { setCorrection } from '@/api/qc'
 
@@ -452,7 +452,11 @@ export default {
     const { ZYH, id } = this.$route.query
     this.MEDRECID = this.$route.path == '/whitelist-qualityResults' ? id : ZYH;
     if(!(this.$route.path == '/whitelist-qualityResults' || this.$route.path == '/whitelist-bmyQualityResult')) {
-      this.getMessageNum();
+      if(this.$route.query.from == 'review') {
+        this.getAppealMessageNum()
+      } else {
+        this.getMessageNum();
+      }
     }
     this.getTabsData()
   },
@@ -476,6 +480,13 @@ export default {
         this.tabList[2].medical = res.data.homeQuality;
       });
     },
+    getAppealMessageNum(){
+      getAppealNumberInfo({zyh: this.MEDRECID}).then(res => {
+        this.tabList[0].medical = res.data.error_v2;
+        this.tabList[1].medical = res.data.case_quality;
+        this.tabList[2].medical = res.data.home_quality;
+      });
+    },
     hasMessage(tabName) {
       return this.messageStatus[tabName];
     },