瀏覽代碼

质控申述接口

xizhong 9 月之前
父節點
當前提交
64981d9043
共有 3 個文件被更改,包括 22 次插入19 次删除
  1. 2 1
      src/main.js
  2. 19 17
      src/views/recordsRoom/qc/caseViews.vue
  3. 1 1
      src/views/recordsRoom/qc/components/CaseQualityBox2.vue

+ 2 - 1
src/main.js

@@ -1,4 +1,5 @@
 import Vue from 'vue'
+import axios from 'axios'
 
 import Cookies from 'js-cookie'
 
@@ -39,7 +40,7 @@ Vue.component('Pagination', Pagination)
 //   const { mockXHR } = require('../mock')
 //   mockXHR()
 // }
-
+Vue.prototype.axios = axios
 // 注册全局指令
 import elDragDialog from './directive/el-drag-dialog'
 Vue.use(elDragDialog, { directiveName: 'el-drag-dialog' })

+ 19 - 17
src/views/recordsRoom/qc/caseViews.vue

@@ -109,7 +109,7 @@
       <!-- status 不存在 意味着不脱敏、医院自助查询 -->
       <template v-if="!$route.query.status">
         <!-- 住院病案质控 -->
-        <CaseQualityBox :data="results" :clickAppealBtn="clickAppealBtn" :width="340" :height="820" />
+        <CaseQualityBox :data="results" v-if="results.data" @clickAppealBtn="clickAppealBtn" :width="340" :height="820" />
       </template>
       <!-- 添加质控结果 -->
       <CreateControlResultDialogVue v-if="dialogData.bSwitch" :data="dialogData" @refresh="handelRefreshResults" />
@@ -389,23 +389,25 @@ export default {
     // 获取新病案指控结果
     getCaseQualityResults() {
       let that = this;
-      // const params = {
-      //   ZYH: Number(this.valData)
-      // }
-      // getCaseQuality(params).then(res => {
-      //   const { p } = res
-      //   this.results = p
-      // })
-      that.axios({
-        url:'http://10.10.11.65:8081/bazb/get_case_quality_v2',
-        method: 'post',
-        headers: { 'content-type': 'application/json', 'token': getToken() },
-        data: {
-          ZYH: Number(that.valData)
-        }
-      }).then(res => {
-        this.results = res.data
+      const params = {
+        id: Number(that.valData)
+      }
+      getCaseQuality(params).then(res => {
+        that.results = null;
+        that.$nextTick(() =>{
+          that.results = res.data;
+        })
       })
+      // that.axios({
+      //   url:'http://10.10.11.65:8081/bazb/get_case_quality_v2',
+      //   method: 'post',
+      //   headers: { 'content-type': 'application/json', 'token': getToken() },
+      //   data: {
+      //     ZYH: Number(that.valData)
+      //   }
+      // }).then(res => {
+      //   this.results = res.data
+      // })
     },
     reload() {
       // 移除组件

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

@@ -1,7 +1,7 @@
 <template>
   <div>
 
-    <div ref="box" class="box22" :style="{width: width ? width + 'px' : '100%'}" :class="{'nocopy': $route.meta.nocopy}">
+    <div ref="box" class="box22" :style="{width: width ? width + 'px' : '100%'}">
 
       <div class="score-box" :class="scoreLevel == '甲'? 'scoreLevel_1' : ( scoreLevel == '乙'?'scoreLevel_2': (scoreLevel == '丙'?'scoreLevel_3':'' ) ) ">
         <div>病案评分<span class="score-f">{{ data.score  }}分</span></div>