Browse Source

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

csx 4 years ago
parent
commit
4dc90e8502

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

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

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

3
     <div class="position">
3
     <div class="position">
4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5
     </div>
5
     </div>
6
-    <div class="app-container">
6
+    <div class="app-container checkStatistical">
7
       <el-tabs v-model="tabActiveName" @tab-click="handleTabClick" style="margin-bottom:10px">
7
       <el-tabs v-model="tabActiveName" @tab-click="handleTabClick" style="margin-bottom:10px">
8
         <el-tab-pane label="质控达标统计配置" name="control"></el-tab-pane>
8
         <el-tab-pane label="质控达标统计配置" name="control"></el-tab-pane>
9
         <el-tab-pane label="检验检查统计配置" name="query"></el-tab-pane>
9
         <el-tab-pane label="检验检查统计配置" name="query"></el-tab-pane>
14
         </el-col>
14
         </el-col>
15
       </el-row>
15
       </el-row>
16
       <div class="configTable">
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
           <el-table-column prop="date" label="检验检查项">
18
           <el-table-column prop="date" label="检验检查项">
19
               <template slot-scope="scope">{{ scope.row.project_name }}</template>
19
               <template slot-scope="scope">{{ scope.row.project_name }}</template>
20
           </el-table-column>
20
           </el-table-column>
300
     text-align: center;
300
     text-align: center;
301
   }
301
   }
302
 }
302
 }
303
+.checkStatistical{
304
+  .el-tabs{
305
+    margin-bottom: 0 !important;
306
+  }
307
+}
303
 </style>
308
 </style>
304
 
309
 
305
  <style rel="stylesheet/scss" lang="scss" scoped>
310
  <style rel="stylesheet/scss" lang="scss" scoped>

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

55
       ],
55
       ],
56
       way: [
56
       way: [
57
         { value: 0, label: "科室", state: 0 },
57
         { value: 0, label: "科室", state: 0 },
58
-        { value: 1, label: "个人", state: 1 }
58
+        { value: 1, label: "患者", state: 1 }
59
       ],
59
       ],
60
       wayType: 0
60
       wayType: 0
61
     };
61
     };
67
   }
67
   }
68
 };
68
 };
69
 </script>
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 View File

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

46
       ></el-date-picker>
46
       ></el-date-picker>
47
     </div>
47
     </div>
48
     <div class="tableTitle">统计图</div>
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
     <div>
53
     <div>
50
       <line-chart :options="chart"></line-chart>
54
       <line-chart :options="chart"></line-chart>
51
     </div>
55
     </div>
124
       ],
128
       ],
125
       chart: {
129
       chart: {
126
         tooltip: {},
130
         tooltip: {},
127
-        legend: {
128
-          data: ["次"],
129
-          left: 0
130
-        },
131
+        // legend: {
132
+        //   data: ["次"],
133
+        //   left: 0
134
+        // },
131
         xAxis: {
135
         xAxis: {
132
           data: []
136
           data: []
133
         },
137
         },
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
   font-weight: bold;
409
   font-weight: bold;
406
   margin-bottom: 10px;
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
 </style>
426
 </style>
409
 
427
 
410
 <style lang="scss">
428
 <style lang="scss">

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

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