Bladeren bron

bug修改

XMLWAN 4 jaren geleden
bovenliggende
commit
46a0b7650d

+ 27 - 17
src/xt_pages/qcd/basicInformationAnalysis.vue Bestand weergeven

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

+ 6 - 5
src/xt_pages/qcd/officesControlAnalysis/project.vue Bestand weergeven

@@ -277,7 +277,7 @@ export default {
277 277
         //第四季度
278 278
          const four_qurter_start = moment().month(9).startOf('month').format("YYYY-MM-DD")
279 279
          const four_qurter_end = moment().month(11).endOf('month').format("YYYY-MM-DD")
280
-         console.log("this.modetype",this.mode_type)
280
+        //  console.log("this.modetype",this.mode_type)
281 281
          for(let i=0;i<this.normdata.length;i++){
282 282
             if(this.normdata[i].inspection_minor == this.mode_type){
283 283
                this.range_type = this.normdata[i].range_type
@@ -302,9 +302,9 @@ export default {
302 302
       getProjectList(params).then(response=>{
303 303
         if(response.data.state === 1){
304 304
           var list = response.data.data.list
305
-          console.log("list",list)
305
+           console.log("list",list)
306 306
           var standList =  response.data.data.standList
307
-          console.log("standlist",standList)
307
+           console.log("standlist",standList)
308 308
           var newArr = [
309 309
             {Total:"第一季度",Count:1,NoCount: 0},
310 310
             {Total:"第二季度",Count:1,NoCount: 0},
@@ -373,7 +373,7 @@ export default {
373 373
              }
374 374
           }
375 375
         
376
-      
376
+         console.log("arrfive",arrFive)
377 377
         
378 378
         for(const key in arrFive){
379 379
             this.modesData.xAxis.push(arrFive[key].Total);
@@ -383,6 +383,7 @@ export default {
383 383
 
384 384
           this.chart.series[0].data = this.modesData.series
385 385
           this.chart.xAxis.data = this.modesData.xAxis
386
+          console.log("表格",this.modesData)
386 387
        
387 388
         }
388 389
       })
@@ -569,7 +570,7 @@ export default {
569 570
        getMonthProjectList(params).then(response=>{
570 571
         if(response.data.state === 1){
571 572
             var monthlist = response.data.data.monthlist
572
-            console.log("monthlist",monthlist)
573
+            // console.log("monthlist",monthlist)
573 574
             var newArr = [
574 575
               {Total:"一月",Count:1,NoCount: 0},
575 576
               {Total:"二月",Count:1,NoCount: 0},

+ 5 - 5
src/xt_pages/qcd/officesControlAnalysis/time.vue Bestand weergeven

@@ -478,7 +478,7 @@ export default {
478 478
       getNormData().then(response=>{
479 479
          if(response.data.state === 1){
480 480
            var normdata = response.data.data.normdata
481
-           console.log("指标正常范围",normdata)
481
+          //  console.log("指标正常范围",normdata)
482 482
            this.normData = normdata
483 483
            this.getlist()
484 484
          }
@@ -591,9 +591,9 @@ export default {
591 591
       getFirstQuarter(params).then(response=>{
592 592
          if(response.data.state === 1){
593 593
             var count =  response.data.data.count
594
-           console.log("count",count) 
594
+          //  console.log("count",count) 
595 595
             var countwo = response.data.data.countwo 
596
-           console.log("countwo",countwo)
596
+          //  console.log("countwo",countwo)
597 597
             countwo.map(item=>{
598 598
               count.push(item)
599 599
             })
@@ -607,7 +607,7 @@ export default {
607 607
                 }
608 608
               }
609 609
             }
610
-           console.log("arr",arr )
610
+          //  console.log("arr",arr )
611 611
            
612 612
             var arrtwo =  this.arrayDate(count,this.normData)
613 613
             for(let i=0;i<arrtwo.length;i++){
@@ -619,7 +619,7 @@ export default {
619 619
             arrtwo.map(item => {
620 620
               arr.push(item)
621 621
             })
622
-            console.log("arr",arr)
622
+            // console.log("arr",arr)
623 623
              arr.sort(this.compare('sort'))  
624 624
             // arr.sort((a,b)=>{
625 625
             //     return projectArr.indexOf(a.ProjectName)-projectArr.indexOf(b.ProjectName);

+ 9 - 2
src/xt_pages/qcd/patientComplianceDetails.vue Bestand weergeven

@@ -233,7 +233,9 @@ export default {
233 233
     chooseMonth(month) {
234 234
       //一月
235 235
       if(month == 0){
236
-         this.monthActive = 0
236
+        this.listQuery.start_time = ""
237
+        this.listQuery.end_time =""
238
+        this.monthActive = 0
237 239
         const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
238 240
         const endDate = moment(new Date()).format('YYYY-MM-DD')
239 241
         var now = new Date()
@@ -251,6 +253,8 @@ export default {
251 253
 
252 254
       //近三月
253 255
       if(month == 1){
256
+         this.listQuery.start_time = ""
257
+         this.listQuery.end_time =""
254 258
          this.monthActive = 1
255 259
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
256 260
     
@@ -266,6 +270,8 @@ export default {
266 270
 
267 271
        //近半年
268 272
       if(month == 2){
273
+        this.listQuery.start_time = ""
274
+        this.listQuery.end_time =""
269 275
         this.monthActive = 2
270 276
         const startDate = moment().subtract('month', 6).format('YYYY-MM-DD')
271 277
         
@@ -277,6 +283,8 @@ export default {
277 283
 
278 284
       //近一年
279 285
       if(month == 3){
286
+        this.listQuery.start_time = ""
287
+        this.listQuery.end_time =""
280 288
         this.monthActive = 3
281 289
         const startDate = moment().subtract('month', 12).format('YYYY-MM-DD')
282 290
         this.startime = Date.parse(startDate)/1000
@@ -356,7 +364,6 @@ export default {
356 364
       })
357 365
     },
358 366
     getlist(){
359
-        console.log("进来没有")
360 367
         this.modesData.series = []
361 368
         this.modesData.xAxis = []
362 369
         const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'

+ 10 - 12
src/xt_pages/qcd/patientControlAnalysis.vue Bestand weergeven

@@ -365,7 +365,7 @@ export default {
365 365
        getPatientContorlAnalysis(params).then(response=>{
366 366
            if(response.data.state == 1){
367 367
               var control = response.data.data.patientcontorDetail
368
-             console.log("control",control)
368
+            //  console.log("control",control)
369 369
               let dataInfo = {}
370 370
               control.forEach((item, index) => {
371 371
                 let { inspect_date } = item
@@ -381,7 +381,7 @@ export default {
381 381
                 }
382 382
               })
383 383
               let list = Object.values(dataInfo)
384
-              console.log("list",list)
384
+              // console.log("list",list)
385 385
               list.map(item => {
386 386
                 for (let i = 0; i < control.length; i++) {
387 387
                   if (item.inspect_date == control[i].inspect_date && item.patient_id == control[i].patient_id) {
@@ -436,7 +436,6 @@ export default {
436 436
                   }
437 437
                   this.tableData.push({ name: key, data: dd[key]})
438 438
                 }
439
-                console.log("表哥===========",this.tableData)
440 439
               let dataInfotwo = {}
441 440
               control.forEach((item, index) => {
442 441
                 let { inspect_date } = item
@@ -487,17 +486,17 @@ export default {
487 486
       getPatientsControl(this.lapstor,this.listQuery.start_time,this.listQuery.end_time,this.listQuery.page,this.listQuery.limit).then(response=>{
488 487
          if(response.data.state == 1){
489 488
            var patients = response.data.data.patients
490
-            // console.log("patients",patients)
489
+     
491 490
             this.tablePatients = patients
492 491
             var total = response.data.data.total
493 492
             this.total = total
494 493
             var control = response.data.data.control
495 494
            var infectiousControl =  response.data.data.infectiousControl
496
-          //  console.log("infectiousContrl",infectiousControl)
495
+        
497 496
            infectiousControl.map(item=>{
498 497
              control.push(item)
499 498
            })
500
-            // console.log("control",control)
499
+       
501 500
             var newArr = []
502 501
             // 分页
503 502
             for (let i = 0; i < control.length; i++) {
@@ -507,7 +506,7 @@ export default {
507 506
                 }
508 507
               }
509 508
             }
510
-          // console.log("newArr",newArr)
509
+       
511 510
           let dataInfo = {}
512 511
           newArr.forEach((item, index) => {
513 512
             let { inspect_date } = item
@@ -531,14 +530,14 @@ export default {
531 530
               }
532 531
             }
533 532
           })
534
-        //  console.log("list",list)
533
+ 
535 534
          var newarrtwo = []
536 535
           list.map(item => {
537 536
             item.child.map(it => {
538 537
               newarrtwo.push(it)
539 538
             })
540 539
           })
541
-        //  console.log("newarrtwo",newarrtwo)
540
+ 
542 541
           // 配置的才显示
543 542
          var arrthree = []
544 543
           for (let i = 0; i < newarrtwo.length; i++) {
@@ -554,7 +553,7 @@ export default {
554 553
             item.item_name = ''
555 554
             arrthree.push(item)
556 555
           })
557
-          // console.log('arrthree', arrthree)
556
+   
558 557
           var dd = {}
559 558
            for (const index in arrthree) {
560 559
              if (!(arrthree[index].inspect_date in dd)) {
@@ -580,7 +579,7 @@ export default {
580 579
             }
581 580
           })
582 581
         let listtwo = Object.values(dataInfotwo)
583
-        // console.log("listtwo",listtwo)
582
+       
584 583
           for (const key in dd) {
585 584
             for (const mkey in this.ObjectData) {
586 585
               if (!(this.ObjectData[mkey].item_name in dd[key])) {
@@ -612,7 +611,6 @@ export default {
612 611
                }
613 612
              }
614 613
           }
615
-        //  console.log("表哥123",this.tableData)
616 614
          }
617 615
       })
618 616
     },

+ 5 - 5
src/xt_pages/qcd/statisticalConfiguration.vue Bestand weergeven

@@ -256,7 +256,7 @@ export default {
256 256
       getConfigurationDetail(id).then(response=>{
257 257
          if(response.data.state == 1){
258 258
            var configurationdetail = response.data.data.configurationdetail
259
-           console.log("详情",configurationdetail)
259
+          //  console.log("详情",configurationdetail)
260 260
            this.editform.id = configurationdetail.id
261 261
            this.editform.inspectionMajor = configurationdetail.inspection_major
262 262
            this.editform.inspectionMinor = configurationdetail.inspection_minor
@@ -290,7 +290,7 @@ export default {
290 290
       getInspectionMajor().then(response=>{
291 291
         if(response.data.state == 1){
292 292
           var inspection =  response.data.data.inspection
293
-          console.log("大项是什么",inspection)
293
+          // console.log("大项是什么",inspection)
294 294
           this.InspectionMajor = inspection
295 295
          
296 296
         }
@@ -302,7 +302,7 @@ export default {
302 302
       getInspectionMinor(id).then(response=>{
303 303
         if(response.data.state == 1){
304 304
          var inspection =  response.data.data.inspection
305
-         console.log("小项",inspection)
305
+        //  console.log("小项",inspection)
306 306
          this.InspectionMinor = inspection
307 307
         }
308 308
       })
@@ -323,7 +323,7 @@ export default {
323 323
        getInspectionRange(id).then(response=>{
324 324
          if(response.data.state == 1){
325 325
            var inspectionRange =  response.data.data.inspectionRange
326
-           console.log("inspectionRange",inspectionRange)
326
+          //  console.log("inspectionRange",inspectionRange)
327 327
            if(inspectionRange.range_type == 1){
328 328
              this.showOne = true
329 329
              this.showTwo = false
@@ -387,7 +387,7 @@ export default {
387 387
               configurationlist[i].sort = ""
388 388
             }
389 389
           }
390
-          console.log("列表",configurationlist)
390
+          // console.log("列表",configurationlist)
391 391
           this.configuraData = configurationlist
392 392
           var total = response.data.data.total
393 393
          // console.log("total",total)