Эх сурвалжийг харах

病案详情-删除无数据不显示质控结果弹窗的逻辑、修改重新质控和右侧按钮居中对齐、病历生成窗口页面样式调整

liyanyan 1 долоо хоног өмнө
parent
commit
eb827986f3

+ 25 - 25
src/views/allcase/caseViews.vue

@@ -1,9 +1,9 @@
 <template>
   <div id="MyDiv" style="margin: 16px" :class="{ nocopy: $route.query.status }">
     <div class="header zbjg-box" style="background: #fff;margin: 10px 0;padding: 6px 20px;">
-      <div>
+      <span>
         <el-button type="primary"  v-if="!($route.query.from == 'majorIndexDetail')" style="background-color: #328240;" @click="onControll">重新质控</el-button>
-      </div>
+      </span>
       <div>
         <el-button @click="clickzbjg" v-if="$route.query.from == 'majorIndexDetail'">指标结果</el-button>
         <el-button type="primary"  v-if="!($route.query.from == 'majorIndexDetail')" @click="isControl = !isControl">智审结果</el-button>
@@ -149,7 +149,7 @@
       <!-- status 不存在 意味着不脱敏、医院自助查询 -->
       <template v-if="!$route.query.status && isControl">
         <!-- 病案首页质控 -->
-        <CaseQualityBox :mainHomeData="mainHomeData" :MED_REC_ID="valData" v-if="results" :data="results" :type="type_v" :width="340" :height="820" @hightRight="hightRight" />
+        <CaseQualityBox :mainHomeData="mainHomeData" :MED_REC_ID="valData" type="type_v" :width="340" :height="820" @hightRight="hightRight" />
       </template>
     </div>
 
@@ -391,7 +391,7 @@ 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');
   },
   mounted() {
     this.getInitData();
@@ -418,7 +418,6 @@ export default {
       })
     },
     getInitData() {
-      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){
@@ -506,26 +505,26 @@ export default {
     },
     // 获取新病案指控结果
     getCaseQualityResults() {
-      const params = {
-        id: Number(this.valData),
-        ruleId: Number(this.ruleId)
-      };
-      if (this.type_v == 'v2') {
-        // (事中)
-        this.$axios2.post('/get_case_quality_v2', params).then(res => {
-          this.results = null;
-          this.$nextTick(() => {
-            this.results = res.data;
-          });
-        });
-      } else {
-        this.$axios2.post('/get_case_quality', params).then(res => {
-          this.results = null;
-          this.$nextTick(() => {
-            this.results = res.data;
-          });
-        });
-      }
+      // const params = {
+      //   id: Number(this.valData),
+      //   ruleId: Number(this.ruleId)
+      // };
+      // if (this.type_v == 'v2') {
+      //   // (事中)
+      //   this.$axios2.post('/get_case_quality_v2', params).then(res => {
+      //     this.results = null;
+      //     this.$nextTick(() => {
+      //       this.results = res.data;
+      //     });
+      //   });
+      // } else {
+      //   this.$axios2.post('/get_case_quality', params).then(res => {
+      //     this.results = null;
+      //     this.$nextTick(() => {
+      //       this.results = res.data;
+      //     });
+      //   });
+      // }
     },
     reload() {
       // 移除组件
@@ -808,6 +807,7 @@ export default {
   text-align: right;
   display: flex;
   justify-content: space-between;
+  align-items: center;
 }
 .cont_container {
   height: calc(100% - 68px - 20px);

+ 14 - 9
src/views/allcase/components/CaseQualityBox2.vue

@@ -55,14 +55,14 @@
             <div v-for="(item,index) in chatMessages" :key="index">
               <div v-if="item.role == 'user'" class="user-message">
                 <div class="user-content">
-                  {{item.content}}
+                  <div>{{item.content}}</div>
                 </div>
                 <el-avatar src="static/img/avatar07.7b002992.png" fit="contain"></el-avatar>
               </div>
               <div v-if="item.role == 'assistant'" class="record-message">
                 <el-avatar :src="require('../../../assets/images/jiqiren.png')" fit="contain"></el-avatar>
                 <div class="record-content">
-                  {{item.content}}
+                  <div>{{item.content}}</div>
                 </div>
               </div>
             </div>
@@ -488,24 +488,29 @@ import { examineAppeal, getAppealData, getBrry } from '@/api/qc';
       justify-content: right;
       .user-content {
         line-height: 40px;
-        background-color: #bee2f8;
         margin-right: 10px;
         border-radius: 5px;
-        padding: 0 10px 0 10px;
-        flex: 1
+        flex: 1;
+        & div {
+          background: #bee2f8;
+          padding: 0 10px;
+          float: right;
+        }
       }
     }
     .record-message {
       display: flex;
       margin: 10px 10px 20px 10px;
       .record-content {
-        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
-        width: 360px;
         margin-left:10px; 
-        padding: 0 10px 0 10px;
         border-radius: 5px;
         line-height: 40px;
-        flex: 1
+        flex: 1;
+        & div {
+          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
+          padding: 0 10px;
+          float: right;
+        }
       }
     }
   }