Browse Source

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

See999 4 years ago
parent
commit
391e594cdb

+ 1 - 1
config/dev.env.js View File

7
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
8
   ENV_CONFIG: '"dev"',
9
   // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
9
   // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  BASE_API: '"http://api.xt.test.sgjyun.com"',
10
+  BASE_API: '"http://localhost:9531"',
11
   SSO_HOST: '"http://testsso.sgjyun.com"',
11
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SRCM_HOST: '"http://test1.sgjyun.com"',
12
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   XT_HOST: '"http://xt.test.sgjyun.com"',
13
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 1
src/api/common/common.js View File

149
     startime: startime,
149
     startime: startime,
150
     endtime: endtime
150
     endtime: endtime
151
   }
151
   }
152
-  console.log('params', params)
152
+  console.log('转归params', params)
153
   return request({
153
   return request({
154
     url: '/com/api/gettotallapsecount',
154
     url: '/com/api/gettotallapsecount',
155
     method: 'get',
155
     method: 'get',
199
     startime: startime,
199
     startime: startime,
200
     endtime: endtime
200
     endtime: endtime
201
   }
201
   }
202
+  console.log('透析年龄======', params)
202
   return request({
203
   return request({
203
     url: '/com/api/gettotaldialysiscount',
204
     url: '/com/api/gettotaldialysiscount',
204
     method: 'get',
205
     method: 'get',

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue View File

195
               ? parseFloat(
195
               ? parseFloat(
196
               afterdialysis.weight_after -
196
               afterdialysis.weight_after -
197
               afterdialysis.additional_weight
197
               afterdialysis.additional_weight
198
-              ).toFixed(1)
198
+              ).toFixed(2)
199
               : "/"
199
               : "/"
200
               }}kg
200
               }}kg
201
             </span>
201
             </span>
1245
       vascularAccess: [],
1245
       vascularAccess: [],
1246
       nursing_record: '',
1246
       nursing_record: '',
1247
       special_record: '',
1247
       special_record: '',
1248
-      newTableAdvice:[]
1248
+      newTableAdvice: []
1249
     }
1249
     }
1250
   },
1250
   },
1251
   methods: {
1251
   methods: {
1433
           var doctoradvce = response.data.data.doctorAdvice
1433
           var doctoradvce = response.data.data.doctorAdvice
1434
           var doctorAdevieInfo = response.data.data.doctorAdevieInfo
1434
           var doctorAdevieInfo = response.data.data.doctorAdevieInfo
1435
           this.newTableAdvice = response.data.data.doctorAdevieInfo
1435
           this.newTableAdvice = response.data.data.doctorAdevieInfo
1436
-          console.log("哈哈哈哈哈哈哈哈哈",this.newTableAdvice)
1436
+          console.log('哈哈哈哈哈哈哈哈哈', this.newTableAdvice)
1437
           var tableAdvice = doctorAdevieInfo
1437
           var tableAdvice = doctorAdevieInfo
1438
           console.log('tableAdvice', tableAdvice)
1438
           console.log('tableAdvice', tableAdvice)
1439
           // console.log('医生', tableAdvice.length)
1439
           // console.log('医生', tableAdvice.length)

+ 27 - 17
src/xt_pages/qcd/basicInformationAnalysis.vue View File

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"
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
       //统计传染病

+ 2 - 1
src/xt_pages/qcd/indicatorControlAnalysis/components/office.vue View File

154
 
154
 
155
           }
155
           }
156
         },
156
         },
157
+        range_type:'',
157
         total:0,
158
         total:0,
158
         item_name: '',
159
         item_name: '',
159
         query: {
160
         query: {
285
       },
286
       },
