Sfoglia il codice sorgente

Merge branch '20200710_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20200710_pc_vue_new_branch

csx 4 anni fa
parent
commit
4dc90e8502

+ 30 - 20
src/xt_pages/qcd/basicInformationAnalysis.vue Vedi File

@@ -6,7 +6,7 @@
6 6
     <div class="app-container">
7 7
       <div class="cell clearfix">
8 8
         <label class="title">
9
-          <span class="name">转归状态</span> :
9
+          <span class="name">日期查询</span> :
10 10
         </label>
11 11
         <div class="time">
12 12
           <ul class>
@@ -18,6 +18,9 @@
18 18
             >{{ item.label }}</li>
19 19
           </ul>
20 20
         </div>
21
+        <label class="title">
22
+             <span class="name">日期查询</span> :
23
+        </label>
21 24
         <el-date-picker
22 25
           v-model="listQuery.start_time"
23 26
           prefix-icon="el-icon-date"
@@ -297,10 +300,10 @@ export default {
297 300
       stateType: 0,
298 301
       month: [
299 302
         { value: 0, label: "本月", state: 0 },
300
-        { value: 1, label: "近三月", state: 1 },
303
+        { value: 1, label: "近三月", state: 1 },
301 304
         { value: 2, label: "近半年", state: 2 },
302
-        { value: 3, label: "近一年", state: 3 },
303
-        { value:4,label:"自定义",state:4}
305
+        { value: 3, label: "近一年", state: 3 }
306
+        // { value:4,label:"自定义",state:4}
304 307
       ],
305 308
       modetype:[],
306 309
       total:0,
@@ -340,11 +343,11 @@ export default {
340 343
          //统计透析总量
341 344
         this.getDialysisModeType(val,this.listQuery.end_time)
342 345
         //统计转归状态
343
-        this.getTotalLapseCount(timeStar,timeEnd)
346
+        this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time)
344 347
         //统计男女比例
345 348
         this.getTotalSexCount(timeStar,timeEnd)
346 349
         //统计传染病
347
-        this.getTotalInfectiousCount(timeStar,timeEnd)
350
+        this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time)
348 351
         //统计年龄
349 352
         this.getTotalAgeCount(timeStar,timeEnd)
350 353
         //统计透析年龄
@@ -364,11 +367,11 @@ export default {
364 367
           //统计透析总量
365 368
         this.getDialysisModeType(this.listQuery.start_time,val)
366 369
         //统计转归状态
367
-        this.getTotalLapseCount(timeStar,timeEnd)
370
+        this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time)
368 371
         //统计男女比例
369 372
         this.getTotalSexCount(timeStar,timeEnd)
370 373
         //统计传染病
371
-        this.getTotalInfectiousCount(timeStar,timeEnd)
374
+        this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time)
372 375
         //统计年龄
373 376
         this.getTotalAgeCount(timeStar,timeEnd)
374 377
         //统计透析年龄
