XMLWAN 4 yıl önce
ebeveyn
işleme
cde91ad1e2

+ 5 - 3
src/api/common/common.js Dosyayı Görüntüle

@@ -149,7 +149,7 @@ export function getTotalLapseCount(startime, endtime) {
149 149
     startime: startime,
150 150
     endtime: endtime
151 151
   }
152
-
152
+  console.log('params', params)
153 153
   return request({
154 154
     url: '/com/api/gettotallapsecount',
155 155
     method: 'get',
@@ -174,6 +174,7 @@ export function getTotalInfectiousCount(startime, endtime) {
174 174
     startime: startime,
175 175
     endtime: endtime
176 176
   }
177
+  console.log('传染病', params)
177 178
   return request({
178 179
     url: '/com/api/gettoalinfectiouscount',
179 180
     method: 'get',
@@ -282,10 +283,11 @@ export function geStatistics(params) {
282 283
   })
283 284
 }
284 285
 
285
-export function getInspectionTotalCount(startime, endtime) {
286
+export function getInspectionTotalCount(startime, endtime, patientid) {
286 287
   const params = {
287 288
     startime: startime,
288
-    endtime: endtime
289
+    endtime: endtime,
290
+    patientid: patientid
289 291
   }
290 292
   return request({
291 293
     url: '/com/api/getinspectiontotalcount',

+ 33 - 33
src/xt_pages/qcd/basicInformationAnalysis.vue Dosyayı Görüntüle

@@ -380,9 +380,9 @@ export default {
380 380
       this.listQuery.state = state;
381 381
       //获取本月当前机构的透析模式
382 382
       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
383
-    //  console.log("开始时间",startDate)
383
+      console.log("开始时间",startDate)
384 384
       const endDate = moment(new Date()).format('YYYY-MM-DD')
385
-     // console.log("结束时间",endDate)
385
+      console.log("结束时间",endDate)
386 386
       var now = new Date()
387 387
       var nowMonth = now.getMonth(); //当前月
388 388
       var nowYear = now.getFullYear(); //当前年
@@ -399,11 +399,11 @@ export default {
399 399
        //统计透析总量
400 400
         this.getDialysisModeType(startDate,endDate)
401 401
         //统计转归状态
402
-        this.getTotalLapseCount(timeStar,timeEnd)
402
+        this.getTotalLapseCount(startDate,endDate)
403 403
         //统计男女比例
404 404
         this.getTotalSexCount(timeStar,timeEnd)
405 405
         //统计传染病
406
-        this.getTotalInfectiousCount(timeStar,timeEnd)
406
+        this.getTotalInfectiousCount(startDate,endDate)
407 407
         //统计年龄
408 408
         this.getTotalAgeCount(timeStar,timeEnd)
409 409
         //统计透析年龄
@@ -412,21 +412,21 @@ export default {
412 412
       //近三月
413 413
       if(state == 1){
414 414
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
415
-        console.log("三月前",startDate)
415
+        // console.log("三月前",startDate)
416 416
         var startunitx = Date.parse(startDate)/1000
417
-        console.log("开始时间搓",startunitx)
417
+        // console.log("开始时间搓",startunitx)
418 418
         const endDate = moment(new Date()).format('YYYY-MM-DD')
419
-        console.log("结束时间",endDate)
419
+        // console.log("结束时间",endDate)
420 420
          var endunitx = Date.parse(endDate)/1000
421
-        console.log("日期时间搓",endunitx)
421
+        // console.log("日期时间搓",endunitx)
422 422
          //统计透析总量
423 423
         this.getDialysisModeType(startDate,endDate)
424 424
          //统计转归状态
425
-        this.getTotalLapseCount(startunitx,endunitx)
425
+        this.getTotalLapseCount(startDate,endDate)
426 426
         //统计男女比例
427 427
         this.getTotalSexCount(startunitx,endunitx)
428 428
         //统计传染病
429
-        this.getTotalInfectiousCount(startunitx,endunitx)
429
+        this.getTotalInfectiousCount(startDate,endDate)
430 430
         //统计年龄
431 431
         this.getTotalAgeCount(startunitx,endunitx)
432 432
         //统计透析年龄
@@ -436,21 +436,21 @@ export default {
436 436
      //近半年
437 437
      if(state == 2){
438 438
         const startDate = moment().subtract('month', 6).format('YYYY-MM-DD')
439
-        console.log("6月前",startDate)
439
+        // console.log("6月前",startDate)
440 440
         var startunitx = Date.parse(startDate)/1000
441
-        console.log("开始时间搓",startunitx)
441
+        // console.log("开始时间搓",startunitx)
442 442
         const endDate = moment(new Date()).format('YYYY-MM-DD')
443
-        console.log("结束时间",endDate)
443
+        // console.log("结束时间",endDate)
444 444
          var endunitx = Date.parse(endDate)/1000
445
-        console.log("日期时间搓",endunitx)
445
+        // console.log("日期时间搓",endunitx)
446 446
          //统计透析总量
447 447
         this.getDialysisModeType(startDate,endDate)
448 448
          //统计转归状态
449
-        this.getTotalLapseCount(startunitx,endunitx)
449
+        this.getTotalLapseCount(startDate,endDate)
450 450
         //统计男女比例
451 451
         this.getTotalSexCount(startunitx,endunitx)
452 452
         //统计传染病
453
-        this.getTotalInfectiousCount(startunitx,endunitx)
453
+        this.getTotalInfectiousCount(startDate,endDate)
454 454
         //统计年龄
455 455
         this.getTotalAgeCount(startunitx,endunitx)
456 456
         //统计透析年龄
@@ -460,21 +460,21 @@ export default {
460 460
      //近一年
461 461
      if(state == 3){
462 462
         const startDate = moment().subtract('month', 12).format('YYYY-MM-DD')
463
-        console.log("6月前",startDate)
463
+        // console.log("6月前",startDate)
464 464
         var startunitx = Date.parse(startDate)/1000
465
-        console.log("开始时间搓",startunitx)
465
+        // console.log("开始时间搓",startunitx)
466 466
         const endDate = moment(new Date()).format('YYYY-MM-DD')
467
-        console.log("结束时间",endDate)
467
+        // console.log("结束时间",endDate)
468 468
          var endunitx = Date.parse(endDate)/1000
469
-        console.log("日期时间搓",endunitx)
469
+        // console.log("日期时间搓",endunitx)
470 470
          //统计透析总量
471 471
         this.getDialysisModeType(startDate,endDate)
472 472
          //统计转归状态
473
-        this.getTotalLapseCount(startunitx,endunitx)
473
+        this.getTotalLapseCount(startDate,endDate)
474 474
         //统计男女比例
475 475
         this.getTotalSexCount(startunitx,endunitx)
476 476
         //统计传染病
477
-        this.getTotalInfectiousCount(startunitx,endunitx)
477
+        this.getTotalInfectiousCount(startDate,endDate)
478 478
         //统计年龄
479 479
         this.getTotalAgeCount(startunitx,endunitx)
480 480
         //统计透析年龄
@@ -489,10 +489,10 @@ export default {
489 489
          if(response.data.state == 1){
490 490
           var modetype =  response.data.data.modetype
491 491
             var total =  response.data.data.total
492
-            console.log("total",total)
492
+            // console.log("total",total)
493 493
             this.total = total
494 494
            this.modetype = modetype
495
-           console.log("modetype",modetype)
495
+          //  console.log("modetype",modetype)
496 496
 
497 497
          }
498 498
       })
@@ -503,10 +503,10 @@ export default {
503 503
          if(response.data.state == 1){
504 504
           var patients =  response.data.data.patients
505 505
           this.rollOutTotal = patients.length
506
-          console.log("留治病人长度",patients.length)
506
+          // console.log("留治病人长度",patients.length)
507 507
           var patienttwo = response.data.data.patienttwo
508 508
           this.outTotal = patienttwo.length
509
-            console.log("转出长度", this.outTotal)
509
+            // console.log("转出长度", this.outTotal)
510 510
           var count = response.data.data.count
511 511
           this.patientCount = count
512 512
          }
@@ -532,11 +532,11 @@ export default {
532 532
        getTotalInfectiousCount(timeStar,timeEnd).then(response=>{
533 533
            if(response.data.state === 1){
534 534
              this.InfectiousTotal = response.data.data.total
535
-             console.log("===",this.InfectiousTotal)
535
+            //  console.log("===",this.InfectiousTotal)
536 536
              var infectious = response.data.data.count
537
-             console.log("infectious",infectious)
537
+            //  console.log("infectious",infectious)
538 538
              var otherTotal = response.data.data.otherTotal
539
-             console.log("otherTotal",otherTotal)
539
+            //  console.log("otherTotal",otherTotal)
540 540
              this.otherTotal = otherTotal
541 541
               var arr = [
542 542
                 {count:0,disease_id:2},
@@ -559,7 +559,7 @@ export default {
559 559
       getTotalAgeCount(timeStar,timeEnd).then(response=>{
560 560
          if(response.data.state == 1){
561 561
           var ageCount =  response.data.data.ageCount
562
-          console.log("ageCount",ageCount)
562
+          // console.log("ageCount",ageCount)
563 563
           var arr = []
564 564
           arr =  ageCount.sort(this.compare('age'))
565 565
           this.ageCount = arr
@@ -595,7 +595,7 @@ export default {
595 595
       getTotalDialysisCount(timeStar,timeEnd).then(response=>{
596 596
          if(response.data.state == 1){
597 597
            var dataage =  response.data.data.dataage
598
-           console.log("dataage",dataage)
598
+          //  console.log("dataage",dataage)
599 599
            this.dialysisAge = dataage
600 600
 
601 601
          }
@@ -605,7 +605,7 @@ export default {
605 605
   created() {
606 606
         //获取本月当前机构的透析模式
607 607
       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
608
-      console.log("开始时间",startDate)
608
+      // console.log("开始时间",startDate)
609 609
       const endDate = moment(new Date()).format('YYYY-MM-DD')
610 610
      // console.log("结束时间",endDate)
611 611
       var now = new Date()
@@ -626,7 +626,7 @@ export default {
626 626
       //统计男女比例
627 627
       this.getTotalSexCount(timeStar,timeEnd)
628 628
       //统计传染病
629
-      this.getTotalInfectiousCount(timeStar,timeEnd)
629
+      this.getTotalInfectiousCount(startDate,endDate)
630 630
       //统计年龄
631 631
       this.getTotalAgeCount(timeStar,timeEnd)
632 632
       //统计透析年龄

+ 4 - 1
src/xt_pages/qcd/indicatorControlAnalysis/process.vue Dosyayı Görüntüle

@@ -586,11 +586,13 @@
586 586
       },
587 587
       getModeName(mode_id) {
588 588
         return this.$store.getters.treatment_mode[mode_id] != undefined ? this.$store.getters.treatment_mode[mode_id].name : ''
589
-      }, GetDialysisProcessIndexTableData(params) {
589
+      }, 
590
+      GetDialysisProcessIndexTableData(params) {
590 591
         this.loading = true
591 592
         GetDialysisProcessIndexTableData(params)
592 593
           .then(rs => {
593 594
             var resp = rs.data
595
+            console.log("resp=====",resp)
594 596
             if (resp.state == 1) {
595 597
               this.loading = false
596 598
               this.tableData = []
@@ -617,6 +619,7 @@
617 619
           GetDialysisProcessIndexChartData(params)
618 620
           .then(rs => {
619 621
             var resp = rs.data
622
+            console.log("resp",resp)
620 623
             if (resp.state == 1) {
621 624
               if (this.query.statistics_type != 9 && this.query.statistics_type != 10) {
622 625
                 for (let i = 0; i < resp.data.data.length; i++) {

+ 14 - 5
src/xt_pages/qcd/officesControlAnalysis/project.vue Dosyayı Görüntüle

@@ -46,7 +46,10 @@
46 46
         <p class="pointTitle">指标正常范围值</p>
47 47
       </div>
48 48
       <div class="cell clearfix newDisplay">
49
-        <span class="index" v-for="(item,index) in normdata" :key="index ">{{item.item_name}}({{item.min_range}}-{{item.large_range}})</span>
49
+        <span class="index" v-for="(item,index) in normdata" :key="index ">
50
+          <span v-if="item.range_type == 1">{{item.item_name}}({{item.min_range}}-{{item.large_range}})</span> 
51
+          <span v-if="item.range_type == 2">{{item.item_name}}({{item.range_value}})</span> 
52
+        </span>
50 53
       </div>
51 54
     </div>
52 55
   </div>
@@ -106,6 +109,7 @@ export default {
106 109
       lapseto:0,
107 110
       type:1,
108 111
       mode_type:"",
112
+      range_type:"",
109 113
       chart: {
110 114
         title: {
111 115
           text: "ECharts 入门示例"
@@ -273,8 +277,12 @@ export default {
273 277
         //第四季度
274 278
          const four_qurter_start = moment().month(9).startOf('month').format("YYYY-MM-DD")
275 279
          const four_qurter_end = moment().month(11).endOf('month').format("YYYY-MM-DD")
276
- 
277
-     
280
+         console.log("this.modetype",this.mode_type)
281
+         for(let i=0;i<this.normdata.length;i++){
282
+            if(this.normdata[i].inspection_minor == this.mode_type){
283
+               this.range_type = this.normdata[i].range_type
284
+            }
285
+         }
278 286
          const params = {
279 287
            lapseto:this.lapseto,
280 288
            itemtype:this.type,
@@ -289,13 +297,14 @@ export default {
289 297
            three_qurter_end:three_qurter_end,
290 298
            four_qurter_start:four_qurter_start,
291 299
            four_qurter_end:four_qurter_end,
300
+           range_type:this.range_type
292 301
          }
293 302
       getProjectList(params).then(response=>{
294 303
         if(response.data.state === 1){
295 304
           var list = response.data.data.list
296
-      
305
+          console.log("list",list)
297 306
           var standList =  response.data.data.standList
298
-         
307
+          console.log("standlist",standList)
299 308
           var newArr = [
300 309
             {Total:"第一季度",Count:1,NoCount: 0},
301 310
             {Total:"第二季度",Count:1,NoCount: 0},

+ 15 - 4
src/xt_pages/qcd/officesControlAnalysis/time.vue Dosyayı Görüntüle

@@ -91,7 +91,11 @@
91 91
         <p class="pointTitle">指标正常范围值</p>
92 92
       </div>
93 93
       <div class="cell clearfix newDisplay">
94
-         <span v-for="(item,index) in normData" :key="index" class="index">{{item.item_name}}({{item.min_range}}-{{item.large_range}})</span> 
94
+         <span v-for="(item,index) in normData" :key="index" class="index">
95
+           {{item.item_name}}
96
+           <span v-if="item.range_type == 1">({{item.min_range}}-{{item.large_range}})</span>
97
+           <span v-if="item.range_type == 2">({{item.range_value}})</span>
98
+        </span> 
95 99
       </div>
96 100
     </div>
97 101
   </div>
@@ -456,6 +460,7 @@ export default {
456 460
       getNormData().then(response=>{
457 461
          if(response.data.state === 1){
458 462
            var normdata = response.data.data.normdata
463
+          //  console.log("指标正常范围",normdata)
459 464
            this.normData = normdata
460 465
            this.getlist()
461 466
          }
@@ -568,7 +573,13 @@ export default {
568 573
       getFirstQuarter(params).then(response=>{
569 574
          if(response.data.state === 1){
570 575
             var count =  response.data.data.count
571
-            console.log("count",count)  
576
+            // console.log("count",count) 
577
+            var countwo = response.data.data.countwo 
578
+            // console.log("countwo",countwo)
579
+            countwo.map(item=>{
580
+              count.push(item)
581
+            })
582
+          //  console.log("count",count)
572 583
             //获取已经配置的数据 
573 584
             var arr=[]
574 585
             for(let i=0;i<count.length;i++){  
@@ -578,7 +589,7 @@ export default {
578 589
                 }
579 590
               }
580 591
             }
581
-           console.log("arr",arr )
592
+          //  console.log("arr",arr )
582 593
            
583 594
             var arrtwo =  this.arrayDate(count,this.normData)
584 595
             for(let i=0;i<arrtwo.length;i++){
@@ -590,7 +601,7 @@ export default {
590 601
             arrtwo.map(item => {
591 602
               arr.push(item)
592 603
             })
593
-            // arr.sort(this.compare('sort'))    
604
+            arr.sort(this.compare('sort'))    
594 605
             for(const key in this.normData ){
595 606
                this.modesData.xAxis.push(this.normData[key].item_name);
596 607
                 if(key in arr){

+ 2 - 1
src/xt_pages/qcd/patientControlAnalysis.vue Dosyayı Görüntüle

@@ -78,7 +78,8 @@
78 78
             <el-table-column fixed prop="name" label="姓名" width="120"></el-table-column>
79 79
             <el-table-column   label="透析号" width="150">
80 80
               <template slot-scope="scope">
81
-                  {{getDialysisNo(scope.row.name)}}
81
+                  <!-- {{getDialysisNo(scope.row.name)}} -->
82
+                  {{scope.row.dialysis_no}}
82 83
               </template>
83 84
             </el-table-column>
84 85
             <el-table-column

+ 84 - 20
src/xt_pages/qcd/statisticalConfiguration.vue Dosyayı Görüntüle

@@ -74,13 +74,18 @@
74 74
                 </el-option>
75 75
             </el-select>
76 76
           </el-form-item>
77
-
78
-          <!-- <el-form-item label="质控范围" :label-width="formLabelWidth" required prop="large_range">
79
-            <el-input style="width:200px" v-model="form.min_range"></el-input>&nbsp;
80
-            -
81
-            <el-input style="width:200px" v-model="form.large_range"></el-input>
82
-          </el-form-item> -->
83
-          <div style="display:flex;">
77
+       
78
+            <el-form-item label="检验类型" :label-width="formLabelWidth" required prop="check_type">
79
+                    <el-radio
80
+                      :disabled = "true"
81
+                      v-model="form.check_type"
82
+                      v-for="item in radioType"
83
+                      :key="item.label"
84
+                      :label="item.value"
85
+                      :value="item.label"
86
+                      >{{ item.label }}</el-radio>
87
+            </el-form-item>  
88
+          <div style="display:flex;" v-show="showOne">
84 89
             <el-form-item label="质控范围" :label-width="formLabelWidth" required prop="min_range">
85 90
                 <el-input style="width:200px" v-model="form.min_range"></el-input>
86 91
             </el-form-item>
@@ -89,6 +94,11 @@
89 94
                 <el-input style="width:200px" v-model="form.large_range"></el-input>
90 95
             </el-form-item>
91 96
           </div>
97
+          <div v-show="showTwo">
98
+            <el-form-item label="质控范围" :label-width="formLabelWidth" required prop="range_value">
99
+                <el-input style="width:200px" v-model="form.range_value"></el-input>
100
+            </el-form-item>
101
+          </div>
92 102
           <el-form-item label="排序" :label-width="formLabelWidth">
93 103
             <el-input style="width:200px" v-model="form.sort"></el-input>
94 104
           </el-form-item>
@@ -125,12 +135,18 @@
125 135
                 </el-option>
126 136
             </el-select>
127 137
           </el-form-item>
128
-          <!-- <el-form-item label="质控范围" :label-width="formLabelWidth" required prop="large_range">
129
-            <el-input style="width:200px" v-model="editform.min_range"></el-input>&nbsp;
130
-            -
131
-            <el-input style="width:200px" v-model="editform.large_range"></el-input>
132
-          </el-form-item> -->
133
-           <div style="display:flex;">
138
+          <el-form-item label="检验类型" :label-width="formLabelWidth" required prop="check_type">
139
+                <el-radio
140
+                  :disabled = "true"
141
+                   v-model="editform.check_type"
142
+                   v-for="item in radioType"
143
+                   :key="item.label"
144
+                   :label="item.value"
145
+                   :value="item.label"
146
+                  >{{ item.label }}
147
+                </el-radio>
148
+            </el-form-item> 
149
+           <div style="display:flex;" v-show="showOne">
134 150
             <el-form-item label="质控范围" :label-width="formLabelWidth" required prop="min_range">
135 151
                 <el-input style="width:200px" v-model="editform.min_range"></el-input>
136 152
             </el-form-item>
@@ -138,6 +154,11 @@
138 154
             <el-form-item class='newFormItem' :label-width="formLabelWidth" required prop="large_range">
139 155
                 <el-input style="width:200px" v-model="editform.large_range"></el-input>
140 156
             </el-form-item>
157
+          </div>
158
+            <div v-show="showTwo">
159
+            <el-form-item label="质控范围" :label-width="formLabelWidth" required prop="range_value">
160
+                <el-input style="width:200px" v-model="editform.range_value"></el-input>
161
+            </el-form-item>
141 162
           </div>
142 163
           <el-form-item label="排序" :label-width="formLabelWidth">
143 164
             <el-input style="width:200px" v-model="editform.sort"></el-input>
@@ -169,6 +190,10 @@ export default {
169 190
         { path: false, name: "统计配置" },
170 191
         { path: false, name: "质控达标统计配置" }
171 192
       ],
193
+     radioType: [
194
+        { value: 1, label: "数值范围" },
195
+        { value: 2, label: "选项" }
196
+      ],
172 197
       tabActiveName: "control",
173 198
       InspectionMajor:[],
174 199
       InspectionMinor:[],
@@ -183,6 +208,8 @@ export default {
183 208
         min_range: "",
184 209
         large_range: "",
185 210
         sort:"",
211
+        check_type:"",
212
+        range_value:"",
186 213
       },
187 214
       editform:{
188 215
          id:0,
@@ -191,16 +218,21 @@ export default {
191 218
          min_range: "",
192 219
          large_range: "",
193 220
          sort:"",
221
+         check_type:"",
222
+         range_value:"",
194 223
       },
195 224
       rules: {
196 225
         inspectionMajor: [{ required: true, message: "检查大项不能为空" }],
197 226
         inspectionMinor: [{ required: true, message: "检查小项不能为空" }],
198 227
         large_range:[{required:true,message:"质控范围不能为空"}],
199
-        min_range:[{required:true,message:"质控范围不能为空"}]
228
+        min_range:[{required:true,message:"质控范围不能为空"}],
229
+        check_type:[{required:true,message:"检验类型不能为空"}]
200 230
       },
201 231
       page:1,
202 232
       limit:10,
203 233
       total:0,
234
+      showOne:true,
235
+      showTwo:false,
204 236
     };
205 237
   },
206 238
   methods: {
@@ -216,13 +248,27 @@ export default {
216 248
       getConfigurationDetail(id).then(response=>{
217 249
          if(response.data.state == 1){
218 250
            var configurationdetail = response.data.data.configurationdetail
219
-          console.log("详情",configurationdetail)
251
+           console.log("详情",configurationdetail)
220 252
            this.editform.id = configurationdetail.id
221 253
            this.editform.inspectionMajor = configurationdetail.inspection_major
222 254
            this.editform.inspectionMinor = configurationdetail.inspection_minor
255
+           this.editform.check_type = configurationdetail.range_type
256
+           this.editform.range_value = configurationdetail.range_value
257
+         if(configurationdetail.range_type == 1){
258
+              this.showOne = true
259
+              this.showTwo = false
260
+           }
261
+         if(configurationdetail.range_type == 2){
262
+             this.showOne = false
263
+             this.showTwo = true
264
+           }
265
+         if (configurationdetail.range_value == ""){
266
+             this.editform.range_value = "0"
267
+           }
223 268
            this.editform.large_range = configurationdetail.large_range
224 269
            this.editform.min_range = configurationdetail.min_range
225
-           if(configurationdetail.sort == 0){
270
+           
271
+         if(configurationdetail.sort == 0){
226 272
             this.editform.sort = ""
227 273
             return
228 274
            }
@@ -236,7 +282,7 @@ export default {
236 282
       getInspectionMajor().then(response=>{
237 283
         if(response.data.state == 1){
238 284
           var inspection =  response.data.data.inspection
239
-          console.log("大项",inspection)
285
+          console.log("大项是什么",inspection)
240 286
           this.InspectionMajor = inspection
241 287
          
242 288
         }
@@ -268,9 +314,27 @@ export default {
268 314
        getInspectionRange(id).then(response=>{
269 315
          if(response.data.state == 1){
270 316
            var inspectionRange =  response.data.data.inspectionRange
271
-          console.log("inspectionRange",inspectionRange)
272
-           this.form.min_range = inspectionRange.range_min
273
-           this.form.large_range = inspectionRange.range_max
317
+           console.log("inspectionRange",inspectionRange)
318
+           if(inspectionRange.range_type == 1){
319
+             this.showOne = true
320
+             this.showTwo = false
321
+             this.form.check_type =  1
322
+             this.editform.check_type = 1
323
+             this.form.min_range = inspectionRange.range_min
324
+             this.form.large_range = inspectionRange.range_max
325
+             this.form.range_value  = "0"
326
+           }
327
+           if(inspectionRange.range_type == 2){
328
+             this.showOne = false
329
+             this.showTwo = true
330
+             this.form.check_type = 2
331
+             this.editform.check_type = 2
332
+             this.form.min_range = inspectionRange.range_min
333
+             this.form.large_range = inspectionRange.range_max
334
+             this.form.range_value = inspectionRange.range_value
335
+             this.editform.range_value = inspectionRange.range_value
336
+           }
337
+          
274 338
          }
275 339
       })
276 340
     },

+ 10 - 8
src/xt_pages/qcd/treatmentControlAnalysis/components/CheckAll.vue Dosyayı Görüntüle

@@ -72,7 +72,7 @@
72 72
             <template slot-scope="scope">{{ scope.row.name}}</template>
73 73
          </el-table-column>
74 74
          <el-table-column
75
-          :label="modeItem.project_name"
75
+          :label="modeItem.project_name+'('+modeItem.inspection_frequency+'天)'"
76 76
           property="number"
77 77
           align="center"
78 78
           min-width="100"
@@ -80,7 +80,8 @@
80 80
           :key="index"
81 81
         >
82 82
           <template slot-scope="scope">
83
-              {{ scope.row.data[index].Count}}
83
+             <span v-if="Math.floor(90/modeItem.inspection_frequency) <= scope.row.data[index].Count" style="color:black">{{ scope.row.data[index].Count}}</span>
84
+              <span v-if="Math.floor(90/modeItem.inspection_frequency) > scope.row.data[index].Count" style="color:red">{{ scope.row.data[index].Count}}</span>
84 85
           </template>
85 86
         </el-table-column>
86 87
         </el-table>
@@ -90,7 +91,7 @@
90 91
           @size-change="handleSizeChange"
91 92
           @current-change="handleCurrentChange"
92 93
           :current-page="listQuery.page"
93
-          :page-sizes="[20, 40, 60, 80,100]"
94
+          :page-sizes="[10, 20, 30, 40,50]"
94 95
           :page-size="10"
95 96
           background
96 97
           style="margin-top:20px;"
@@ -113,7 +114,7 @@ export default {
113 114
         start_time: "",
114 115
         end_time: "",
115 116
         page: 1,
116
-        limit: 20
117
+        limit: 10
117 118
       },
118 119
       value: "请选项",
119 120
       tableData: [],
@@ -203,7 +204,7 @@ export default {
203 204
       getAllMajorInspection().then(response=>{
204 205
         if(response.data.state === 1){
205 206
            var inspection = response.data.data.inspection
206
-        
207
+           console.log("inspection",inspection)
207 208
            var a=[];
208 209
            for(let i=0;i<inspection.length;i++){
209 210
              a.push(inspection[i])
@@ -219,16 +220,17 @@ export default {
219 220
       })
220 221
     },
221 222
     getPatientList(){
223
+        this.tableData = []
222 224
       getPatientList(this.listQuery.start_time,this.listQuery.end_time,this.listQuery.limit,this.listQuery.page).then(response=>{
223 225
          if(response.data.state === 1){
224 226
            var patientInfo = response.data.data.patientInfo
225
-          
227
+           console.log("patientInfo",patientInfo)
226 228
 
227 229
            var total = response.data.data.total
228 230
         
229 231
            this.total = total
230 232
           var list = response.data.data.list
231
-       
233
+          console.log("counts",list)
232 234
           var dtd = []
233 235
           for(let i=0;i<list.length;i++){
234 236
               for(let j=0;j<this.tableName.length;j++){
@@ -261,7 +263,7 @@ export default {
261 263
               }
262 264
               this.tableData.push({ name: key, data: dd[key]});
263 265
             }
264
-       
266
+            console.log("表哥",this.tableData)
265 267
             let projectArr = []
266 268
           
267 269
             this.newArr.map(item => {

+ 18 - 14
src/xt_pages/qcd/treatmentControlAnalysis/components/CheckPersonal.vue Dosyayı Görüntüle

@@ -60,6 +60,7 @@
60 60
           :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
61 61
           highlight-current-row
62 62
           @current-change="handleChange"
63
+          ref="tableinfo"
63 64
           >
64 65
            <el-table-column prop="dialysis_no" label="透析号" width="80">
65 66
             <template slot-scope="scope">{{scope.row.dialysis_no}}</template>
@@ -195,6 +196,7 @@ export default {
195 196
       },
196 197
       obj:[],
197 198
       patient_id:0,
199
+      patientid:0,
198 200
     };
199 201
   },
200 202
   methods: {
@@ -222,21 +224,23 @@ export default {
222 224
     },
223 225
     getCurrentOrgPatients(){
224 226
       getCurrentOrgPatients().then(response=>{
225
-         var patients = response.data.data.patients
226
-         this.patientsData = patients
227
+        var patients = response.data.data.patients
228
+        this.patientsData = patients
229
+        this.$refs.tableinfo.setCurrentRow(this.patientsData[0])
230
+        this.getInspectionTotalCount(this.patientsData[0].id)
227 231
       })
228 232
     },
229
-    getInspectionTotalCount(){
233
+    getInspectionTotalCount(id){
230 234
           this.modesData.series = []
231 235
           this.modesData.xAxis = []
232
-      getInspectionTotalCount(this.listQuery.start_time,this.listQuery.end_time).then(response=>{
236
+      getInspectionTotalCount(this.listQuery.start_time,this.listQuery.end_time,id).then(response=>{
233 237
           if(response.data.state === 1){
234 238
             var Inspection = response.data.data.Inspection
235 239
      
236 240
             this.tableData = Inspection
237 241
           
238 242
             var counts = response.data.data.counts
239
-         
243
+           
240 244
             var arr = []
241 245
             for(let i=0;i<Inspection.length;i++){
242 246
                for(let j=0;j<counts.length;j++){
@@ -278,7 +282,6 @@ export default {
278 282
             res.map(item => {
279 283
               this.modesData.series.push(parseInt(item.Count));
280 284
             })
281
-             console.log("this=====",this.tableData)
282 285
             for (const key in this.tableData) {
283 286
               this.modesData.xAxis.push(this.tableData[key].project_name);
284 287
                let time = new Date(this.listQuery.end_time) - new Date(this.listQuery.start_time)
@@ -294,12 +297,13 @@ export default {
294 297
 
295 298
     //获取单个病人数据
296 299
     handleChange(val){
300
+      this.patientid = val.id
297 301
       this.modesData.series = []
298 302
       this.modesData.xAxis = []
299
-       getInspectionDetailById(val.id,this.listQuery.start_time,this.listQuery.end_time).then(response=>{
303
+     getInspectionDetailById(val.id,this.listQuery.start_time,this.listQuery.end_time).then(response=>{
300 304
           if(response.data.state === 1){
301 305
             var patientdetail = response.data.data.patientdetail
302
-            console.log("patientdetail",patientdetail)
306
+            // console.log("patientdetail",patientdetail)
303 307
             var arr=[]
304 308
             for(let i=0;i<this.tableData.length;i++){
305 309
               for(let j=0;j<patientdetail.length;j++){
@@ -311,8 +315,8 @@ export default {
311 315
             
312 316
            let time = new Date(this.listQuery.end_time) - new Date(this.listQuery.start_time)
313 317
            let day = parseInt(time / (1000 * 60 * 60 * 24))
314
-           console.log("arr",arr)
315
-           console.log("tabledata",this.tableData)
318
+          //  console.log("arr",arr)
319
+          //  console.log("tabledata",this.tableData)
316 320
             for (const key in this.tableData) {
317 321
               this.modesData.xAxis.push(this.tableData[key].project_name);
318 322
               if (key in arr) {
@@ -337,7 +341,7 @@ export default {
337 341
       getSearchPatientInfo(this.patient_id,this.listQuery.start_time,this.listQuery.end_time).then(response=>{
338 342
          if(response.data.state  === 1){
339 343
            var PatientsInfo = response.data.data.PatientsInfo
340
-           console.log("patientsInfo",PatientsInfo)
344
+          //  console.log("patientsInfo",PatientsInfo)
341 345
            var arr = []
342 346
            for(let i=0;i<this.tableData.length;i++){
343 347
              for(let j=0;j<PatientsInfo.length;j++){
@@ -396,7 +400,7 @@ export default {
396 400
         PostSearch(key).then(response => {
397 401
           if (response.data.state == 1) {
398 402
              searchArray = response.data.data.patient
399
-             console.log("searchArray",searchArray)
403
+            //  console.log("searchArray",searchArray)
400 404
             cb(searchArray)
401 405
           } else {
402 406
             cb([])
@@ -434,8 +438,8 @@ export default {
434 438
 
435 439
    //获取该机构下的所有患者
436 440
      this.getCurrentOrgPatients()
437
-   //获取检验检查项目
438
-    this.getInspectionTotalCount()
441
+  //  //获取检验检查项目
442
+  //   this.getInspectionTotalCount()
439 443
   }
440 444
 };
441 445
 </script>

+ 24 - 3
src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue Dosyayı Görüntüle

@@ -88,7 +88,7 @@
88 88
            </el-table-column>
89 89
           <el-table-column prop="address" label="透析总次数" width="140">
90 90
             <template slot-scope="scope">
91
-                <span>{{ scope.row.total_dialysis + scope.row.user_sys_before_count }}</span>
91
+                <span>{{ getDialysisCount(scope.row.patient_id)}}</span>
92 92
               </template>
93 93
           </el-table-column>
94 94
         </el-table>
@@ -124,6 +124,7 @@ export default {
124 124
         page: 1,
125 125
         limit: 20
126 126
       },
127
+      DialysisCount:[],
127 128
       total:0,
128 129
       options: [],
129 130
       value: "请选项",
@@ -195,8 +196,19 @@ export default {
195 196
            console.log("totallist",totallist)
196 197
           this.total = totallist  
197 198
           var prescriptionList = response.data.data.prescriptionList
199
+          console.log("prescriptionList",prescriptionList)
198 200
           this.getModeId(prescriptionList)
199
-          
201
+          var count = response.data.data.count
202
+          console.log("count",count)
203
+          this.DialysisCount = count
204
+          // for(let i=0;i<count.length;i++){
205
+          //  for(let j=0;j<prescriptionList.length;j++){
206
+          //    if(count[i].patient_id == prescriptionList[j].patient_id){
207
+          //         prescriptionList[j].count = count[i].Count
208
+          //    }
209
+          //  }
210
+          // }
211
+          // console.log("prescriptionList",prescriptionList)
200 212
           let dataInfo = {}
201 213
           list.forEach((item, index) => {
202 214
             let { patient_id } = item
@@ -213,7 +225,7 @@ export default {
213 225
             }
214 226
           })
215 227
           let list = Object.values(dataInfo)
216
-          //console.log("arr",list)    
228
+          console.log("arr",list)    
217 229
           list.map(item => {
218 230
             for (let i = 0; i < prescriptionList.length; i++) {
219 231
               if (item.patient_id === prescriptionList[i].patient_id) {
@@ -239,6 +251,15 @@ export default {
239 251
 				return age;
240 252
 			}
241 253
     },
254
+    getDialysisCount(id){
255
+       var count = 0
256
+       for(let i=0;i<this.DialysisCount.length;i++){
257
+           if(id == this.DialysisCount[i].patient_id){
258
+              count = this.DialysisCount[i].Count
259
+           }
260
+       }
261
+       return count
262
+    },
242 263
     onSearch(){
243 264
       if(this.listQuery.search == "" || this.listQuery.search == null){
244 265
          this.getDialysisList()