Browse Source

终末质控菜单(科室排名)部分bug修复

zz 1 tháng trước cách đây
mục cha
commit
ccca4a1564

+ 14 - 12
src/views/allcase/caseNumber.vue

@@ -4,7 +4,7 @@
       <div class="block">
       <div class="block">
         <div class="blockCon">
         <div class="blockCon">
           <div class="selectDns"></div>
           <div class="selectDns"></div>
-          <el-input v-model="formData.recordNum" class="width150" placeholder="病案号"></el-input>
+          <el-input v-model="formData.AAA28" class="width150" placeholder="病案号"></el-input>
           <span class="kong"></span>
           <span class="kong"></span>
           <el-select v-model="formData.AAC11C" filterable placeholder="请选择">
           <el-select v-model="formData.AAC11C" filterable placeholder="请选择">
             <el-option v-for="(item, index) in departmentList" :label="item.name" :value="item.name" :key="index"></el-option>
             <el-option v-for="(item, index) in departmentList" :label="item.name" :value="item.name" :key="index"></el-option>
@@ -72,7 +72,7 @@ export default {
     return {
     return {
       formData: {
       formData: {
         // rangeDate: [],
         // rangeDate: [],
-        recordNum: '',
+        AAA28: '',
         startTime: '',
         startTime: '',
         endTime: '',
         endTime: '',
         AAC11C: ''
         AAC11C: ''
@@ -89,11 +89,15 @@ export default {
   },
   },
   mounted() {
   mounted() {
     let query = this.$route.query;
     let query = this.$route.query;
-    this.formData.YQ_CODE = query.YQ_CODE;
-    this.formData.KS_CODE = query.KS_CODE;
-    this.formData.BQ_CODE = query.BQ_CODE;
+    this.formData.AAA28 = query.AAA28;
+    this.formData.YQ_CODE = query.YQ_CODE.split(',');
+    this.formData.KS_CODE = query.KS_CODE.split(',');
+    this.formData.BQ_CODE = query.BQ_CODE.split(',');
     this.formData.startTime = this.storageGet('start_time');
     this.formData.startTime = this.storageGet('start_time');
     this.formData.endTime = this.storageGet('end_time');
     this.formData.endTime = this.storageGet('end_time');
+    this.formData.startTime = query.startTime;
+    this.formData.endTime = query.endTime;
+    this.formData.is_qx = query.is_qx;
     this.funQuery();
     this.funQuery();
     this.selectInfo()
     this.selectInfo()
   },
   },
@@ -133,18 +137,16 @@ export default {
     funQuery() {
     funQuery() {
       //查询
       //查询
       let pramse = {
       let pramse = {
-        // AAC01: this.formData.rangeDate, //出院时间
-        AAC01_start_date: this.formData.startTime || '',
-        AAC01_end_date: this.formData.endTime || '',
-        start_time: this.formData.startTime, //开始时间
-        end_time: this.formData.endTime, //结束时间
-        AAA28: this.formData.recordNum,
         page: this.paginationData.currentPage, //页码
         page: this.paginationData.currentPage, //页码
         limit: this.paginationData.pageSize, //条数
         limit: this.paginationData.pageSize, //条数
         AAC11C: this.formData.AAC11C,
         AAC11C: this.formData.AAC11C,
+        AAA28:this.formData.AAA28,
         YQ_CODE: this.formData.YQ_CODE,
         YQ_CODE: this.formData.YQ_CODE,
         KS_CODE: this.formData.KS_CODE,
         KS_CODE: this.formData.KS_CODE,
-        BQ_CODE: this.formData.BQ_CODE
+        BQ_CODE: this.formData.BQ_CODE,
+        start_time: this.formData.startTime, //开始时间
+        end_time: this.formData.endTime, //结束时间
+        is_qx : this.formData.is_qx,
       };
       };
       this.$axios.post('CaseHistory/Terminal/blNumberTableList', pramse).then(res => {
       this.$axios.post('CaseHistory/Terminal/blNumberTableList', pramse).then(res => {
         this.paginationData.total = res.data.count;
         this.paginationData.total = res.data.count;

+ 3 - 2
src/views/allcase/caseViews.vue

@@ -553,6 +553,7 @@ export default {
         if (this.is_tm_path.includes(this.$route.path)) {
         if (this.is_tm_path.includes(this.$route.path)) {
           params.is_tm = '1';
           params.is_tm = '1';
         }
         }
+        console.log('这里1');
         that.$axios2.post('/get_case_platform', params).then(res => {
         that.$axios2.post('/get_case_platform', params).then(res => {
           this.admissionRecord = res.data;
           this.admissionRecord = res.data;
         });
         });
@@ -565,8 +566,8 @@ export default {
         if (this.is_tm_path.includes(this.$route.path)) {
         if (this.is_tm_path.includes(this.$route.path)) {
           params.is_tm = 1;
           params.is_tm = 1;
         }
         }
+        console.log('这里2');
         that.$axios2.post('/get_case_platform', params).then(res => {
         that.$axios2.post('/get_case_platform', params).then(res => {
-          console.log('测试测试');
           this.outHospitalRecordData = res.data;
           this.outHospitalRecordData = res.data;
         });
         });
       }
       }
@@ -608,7 +609,6 @@ export default {
             parm.zyh = Number(item.list[0].ZYH);
             parm.zyh = Number(item.list[0].ZYH);
           }
           }
         });
         });
-
         that.$axios.post('/get_pacs_data', parm).then(res => {
         that.$axios.post('/get_pacs_data', parm).then(res => {
           this.pacsDetail = res.data;
           this.pacsDetail = res.data;
         });
         });
@@ -653,6 +653,7 @@ export default {
       that.is_active = bllb;
       that.is_active = bllb;
       that.titleName = '入院记录';
       that.titleName = '入院记录';
       that.parentType = bllb;
       that.parentType = bllb;
+      console.log('这里3');
       const params = { id: zyh, bllb: bllb, isHight: 1, keyWord: betweenPart };
       const params = { id: zyh, bllb: bllb, isHight: 1, keyWord: betweenPart };
       that.$axios2.post('/get_case_platform', params).then(res => {
       that.$axios2.post('/get_case_platform', params).then(res => {
         this.admissionRecord = res.data;
         this.admissionRecord = res.data;

+ 27 - 18
src/views/allcase/defectNumber.vue

@@ -6,19 +6,24 @@
           <el-row :gutter="20">
           <el-row :gutter="20">
             <el-col :span="6">
             <el-col :span="6">
               <el-form-item label="出院时间">
               <el-form-item label="出院时间">
-                <el-date-picker
-                  v-model="formData.time"
-                  type="daterange"
-                  start-placeholder="开始时间"
-                  end-placeholder="结束时间"
-                  value-format="yyyyMMdd"
-                  style="width: 100%;">
+                <el-date-picker style="width: 94%;" v-model="formData.startTime" type="date" placeholder="出院开始日期"
+                                 value-format="yyyyMMdd" format="yyyy年MM月dd日">
                 </el-date-picker>
                 </el-date-picker>
               </el-form-item>
               </el-form-item>
+
+            </el-col>
+
+            <el-col :span="6">
+              <el-form-item style="text-align: center;" label="至">
+                <el-date-picker style="width: 94%;" v-model="formData.endTime" type="date" placeholder="出院结束日期"
+                                value-format="yyyyMMdd" format="yyyy年MM月dd日" @onClick="onClickEndTime">
+                </el-date-picker>
+              </el-form-item>
+
             </el-col>
             </el-col>
             <el-col :span="6">
             <el-col :span="6">
               <el-form-item label="病案号">
               <el-form-item label="病案号">
-                <el-input v-model="formData.recordNum" placeholder="病案号"></el-input>
+                <el-input v-model="formData.AAA28" placeholder="病案号"></el-input>
               </el-form-item>
               </el-form-item>
             </el-col>
             </el-col>
             <el-col :span="6" v-if="sort">
             <el-col :span="6" v-if="sort">
@@ -68,8 +73,8 @@
         </el-table-column>
         </el-table-column>
         <el-table-column prop="AAC01" label="出院时间" width="160"></el-table-column>
         <el-table-column prop="AAC01" label="出院时间" width="160"></el-table-column>
         <el-table-column prop="AAA01" label="患者姓名" width="160" v-if="error_rule"></el-table-column>
         <el-table-column prop="AAA01" label="患者姓名" width="160" v-if="error_rule"></el-table-column>
-        <el-table-column prop="ZHFZRYSXM" label="医师姓名" v-if="!error_rule"></el-table-column>
-        <el-table-column prop="rule_notice" label="缺陷问题描述" show-overflow-tooltip></el-table-column>
+        <el-table-column prop="AEE03" label="主治医师" v-if="!error_rule"></el-table-column>
+        <el-table-column prop="notice" label="缺陷问题描述" show-overflow-tooltip></el-table-column>
         <!-- <el-table-column prop="grading_scale" label="评分等级" v-if="sort == 'doc_count'"></el-table-column> -->
         <!-- <el-table-column prop="grading_scale" label="评分等级" v-if="sort == 'doc_count'"></el-table-column> -->
         <el-table-column prop="" label="扣分" v-if="sort == 'score'">
         <el-table-column prop="" label="扣分" v-if="sort == 'score'">
           <template slot-scope="scope">
           <template slot-scope="scope">
@@ -128,13 +133,16 @@ export default {
   },
   },
   mounted() {
   mounted() {
     let query = this.$route.query;
     let query = this.$route.query;
-    this.formData.YQ_CODE = query.YQ_CODE;//院区
-    this.formData.KS_CODE = query.KS_CODE;//科室
-    this.formData.BQ_CODE = query.BQ_CODE;//病区
+    this.formData.AAA28 = query.AAA28;//病案号
+    this.formData.YQ_CODE = query.YQ_CODE.split(',');//院区
+    this.formData.KS_CODE = query.KS_CODE.split(',');//科室
+    this.formData.BQ_CODE = query.BQ_CODE.split(',');//病区
     this.error_rule = this.$route.query.rule_id;// 规则ID
     this.error_rule = this.$route.query.rule_id;// 规则ID
     this.sort = this.$route.query.sort;
     this.sort = this.$route.query.sort;
     this.doctor_name = this.$route.query.doctor_name;
     this.doctor_name = this.$route.query.doctor_name;
     this.formData.time = [this.storageGet('start_time'),this.storageGet('end_time')];
     this.formData.time = [this.storageGet('start_time'),this.storageGet('end_time')];
+    this.formData.startTime = query.startTime;
+    this.formData.endTime = query.endTime;
     this.selectInfo();
     this.selectInfo();
     // 获取医生列表
     // 获取医生列表
     this.getDoctorList();
     this.getDoctorList();
@@ -186,17 +194,18 @@ export default {
     funQuery() {
     funQuery() {
       //查询
       //查询
       let pramse = {
       let pramse = {
-        start_time: this.formData.time[0] || '',
-        end_time: this.formData.time[1] || '',
+        start_time: this.formData.startTime || '',
+        end_time: this.formData.endTime || '',
         level: this.formData.level,
         level: this.formData.level,
         page: this.paginationData.currentPage,
         page: this.paginationData.currentPage,
         limit: this.paginationData.pageSize,
         limit: this.paginationData.pageSize,
-        AAA28: this.formData.recordNum, //住院号
+        //AAA28: this.formData.recordNum, //住院号
         AAC11N: this.formData.AAC11N,  //科室
         AAC11N: this.formData.AAC11N,  //科室
         rule_type: this.formData.rule_type, //质控类型
         rule_type: this.formData.rule_type, //质控类型
         YQ_CODE: this.formData.YQ_CODE, //质控类型
         YQ_CODE: this.formData.YQ_CODE, //质控类型
         KS_CODE: this.formData.KS_CODE, //质控类型
         KS_CODE: this.formData.KS_CODE, //质控类型
         BQ_CODE: this.formData.BQ_CODE, //质控类型
         BQ_CODE: this.formData.BQ_CODE, //质控类型
+        AAA28 : this.formData.AAA28 ,//病案号
       };
       };
       if (this.error_rule) {
       if (this.error_rule) {
         pramse.error_rule = this.error_rule; // 规则ID
         pramse.error_rule = this.error_rule; // 规则ID
@@ -205,9 +214,9 @@ export default {
         pramse.doctor_name = this.doctor_name; // 医师姓名
         pramse.doctor_name = this.doctor_name; // 医师姓名
       }
       }
 
 
-      this.$axios.post('/errorDataList', pramse).then(res => {
+      this.$axios.post('CaseHistory/Terminal/qxBlNumberTableList', pramse).then(res => {
         this.paginationData.total = res.data.count;
         this.paginationData.total = res.data.count;
-        this.tableData = res.data.list;
+        this.tableData = res.data.data;
       });
       });
     }
     }
   },
   },

+ 21 - 8
src/views/allcase/index.vue

@@ -87,14 +87,14 @@
             <el-col :span="5">
             <el-col :span="5">
               <el-card class="summary-card" shadow="hover">
               <el-card class="summary-card" shadow="hover">
                 <div slot="header" class="clearfix">
                 <div slot="header" class="clearfix">
-                  <span class="summary-card-title">控病历</span>
-                  <el-button style="float: right;padding: 0; " type="text" @click="goto('/caseNumber')">
+                  <span class="summary-card-title">控病历</span>
+                  <el-button style="float: right;padding: 0; " type="text" @click="urlGoto('/caseNumber?','')">
                     <i class="el-icon-s-marketing summary-icon"></i>
                     <i class="el-icon-s-marketing summary-icon"></i>
                   </el-button>
                   </el-button>
                 </div>
                 </div>
 
 
                 <div class="summary-card-body">
                 <div class="summary-card-body">
-                  <a @click="goto('/caseNumber')" class="summary-content-text" type="text">
+                  <a @click="urlGoto('/caseNumber?','')" class="summary-content-text" type="text">
                     {{ summaryData.case_total }}
                     {{ summaryData.case_total }}
                   </a>
                   </a>
                   <span>例</span>
                   <span>例</span>
@@ -106,12 +106,12 @@
               <el-card class="summary-card" shadow="hover">
               <el-card class="summary-card" shadow="hover">
                 <div slot="header" class="clearfix">
                 <div slot="header" class="clearfix">
                   <span class="summary-card-title">问题病历</span>
                   <span class="summary-card-title">问题病历</span>
-                  <el-button style="float: right;padding: 0; " type="text" @click="goto('/defectNumber')">
+                  <el-button style="float: right;padding: 0; " type="text" @click="urlGoto('/caseNumber?','is_qx=1')">
                     <i class="el-icon-s-marketing summary-icon"></i>
                     <i class="el-icon-s-marketing summary-icon"></i>
                   </el-button>
                   </el-button>
                 </div>
                 </div>
                 <div class="summary-card-body">
                 <div class="summary-card-body">
-                  <a @click="goto('/defectNumber')" class="summary-content-text" type="text">
+                  <a @click="urlGoto('/caseNumber?','is_qx=1')" class="summary-content-text" type="text">
                     {{ summaryData.case_quality_total }}
                     {{ summaryData.case_quality_total }}
                   </a>
                   </a>
                   <span>例</span>
                   <span>例</span>
@@ -159,7 +159,7 @@
                   </el-button>
                   </el-button>
                 </div>
                 </div>
                 <div class="summary-card-body">
                 <div class="summary-card-body">
-                  <a @click="javascript();" class="summary-content-text" type="text">
+                  <a @click="urlGoto('/defectNumber?','')" class="summary-content-text" type="text">
                     {{ summaryData.question_total }}
                     {{ summaryData.question_total }}
                   </a>
                   </a>
                   <span>个</span>
                   <span>个</span>
@@ -577,8 +577,11 @@ export default {
 
 
   },
   },
   mounted() {
   mounted() {
+    this.getAAC01Date();
     this.getSearchOptions();
     this.getSearchOptions();
     this.doctor_rank = JSON.parse(JSON.stringify(this.doctor_tableData)).slice(0, 10)
     this.doctor_rank = JSON.parse(JSON.stringify(this.doctor_tableData)).slice(0, 10)
+
+    /*
     this.storageSet('start_time', '');
     this.storageSet('start_time', '');
     this.storageSet('end_time', '');
     this.storageSet('end_time', '');
     this.formData.chooseDate = '30';
     this.formData.chooseDate = '30';
@@ -586,10 +589,10 @@ export default {
       this.formData = this.storageGet('homeFrom');
       this.formData = this.storageGet('homeFrom');
       this.storageRemove('homeFrom');
       this.storageRemove('homeFrom');
     }
     }
+     */
     this.getDepartmentList()
     this.getDepartmentList()
     this.funQuery();
     this.funQuery();
     this.selectInfo();
     this.selectInfo();
-    this.getAAC01Date();
     // this.getDepartmentTableList();
     // this.getDepartmentTableList();
   },
   },
   beforeRouteEnter(to, from, next) {
   beforeRouteEnter(to, from, next) {
@@ -606,6 +609,15 @@ export default {
     next()
     next()
   },
   },
   methods: {
   methods: {
+    //下砖页面跳转
+    urlGoto(url,value){
+      let urlString = url;
+      Object.entries(this.formData).forEach(([key, value])=>{
+        urlString = urlString+'&'+key+'='+value;
+      });
+      urlString = urlString+'&'+value
+      this.goto(urlString)
+    },
     //重置头部搜索条件
     //重置头部搜索条件
     reset() {
     reset() {
       this.formData = {
       this.formData = {
@@ -886,6 +898,7 @@ export default {
 
 
     getSummaryData() {
     getSummaryData() {
       let params = Object.assign({}, this.formData);
       let params = Object.assign({}, this.formData);
+      console.log(this.formData);
       this.$axios.post('/CaseHistory/Terminal/getTotalList', params).then(res => {
       this.$axios.post('/CaseHistory/Terminal/getTotalList', params).then(res => {
 
 
         if (res.code == 200) {
         if (res.code == 200) {
@@ -895,7 +908,7 @@ export default {
             let num = res.data.case_calibre.find(item2 => item2.score_lv == item.score_lv)
             let num = res.data.case_calibre.find(item2 => item2.score_lv == item.score_lv)
             item.num = num ? num.num : 0
             item.num = num ? num.num : 0
           })
           })
-          const colors = ['#2e8241ff', '#ed8b1aff', '#f02b3fff']
+          const colors = ['#f02b3fff', '#ed8b1aff', '#2e8241ff']
           const option = {
           const option = {
             xAxis: {},
             xAxis: {},
             grid: { // 让图表占满容器
             grid: { // 让图表占满容器