Przeglądaj źródła

优化页面缓存方式、添加(事中)详情接口

gaoxizhong 1 rok temu
rodzic
commit
3680b482b2

+ 15 - 15
src/router/index.js

@@ -91,7 +91,7 @@ export const constantRoutes = [
         hidden: true,//不在导航栏展示
         meta: { 
           title: '出院记录',
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true //支持根据参数不同多开不同页签,如果你需要/a跟/a?v=123都分别打开两个页签,请设置为true,否则就只会显示一个页签,后打开的会替换到前打开的页签
         },
       },
@@ -113,7 +113,7 @@ export const constantRoutes = [
         hidden: true,//不在导航栏展示
         meta: { 
           title: '出院记录',
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true 
         },
       },
@@ -191,7 +191,7 @@ export const constantRoutes = [
         hidden: true, //不在导航栏展示
         meta: { 
           title: '缺陷问题详情',
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true
         },
       },
@@ -224,7 +224,7 @@ export const constantRoutes = [
         component: () => import('@/views/data/query/ChargeDetails'),
         meta: { 
           title: '费用明细',
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true 
         }
       },
@@ -380,7 +380,7 @@ export const constantRoutes = [
         component: () => import('@/views/outpatient/control/detail'),
         meta: { 
           title: '门诊病历详情',
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true 
         },
         hidden: true,
@@ -485,7 +485,7 @@ export const constantRoutes = [
         name: 'HospitalCaseViews',
         component: () => import('@/views/allcase/caseViews'),
         meta: { 
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true 
         },
         hidden: true
@@ -495,7 +495,7 @@ export const constantRoutes = [
         name: 'HospitalDetails',
         component: () => import('@/views/data/query/details'),
         meta: { 
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true 
         },
         hidden: true
@@ -506,7 +506,7 @@ export const constantRoutes = [
         hidden: true,
         component: () => import('@/views/data/query/ChargeDetails'),
         meta: { 
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true 
         },
       },
@@ -554,7 +554,7 @@ export const constantRoutes = [
         component: () => import('@/views/allcase/caseViews'),
         hidden: true,
         meta: { 
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true 
         },
       },
@@ -563,7 +563,7 @@ export const constantRoutes = [
         name: 'EmbedIndexChargeDetails',
         hidden: true,
         meta: { 
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true 
         },
         component: () => import('@/views/data/query/ChargeDetails')
@@ -602,7 +602,7 @@ export const constantRoutes = [
         component: () => import('@/views/allcase/caseViews'),
         hidden: true,
         meta: { 
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true 
         },
       },
@@ -623,7 +623,7 @@ export const constantRoutes = [
         hidden: true,
         component: () => import('@/views/data/query/ChargeDetails'),
         meta: { 
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true 
         },
       }
@@ -650,7 +650,7 @@ export const constantRoutes = [
         component: () => import('@/views/allcase/caseViews'),
         hidden: true,
         meta: { 
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true 
         },
       },
@@ -659,7 +659,7 @@ export const constantRoutes = [
         name: 'WhitelistChargeDetails',
         hidden: true,
         meta: { 
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true 
         },
         component: () => import('@/views/data/query/ChargeDetails')
@@ -670,7 +670,7 @@ export const constantRoutes = [
         component: () => import('@/views/data/query/details'),
         hidden: true,
         meta: { 
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true 
         },
       },

+ 18 - 5
src/views/allcase/caseViews.vue

@@ -167,6 +167,7 @@ export default {
   props: {},
   data() {
     return {
+      type_v:'', // v2 表示从(事中)进入
       mainHomeData: {},
       admissionRecord: {},
       longAdvice: {},
@@ -255,7 +256,11 @@ export default {
     },
   },
   watch: {},
+  created(){
+    this.type_v = this.$route.query.type_v;
+  },
   mounted() {
+    let v = 
     this.valData = this.storageGet('getData');
     if (this.valData) {
       this.funQuery();
@@ -270,9 +275,17 @@ export default {
       const params = {
         id: Number(this.valData),
       };
-      this.$axios2.post('/get_case_quality', params).then(res => {
-        this.results = res.data;
-      });
+      if(this.type_v == 'v2'){
+        // (事中)
+        this.$axios2.post('/get_case_quality_v2', params).then(res => {
+          this.results = res.data;
+        });
+      }else{
+        this.$axios2.post('/get_case_quality', params).then(res => {
+          this.results = res.data;
+        });
+      }
+
     },
     reload() {
       // 移除组件
@@ -356,7 +369,7 @@ export default {
         if (this.$route.query.status) {
           params.is_tm = '1';
         }
-        that.$axios.post('/bazb/get_case_platform', params).then(res => {
+        that.$axios2.post('/get_case_platform', params).then(res => {
           this.admissionRecord = res.data;
         });
       } else if (b == 1) {
@@ -368,7 +381,7 @@ export default {
         if (this.$route.query.status) {
           params.is_tm = 1;
         }
-        that.$axios.post('/bazb/get_case_platform', params).then(res => {
+        that.$axios2.post('/get_case_platform', params).then(res => {
           this.outHospitalRecordData = res.data;
         });
       }

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

@@ -1,7 +1,13 @@
 <template>
   <div ref="box" class="box">
+
+    <div class="score-box" :class="scoreLevel == '甲'? 'scoreLevel_1' : (scoreLevel == '乙'?'scoreLevel_2':'scoreLevel_3') ">
+      <div>病案评分<span class="score-f">{{ data.run_score }}分</span></div>
+      <div class="score-dj">{{ scoreLevel }}</div>
+    </div>
+
     <div class="card-box">
-      <el-row :gutter="20">
+      <!-- <el-row :gutter="20">
         <el-col :span="12" :offset="12">
           <div class="title2">运行病历:<span>{{ data.run_score }}分</span></div>
         </el-col>
@@ -11,8 +17,8 @@
         <el-col :span="12" :offset="12">
           <div class="title2">终末病历:<span>{{ data.score }}分</span></div>
         </el-col>
-      </el-row>
-      <el-divider></el-divider>
+      </el-row> -->
+      <!-- <el-divider></el-divider> -->
       <el-row :gutter="20" style="margin-bottom: 16px;">
         <el-col :span="12">
           <div class="title">病历问题:<span class="error">{{ data.total }}</span></div>
@@ -153,27 +159,66 @@
 ::v-deep .el-divider--horizontal {
   margin: 10px 0;
 }
+
+
 .box {
   width: 380px;
   padding: 21px 20px;
   background: #FFFFFF;
   border-radius: 5px;
+  .score-box{
+    width: 100%;
+    margin-bottom: 16px;
+    padding: 16px 50px 16px 20px;
+    border-radius: 4px;
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+    div{
+      font-size: 16px;
+    }
+    .score-f{
+      padding-left: 30px;
+      font-size: 16px;
+    }
+    .score-dj,.score-f{
+      font-weight: bold;
+    }
+  }
+  .score-box.scoreLevel_1{
+    background: rgb(216, 239, 223);
+    .score-dj,.score-f{
+      color: rgb(11, 133, 63);
+    }
+  }
+  .score-box.scoreLevel_2{
+    background: rgb(254, 242, 216);
+    .score-dj,.score-f{
+      color: rgb(152, 112, 20);
+    }
+  }
+  .score-box.scoreLevel_3{
+    background: rgb(255, 225, 217);
+    .score-dj,.score-f{
+      color: rgb(199, 54, 13);
+    }
+}
   .card-box {
     // height: 175px;
     background: #FFFFFF;
     border: 1px solid #E2E2E2;
-    padding: 20px 36px;
+    padding: 20px 20px;
     box-sizing: border-box;
     margin-bottom: 14px;
     .title {
-      font-size: 16px;
+      font-size: 15px;
       font-family: PingFang-SC-Bold, PingFang-SC;
       font-weight: bold;
       color: #333333;
       line-height: 22px;
-      span {
-        margin-left: 7px;
-      }
+      // span {
+      //   margin-left: 7px;
+      // }
     }
     .title2 {
       font-size: 14px;

+ 1 - 1
src/views/allcase/homePage.vue

@@ -233,7 +233,7 @@ export default {
         });
       }
       if(b == 292 ){ // 入院记录
-        that.$axios.post('/bazb/get_case_platform',{
+        that.$axios2.post('/get_case_platform',{
           id: this.valData,
           // id: 642461,
           bllb: b

+ 1 - 1
src/views/middleCaseControl/defectNumber.vue

@@ -94,7 +94,7 @@ export default {
     },
     funGoto(val) {
       this.storageSet('getData', val);
-      this.goto('/caseViews')
+      this.goto('/caseViews?type_v=v2')
     },
     selectInfo() {
       this.$axios.post('/selectInfo').then(res => {