286
       jumpDetail(row){
287
       jumpDetail(row){
287
         // this.$router.push("/qcd/indicatorControlAnalysis/bloodPressureDetails?id="+patient_id)
288
         // this.$router.push("/qcd/indicatorControlAnalysis/bloodPressureDetails?id="+patient_id)
288
-        this.$router.push("/qcd/inspection/detail?project_id="+row.project_id+"&item_id="+row.item_id+"&range_type="+row.inspect_type+"&patient_id="+row.patient.id)
289
+        this.$router.push("/qcd/inspection/detail?project_id="+row.project_id+"&item_id="+row.item_id+"&range_type="+this.query.range_type+"&patient_id="+row.patient.id)
289
       },
290
       },
290
       handleSizeChange(limit) {
291
       handleSizeChange(limit) {
291
         this.query.limit = limit
292
         this.query.limit = limit

+ 5 - 5
src/xt_pages/qcd/indicatorControlAnalysis/patientInspectionDetail.vue View File

487
             this.query.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
487
             this.query.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
488
             // 本月的结束时间
488
             // 本月的结束时间
489
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
489
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
490
-            this.query.patient_id = this.$route.query.patient_id
491
             this.query.project_id = this.$route.query.project_id
490
             this.query.project_id = this.$route.query.project_id
492
             this.query.item_id = this.$route.query.item_id
491
             this.query.item_id = this.$route.query.item_id
493
             this.query.range_type = this.$route.query.range_type
492
             this.query.range_type = this.$route.query.range_type
498
             const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
497
             const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
499
             this.query.start_time = startDate
498
             this.query.start_time = startDate
500
             const endDate = moment(new Date()).format('YYYY-MM-DD')
499
             const endDate = moment(new Date()).format('YYYY-MM-DD')
501
-            this.query.patient_id = this.$route.query.patient_id
500
+
502
             this.query.project_id = this.$route.query.project_id
501
             this.query.project_id = this.$route.query.project_id
503
             this.query.item_id = this.$route.query.item_id
502
             this.query.item_id = this.$route.query.item_id
504
             this.query.range_type = this.$route.query.range_type
503
             this.query.range_type = this.$route.query.range_type
509
           case 3: //近半年
508
           case 3: //近半年
510
             this.query.start_time = moment().subtract('month', 6).format('YYYY-MM-DD')
509
             this.query.start_time = moment().subtract('month', 6).format('YYYY-MM-DD')
511
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
510
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
512
-            this.query.patient_id = this.$route.query.patient_id
511
+
513
             this.query.project_id = this.$route.query.project_id
512
             this.query.project_id = this.$route.query.project_id
514
             this.query.item_id = this.$route.query.item_id
513
             this.query.item_id = this.$route.query.item_id
515
             this.query.range_type = this.$route.query.range_type
514
             this.query.range_type = this.$route.query.range_type
519
           case 4: //近一年
518
           case 4: //近一年
520
             this.query.start_time = moment().subtract('month', 12).format('YYYY-MM-DD')
519
             this.query.start_time = moment().subtract('month', 12).format('YYYY-MM-DD')
521
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
520
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
522
-            this.query.patient_id = this.$route.query.patient_id
521
+
523
             this.query.project_id = this.$route.query.project_id
522
             this.query.project_id = this.$route.query.project_id
524
             this.query.item_id = this.$route.query.item_id
523
             this.query.item_id = this.$route.query.item_id
525
             this.query.range_type = this.$route.query.range_type
524
             this.query.range_type = this.$route.query.range_type
529
             this.query.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
528
             this.query.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
530
             // 本月的结束时间
529
             // 本月的结束时间
531
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
530
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
532
-            this.query.patient_id = this.$route.query.patient_id
533
             this.query.project_id = this.$route.query.project_id
531
             this.query.project_id = this.$route.query.project_id
534
             this.query.item_id = this.$route.query.item_id
532
             this.query.item_id = this.$route.query.item_id
535
             this.query.range_type = this.$route.query.range_type
533
             this.query.range_type = this.$route.query.range_type
604
                 }
602
                 }
605
               }
603
               }
606
 
604
 
605
+              console.log(this.options.xAxis.data)
606
+
607
               console.log(this.options.series[0].data)
607
               console.log(this.options.series[0].data)