@@ -380,9 +383,9 @@ export default {
380 383
       this.listQuery.state = state;
381 384
       //获取本月当前机构的透析模式
382 385
       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
383
-      console.log("开始时间",startDate)
386
+      // console.log("开始时间",startDate)
384 387
       const endDate = moment(new Date()).format('YYYY-MM-DD')
385
-      console.log("结束时间",endDate)
388
+      // console.log("结束时间",endDate)
386 389
       var now = new Date()
387 390
       var nowMonth = now.getMonth(); //当前月
388 391
       var nowYear = now.getFullYear(); //当前年
@@ -411,6 +414,8 @@ export default {
411 414
       }
412 415
       //近三月
413 416
       if(state == 1){
417
+        this.listQuery.start_time = ""
418
+        this.listQuery.end_time = ""
414 419
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
415 420
         // console.log("三月前",startDate)
416 421
         var startunitx = Date.parse(startDate)/1000
@@ -435,6 +440,8 @@ export default {
435 440
 
436 441
      //近半年
437 442
      if(state == 2){
443
+        this.listQuery.start_time = ""
444
+        this.listQuery.end_time = ""
438 445
         const startDate = moment().subtract('month', 6).format('YYYY-MM-DD')
439 446
         // console.log("6月前",startDate)
440 447
         var startunitx = Date.parse(startDate)/1000
@@ -459,6 +466,8 @@ export default {
459 466
 
460 467
      //近一年
461 468
      if(state == 3){
469
+        this.listQuery.start_time = ""
470
+        this.listQuery.end_time = ""
462 471
         const startDate = moment().subtract('month', 12).format('YYYY-MM-DD')
463 472
         // console.log("6月前",startDate)
464 473
         var startunitx = Date.parse(startDate)/1000
@@ -502,11 +511,12 @@ export default {
502 511
       getTotalLapseCount(startDate,endDate).then(response=>{
503 512
          if(response.data.state == 1){
504 513
           var patients =  response.data.data.patients
514
+          console.log('patients',patients)
505 515
           this.rollOutTotal = patients.length
506
-          // console.log("留治病人长度",patients.length)
516
+          console.log("留治病人长度",patients.length)
507 517
           var patienttwo = response.data.data.patienttwo
508 518
           this.outTotal = patienttwo.length
509
-            // console.log("转出长度", this.outTotal)
519
+          console.log("转出长度", this.outTotal)
510 520
           var count = response.data.data.count
511 521
           this.patientCount = count
512 522
          }
@@ -534,7 +544,7 @@ export default {
534 544
              this.InfectiousTotal = response.data.data.total
535 545
             //  console.log("===",this.InfectiousTotal)
536 546
              var infectious = response.data.data.count
537
-            //  console.log("infectious",infectious)
547
+          //  console.log("infectious",infectious)
538 548
              var otherTotal = response.data.data.otherTotal
539 549
             //  console.log("otherTotal",otherTotal)
540 550
              this.otherTotal = otherTotal
@@ -595,7 +605,7 @@ export default {
595 605
       getTotalDialysisCount(timeStar,timeEnd).then(response=>{
596 606
          if(response.data.state == 1){
597 607
            var dataage =  response.data.data.dataage
598
-           console.log("dataage",dataage)
608
+          //  console.log("dataage",dataage)
599 609
            this.dialysisAge = dataage
600 610
 
601 611
          }
@@ -605,24 +615,24 @@ export default {
605 615
   created() {
606 616
         //获取本月当前机构的透析模式
607 617
       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
608
-      // console.log("开始时间",startDate)
618
+       console.log("开始时间",startDate)
609 619
       const endDate = moment(new Date()).format('YYYY-MM-DD')
610
-     // console.log("结束时间",endDate)
620
+     console.log("结束时间",endDate)
611 621
       var now = new Date()
612 622
       var nowMonth = now.getMonth(); //当前月
613 623
       var nowYear = now.getFullYear(); //当前年
614 624
       //本月的开始时间
615 625
       var monthStartDate = new Date(nowYear, nowMonth, 1);
616 626
       var timeStar=Date.parse(monthStartDate)/1000;//s
617
-     // console.log("本月第一天",timeStar)
627
+      console.log("本月第一天",timeStar)
618 628
       //本月的结束时间
619 629
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
620 630
       var timeEnd=Date.parse(monthEndDate)/1000-1;//s
621
-     // console.log("本月最后一天",timeEnd)
631
+      console.log("本月最后一天",timeEnd)
622 632
       //统计透析总量
623 633
       this.getDialysisModeType(startDate,endDate)
624 634
       //统计转归状态
625
-      this.getTotalLapseCount(timeStar,timeEnd)
635
+      this.getTotalLapseCount(startDate,endDate)
626 636
       //统计男女比例
627 637
       this.getTotalSexCount(timeStar,timeEnd)
628 638
       //统计传染病
@@ -641,7 +651,7 @@ export default {
641 651
   flex-wrap: wrap;
642 652
   .infoOne {
643 653
     margin-right: 30px;
644
-    margin-top: 30px;
654
+    margin-top: 20px;
645 655
     .titleBox {
646 656
       display: flex;
647 657
       align-items: center;

+ 7 - 2
src/xt_pages/qcd/checkStatistical.vue Vedi File

@@ -3,7 +3,7 @@
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5 5
     </div>
6
-    <div class="app-container">
6
+    <div class="app-container checkStatistical">
7 7
       <el-tabs v-model="tabActiveName" @tab-click="handleTabClick" style="margin-bottom:10px">
8 8
         <el-tab-pane label="质控达标统计配置" name="control"></el-tab-pane>
9 9
         <el-tab-pane label="检验检查统计配置" name="query"></el-tab-pane>
@@ -14,7 +14,7 @@
14 14
         </el-col>
15 15
       </el-row>
16 16
       <div class="configTable">
17
-        <el-table :data="checkList" border style="width: 100%">
17
+        <el-table :data="checkList" border style="width: 100%" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
18 18
           <el-table-column prop="date" label="检验检查项">
19 19
               <template slot-scope="scope">{{ scope.row.project_name }}</template>
20 20
           </el-table-column>
@@ -300,6 +300,11 @@ export default {
300 300
     text-align: center;
301 301
   }
302 302
 }
303
+.checkStatistical{
304
+  .el-tabs{
305
+    margin-bottom: 0 !important;
306
+  }
307
+}
303 308
 </style>
304 309
 
305 310
  <style rel="stylesheet/scss" lang="scss" scoped>

+ 10 - 1
src/xt_pages/qcd/indicatorControlAnalysis/analysis.vue Vedi File

@@ -55,7 +55,7 @@ export default {
55 55
       ],
56 56
       way: [
57 57
         { value: 0, label: "科室", state: 0 },
58
-        { value: 1, label: "个人", state: 1 }
58
+        { value: 1, label: "患者", state: 1 }
59 59
       ],
60 60
       wayType: 0
61 61
     };
@@ -67,3 +67,12 @@ export default {
67 67
   }
68 68
 };
69 69
 </script>
70
+
71
+<style lang="scss">
72
+.page_analysis{
73
+  .el-tabs{
74
+    margin-bottom:0 !important;
75
+  }
76
+}
77
+
78
+</style>

+ 3 - 3
src/xt_pages/qcd/indicatorControlAnalysis/components/office.vue Vedi File

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="page_office">
3 3
     <div class="cell clearfix">
4
-      <el-select v-model="query.project_id" placeholder="请选择" style="width:120px;margin-right:20px"
4
+      <el-select v-model="query.project_id" placeholder="请选择" style="width:120px;margin-right:10px"
5 5
                  @change="changeProject">
6 6
         <el-option
7 7
           v-for="item in project_columns"
@@ -14,7 +14,7 @@
14 14
       <el-select
15 15
         v-model="query.item_id"
16 16
         placeholder="请选择"
17
-        style="width:120px;margin-right:20px"
17
+        style="width:120px;margin-right:10px"
18 18
         @change="changeItem"
19 19
       >
20 20
         <el-option
@@ -25,7 +25,7 @@
25 25
         ></el-option>
26 26
       </el-select>
27 27
 
28
-      <el-select v-model="query.range_value" placeholder="请选择" style="width:120px;margin-right:20px"
28
+      <el-select v-model="query.range_value" placeholder="请选择" style="width:120px;margin-right:10px"
29 29
                  @change="changeRangeValue">
30 30
         <el-option
31 31
           v-for="item in range_value_columns"

+ 22 - 16
src/xt_pages/qcd/officesControlAnalysis/project.vue Vedi File

@@ -9,7 +9,7 @@
9 9
         <el-tab-pane label="按项目分组" name="second"></el-tab-pane>
10 10
       </el-tabs>
11 11
       <div class="cell clearfix">
12
-        <el-select v-model="lapseto" placeholder="请选择" style="width:120px;margin-right:20px" @change="changeOptions">
12
+        <el-select v-model="lapseto" placeholder="请选择" style="width:120px;margin-right:10px" @change="changeOptions">
13 13
           <el-option
14 14
             v-for="item in options"
15 15
             :key="item.value"
@@ -17,7 +17,7 @@
17 17
             :value="item.value"
18 18
           ></el-option>
19 19
         </el-select>
20
-        <el-select v-model="type" placeholder="请选择" @change="chooseType" style="margin-right:20px">
20
+        <el-select v-model="type" placeholder="请选择" @change="chooseType" style="margin-right:10px">
21 21
           <el-option
22 22
             v-for="item in options1"
23 23
             :key="item.value"
@@ -25,7 +25,7 @@
25 25
             :value="item.value"
26 26
           ></el-option>
27 27
         </el-select>
28
-        <el-select v-model="mode_type" placeholder="请选择" style="width:120px;margin-right:20px" @change="handleModeType">
28
+        <el-select v-model="mode_type" placeholder="请选择" style="width:120px;margin-right:0px" @change="handleModeType">
29 29
           <el-option
30 30
             v-for="item in normdata"
31 31
             :key="item.inspection_minor"
@@ -38,6 +38,10 @@
38 38
       <div class="cell clearfix">
39 39
         <p class="chartTitle">统计图</p>
40 40
       </div>
41
+      <div class="cell clearfix">
42
+        <p class="point"></p>
43
+        <p class="pointTitle">达标率</p>
44
+      </div>
41 45
       <div>
42 46
         <line-chart :options="chart"></line-chart>
43 47
       </div>
@@ -111,14 +115,14 @@ export default {
111 115
       mode_type:"",
112 116
       range_type:"",
113 117
       chart: {
114
-        title: {
115
-          text: "ECharts 入门示例"
116
-        },
118
+        // title: {
119
+        //   text: "ECharts 入门示例"
120
+        // },
117 121
         tooltip: {},
118
-        legend: {
119
-          data: ["次数"],
120
-          left: 0
121
-        },
122
+        // legend: {
123
+        //   data: ["次数"],
124
+        //   left: 0
125
+        // },
122 126
         xAxis: {
123 127
           data: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
124 128
         },
@@ -190,7 +194,7 @@ export default {
190 194
               emphasis: {
191 195
                 shadowBlur: 10,
192 196
                 shadowOffsetX: 0,
193
-                shadowColor: "rgba(0, 0, 0, 0.5)"
197
+                shadowColor: "rgba(0, 0, 0, 0.2)"
194 198
               }
195 199
             }
196 200
           }
@@ -277,7 +281,7 @@ export default {
277 281
         //第四季度
278 282
          const four_qurter_start = moment().month(9).startOf('month').format("YYYY-MM-DD")
279 283
          const four_qurter_end = moment().month(11).endOf('month').format("YYYY-MM-DD")
280
-         console.log("this.modetype",this.mode_type)
284
+        //  console.log("this.modetype",this.mode_type)
281 285
          for(let i=0;i<this.normdata.length;i++){
282 286
             if(this.normdata[i].inspection_minor == this.mode_type){
283 287
                this.range_type = this.normdata[i].range_type
@@ -302,9 +306,9 @@ export default {
302 306
       getProjectList(params).then(response=>{
303 307
         if(response.data.state === 1){
304 308
           var list = response.data.data.list
305
-          console.log("list",list)
309
+           console.log("list",list)
306 310
           var standList =  response.data.data.standList
307
-          console.log("standlist",standList)
311
+           console.log("standlist",standList)
308 312
           var newArr = [
309 313
             {Total:"第一季度",Count:1,NoCount: 0},
310 314
             {Total:"第二季度",Count:1,NoCount: 0},
@@ -373,7 +377,7 @@ export default {
373 377
              }
374 378
           }
375 379
         
376
-      
380
+         console.log("arrfive",arrFive)
377 381
         
378 382
         for(const key in arrFive){
379 383
             this.modesData.xAxis.push(arrFive[key].Total);
@@ -383,6 +387,7 @@ export default {
383 387
 
384 388
           this.chart.series[0].data = this.modesData.series
385 389
           this.chart.xAxis.data = this.modesData.xAxis
390
+          console.log("表格",this.modesData)
386 391
        
387 392
         }
388 393
       })
@@ -569,7 +574,7 @@ export default {
569 574
        getMonthProjectList(params).then(response=>{
570 575
         if(response.data.state === 1){
571 576
             var monthlist = response.data.data.monthlist
572
-            console.log("monthlist",monthlist)
577
+            // console.log("monthlist",monthlist)
573 578
             var newArr = [
574 579
               {Total:"一月",Count:1,NoCount: 0},
575 580
               {Total:"二月",Count:1,NoCount: 0},
@@ -763,5 +768,6 @@ export default {
763 768
 }
764 769
 .newDisplay {
765 770
   flex-wrap: wrap;
771
+  padding-left: 20px;
766 772
 }
767 773
 </style>

+ 21 - 16
src/xt_pages/qcd/officesControlAnalysis/time.vue Vedi File

@@ -9,7 +9,7 @@
9 9
         <el-tab-pane label="按项目分组" name="second"></el-tab-pane>
10 10
       </el-tabs>
11 11
       <div class="cell clearfix">
12
-        <el-select v-model="lapseto" placeholder="请选择" style="width:120px;margin-right:20px" @change="changeLapseto">
12
+        <el-select v-model="lapseto" placeholder="请选择" style="width:120px;margin-right:10px" @change="changeLapseto">
13 13
           <el-option
14 14
             v-for="item in options"
15 15
             :key="item.value"
@@ -17,7 +17,7 @@
17 17
             :value="item.value"
18 18
           ></el-option>
19 19
         </el-select>
20
-        <el-select v-model="type" placeholder="请选择" @change="chooseType" style="margin-right:20px">
20
+        <el-select v-model="type" placeholder="请选择" @change="chooseType" style="margin-right:10px">
21 21
           <el-option
22 22
             v-for="item in options1"
23 23
             :key="item.value"
@@ -83,6 +83,10 @@
83 83
       <div class="cell clearfix">
84 84
         <p class="chartTitle">统计图</p>
85 85
       </div>
86
+      <div class="cell clearfix">
87
+        <p class="point"></p>
88
+        <p class="pointTitle">达标率</p>
89
+      </div>
86 90
       <div>
87 91
         <line-chart :options="chart"></line-chart>
88 92
       </div>
@@ -196,14 +200,14 @@ export default {
196 200
       ],
197 201
       monthType: 0,
198 202
       chart: {
199
-        title: {
200
-          text: "ECharts 入门示例"
201
-        },
203
+        // title: {
204
+        //   text: "ECharts 入门示例"
205
+        // },
202 206
         tooltip: {},
203
-        legend: {
204
-          data: ["次数"],
205
-          left: 0
206
-        },
207
+        // legend: {
208
+        //   data: ["达标率"],
209
+        //   left: 0
210
+        // },
207 211
         xAxis: {
208 212
           data: []
209 213
         },
@@ -215,7 +219,7 @@ export default {
215 219
         },
216 220
         series: [
217 221
           {
218
-            name: "次数",
222
+            name: "达标率",
219 223
             type: "bar",
220 224
             data: [],
221 225
             barWidth: 30,
@@ -265,7 +269,7 @@ export default {
265 269
               emphasis: {
266 270
                 shadowBlur: 10,
267 271
                 shadowOffsetX: 0,
268
-                shadowColor: "rgba(0, 0, 0, 0.5)"
272
+                shadowColor: "rgba(0, 0, 0, 0.2)"
269 273
               }
270 274
             }
271 275
           }
@@ -478,7 +482,7 @@ export default {
478 482
       getNormData().then(response=>{
479 483
          if(response.data.state === 1){
480 484
            var normdata = response.data.data.normdata
481
-           console.log("指标正常范围",normdata)
485
+          //  console.log("指标正常范围",normdata)
482 486
            this.normData = normdata
483 487
            this.getlist()
484 488
          }
@@ -591,9 +595,9 @@ export default {
591 595
       getFirstQuarter(params).then(response=>{
592 596
          if(response.data.state === 1){
593 597
             var count =  response.data.data.count
594
-           console.log("count",count) 
598
+          //  console.log("count",count) 
595 599
             var countwo = response.data.data.countwo 
596
-           console.log("countwo",countwo)
600
+          //  console.log("countwo",countwo)
597 601
             countwo.map(item=>{
598 602
               count.push(item)
599 603
             })
@@ -607,7 +611,7 @@ export default {
607 611
                 }
608 612
               }
609 613
             }
610
-           console.log("arr",arr )
614
+          //  console.log("arr",arr )
611 615
            
612 616
             var arrtwo =  this.arrayDate(count,this.normData)
613 617
             for(let i=0;i<arrtwo.length;i++){
@@ -619,7 +623,7 @@ export default {
619 623
             arrtwo.map(item => {
620 624
               arr.push(item)
621 625
             })
622
-            console.log("arr",arr)
626
+            // console.log("arr",arr)
623 627
              arr.sort(this.compare('sort'))  
624 628
             // arr.sort((a,b)=>{
625 629
             //     return projectArr.indexOf(a.ProjectName)-projectArr.indexOf(b.ProjectName);
@@ -721,5 +725,6 @@ export default {
721 725
 }
722 726
 .newDisplay {
723 727
   flex-wrap: wrap;
728
+  padding-left: 20px;
724 729
 }
725 730
 </style>

+ 63 - 12
src/xt_pages/qcd/patientComplianceDetails.vue Vedi File

@@ -11,15 +11,34 @@
11 11
           </el-form>
12 12
         </div>
13 13
         <el-container>
14
-          <div style="width:150px">
14
+          <div style="width:160px">
15
+            <el-form :inline="true" :model="listQuery">
16
+              <el-form-item label>
17
+                <el-autocomplete
18
+                  class="checkSearch"
19
+                  popper-class="my-autocomplete"
20
+                  v-model.trim="listQuery.search"
21
+                  :fetch-suggestions="querySearchAsync"
22
+                  :trigger-on-focus="false"
23
+                  placeholder="病人透析号/姓名"
24
+                  @select="handleSelect"
25
+                >
26
+                  <i class="el-icon-search el-input__icon" slot="suffix"></i>
27
+                  <template slot-scope="{ item }">
28
+                    <div class="name">{{ item.name }}</div>
29
+                  </template>
30
+                </el-autocomplete>
31
+
32
+              </el-form-item>
33
+            </el-form>
15 34
             <div class="tableTitle">患者列表</div>
16
-            <el-table :data="patientsData" border style="width: 100%;" height="500"  highlight-current-row @current-change="handleChange">
17
-              <el-table-column prop="name" label="透析号" width="80">
35
+            <el-table :data="patientsData" border style="width: 100%;" height="500"  highlight-current-row @current-change="handleChange" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
36
+              <el-table-column prop="name" label="透析号" width="70">
18 37
                  <template slot-scope="scope">
19 38
                     {{scope.row.dialysis_no}}
20 39
                  </template>
21 40
               </el-table-column>
22
-              <el-table-column prop="date" label="透析号" width="70">
41
+              <el-table-column prop="date" label="姓名" width="90">
23 42
                  <template slot-scope="scope">
24 43
                     {{scope.row.name }}
25 44
                  </template>
@@ -89,6 +108,10 @@
89 108
               </div>
90 109
             </div>
91 110
             <div class="tableTitle">指标趋势</div>
111
+            <div class="cell clearfix">
112
+              <p class="point"></p>
113
+              <p class="pointTitle">达标率</p>
114
+            </div>
92 115
             <div>
93 116
               <line-chart :options="chart"></line-chart>
94 117
             </div>
@@ -131,7 +154,7 @@ export default {
131 154
       item_id:0,
132 155
       month: [
133 156
         { value: 0, label: "本月", state: 0 },
134
-        { value: 1, label: "近三月", state: 1 },
157
+        { value: 1, label: "近三月", state: 1 },
135 158
         { value: 2, label: "近半年", state: 2 },
136 159
         { value: 3, label: "近一年", state: 3 }
137 160
       ],
@@ -147,17 +170,17 @@ export default {
147 170
       },
148 171
       patientid:0,
149 172
       monthType: 0,
150
-      arr: ["钙", "磷", "钙萨达撒所多", "磷", "钙", "磷", "钙", "磷"],
173
+      arr: [],
151 174
       quality: 0,
152 175
       chart: {
153 176
         title: {
154 177
           text: "ECharts 入门示例"
155 178
         },
156 179
         tooltip: {},
157
-        legend: {
158
-          data: ["次数"],
159
-          left: 0
160
-        },
180
+        // legend: {
181
+        //   data: ["次数"],
182
+        //   left: 0
183
+        // },
161 184
         xAxis: {
162 185
           data: []
163 186
         },
@@ -212,6 +235,9 @@ export default {
212 235
                     { offset: 1, color: colorList[index][1] }
213 236
                   ]);
214 237
                 },
238
+                lineStyle:{ 
239
+                  color:'#409eff' //改变折线颜色
240
+                }, 
215 241
                 barBorderRadius: [5, 5, 0, 0] //柱状角成椭圆形
216 242
               },
217 243
 
@@ -233,7 +259,9 @@ export default {
233 259
     chooseMonth(month) {
234 260
       //一月
235 261
       if(month == 0){
236
-         this.monthActive = 0
262
+        this.listQuery.start_time = ""
263
+        this.listQuery.end_time =""
264
+        this.monthActive = 0
237 265
         const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
238 266
         const endDate = moment(new Date()).format('YYYY-MM-DD')
239 267
         var now = new Date()
@@ -251,6 +279,8 @@ export default {
251 279
 
252 280
       //近三月
253 281
       if(month == 1){
282
+         this.listQuery.start_time = ""
283
+         this.listQuery.end_time =""
254 284
          this.monthActive = 1
255 285
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
256 286
     
@@ -266,6 +296,8 @@ export default {
266 296
 
267 297
        //近半年
268 298
       if(month == 2){
299
+        this.listQuery.start_time = ""
300
+        this.listQuery.end_time =""
269 301
         this.monthActive = 2
270 302
         const startDate = moment().subtract('month', 6).format('YYYY-MM-DD')
271 303
         
@@ -277,6 +309,8 @@ export default {
277 309
 
278 310
       //近一年
279 311
       if(month == 3){
312
+        this.listQuery.start_time = ""
313
+        this.listQuery.end_time =""
280 314
         this.monthActive = 3
281 315
         const startDate = moment().subtract('month', 12).format('YYYY-MM-DD')
282 316
         this.startime = Date.parse(startDate)/1000
@@ -356,7 +390,6 @@ export default {
356 390
       })
357 391
     },
358 392
     getlist(){
359
-        console.log("进来没有")
360 393
         this.modesData.series = []
361 394
         this.modesData.xAxis = []
362 395
         const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
@@ -461,6 +494,20 @@ export default {
461 494
 </script>
462 495
 
463 496
 <style lang="scss" scoped>
497
+.point {
498
+  width: 13px;
499
+  height: 13px;
500
+  background: linear-gradient(
501
+    0deg,
502
+    rgba(169, 224, 243, 1),
503
+    rgba(159, 189, 252, 1)
504
+  );
505
+  border-radius: 7px;
506
+  margin-right: 8px;
507
+}
508
+.pointTitle {
509
+  font-size: 13px;
510
+}
464 511
 .containerRight {
465 512
   padding-left: 10px;
466 513
 }
@@ -475,6 +522,7 @@ export default {
475 522
   display: flex;
476 523
   flex-wrap: nowrap;
477 524
   min-width: 1800px;
525
+  padding-bottom: 10px;
478 526
   .qualityOne {
479 527
     width: 4.5rem;
480 528
     height: 4.5rem;
@@ -536,5 +584,8 @@ export default {
536 584
   ::-webkit-scrollbar{
537 585
     height: 15px !important;
538 586
   }
587
+  .el-form--inline .el-form-item{
588
+    margin-right:0;
589
+  }
539 590
 }
540 591
 </style>

+ 45 - 24
src/xt_pages/qcd/patientControlAnalysis.vue Vedi File

@@ -14,7 +14,7 @@
14 14
                 v-model.trim="listQuery.search"
15 15
                 :fetch-suggestions="querySearchAsync"
16 16
                 :trigger-on-focus="false"
17
-                placeholder="输入病人透析号/姓名"
17
+                placeholder="病人透析号/姓名"
18 18
                 @select="handleSelect"
19 19
               >
20 20
                 <i class="el-icon-search el-input__icon" slot="suffix"></i>
@@ -67,6 +67,10 @@
67 67
         <div class="cell clearfix">
68 68
           <p class="chartTitle">统计图</p>
69 69
         </div>
70
+        <div class="cell clearfix">
71
+          <p class="point"></p>
72
+          <p class="pointTitle">指标正常范围值</p>
73
+        </div>
70 74
         <div>
71 75
           <line-chart :options="chart"></line-chart>
72 76
         </div>
@@ -110,7 +114,7 @@
110 114
         </el-table-column>
111 115
             <el-table-column fixed="right" label="操作" width="100">
112 116
               <template slot-scope="scope">
113
-                <el-button @click="handleClick(scope.row.patient_id,scope.row.inspect_date)" type="text" size="small">查看</el-button>
117
+                <el-button @click="handleClick(scope.row.patient_id,scope.row.inspect_date)" style="font-size:14px;" type="text" size="small">查看</el-button>
114 118
               </template>
115 119
             </el-table-column>
116 120
           </el-table>
@@ -184,16 +188,16 @@ export default {
184 188
         series: []
185 189
       },
186 190
       chart: {
187
-        title: {
188
-          text: "ECharts 入门示例"
189
-        },
191
+        // title: {
192
+        //   text: "ECharts 入门示例"
193
+        // },
190 194
         tooltip: {},
191
-        legend: {
192
-          data: ["次数"],
193
-          left: 0
194
-        },
195
+        // legend: {
196
+        //   data: ["次数"],
197
+        //   left: 0
198
+        // },
195 199
         xAxis: {
196
-          data: ["达标", "未达标"]
200
+          data: []
197 201
         },
198 202
         yAxis: {
199 203
           axisLabel: {
@@ -205,7 +209,7 @@ export default {
205 209
           {
206 210
             name: "次数",
207 211
             type: "bar",
208
-            data: ["78.57", "50"],
212
+            data: [],
209 213
             barWidth: 30,
210 214
             label: {
211 215
               normal: {
@@ -256,7 +260,7 @@ export default {
256 260
               emphasis: {
257 261
                 shadowBlur: 10,
258 262
                 shadowOffsetX: 0,
259
-                shadowColor: "rgba(0, 0, 0, 0.5)"
263
+                shadowColor: "rgba(0, 0, 0, 0.2)"
260 264
               }
261 265
             }
262 266
           }
@@ -365,7 +369,7 @@ export default {
365 369
        getPatientContorlAnalysis(params).then(response=>{
366 370
            if(response.data.state == 1){
367 371
               var control = response.data.data.patientcontorDetail
368
-             console.log("control",control)
372
+            //  console.log("control",control)
369 373
               let dataInfo = {}
370 374
               control.forEach((item, index) => {
371 375
                 let { inspect_date } = item
@@ -381,7 +385,7 @@ export default {
381 385
                 }
382 386
               })
383 387
               let list = Object.values(dataInfo)
384
-              console.log("list",list)
388
+              // console.log("list",list)
385 389
               list.map(item => {
386 390
                 for (let i = 0; i < control.length; i++) {
387 391
                   if (item.inspect_date == control[i].inspect_date && item.patient_id == control[i].patient_id) {
@@ -436,7 +440,6 @@ export default {
436 440
                   }
437 441
                   this.tableData.push({ name: key, data: dd[key]})
438 442
                 }
439
-                console.log("表哥===========",this.tableData)
440 443
               let dataInfotwo = {}
441 444
               control.forEach((item, index) => {
442 445
                 let { inspect_date } = item
@@ -487,17 +490,17 @@ export default {
487 490
       getPatientsControl(this.lapstor,this.listQuery.start_time,this.listQuery.end_time,this.listQuery.page,this.listQuery.limit).then(response=>{
488 491
          if(response.data.state == 1){
489 492
            var patients = response.data.data.patients
490
-            // console.log("patients",patients)
493
+     
491 494
             this.tablePatients = patients
492 495
             var total = response.data.data.total
493 496
             this.total = total
494 497
             var control = response.data.data.control
495 498
            var infectiousControl =  response.data.data.infectiousControl
496
-          //  console.log("infectiousContrl",infectiousControl)
499
+        
497 500
            infectiousControl.map(item=>{
498 501
              control.push(item)
499 502
            })
500
-            // console.log("control",control)
503
+       
501 504
             var newArr = []
502 505
             // 分页
503 506
             for (let i = 0; i < control.length; i++) {
@@ -507,7 +510,7 @@ export default {
507 510
                 }
508 511
               }
509 512
             }
510
-          // console.log("newArr",newArr)
513
+       
511 514
           let dataInfo = {}
512 515
           newArr.forEach((item, index) => {
513 516
             let { inspect_date } = item
@@ -531,14 +534,14 @@ export default {
531 534
               }
532 535
             }
533 536
           })
534
-        //  console.log("list",list)
537
+ 
535 538
          var newarrtwo = []
536 539
           list.map(item => {
537 540
             item.child.map(it => {
538 541
               newarrtwo.push(it)
539 542
             })
540 543
           })
541
-        //  console.log("newarrtwo",newarrtwo)
544
+ 
542 545
           // 配置的才显示
543 546
          var arrthree = []
544 547
           for (let i = 0; i < newarrtwo.length; i++) {
@@ -554,7 +557,7 @@ export default {
554 557
             item.item_name = ''
555 558
             arrthree.push(item)
556 559
           })
557
-          // console.log('arrthree', arrthree)
560
+   
558 561
           var dd = {}
559 562
            for (const index in arrthree) {
560 563
              if (!(arrthree[index].inspect_date in dd)) {
@@ -580,7 +583,7 @@ export default {
580 583
             }
581 584
           })
582 585
         let listtwo = Object.values(dataInfotwo)
583
-        // console.log("listtwo",listtwo)
586
+       
584 587
           for (const key in dd) {
585 588
             for (const mkey in this.ObjectData) {
586 589
               if (!(this.ObjectData[mkey].item_name in dd[key])) {
@@ -612,7 +615,6 @@ export default {
612 615
                }
613 616
              }
614 617
           }
615
-        //  console.log("表哥123",this.tableData)
616 618
          }
617 619
       })
618 620
     },
@@ -819,6 +821,25 @@ export default {
819 821
   .pointTitle {
820 822
     font-size: 13px;
821 823
   }
824
+  .chartTitle {
825
+    font-size: 16px;
826
+    font-weight: bold;
827
+    color: #000000;
828
+  }
829
+  .point {
830
+    width: 13px;
831
+    height: 13px;
832
+    background: linear-gradient(
833
+      0deg,
834
+      rgba(169, 224, 243, 1),
835
+      rgba(159, 189, 252, 1)
836
+    );
837
+    border-radius: 7px;
838
+    margin-right: 8px;
839
+  }
840
+  .pointTitle {
841
+    font-size: 13px;
842
+  }
822 843
 }
823 844
 
824 845
 </style>

+ 12 - 7
src/xt_pages/qcd/statisticalConfiguration.vue Vedi File

@@ -3,7 +3,7 @@
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5 5
     </div>
6
-    <div class="app-container">
6
+    <div class="app-container statisticalConfig">
7 7
       <el-tabs v-model="tabActiveName" @tab-click="handleTabClick" style="margin-bottom:10px">
8 8
         <el-tab-pane label="质控达标统计配置" name="control"></el-tab-pane>
9 9
         <el-tab-pane label="检验检查统计配置" name="query"></el-tab-pane>
@@ -14,7 +14,7 @@
14 14
         </el-col>
15 15
       </el-row>
16 16
       <div class="configTable">
17
-        <el-table :data="configuraData" border style="width: 100%">
17
+        <el-table :data="configuraData" border style="width: 100%" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
18 18
           <el-table-column prop="date" label="检验检查大项" width="180">
19 19
               <template slot-scope="scope">{{ scope.row.project_name }}</template>
20 20
           </el-table-column>
@@ -256,7 +256,7 @@ export default {
256 256
       getConfigurationDetail(id).then(response=>{
257 257
          if(response.data.state == 1){
258 258
            var configurationdetail = response.data.data.configurationdetail
259
-           console.log("详情",configurationdetail)
259
+          //  console.log("详情",configurationdetail)
260 260
            this.editform.id = configurationdetail.id
261 261
            this.editform.inspectionMajor = configurationdetail.inspection_major
262 262
            this.editform.inspectionMinor = configurationdetail.inspection_minor
@@ -290,7 +290,7 @@ export default {
290 290
       getInspectionMajor().then(response=>{
291 291
         if(response.data.state == 1){
292 292
           var inspection =  response.data.data.inspection
293
-          console.log("大项是什么",inspection)
293
+          // console.log("大项是什么",inspection)
294 294
           this.InspectionMajor = inspection
295 295
          
296 296
         }
@@ -302,7 +302,7 @@ export default {
302 302
       getInspectionMinor(id).then(response=>{
303 303
         if(response.data.state == 1){
304 304
          var inspection =  response.data.data.inspection
305
-         console.log("小项",inspection)
305
+        //  console.log("小项",inspection)
306 306
          this.InspectionMinor = inspection
307 307
         }
308 308
       })
@@ -323,7 +323,7 @@ export default {
323 323
        getInspectionRange(id).then(response=>{
324 324
          if(response.data.state == 1){
325 325
            var inspectionRange =  response.data.data.inspectionRange
326
-           console.log("inspectionRange",inspectionRange)
326
+          //  console.log("inspectionRange",inspectionRange)
327 327
            if(inspectionRange.range_type == 1){
328 328
              this.showOne = true
329 329
              this.showTwo = false
@@ -387,7 +387,7 @@ export default {
387 387
               configurationlist[i].sort = ""
388 388
             }
389 389
           }
390
-          console.log("列表",configurationlist)
390
+          // console.log("列表",configurationlist)
391 391
           this.configuraData = configurationlist
392 392
           var total = response.data.data.total
393 393
          // console.log("total",total)
@@ -507,6 +507,11 @@ export default {
507 507
     margin-left:0 !important;
508 508
   }
509 509
 }
510
+.statisticalConfig{
511
+  .el-tabs{
512
+    margin-bottom: 0 !important;
513
+  }
514
+}
510 515
 </style>
511 516
 
512 517
  <style rel="stylesheet/scss" lang="scss" scoped>

+ 5 - 4
src/xt_pages/qcd/treatmentControlAnalysis/components/CheckAll.vue Vedi File

@@ -13,6 +13,7 @@
13 13
              :trigger-on-focus="false"
14 14
              placeholder="输入病人透析号/姓名"
15 15
              @select="handleSelect"
16
+             style="width:160px;"
16 17
               >
17 18
              <i class="el-icon-search el-input__icon" slot="suffix"></i>
18 19
                <template slot-scope="{ item }">
@@ -21,7 +22,7 @@
21 22
           </el-autocomplete>
22 23
         </el-form-item>
23 24
       </el-form>
24
-      <label class="title">
25
+      <label class="title" style="text-align:left;">
25 26
         <span class="name">日期查询</span> :
26 27
       </label>
27 28
       <el-date-picker
@@ -51,16 +52,16 @@
51 52
       ></el-date-picker>
52 53
     </div>
53 54
     <el-container>
54
-      <div style="width:150px">
55
+      <div style="width:160px">
55 56
         <div class="tableTitle">患者列表</div>
56 57
         <el-table :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
57 58
         :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
58 59
          highlight-current-row
59 60
          @current-change="handleChange">
60
-           <el-table-column prop="dialysis_no" label="透析号" width="80">
61
+           <el-table-column prop="dialysis_no" label="透析号" width="70">
61 62
             <template slot-scope="scope">{{scope.row.dialysis_no}}</template>
62 63
           </el-table-column>
63
-          <el-table-column prop="name" label="姓名" width="80">
64
+          <el-table-column prop="name" label="姓名" width="90">
64 65
             <template slot-scope="scope">{{ scope.row.name }}</template>
65 66
           </el-table-column>
66 67
         </el-table>

+ 5 - 4
src/xt_pages/qcd/treatmentControlAnalysis/components/CheckPersonal.vue Vedi File

@@ -13,6 +13,7 @@
13 13
              :trigger-on-focus="false"
14 14
              placeholder="输入病人透析号/姓名"
15 15
              @select="handleSelect"
16
+              style="width:160px"
16 17
               >
17 18
              <i class="el-icon-search el-input__icon" slot="suffix"></i>
18 19
                <template slot-scope="{ item }">
@@ -21,7 +22,7 @@
21 22
           </el-autocomplete>
22 23
         </el-form-item>
23 24
       </el-form>
24
-      <label class="title">
25
+      <label class="title" style="text-align:left;">
25 26
         <span class="name">日期查询</span> :
26 27
       </label>
27 28
       <el-date-picker
@@ -53,7 +54,7 @@
53 54
       ></el-date-picker>
54 55
     </div>
55 56
     <el-container>
56
-      <div style="width:150px">
57
+      <div style="width:160px">
57 58
         <div class="tableTitle">患者列表</div>
58 59
         <el-table :data="patientsData" border style="width: 100%;" 
59 60
           height="500" :row-style="{ color: '#303133' }" 
@@ -62,10 +63,10 @@
62 63
            ref="singleTable"
63 64
           @current-change="handleChange"
64 65
           >
65
-           <el-table-column prop="dialysis_no" label="透析号" width="80">
66
+           <el-table-column prop="dialysis_no" label="透析号" width="70">
66 67
             <template slot-scope="scope">{{scope.row.dialysis_no}}</template>
67 68
           </el-table-column>
68
-          <el-table-column prop="name" label="姓名" width="80">
69
+          <el-table-column prop="name" label="姓名" width="90">
69 70
             <template slot-scope="scope">{{ scope.row.name }}</template>
70 71
           </el-table-column>
71 72
         </el-table>

+ 27 - 9
src/xt_pages/qcd/treatmentControlAnalysis/components/TimeAll.vue Vedi File

@@ -46,6 +46,10 @@
46 46
       ></el-date-picker>
47 47
     </div>
48 48
     <div class="tableTitle">统计图</div>
49
+    <div class="cell clearfix" style="margin:0;">
50
+        <p class="point"></p>
51
+        <p class="pointTitle">次</p>
52
+      </div>
49 53
     <div>
50 54
       <line-chart :options="chart"></line-chart>
51 55
     </div>
@@ -124,10 +128,10 @@ export default {
124 128
       ],
125 129
       chart: {
126 130
         tooltip: {},
127
-        legend: {
128
-          data: ["次"],
129
-          left: 0
130
-        },
131
+        // legend: {
132
+        //   data: ["次"],
133
+        //   left: 0
134
+        // },
131 135
         xAxis: {
132 136
           data: []
133 137
         },
@@ -185,11 +189,11 @@ export default {
185 189
               },
186 190
 
187 191
               //鼠标悬停时:
188
-              // emphasis: {
189
-              //   shadowBlur: 10,
190
-              //   shadowOffsetX: 0,
191
-              //   shadowColor: "rgba(0, 0, 0, 0.5)"
192
-              // }
192
+              emphasis: {
193
+                shadowBlur: 10,
194
+                shadowOffsetX: 0,
195
+                shadowColor: "rgba(0, 0, 0, 0.2)"
196
+              }
193 197
             }
194 198
           }
195 199
         ]
@@ -405,6 +409,20 @@ export default {
405 409
   font-weight: bold;
406 410
   margin-bottom: 10px;
407 411
 }
412
+.point {
413
+  width: 13px;
414
+  height: 13px;
415
+  background: linear-gradient(
416
+    0deg,
417
+    rgba(169, 224, 243, 1),
418
+    rgba(159, 189, 252, 1)
419
+  );
420
+  border-radius: 7px;
421
+  margin-right: 8px;
422
+}
423
+.pointTitle {
424
+  font-size: 13px;
425
+}
408 426
 </style>
409 427
 
410 428
 <style lang="scss">

+ 6 - 5
src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue Vedi File

@@ -11,8 +11,9 @@
11 11
              v-model.trim="listQuery.search"
12 12
              :fetch-suggestions="querySearchAsync"
13 13
              :trigger-on-focus="false"
14
-             placeholder="输入病人透析号/姓名"
14
+             placeholder="病人透析号/姓名"
15 15
              @select="handleSelect"
16
+              style="width:160px;"
16 17
               >
17 18
              <i class="el-icon-search el-input__icon" slot="suffix"></i>
18 19
                <template slot-scope="{ item }">
@@ -21,7 +22,7 @@
21 22
           </el-autocomplete>
22 23
         </el-form-item>
23 24
       </el-form>
24
-      <label class="title">
25
+      <label class="title" style="text-align:left;">
25 26
         <span class="name">日期查询</span> :
26 27
       </label>
27 28
       <el-date-picker
@@ -53,16 +54,16 @@
53 54
       ></el-date-picker>
54 55
     </div>
55 56
     <el-container>
56
-      <div style="width:150px">
57
+      <div style="width:160px">
57 58
         <div class="tableTitle">患者列表</div>
58 59
         <el-table :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
59 60
          :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
60 61
           highlight-current-row
61 62
           @current-change="handleChange">
62
-          <el-table-column prop="dialysis_no" label="透析号" width="80">
63
+          <el-table-column prop="dialysis_no" label="透析号" width="70">
63 64
             <template slot-scope="scope">{{scope.row.dialysis_no}}</template>
64 65
           </el-table-column>
65
-          <el-table-column prop="name" label="姓名" width="80">
66
+          <el-table-column prop="name" label="姓名" width="90">
66 67
             <template slot-scope="scope">{{ scope.row.name }}</template>
67 68
           </el-table-column>
68 69
         </el-table>