Browse Source

缺陷数量下钻列表-增加入院时间和出院时间排序,接口字段增加

liyanyan 1 week ago
parent
commit
bb86444fb6
1 changed files with 22 additions and 4 deletions
  1. 22 4
      src/views/allcase/defectNumber.vue

+ 22 - 4
src/views/allcase/defectNumber.vue

@@ -195,7 +195,7 @@
         </el-table-column>
       </el-table>
       <!--终末病历质控-问题数量-->
-      <el-table :data="tableData" style="width: 100%" v-else>
+      <el-table :data="tableData" ref='tableRef' style="width: 100%" v-else  @sort-change="handleSortChange" :row-class-name="tableRowClassName">
         <el-table-column type="index" label="序号" width="80"></el-table-column>
         <el-table-column prop="notice" label="问题描述" width="200" show-overflow-tooltip></el-table-column>
         <el-table-column prop="AAA28" label="病案号" width="120">
@@ -206,12 +206,12 @@
           </template>
         </el-table-column>
         <el-table-column prop="AAA01" label="患者姓名" width="120"></el-table-column>
-        <el-table-column prop="AAC01" label="出院时间" width="160"></el-table-column>
+        <el-table-column prop="AAC01" label="出院时间" width="160" sortable></el-table-column>
         <el-table-column prop="AAC11N" label="出院科室" width="150" show-overflow-tooltip></el-table-column>
         <el-table-column prop="AAC04" label="住院天数" width="80"></el-table-column>
         <el-table-column prop="AEE03" label="主治医师" width="120"></el-table-column>
         <el-table-column prop="AEM01C_MC" label="离院方式" width="150" show-overflow-tooltip></el-table-column>
-        <el-table-column prop="AAB01" label="入院时间" width="160"></el-table-column>
+        <el-table-column prop="AAB01" label="入院时间" width="160" sortable></el-table-column>
         <el-table-column prop="ICD10_NAME" label="主要诊断名称" show-overflow-tooltip></el-table-column>
         <el-table-column prop="ICD9_NAME" label="主要手术名称" show-overflow-tooltip></el-table-column>
       </el-table>
@@ -273,7 +273,9 @@ export default {
         rule_id: query.rule_id || '',
         rule_type: query.rule_type,
         endDay1: '',
-        endDay2: ''
+        endDay2: '',
+        order_value: '',
+        order_key: ''
       },
       searchOptions: {
         yqArray: [],//院区options
@@ -315,6 +317,18 @@ export default {
     }
   },
   methods: {
+    handleSortChange(column) {
+      const { prop, order } = column;
+      if (order === 'descending') {
+          this.formDataZmblzkWtsl.order_value = 'desc';
+      } else if (order === 'ascending') {
+          this.formDataZmblzkWtsl.order_value = 'asc';
+      } else {
+          this.formDataZmblzkWtsl.order_value = 'desc';
+      }
+      this.formDataZmblzkWtsl.order_key = prop
+      this.funQuery()
+    },
     // 获取医生列表
     getDoctorList(){
       this.$axios2.post('/case-quality/doctor_list').then(res => {
@@ -394,6 +408,10 @@ export default {
     },
     handleResetZmblzkWtsl() {
       this.$refs.ZmblzkWtslForm.resetFields();
+      this.formDataZmblzkWtsl.order_value = '';
+      this.formDataZmblzkWtsl.order_key = ''
+      this.$refs.tableRef.clearSort();
+      this.funQuery();
     },
     getSearchOptions() {
       this.$axios.post('CaseHistory/Terminal/getQxBlSearchOptions', {}).then(res => {