Browse Source

优化质控栏列表展示

xizhong 9 tháng trước cách đây
mục cha
commit
77b56b4999

BIN
dist.zip


+ 2 - 82
src/views/allcase/caseControl.vue

@@ -12,88 +12,7 @@ import CaseQualityBox from './components/CaseQualityBox2.vue';
     },
     data() {
       return {
-        data: {
-        "score": 79,
-        "is_case": 1, // 质控状态,1质控中,2已质控
-        "quality_time": "2023-01-01 02:13:43",// 质控结果更新时间
-        "data": [{
-          "id": 9081016,
-          "BLBH": 0,
-          "rule_id": 109,
-          "notice": "有抗菌药,24小时内无病程记录",
-          "created_at": "2024-07-08 04:49:46",
-          "code": "kjy",
-          "error_field": "病程记录",
-          "JZHM": "756595",
-          "BRBH": "",
-          "basis": [
-            [
-              "抗菌药名称【头孢唑林钠】",
-              "开嘱时间【2022-10-28 09:10:16】",
-              "病程记录时间【无】"
-            ],
-            [
-              "抗菌药名称【克林霉素】",
-              "开嘱时间【2022-10-28 14:07:54】",
-              "病程记录时间【无】"
-            ]
-          ],
-          "is_ai": 1,
-          "ZKR": null,
-          "ZKKS": null,
-          "JSR": null,
-          "JSKS": null,
-          "ZGJB": null,
-          "ZGQX": null,
-          "updated_at": "2024-07-08 04:49:46",
-          "score": 1,
-          "category": "病程类",
-          "appeal_status": 1,// 1通过,2驳回
-          "reject_content": "拒绝理由" // 驳回原因
-        },
-        {
-          "id": 9081032,
-          "BLBH": 0,
-          "rule_id": 100,
-          "notice": "时间未精确到分钟",
-          "created_at": "2024-07-08 04:49:46",
-          "code": "rule_100",
-          "error_field": "整体",
-          "JZHM": "756595",
-          "BRBH": "",
-          "basis": [
-            [
-              "出院记录入院时间【2022-10-28】"
-            ],
-            [
-              "出院记录出院时间【2023-02-02】"
-            ]
-          ],
-          "is_ai": 1,
-          "ZKR": null,
-          "ZKKS": null,
-          "JSR": null,
-          "JSKS": null,
-          "ZGJB": null,
-          "ZGQX": null,
-          "updated_at": "2024-07-08 04:49:46",
-          "score": 0.5,
-          "category": "整体"
-        }
-        ],
-        "total": 14,
-        "summary": [
-          {
-            "category": "病程类",
-            "nums": 13
-          },
-          {
-            "category": "整体",
-            "nums": 1
-          }
-        ],
-        "run_score": 0
-      },
+        data: null
       }
     },
     created() {
@@ -108,6 +27,7 @@ import CaseQualityBox from './components/CaseQualityBox2.vue';
           id: Number(this.$route.query.id),
         };
         this.$axios2.post('/get_case_quality_v2', params).then(res => {
+          this.data = null;
           this.$nextTick(() =>{
             this.data = res.data;
           })

+ 10 - 6
src/views/allcase/caseViews.vue

@@ -119,7 +119,7 @@
       <!-- status 不存在 意味着不脱敏、医院自助查询 -->
       <template v-if="!$route.query.status && isControl">
         <!-- 病案首页质控 -->
-        <CaseQualityBox :data="results" :type="type_v" :width="340" :height="820" @hightRight="hightRight"/>
+        <CaseQualityBox v-if="results" :data="results" :type="type_v" :width="340" :height="820" @hightRight="hightRight"/>
       </template>
     </div>
   </div>
@@ -217,9 +217,7 @@ export default {
         cyyz: {},
       },
       dataObj: [],
-      results: {
-        data: {},
-      },
+      results: null,
       is_tm_path: ['/hospital-caseViews', '/embedIndex-caseViews', '/reviewIndex-caseViews', '/whitelist-caseViews', '/whitelist-search'],
       isControl: false,
     };
@@ -306,11 +304,17 @@ export default {
       if (this.type_v == 'v2') {
         // (事中)
         this.$axios2.post('/get_case_quality_v2', params).then(res => {
-          this.results = res.data;
+          this.results = null;
+          this.$nextTick(() =>{
+            this.results = res.data;
+          })
         });
       } else {
         this.$axios2.post('/get_case_quality', params).then(res => {
-          this.results = res.data;
+          this.results = null;
+          this.$nextTick(() =>{
+            this.results = res.data;
+          })
         });
       }
     },

+ 1 - 1
src/views/allcase/components/CaseQualityBox2.vue

@@ -8,7 +8,7 @@
       <!-- <h2 class="score-dj">{{ scoreLevel }}</h2> -->
     </div>
 
-    <div class="card-box">
+    <div class="card-box" v-if="data.is_case">
       <div class="title">
         <span class="font-size12">智能结果更新时间:</span>
         <span class="font-size12">{{ data.quality_time }}</span>