Forráskód Böngészése

1.评价指标详情列表:增加更新时间
2.评价指标列表指标计算功能
3.评价指标详情列表查看详情指标计算功能
4.评价指标详情列表住院号码下钻指标结果指标计算功能
5.评价指标详情列表住院号码下钻只显示指标结果按钮,默认展开指标结果弹窗
6.终末病历质控住院号下钻去除指标结果按钮

liyanyan 1 napja
szülő
commit
87ff2223d5

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

@@ -2,12 +2,12 @@
   <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>
-        <el-button type="primary" style="background-color: #328240;" @click="onControll">重新质控</el-button>
+        <el-button type="primary"  v-if="!($route.query.from == 'majorIndexDetail')" style="background-color: #328240;" @click="onControll">重新质控</el-button>
       </div>
       <div>
-        <el-button @click="clickzbjg">指标结果</el-button>
-        <el-button type="primary" @click="isControl = !isControl">智审结果</el-button>
-        <el-button type="text" style="color: #606266;" @click="openAIModel">
+        <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>
+        <el-button type="text" v-if="!($route.query.from == 'majorIndexDetail')"  style="color: #606266;" @click="openAIModel">
           <img src="../../assets//images//AIHelper.png" style="width:30px;display: inline-block;vertical-align: middle;"/>
           AI模型
         </el-button>
@@ -159,7 +159,7 @@
                 <div class="listItem-title-box">
                   <span>指标名称:</span>
                   <span style="color: #ff0000;">{{ show_name }}</span>
-                  <!-- <span class="span-btn" @click="clickJsTitleBtn">指标计算</span> -->
+                  <span class="span-btn" @click="clickJsTitleBtn">指标计算</span>
                   <img src="../../assets/images/arrow-down.png" alt="" @click.stop="clickListItem"  class="arrow-down" :class="show_box?'show':''"/>
                 </div>
 
@@ -365,7 +365,9 @@ export default {
     this.top = 60;
     this.type_v = this.$route.query.type_v;
     this.show_name = this.$route.query.show_name?this.$route.query.show_name:'';
-
+    if(this.$route.query.from == 'majorIndexDetail') {
+      this.is_VueDragResize = true
+    }
     this.isControl = localStorage.getItem('isControl') == 'true' ? true : false;
     console.log(!this.$route.query.status && this.isControl, !this.$route.query.status, this.isControl);
 
@@ -415,6 +417,17 @@ export default {
       this.show_box = !this.show_box;
       this.resize();
     },
+    clickJsTitleBtn(){
+      const params = {
+        category: this.$route.query.category,
+        zyh: this.$route.query.zyh
+      }
+      this.$axios2.post('/quality_index_recalculate', params).then(res => {
+        if(res.code == 200) {
+          this.$router.back()
+        }
+      });
+    },
     clickxqItemErrorItems(i){
       let xqItemError = this.xqItemError;
       xqItemError[i].show = !xqItemError[i].show;

+ 14 - 1
src/views/allcase/majorIndex.vue

@@ -148,7 +148,7 @@
                 </el-form>
               </div>
               <div class="js-pop-foo-box">
-                <el-button type="primary" @click="getList">重新计算指标</el-button>
+                <el-button type="primary" @click="reComputed">重新计算指标</el-button>
               </div>
             </div>
           </div>
@@ -711,6 +711,19 @@ export default {
         }
       }
     },
+    reComputed() {
+      const params = {
+        category: this.indexData.url,
+        cysj_start: this.formInline.startTime,
+        cysj_end: this.formInline.endTime
+      }
+      this.$axios2.post('/quality_index_recalculate', params).then(res => {
+        if(res.code == 200) {
+          this.jsPopShow = false
+          this.getList()
+        }
+      });
+    },
     getList() {
       this.$axios2.get(`/quality_index_list?type=1&cysj_start=${this.formInline.startTime}&cysj_end=${this.formInline.endTime}&AAC11N=${this.formInline.AAC11N}&AEE03=${this.formInline.AEE03}&is_export=0&category=${this.indexData.url}`).then(res => {
         this.tableData = Array.isArray(res.data) ? res.data : []

+ 19 - 4
src/views/allcase/majorIndexDetail.vue

@@ -181,7 +181,11 @@
             <el-tag :type="scope.row.status == '正确'?'success':(scope.row.status == '警告'?'warning':'danger')">{{ scope.row.status }}</el-tag>
           </template>
         </el-table-column>
-
+        <el-table-column
+          prop="update_time"
+          label="更新时间"
+          align="center">
+        </el-table-column>
       </el-table>
       <!-- <div style="overflow: hidden; text-align: center; background: #fff; padding-bottom: 16px;">
         <el-pagination
@@ -380,7 +384,8 @@ import { number } from 'echarts';
         tabStatus: 1,
         xqItemError: [],
         show_name: '',
-        tableHeight: 0
+        tableHeight: 0,
+        currentRow: {}
       }
     },
     computed: {
@@ -418,7 +423,16 @@ import { number } from 'echarts';
         this.box_card_show_1 = !this.box_card_show_1;
       },
       clickJsTitleBtn(){
-
+        const params = {
+          category: this.indexData.url,
+          zyh: this.currentRow.zyh
+        }
+        this.$axios2.post('/quality_index_recalculate', params).then(res => {
+          if(res.code == 200) {
+            this.is_VueDragResize = false
+            this.getList()
+          }
+        });
       },
       clickListItem(){
         this.show_box = !this.show_box;
@@ -463,7 +477,7 @@ import { number } from 'echarts';
       toDetailPage(row) {
         this.storageSet('getData', row.zyh);
         this.storageSet('xqItemError', JSON.stringify(row.error));
-        let path= '/caseViews?show_name='+ row.name
+        let path= `/caseViews?from=majorIndexDetail&show_name=${row.name}&category=${this.indexData.url}&zyh=${row.zyh}`
         // this.goto(path);
         this.$router.push(path);
       },
@@ -533,6 +547,7 @@ import { number } from 'echarts';
         let arr = e.error;
         this.xqItemError = arr;
         this.is_VueDragResize = true;
+        this.currentRow = {...e}
       },
       onSearch() {
         this.page.page = 1