608
 
608
 
609
               //获取无法确定选项的颜色
609
               //获取无法确定选项的颜色

+ 6 - 5
src/xt_pages/qcd/officesControlAnalysis/project.vue View File

281
         //第四季度
281
         //第四季度
282
          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")
283
          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")
284
-         console.log("this.modetype",this.mode_type)
284
+        //  console.log("this.modetype",this.mode_type)
285
          for(let i=0;i<this.normdata.length;i++){
285
          for(let i=0;i<this.normdata.length;i++){
286
             if(this.normdata[i].inspection_minor == this.mode_type){
286
             if(this.normdata[i].inspection_minor == this.mode_type){
287
                this.range_type = this.normdata[i].range_type
287
                this.range_type = this.normdata[i].range_type
306
       getProjectList(params).then(response=>{
306
       getProjectList(params).then(response=>{
307
         if(response.data.state === 1){
307
         if(response.data.state === 1){
308
           var list = response.data.data.list
308
           var list = response.data.data.list
309
-          console.log("list",list)
309
+           console.log("list",list)
310
           var standList =  response.data.data.standList
310
           var standList =  response.data.data.standList
311
-          console.log("standlist",standList)
311
+           console.log("standlist",standList)
312
           var newArr = [
312
           var newArr = [
313
             {Total:"第一季度",Count:1,NoCount: 0},
313
             {Total:"第一季度",Count:1,NoCount: 0},
314
             {Total:"第二季度",Count:1,NoCount: 0},
314
             {Total:"第二季度",Count:1,NoCount: 0},
377
              }
377
              }
378
           }
378
           }
379
         
379
         
380
-      
380
+         console.log("arrfive",arrFive)
381
         
381
         
382
         for(const key in arrFive){
382
         for(const key in arrFive){
383
             this.modesData.xAxis.push(arrFive[key].Total);
383
             this.modesData.xAxis.push(arrFive[key].Total);
387
 
387
 
388
           this.chart.series[0].data = this.modesData.series
388
           this.chart.series[0].data = this.modesData.series
389
           this.chart.xAxis.data = this.modesData.xAxis
389
           this.chart.xAxis.data = this.modesData.xAxis
390
+          console.log("表格",this.modesData)
390
        
391
        
391
         }
392
         }
392
       })
393
       })
573
        getMonthProjectList(params).then(response=>{
574
        getMonthProjectList(params).then(response=>{
574
         if(response.data.state === 1){
575
         if(response.data.state === 1){
575
             var monthlist = response.data.data.monthlist
576
             var monthlist = response.data.data.monthlist
576
-            console.log("monthlist",monthlist)
577
+           console.log("monthlist",monthlist)
577
             var newArr = [
578
             var newArr = [
578
               {Total:"一月",Count:1,NoCount: 0},
579
               {Total:"一月",Count:1,NoCount: 0},
579
               {Total:"二月",Count:1,NoCount: 0},
580
               {Total:"二月",Count:1,NoCount: 0},

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

482
       getNormData().then(response=>{
482
       getNormData().then(response=>{
483
          if(response.data.state === 1){
483
          if(response.data.state === 1){
484
            var normdata = response.data.data.normdata
484
            var normdata = response.data.data.normdata
485
-           console.log("指标正常范围",normdata)
485
+          //  console.log("指标正常范围",normdata)
486
            this.normData = normdata
486
            this.normData = normdata
487
            this.getlist()
487
            this.getlist()
488
          }
488
          }
595
       getFirstQuarter(params).then(response=>{
595
       getFirstQuarter(params).then(response=>{
596
          if(response.data.state === 1){
596
          if(response.data.state === 1){
597
             var count =  response.data.data.count
597
             var count =  response.data.data.count
598
-           console.log("count",count) 
598
+          //  console.log("count",count) 
599
             var countwo = response.data.data.countwo 
599
             var countwo = response.data.data.countwo 
600
-           console.log("countwo",countwo)
600
+          //  console.log("countwo",countwo)
601
             countwo.map(item=>{
601
             countwo.map(item=>{
602
               count.push(item)
602
               count.push(item)
603
             })
603
             })
611
                 }
611
                 }
612
               }
612
               }
613
             }
613
             }
614
-           console.log("arr",arr )
614
+          //  console.log("arr",arr )
615
            
615
            
616
             var arrtwo =  this.arrayDate(count,this.normData)
616
             var arrtwo =  this.arrayDate(count,this.normData)
617
             for(let i=0;i<arrtwo.length;i++){
617
             for(let i=0;i<arrtwo.length;i++){
623
             arrtwo.map(item => {
623
             arrtwo.map(item => {
624
               arr.push(item)
624
               arr.push(item)
625
             })
625
             })
626
-            console.log("arr",arr)
626
+            // console.log("arr",arr)
627
              arr.sort(this.compare('sort'))  
627
              arr.sort(this.compare('sort'))  
628
             // arr.sort((a,b)=>{
628
             // arr.sort((a,b)=>{
629
             //     return projectArr.indexOf(a.ProjectName)-projectArr.indexOf(b.ProjectName);
629
             //     return projectArr.indexOf(a.ProjectName)-projectArr.indexOf(b.ProjectName);

+ 40 - 4
src/xt_pages/qcd/patientComplianceDetails.vue View File

32
               </el-form-item>
32
               </el-form-item>
33
             </el-form>
33
             </el-form>
34
             <div class="tableTitle">患者列表</div>
34
             <div class="tableTitle">患者列表</div>
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'}">
35
+            <el-table ref="singleTable" :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">
36
               <el-table-column prop="name" label="透析号" width="70">
37
                  <template slot-scope="scope">
37
                  <template slot-scope="scope">
38
                     {{scope.row.dialysis_no}}
38
                     {{scope.row.dialysis_no}}
128
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
128
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
129
 import LineChart from "../qcd/components/LineChart";
129
 import LineChart from "../qcd/components/LineChart";
130
 import { uParseTime } from "@/utils/tools";
130
 import { uParseTime } from "@/utils/tools";
131
+ import { PostSearch} from '@/api/patient'
131
 import { getCurrentOrgPatients,GetQualityControl,getNormData,getPatientComplianceDetail } from "@/api/common/common"
132
 import { getCurrentOrgPatients,GetQualityControl,getNormData,getPatientComplianceDetail } from "@/api/common/common"
132
 export default {
133
 export default {
133
   components: {
134
   components: {
259
     chooseMonth(month) {
260
     chooseMonth(month) {
260
       //一月
261
       //一月
261
       if(month == 0){
262
       if(month == 0){
262
-         this.monthActive = 0
263
+        this.listQuery.start_time = ""
264
+        this.listQuery.end_time =""
265
+        this.monthActive = 0
263
         const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
266
         const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
264
         const endDate = moment(new Date()).format('YYYY-MM-DD')
267
         const endDate = moment(new Date()).format('YYYY-MM-DD')
265
         var now = new Date()
268
         var now = new Date()
277
 
280
 
278
       //近三月
281
       //近三月
279
       if(month == 1){
282
       if(month == 1){
283
+         this.listQuery.start_time = ""
284
+         this.listQuery.end_time =""
280
          this.monthActive = 1
285
          this.monthActive = 1
281
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
286
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
282
     
287
     
292
 
297
 
293
        //近半年
298
        //近半年
294
       if(month == 2){
299
       if(month == 2){
300
+        this.listQuery.start_time = ""
301
+        this.listQuery.end_time =""
295
         this.monthActive = 2
302
         this.monthActive = 2
296
         const startDate = moment().subtract('month', 6).format('YYYY-MM-DD')
303
         const startDate = moment().subtract('month', 6).format('YYYY-MM-DD')
297
         
304
         
303
 
310
 
304
       //近一年
311
       //近一年
305
       if(month == 3){
312
       if(month == 3){
313
+        this.listQuery.start_time = ""
314
+        this.listQuery.end_time =""
306
         this.monthActive = 3
315
         this.monthActive = 3
307
         const startDate = moment().subtract('month', 12).format('YYYY-MM-DD')
316
         const startDate = moment().subtract('month', 12).format('YYYY-MM-DD')
308
         this.startime = Date.parse(startDate)/1000
317
         this.startime = Date.parse(startDate)/1000
367
       getCurrentOrgPatients().then(response=>{
376
       getCurrentOrgPatients().then(response=>{
368
           if(response.data.state == 1){
377
           if(response.data.state == 1){
369
             var patients = response.data.data.patients
378
             var patients = response.data.data.patients
379
+            for(let i=0;i<patients.length;i++){
380
+               if(this.patientid == patients[i].id){
381
+                  this.$refs.singleTable.setCurrentRow(patients[i])
382
+               }
383
+            }
370
             this.patientsData = patients
384
             this.patientsData = patients
371
           }
385
           }
372
       })
386
       })
382
       })
396
       })
383
     },
397
     },
384
     getlist(){
398
     getlist(){
385
-        console.log("进来没有")
386
         this.modesData.series = []
399
         this.modesData.series = []
387
         this.modesData.xAxis = []
400
         this.modesData.xAxis = []
388
         const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
401
         const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
470
               this.chart.xAxis.data = this.modesData.xAxis
483
               this.chart.xAxis.data = this.modesData.xAxis
471
             }
484
             }
472
        })
485
        })
473
-    }
486
+    },
487
+     querySearchAsync(keyword, cb) {
488
+        let key = ''
489
+        if (keyword != undefined) {
490
+          key = keyword
491
+        }
492
+        let searchArray = []
493
+        PostSearch(key).then(response => {
494
+          if (response.data.state == 1) {
495
+             searchArray = response.data.data.patient
496
+            //  console.log("searchArray",searchArray)
497
+            cb(searchArray)
498
+          } else {
499
+            cb([])
500
+          }
501
+        })
502
+      },
503
+     handleSelect(val) {
504
+        console.log("val",val)
505
+        this.listQuery.search = val.name
506
+        this.patient_id = val.id
507
+        this.getlistDetail()
508
+      },
474
   },
509
   },
475
 
510
 
476
    created(){
511
    created(){
477
      this.patientid =  this.$route.query.patientid
512
      this.patientid =  this.$route.query.patientid
513
+    
478
      this.inspect_date = this.$route.query.date
514
      this.inspect_date = this.$route.query.date
479
      //获取指标项
515
      //获取指标项
480
       this.getNormData()
516
       this.getNormData()

+ 10 - 12
src/xt_pages/qcd/patientControlAnalysis.vue View File

369
        getPatientContorlAnalysis(params).then(response=>{
369
        getPatientContorlAnalysis(params).then(response=>{
370
            if(response.data.state == 1){
370
            if(response.data.state == 1){
371
               var control = response.data.data.patientcontorDetail
371
               var control = response.data.data.patientcontorDetail
372
-             console.log("control",control)
372
+            //  console.log("control",control)
373
               let dataInfo = {}
373
               let dataInfo = {}
374
               control.forEach((item, index) => {
374
               control.forEach((item, index) => {
375
                 let { inspect_date } = item
375
                 let { inspect_date } = item
385
                 }
385
                 }
386
               })
386
               })
387
               let list = Object.values(dataInfo)
387
               let list = Object.values(dataInfo)
388
-              console.log("list",list)
388
+              // console.log("list",list)
389
               list.map(item => {
389
               list.map(item => {
390
                 for (let i = 0; i < control.length; i++) {
390
                 for (let i = 0; i < control.length; i++) {
391
                   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) {
440
                   }
440
                   }
441
                   this.tableData.push({ name: key, data: dd[key]})
441
                   this.tableData.push({ name: key, data: dd[key]})
442
                 }
442
                 }
443
-                console.log("表哥===========",this.tableData)
444
               let dataInfotwo = {}
443
               let dataInfotwo = {}
445
               control.forEach((item, index) => {
444
               control.forEach((item, index) => {
446
                 let { inspect_date } = item
445
                 let { inspect_date } = item
491
       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=>{
492
          if(response.data.state == 1){
491
          if(response.data.state == 1){
493
            var patients = response.data.data.patients
492
            var patients = response.data.data.patients
494
-            // console.log("patients",patients)
493
+     
495
             this.tablePatients = patients
494
             this.tablePatients = patients
496
             var total = response.data.data.total
495
             var total = response.data.data.total
497
             this.total = total
496
             this.total = total
498
             var control = response.data.data.control
497
             var control = response.data.data.control
499
            var infectiousControl =  response.data.data.infectiousControl
498
            var infectiousControl =  response.data.data.infectiousControl
500
-          //  console.log("infectiousContrl",infectiousControl)
499
+        
501
            infectiousControl.map(item=>{
500
            infectiousControl.map(item=>{
502
              control.push(item)
501
              control.push(item)
503
            })
502
            })
504
-            // console.log("control",control)
503
+       
505
             var newArr = []
504
             var newArr = []
506
             // 分页
505
             // 分页
507
             for (let i = 0; i < control.length; i++) {
506
             for (let i = 0; i < control.length; i++) {
511
                 }
510
                 }
512
               }
511
               }
513
             }
512
             }
514
-          // console.log("newArr",newArr)
513
+       
515
           let dataInfo = {}
514
           let dataInfo = {}
516
           newArr.forEach((item, index) => {
515
           newArr.forEach((item, index) => {
517
             let { inspect_date } = item
516
             let { inspect_date } = item
535
               }
534
               }
536
             }
535
             }
537
           })
536
           })
538
-        //  console.log("list",list)
537
+ 
539
          var newarrtwo = []
538
          var newarrtwo = []
540
           list.map(item => {
539
           list.map(item => {
541
             item.child.map(it => {
540
             item.child.map(it => {
542
               newarrtwo.push(it)
541
               newarrtwo.push(it)
543
             })
542
             })
544
           })
543
           })
545
-        //  console.log("newarrtwo",newarrtwo)
544
+ 
546
           // 配置的才显示
545
           // 配置的才显示
547
          var arrthree = []
546
          var arrthree = []
548
           for (let i = 0; i < newarrtwo.length; i++) {
547
           for (let i = 0; i < newarrtwo.length; i++) {
558
             item.item_name = ''
557
             item.item_name = ''
559
             arrthree.push(item)
558
             arrthree.push(item)
560
           })
559
           })
561
-          // console.log('arrthree', arrthree)
560
+   
562
           var dd = {}
561
           var dd = {}
563
            for (const index in arrthree) {
562
            for (const index in arrthree) {
564
              if (!(arrthree[index].inspect_date in dd)) {
563
              if (!(arrthree[index].inspect_date in dd)) {
584
             }
583
             }
585
           })
584
           })
586
         let listtwo = Object.values(dataInfotwo)
585
         let listtwo = Object.values(dataInfotwo)
587
-        // console.log("listtwo",listtwo)
586
+       
588
           for (const key in dd) {
587
           for (const key in dd) {
589
             for (const mkey in this.ObjectData) {
588
             for (const mkey in this.ObjectData) {
590
               if (!(this.ObjectData[mkey].item_name in dd[key])) {
589
               if (!(this.ObjectData[mkey].item_name in dd[key])) {
616
                }
615
                }
617
              }
616
              }
618
           }
617
           }
619
-        //  console.log("表哥123",this.tableData)
620
          }
618
          }
621
       })
619
       })
622
     },
620
     },

+ 5 - 5
src/xt_pages/qcd/statisticalConfiguration.vue View File

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)

+ 13 - 13
src/xt_permission.js View File

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28
   // 线上注释
28
   // 线上注释
29
 
29
 
30
   NProgress.start()
30
   NProgress.start()