Browse Source

Merge branch '20230223_pad_vue_new_branch' of http://git.shengws.com/csx/Pad_New into 20230223_pad_vue_new_branch

28169 1 year ago
parent
commit
b4a815b6cf
100 changed files with 154 additions and 1813 deletions
  1. 1 1
      src/App.vue
  2. 1 1
      src/api/advice.js
  3. 1 1
      src/api/dialysis.js
  4. 0 33
      src/pages/advice/AdvicePage.vue
  5. 16 120
      src/pages/advice/DialysiAdive.vue
  6. 1 7
      src/pages/advice/DialysisAdviceDialog.vue
  7. 3 9
      src/pages/advice/DialysisAdviceOne.vue
  8. 7 46
      src/pages/advice/DialysisAdviceTable.vue
  9. 3 19
      src/pages/advice/NormalAdviceTable.vue
  10. 4 5
      src/pages/allDoctorAdvice/index.vue
  11. 3 32
      src/pages/allDoctorAdvice/indexs.vue
  12. 2 2
      src/pages/allScheduling/index.vue
  13. 2 11
      src/pages/businessCenter/components/addCustomers.vue
  14. 1 1
      src/pages/businessCenter/components/bloodNoStandard.vue
  15. 0 1
      src/pages/businessCenter/components/bloodStandard.vue
  16. 2 2
      src/pages/businessCenter/components/outCustomers.vue
  17. 0 42
      src/pages/businessCenter/components/patient.vue
  18. 1 24
      src/pages/businessCenter/components/project.vue
  19. 0 8
      src/pages/businessCenter/components/returnGoods.vue
  20. 0 16
      src/pages/businessCenter/components/targetNoStandard.vue
  21. 1 9
      src/pages/businessCenter/components/targetStandard.vue
  22. 0 8
      src/pages/businessCenter/components/time1.vue
  23. 0 10
      src/pages/businessCenter/components/warehouseOut.vue
  24. 0 2
      src/pages/businessCenter/components/warehousing.vue
  25. 2 7
      src/pages/businessCenter/components/withdrawal.vue
  26. 0 6
      src/pages/businessCenter/index.vue
  27. 3 3
      src/pages/businessCenter/quality.vue
  28. 1 2
      src/pages/businessCenter/targetStandard.vue
  29. 3 3
      src/pages/configureCenter/components/Bed.vue
  30. 2 2
      src/pages/configureCenter/components/Grouping.vue
  31. 1 1
      src/pages/configureCenter/components/Partition.vue
  32. 2 2
      src/pages/configureCenter/editBed.vue
  33. 1 1
      src/pages/configureCenter/editGrouping.vue
  34. 1 2
      src/pages/configureCenter/editPartion.vue
  35. 2 2
      src/pages/configureCenter/index.vue
  36. 0 1
      src/pages/configureCenter/newBed.vue
  37. 1 17
      src/pages/console/managementConsole/index.vue
  38. 2 4
      src/pages/console/managementConsole/staff_role/addStaff/index.vue
  39. 2 15
      src/pages/console/managementConsole/staff_role/editRole/index.vue
  40. 0 22
      src/pages/console/managementConsole/staff_role/editStaff/index.vue
  41. 1 1
      src/pages/console/managementConsole/staff_role/employeeList/index.vue
  42. 1 1
      src/pages/console/managementConsole/staff_role/otherPurview/index.vue
  43. 1 1
      src/pages/console/managementConsole/staff_role/privilegeManagement/index.vue
  44. 1 25
      src/pages/console/managementConsole/staff_role/userManage/index.vue
  45. 3 6
      src/pages/doctorAdvice/add/addCourseManagement.vue
  46. 3 8
      src/pages/doctorAdvice/components/Contagion.vue
  47. 0 15
      src/pages/doctorAdvice/components/CourseManagement.vue
  48. 0 1
      src/pages/doctorAdvice/components/DialysisRecord.vue
  49. 3 9
      src/pages/doctorAdvice/components/DoctorManagement.vue
  50. 0 5
      src/pages/doctorAdvice/components/Education.vue
  51. 4 2
      src/pages/doctorAdvice/components/Inspection.vue
  52. 0 4
      src/pages/doctorAdvice/components/LongDialysis.vue
  53. 0 7
      src/pages/doctorAdvice/components/RescueRecord.vue
  54. 0 5
      src/pages/doctorAdvice/components/Scheduling.vue
  55. 0 23
      src/pages/doctorAdvice/components/deviceManagement.vue
  56. 0 23
      src/pages/doctorAdvice/components/medicationPlan.vue
  57. 0 24
      src/pages/doctorAdvice/components/recoverNotes.vue
  58. 1 24
      src/pages/doctorAdvice/components/signsRecord.vue
  59. 0 21
      src/pages/doctorAdvice/index.vue
  60. 0 3
      src/pages/dqc/assayDetail.vue
  61. 2 2
      src/pages/dqc/basicInfo.vue
  62. 0 20
      src/pages/dqc/components/AssayTemplate.vue
  63. 1 76
      src/pages/dqc/components/BarChart.vue
  64. 5 71
      src/pages/dqc/components/BarChart1.vue
  65. 1 26
      src/pages/dqc/components/BasicTemplate.vue
  66. 0 69
      src/pages/dqc/components/DepartmentProject.vue
  67. 2 16
      src/pages/dqc/components/DepartmentTime.vue
  68. 1 3
      src/pages/dqc/components/ScrollTop.vue
  69. 0 13
      src/pages/dqc/components/bloodPressure.vue
  70. 1 2
      src/pages/dqc/components/checkStatisticsAll.vue
  71. 0 4
      src/pages/dqc/components/checkStatisticsPersonal.vue
  72. 2 3
      src/pages/dqc/components/dialysisProcess.vue
  73. 0 10
      src/pages/dqc/components/dialysisStatisticsAll.vue
  74. 0 2
      src/pages/dqc/components/dialysisStatisticsPersonal.vue
  75. 0 1
      src/pages/dqc/components/doctor.vue
  76. 0 3
      src/pages/dqc/components/nurse.vue
  77. 1 16
      src/pages/dqc/components/office.vue
  78. 0 4
      src/pages/dqc/components/sufferer.vue
  79. 0 10
      src/pages/dqc/components/weight.vue
  80. 1 1
      src/pages/dqc/patientBloodPressure.vue
  81. 3 260
      src/pages/dqc/patientStatistics.vue
  82. 3 4
      src/pages/dqc/patientWeight.vue
  83. 1 1
      src/pages/home/Popup/index.vue
  84. 0 68
      src/pages/home/active.vue
  85. 4 248
      src/pages/home/index.vue
  86. 6 33
      src/pages/home/login.vue
  87. 1 9
      src/pages/home/register/register.vue
  88. 1 10
      src/pages/home/verifyToken.vue
  89. 1 14
      src/pages/homeIndex/index.vue
  90. 0 2
      src/pages/infor/components/all.vue
  91. 0 2
      src/pages/infor/components/check.vue
  92. 14 16
      src/pages/main/PrintIndex.vue
  93. 3 28
      src/pages/main/RecordPage.vue
  94. 7 14
      src/pages/main/add_urgent_schedule.vue
  95. 0 33
      src/pages/main/all/doctorAdvice.vue
  96. 0 2
      src/pages/main/all/dryWeight.vue
  97. 0 2
      src/pages/main/all/scheduling.vue
  98. 2 2
      src/pages/main/beforeDialysis/allSummaryDialog.vue
  99. 1 5
      src/pages/main/beforeDialysis/components/allSummary.vue
  100. 0 0
      src/pages/main/beforeDialysis/components/dialysisParameters.vue

+ 1 - 1
src/App.vue View File

36
   created() {}
36
   created() {}
37
 };
37
 };
38
 </script>
38
 </script>
39
-
40
 <style lang="scss" scoped>
39
 <style lang="scss" scoped>
41
 #app {
40
 #app {
42
   height: 100%;
41
   height: 100%;
43
   overflow-y: auto;
42
   overflow-y: auto;
43
+  border: 1px solid gainsboro;
44
 }
44
 }
45
 </style>
45
 </style>

+ 1 - 1
src/api/advice.js View File

93
 }
93
 }
94
 
94
 
95
 export function getSchedualDoctors (params) {
95
 export function getSchedualDoctors (params) {
96
-  console.log('param22222', params)
96
+  // console.log('param22222', params)
97
   return request({
97
   return request({
98
     url: '/m/api/schedule/advices',
98
     url: '/m/api/schedule/advices',
99
     method: 'get',
99
     method: 'get',

+ 1 - 1
src/api/dialysis.js View File

317
 }
317
 }
318
 
318
 
319
 export function getLatestDialysisScheduals (params) {
319
 export function getLatestDialysisScheduals (params) {
320
-  console.log('param232322323', params)
320
+  // console.log('param232322323', params)
321
   return request({
321
   return request({
322
     url: '/m/api/dialysis/schedule',
322
     url: '/m/api/dialysis/schedule',
323
     method: 'get',
323
     method: 'get',

+ 0 - 33
src/pages/advice/AdvicePage.vue View File

1
 .<template>
1
 .<template>
2
   <div>
2
   <div>
3
     <van-row class="top_row" style="display:none">
3
     <van-row class="top_row" style="display:none">
4
-      <!-- <van-col :span="9">
5
-        <div style="visibility: hidden">
6
-          <span class="title"></span>
7
-        </div>
8
-      </van-col>
9
-      <van-col :span="14">
10
-        <div class="department">
11
-          <ul>
12
-            <li
13
-              v-for="(item,i) in ['透析临嘱','普通医嘱']"
14
-              :key="i"
15
-              :class="index == i? 'active':'' "
16
-              @click="ClickTab(i)"
17
-            >{{item}}</li>
18
-          </ul>
19
-        </div>
20
-      </van-col>
21
-
22
-      <van-col :span="4">
23
-        <router-link to="/add_urgent_schedule"></router-link>
24
-        <div class="search" style="visibility: hidden">
25
-          <van-field v-model="search_input" ref="search_field" placeholder="透析号/姓名" class="field">
26
-            <i class="iconfont" slot="left-icon">&#xe741;</i>
27
-            <van-button
28
-              slot="button"
29
-              size="small"
30
-              type="info"
31
-              style="border: none;"
32
-              @click="searchWithKeyword"
33
-            >搜索</van-button>
34
-          </van-field>
35
-        </div>
36
-      </van-col>-->
37
       <div class="newSearch1">
4
       <div class="newSearch1">
38
         <el-input
5
         <el-input
39
           prefix-icon="el-icon-search"
6
           prefix-icon="el-icon-search"

+ 16 - 120
src/pages/advice/DialysiAdive.vue View File

100
            
100
            
101
             <th width="60px">医嘱内容</th>
101
             <th width="60px">医嘱内容</th>
102
           </tr>
102
           </tr>
103
-          <template v-for="(schedules, zone_name, index) in filtedScheduals">
103
+          <template v-for="(schedules, zone_name, index) in filtedScheduals" >
104
             <tr :key="index">
104
             <tr :key="index">
105
               <td>{{ zone_name }}</td>
105
               <td>{{ zone_name }}</td>
106
               <td></td>
106
               <td></td>
258
                   <td
258
                   <td
259
                     :class="{ 'advice_content': advice.parent_id == 0, 'subadvice_content': advice.parent_id > 0, 'td-active':current_patient_id == group.patient_id && group_flag &&current_advice_id < 0 }"
259
                     :class="{ 'advice_content': advice.parent_id == 0, 'subadvice_content': advice.parent_id > 0, 'td-active':current_patient_id == group.patient_id && group_flag &&current_advice_id < 0 }"
260
                     v-if="advice_index == 0"
260
                     v-if="advice_index == 0"
261
-                    :rowspan="group.advices.length"
262
-  
263
-                  >
261
+                    :rowspan="group.advices.length">
264
                    
262
                    
265
                     <span
263
                     <span
266
                       v-if="$store.getters.user.template_info.org_id != 10340">
264
                       v-if="$store.getters.user.template_info.org_id != 10340">
403
             alt
401
             alt
404
           />
402
           />
405
         </div>
403
         </div>
406
-     
407
       </div>
404
       </div>
408
   
405
   
409
-    
410
-  
411
       <mt-datetime-picker
406
       <mt-datetime-picker
412
         v-model="selected_date"
407
         v-model="selected_date"
413
         type="date"
408
         type="date"
609
             maps.new_advice = advice_groups
604
             maps.new_advice = advice_groups
610
           }
605
           }
611
         }
606
         }
612
-        console.log('2222类别22222222', scheduleMap)
613
-  
607
+        // console.log('2222类别22222222', scheduleMap)
614
         return scheduleMap
608
         return scheduleMap
615
       }
609
       }
616
     },
610
     },
644
           this.currentAdvices = []
638
           this.currentAdvices = []
645
           this.currentSubAdvices = []
639
           this.currentSubAdvices = []
646
           this.current_advice_id = -1
640
           this.current_advice_id = -1
647
-  
648
-          // if (this.current_group_index != -1 && this.current_group_index != group_index) {
649
-          //   // 选择其他组,将原来的组选择状态清除
650
-          //   this.currentAdvices = []
651
-          //   this.currentSubAdvices = []
652
-          //   for (let i = 0; i < advice.length; i++) {
653
-          //     for (let y = 0; y < advice[i].advices.length; y++) {
654
-          //       var advices = advice[i].advices[y]
655
-          //       advices.is_selected = 0
656
-          //     }
657
-          //   }
658
-          // }
659
-  
660
-          // for (let i = 0; i < advice.length; i++) {
661
-          //   // 选择子医嘱,将已经选择的医嘱选择状态清除
662
-          //   for (let y = 0; y < advice[i].advices.length; y++) {
663
-          //     var advices = advice[i].advices[y]
664
-          //     if (advices.parent_id > 0) {
665
-          //       advices.is_selected = 0
666
-          //     }
667
-          //   }
668
-          // }
669
           this.currentAdvices = []
641
           this.currentAdvices = []
670
   
642
   
671
           for (let i = 0; i < advice.length; i++) {
643
           for (let i = 0; i < advice.length; i++) {
682
           // this.current_advice_index = advice_index
654
           // this.current_advice_index = advice_index
683
           this.current_advice = advice
655
           this.current_advice = advice
684
           this.current_patient_id = patient_id
656
           this.current_patient_id = patient_id
685
-          console.log('数据23323323223我的', this.currentAdvices)
657
+          // console.log('数据23323323223我的', this.currentAdvices)
686
         }
658
         }
687
       },
659
       },
688
       cancelAdviceSelect: function () {
660
       cancelAdviceSelect: function () {
703
           this.current_parent_id = advice.parent_id
675
           this.current_parent_id = advice.parent_id
704
           this.currentAdvices = []
676
           this.currentAdvices = []
705
           this.currentAdvices.push(advice)
677
           this.currentAdvices.push(advice)
706
-          // this.curerentAdvice = advice
707
-          // if (
708
-          //   (this.current_group_index != -1 &&
709
-          //     this.current_group_index != group_index) ||
710
-          //   advice.parent_id > 0
711
-          // ) {
712
-          //   // 选择其他组,将原来的组选择状态清除
713
-          //   this.currentAdvices = []
714
-          //   this.currentSubAdvices = []
715
-          //   for (let i = 0; i < group.length; i++) {
716
-          //     for (let y = 0; y < group[i].advices.length; y++) {
717
-          //       var advices = group[i].advices[y]
718
-          //       advices.is_selected = 0
719
-          //     }
720
-          //   }
721
-          // }
722
-  
723
-          // for (let i = 0; i < group.length; i++) {
724
-          //   // 选择子医嘱,将已经选择的医嘱选择状态清除
725
-          //   for (let y = 0; y < group[i].advices.length; y++) {
726
-          //     var advices = group[i].advices[y]
727
-          //     if (advices.parent_id > 0) {
728
-          //       advices.is_selected = 0
729
-          //     }
730
-          //   }
731
-          // }
732
   
678
   
733
           for (let i = 0; i < group.length; i++) {
679
           for (let i = 0; i < group.length; i++) {
734
             // 设置选择状态
680
             // 设置选择状态
740
               if (advices.parent_id == advice.id) {
686
               if (advices.parent_id == advice.id) {
741
                 this.currentAdvices.push(advices)
687
                 this.currentAdvices.push(advices)
742
               }
688
               }
743
-              // if (advices.id == this.curerentAdvice.id) {
744
-              //   if (this.curerentAdvice.is_selected == 1) {
745
-              //     this.curerentAdvice.is_selected = 0
746
-              //     for (let a = this.currentAdvices.length - 1; a >= 0; a--) {
747
-              //       if (this.currentAdvices[a].id == this.curerentAdvice.id) {
748
-              //         this.currentAdvices.splice(a, 1)
749
-              //       }
750
-              //     }
751
-              //   } else {
752
-              //     this.curerentAdvice.is_selected = 1
753
-              //     if (this.curerentAdvice.parent_id == 0) {
754
-              //       this.currentAdvices.push(this.curerentAdvice)
755
-              //     }
756
-              //   }
757
-              // }
758
             }
689
             }
759
           }
690
           }
760
   
691
   
761
-          // if (advice.parent_id == 0) {
762
-          //   this.currentSubAdvices = []
763
-          // } else {
764
-          //   this.currentSubAdvices.push(advice)
765
-          // }
766
-  
767
-          // this.current_select_object = 1 // 单条医嘱
768
-          // this.current_group_index = group_index
769
-          // this.current_advice_index = advice_index
770
           this.current_advice = advice
692
           this.current_advice = advice
771
-          console.log(this.currentAdvices)
693
+          // console.log(this.currentAdvices)
772
         }
694
         }
773
       },
695
       },
774
       addEventListener () {
696
       addEventListener () {
862
           if (resp.state == 1) {
784
           if (resp.state == 1) {
863
             this.admin_user = resp.data.adminUser
785
             this.admin_user = resp.data.adminUser
864
             var schedules = resp.data.scheduals
786
             var schedules = resp.data.scheduals
865
-            console.log('数据列表2332323223wo', schedules)
787
+            // console.log('数据列表2332323223wo', schedules)
866
             for (let i = 0; i < schedules.length; i++) {
788
             for (let i = 0; i < schedules.length; i++) {
867
               schedules[i].sort = schedules[i].device_number.sort
789
               schedules[i].sort = schedules[i].device_number.sort
868
             }
790
             }
869
   
791
   
870
             var config = resp.data.config
792
             var config = resp.data.config
871
   
793
   
872
-            console.log('config', config)
794
+            // console.log('config', config)
873
             let project_config = resp.data.project_config
795
             let project_config = resp.data.project_config
874
-            console.log('project_config', resp.data.project_config)
796
+            // console.log('project_config', resp.data.project_config)
875
             if (project_config.is_open == 1) {
797
             if (project_config.is_open == 1) {
876
               this.project = resp.data.project
798
               this.project = resp.data.project
877
-              console.log('项目', this.project)
799
+              // console.log('项目', this.project)
878
   
800
   
879
               // this.project =this.project.concat(resp.data.team_project)
801
               // this.project =this.project.concat(resp.data.team_project)
880
   
802
   
921
               for (let i = 0; i < schedules.length; i++) {
843
               for (let i = 0; i < schedules.length; i++) {
922
                 schedules[i].dialysis_no = schedules[i].patient.dialysis_no
844
                 schedules[i].dialysis_no = schedules[i].patient.dialysis_no
923
               }
845
               }
924
-              console.log('schedules', schedules)
846
+              // console.log('schedules', schedules)
925
   
847
   
926
               var arr = []
848
               var arr = []
927
               for (let j = 0; j < schedules.length; j++) {
849
               for (let j = 0; j < schedules.length; j++) {
930
               arr.sort(function (a, b) {
852
               arr.sort(function (a, b) {
931
                 return a - b
853
                 return a - b
932
               })
854
               })
933
-              console.log('arr', arr)
934
   
855
   
935
               var arrTwo = []
856
               var arrTwo = []
936
               for (let i = 0; i < arr.length; i++) {
857
               for (let i = 0; i < arr.length; i++) {
948
               let a = arrTwo.filter(
869
               let a = arrTwo.filter(
949
                 (a) => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
870
                 (a) => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
950
               )
871
               )
951
-  
952
               // 针对 监利大垸医院(按床位号排序)
872
               // 针对 监利大垸医院(按床位号排序)
953
               if (
873
               if (
954
                 this.$store.getters.user.template_info.org_id == 9671 ||
874
                 this.$store.getters.user.template_info.org_id == 9671 ||
987
                   }
907
                   }
988
                 }
908
                 }
989
               }
909
               }
990
-              console.log('zoneMap233232323223wo', zoneMap)
991
-              console.log('scheduleMap', scheduleMap)
992
-              console.log('this.sort_type_selected', this.sort_type_selected)
993
   
910
   
994
               if (this.sort_type_selected == 1) {
911
               if (this.sort_type_selected == 1) {
995
                 
912
                 
996
                 var newOneList = schedules.sort(this.compareList('sort'))
913
                 var newOneList = schedules.sort(this.compareList('sort'))
997
-                console.log('newList', newOneList)
914
+                // console.log('newList', newOneList)
998
                 for (let index = 0; index < newOneList.length; index++) {
915
                 for (let index = 0; index < newOneList.length; index++) {
999
                   const schedule = newOneList[index]
916
                   const schedule = newOneList[index]
1000
                   if (schedule.doctor_advice.length == 0) {
917
                   if (schedule.doctor_advice.length == 0) {
1013
   
930
   
1014
               if (this.sort_type_selected == 2) {
931
               if (this.sort_type_selected == 2) {
1015
                 var newList = schedules.sort(this.compareList('assess_time'))
932
                 var newList = schedules.sort(this.compareList('assess_time'))
1016
-                console.log('newList', newList)
933
+                // console.log('newList', newList)
1017
                 for (let index = 0; index < newList.length; index++) {
934
                 for (let index = 0; index < newList.length; index++) {
1018
                   const schedule = newList[index]
935
                   const schedule = newList[index]
1019
                   if (schedule.doctor_advice.length == 0) {
936
                   if (schedule.doctor_advice.length == 0) {
1031
               }
948
               }
1032
               //按透析号排序
949
               //按透析号排序
1033
               if(this.sort_type_selected == 3){
950
               if(this.sort_type_selected == 3){
1034
-                console.log("尽量-----------",schedules)
1035
                 if(this.$store.getters.user.template_info.org_id == 10447){
951
                 if(this.$store.getters.user.template_info.org_id == 10447){
1036
                   for(let i=0;i<schedules.length;i++){
952
                   for(let i=0;i<schedules.length;i++){
1037
                     schedules[i].is_dialysis_no = parseInt(schedules[i].dialysis_no)
953
                     schedules[i].is_dialysis_no = parseInt(schedules[i].dialysis_no)
1038
                   }
954
                   }
1039
                 }
955
                 }
1040
                 var newList = schedules.sort(this.compareList('is_dialysis_no'))
956
                 var newList = schedules.sort(this.compareList('is_dialysis_no'))
1041
-                console.log('newList', newList)
1042
                 for (let index = 0; index < newList.length; index++) {
957
                 for (let index = 0; index < newList.length; index++) {
1043
                   const schedule = newList[index]
958
                   const schedule = newList[index]
1044
                   if (schedule.doctor_advice.length == 0) {
959
                   if (schedule.doctor_advice.length == 0) {
1055
                 }
970
                 }
1056
               }
971
               }
1057
   
972
   
1058
-              console.log('schedules999999999', schedules)
1059
-  
1060
               var zones = []
973
               var zones = []
1061
               zones.push({ value: 0, text: '全部分区' })
974
               zones.push({ value: 0, text: '全部分区' })
1062
               for (var zoneName in zoneMap) {
975
               for (var zoneName in zoneMap) {
1067
                 return a.value > b.value
980
                 return a.value > b.value
1068
               })
981
               })
1069
               this.zones = zones
982
               this.zones = zones
1070
-  
1071
-              console.log('scheduleMap2333222332', scheduleMap)
983
+
1072
               this.scheduleMap = scheduleMap
984
               this.scheduleMap = scheduleMap
1073
             }
985
             }
1074
   
986
   
1077
               this.show = true
989
               this.show = true
1078
               var schedules = resp.data.hisAdvices
990
               var schedules = resp.data.hisAdvices
1079
               for (let i = 0; i < schedules.length; i++) {
991
               for (let i = 0; i < schedules.length; i++) {
1080
-                console.log(schedules[i])
992
+                // console.log(schedules[i])
1081
                 schedules[i]['dialysis_no'] = schedules[i].patient.dialysis_no
993
                 schedules[i]['dialysis_no'] = schedules[i].patient.dialysis_no
1082
               }
994
               }
1083
   
995
   
1090
               arr.sort(function (a, b) {
1002
               arr.sort(function (a, b) {
1091
                 return a - b
1003
                 return a - b
1092
               })
1004
               })
1093
-  
1094
-              console.log('arr', arr)
1095
-  
1096
               var arrTwo = []
1005
               var arrTwo = []
1097
               for (let i = 0; i < arr.length; i++) {
1006
               for (let i = 0; i < arr.length; i++) {
1098
                 for (let j = 0; j < schedules.length; j++) {
1007
                 for (let j = 0; j < schedules.length; j++) {
1118
                   schedules[i].assess_time = schedules[i].dialysisassesmentbefor ? schedules[i].dialysisassesmentbefor.created_time : '3753619200'
1027
                   schedules[i].assess_time = schedules[i].dialysisassesmentbefor ? schedules[i].dialysisassesmentbefor.created_time : '3753619200'
1119
                 }
1028
                 }
1120
               }
1029
               }
1121
-              console.log('this.sort_type_selected', this.sort_type_selected)
1122
               var zoneMap = {}
1030
               var zoneMap = {}
1123
               var scheduleMap = {}
1031
               var scheduleMap = {}
1124
               if (this.sort_type_selected == 0) {
1032
               if (this.sort_type_selected == 0) {
1140
   
1048
   
1141
               if (this.sort_type_selected == 1) {
1049
               if (this.sort_type_selected == 1) {
1142
                 var newOneList = schedules.sort(this.compareList('sort'))
1050
                 var newOneList = schedules.sort(this.compareList('sort'))
1143
-                console.log('newList', newOneList)
1144
                 for (let index = 0; index < newOneList.length; index++) {
1051
                 for (let index = 0; index < newOneList.length; index++) {
1145
                   const schedule = newOneList[index]
1052
                   const schedule = newOneList[index]
1146
                   if (schedule.doctor_advice.length == 0) {
1053
                   if (schedule.doctor_advice.length == 0) {
1159
   
1066
   
1160
               if (this.sort_type_selected == 2) {
1067
               if (this.sort_type_selected == 2) {
1161
                 var newList = schedules.sort(this.compareList('assess_time'))
1068
                 var newList = schedules.sort(this.compareList('assess_time'))
1162
-                console.log('newList', newList)
1163
                 for (let index = 0; index < newList.length; index++) {
1069
                 for (let index = 0; index < newList.length; index++) {
1164
                   const schedule = newList[index]
1070
                   const schedule = newList[index]
1165
                   if (schedule.doctor_advice.length == 0) {
1071
                   if (schedule.doctor_advice.length == 0) {
1175
                   }
1081
                   }
1176
                 }
1082
                 }
1177
               }
1083
               }
1178
-  
1179
-              console.log('schedules000000', schedules)
1180
-  
1084
+
1181
               var zones = []
1085
               var zones = []
1182
               zones.push({ value: 0, text: '全部分区' })
1086
               zones.push({ value: 0, text: '全部分区' })
1183
               for (var zoneName in zoneMap) {
1087
               for (var zoneName in zoneMap) {
1190
               this.zones = zones
1094
               this.zones = zones
1191
   
1095
   
1192
               this.scheduleMap = scheduleMap
1096
               this.scheduleMap = scheduleMap
1193
-              console.log('打印', scheduleMap)
1194
             }
1097
             }
1195
             if (sessionStorage.getItem('adviceZone') != null) {
1098
             if (sessionStorage.getItem('adviceZone') != null) {
1196
               this.zone_selected = Number(sessionStorage.getItem('adviceZone'))
1099
               this.zone_selected = Number(sessionStorage.getItem('adviceZone'))
1219
   
1122
   
1220
       getBloodAccess (id) {
1123
       getBloodAccess (id) {
1221
         var blood_access = getDataConfig('hemodialysis', 'vascular_access_desc')
1124
         var blood_access = getDataConfig('hemodialysis', 'vascular_access_desc')
1222
-        console.log('血管通路', blood_access)
1125
+        // console.log('血管通路', blood_access)
1223
         var name = ''
1126
         var name = ''
1224
         for (let i = 0; i < blood_access.length; i++) {
1127
         for (let i = 0; i < blood_access.length; i++) {
1225
           if (id == blood_access[i].id) {
1128
           if (id == blood_access[i].id) {
1274
           ids: ids.join(','),
1177
           ids: ids.join(','),
1275
           exce_time: this.handleTime(this.nowExecTime)
1178
           exce_time: this.handleTime(this.nowExecTime)
1276
         }
1179
         }
1277
-        console.log('params', params)
1278
         excetionMobileAdvice(params).then(response => {
1180
         excetionMobileAdvice(params).then(response => {
1279
           if (response.data.state == 1) {
1181
           if (response.data.state == 1) {
1280
             if (response.data.data.msg == 1) {
1182
             if (response.data.data.msg == 1) {
1281
               var ids = response.data.data.ids
1183
               var ids = response.data.data.ids
1282
               if (ids != null && ids.length > 0) {
1184
               if (ids != null && ids.length > 0) {
1283
                 var arr = ids.split(',')
1185
                 var arr = ids.split(',')
1284
-                console.log('arr2332232323', arr)
1285
                 for (let i = 0; i < this.currentAdvices.length; i++) {
1186
                 for (let i = 0; i < this.currentAdvices.length; i++) {
1286
                   for (let j = 0; j < arr.length; j++) {
1187
                   for (let j = 0; j < arr.length; j++) {
1287
                     if (this.currentAdvices[i].id == arr[j]) {
1188
                     if (this.currentAdvices[i].id == arr[j]) {
1307
       },
1208
       },
1308
       toCheck () {
1209
       toCheck () {
1309
         var ids = []
1210
         var ids = []
1310
-        console.log('this.currentAdvices999999', this.currentAdvices)
1311
         if (this.currentAdvices != null && this.currentAdvices.length > 0) {
1211
         if (this.currentAdvices != null && this.currentAdvices.length > 0) {
1312
           for (let i = 0; i < this.currentAdvices.length; i++) {
1212
           for (let i = 0; i < this.currentAdvices.length; i++) {
1313
             if (this.currentAdvices[i].check_state == 1) {
1213
             if (this.currentAdvices[i].check_state == 1) {
1324
         var params = {
1224
         var params = {
1325
           ids: ids.join(',')
1225
           ids: ids.join(',')
1326
         }
1226
         }
1327
-        console.log('param23232332o', params)
1328
         checkMobileAdvice(params).then(response => {
1227
         checkMobileAdvice(params).then(response => {
1329
           if (response.data.state == 1) {
1228
           if (response.data.state == 1) {
1330
             Toast.success('核对成功!')
1229
             Toast.success('核对成功!')
1331
             var ids = response.data.data.ids
1230
             var ids = response.data.data.ids
1332
             if (ids != null && ids.length > 0) {
1231
             if (ids != null && ids.length > 0) {
1333
               var arr = ids.split(',')
1232
               var arr = ids.split(',')
1334
-              console.log('arr2332232323', arr)
1335
               for (let i = 0; i < this.currentAdvices.length; i++) {
1233
               for (let i = 0; i < this.currentAdvices.length; i++) {
1336
                 for (let j = 0; j < arr.length; j++) {
1234
                 for (let j = 0; j < arr.length; j++) {
1337
                   if (this.currentAdvices[i].id == arr[j]) {
1235
                   if (this.currentAdvices[i].id == arr[j]) {
1396
 
1294
 
1397
      },
1295
      },
1398
      toClick(){
1296
      toClick(){
1399
-
1400
       //  this.$router.push('/new/dialyisAdviceDialog')
1297
       //  this.$router.push('/new/dialyisAdviceDialog')
1401
-
1402
       this.$router.push('/new/dialyisAdviceDialog/one')
1298
       this.$router.push('/new/dialyisAdviceDialog/one')
1403
      }
1299
      }
1404
     }
1300
     }

+ 1 - 7
src/pages/advice/DialysisAdviceDialog.vue View File

28
                     <van-icon name="arrow-down" />
28
                     <van-icon name="arrow-down" />
29
                 </div>
29
                 </div>
30
             </div>
30
             </div>
31
-        
32
         </div>
31
         </div>
33
-
34
       
32
       
35
         <div class="consumablesList">
33
         <div class="consumablesList">
36
           
34
           
37
-             
38
           <el-table
35
           <el-table
39
             :data="tableDataList"
36
             :data="tableDataList"
40
             border
37
             border
82
               </span>
79
               </span>
83
             </template>
80
             </template>
84
           </el-table-column>
81
           </el-table-column>
85
-        </el-table>
86
-        
82
+        </el-table>     
87
         </div>
83
         </div>
88
-
89
         <!-- 弹出层 -->
84
         <!-- 弹出层 -->
90
         <div>
85
         <div>
91
             <van-popup
86
             <van-popup
625
   created () {
620
   created () {
626
     this.getAllZone()
621
     this.getAllZone()
627
   }
622
   }
628
-
629
 }
623
 }
630
 </script>
624
 </script>
631
 
625
 

+ 3 - 9
src/pages/advice/DialysisAdviceOne.vue View File

27
                     {{ area }}
27
                     {{ area }}
28
                     <van-icon name="arrow-down" />
28
                     <van-icon name="arrow-down" />
29
                 </div>
29
                 </div>
30
-            </div>
31
-        
30
+            </div> 
32
         </div>
31
         </div>
33
-
34
       
32
       
35
-        <div class="consumablesList">
36
-          
37
-             
33
+        <div class="consumablesList">                   
38
           <el-table
34
           <el-table
39
             :data="tableDataList"
35
             :data="tableDataList"
40
             border
36
             border
95
               </span>
91
               </span>
96
             </template>
92
             </template>
97
           </el-table-column>
93
           </el-table-column>
98
-        </el-table>
99
-        
94
+        </el-table>       
100
         </div>
95
         </div>
101
-
102
         <!-- 弹出层 -->
96
         <!-- 弹出层 -->
103
         <div>
97
         <div>
104
             <van-popup
98
             <van-popup

+ 7 - 46
src/pages/advice/DialysisAdviceTable.vue View File

749
           maps.new_advice = advice_groups
749
           maps.new_advice = advice_groups
750
         }
750
         }
751
       }
751
       }
752
-      console.log('2222类别22222222', scheduleMap)
753
 
752
 
754
       return scheduleMap
753
       return scheduleMap
755
     }
754
     }
802
         // this.current_advice_index = advice_index
801
         // this.current_advice_index = advice_index
803
         this.current_advice = advice
802
         this.current_advice = advice
804
         this.current_patient_id = patient_id
803
         this.current_patient_id = patient_id
805
-        console.log('数据23323323223我的', this.currentAdvices)
804
+        // console.log('数据23323323223我的', this.currentAdvices)
806
       }
805
       }
807
     },
806
     },
808
     cancelAdviceSelect: function () {
807
     cancelAdviceSelect: function () {
838
           }
837
           }
839
         }
838
         }
840
         this.current_advice = advice
839
         this.current_advice = advice
841
-        console.log(this.currentAdvices)
842
       }
840
       }
843
     },
841
     },
844
     addEventListener () {
842
     addEventListener () {
931
         if (resp.state == 1) {
929
         if (resp.state == 1) {
932
           this.admin_user = resp.data.adminUser
930
           this.admin_user = resp.data.adminUser
933
           var schedules = resp.data.scheduals
931
           var schedules = resp.data.scheduals
934
-          console.log('数据列表2332323223wo', schedules)
932
+          // console.log('数据列表2332323223wo', schedules)
935
           for (let i = 0; i < schedules.length; i++) {
933
           for (let i = 0; i < schedules.length; i++) {
936
             schedules[i].sort = schedules[i].device_number.sort
934
             schedules[i].sort = schedules[i].device_number.sort
937
           }
935
           }
938
 
936
 
939
           var config = resp.data.config
937
           var config = resp.data.config
940
-
941
-          console.log('config', config)
942
           let project_config = resp.data.project_config
938
           let project_config = resp.data.project_config
943
-          console.log('project_config', resp.data.project_config)
944
           if (project_config.is_open == 1) {
939
           if (project_config.is_open == 1) {
945
             this.project = resp.data.project
940
             this.project = resp.data.project
946
-            console.log('项目', this.project)
947
-
948
             // this.project =this.project.concat(resp.data.team_project)
941
             // this.project =this.project.concat(resp.data.team_project)
949
-
950
             resp.data.hisAdvices.map((item, index) => {
942
             resp.data.hisAdvices.map((item, index) => {
951
               item.new_advice = item.new_advice ? item.new_advice : []
943
               item.new_advice = item.new_advice ? item.new_advice : []
952
 
944
 
977
                     groupno: 0,
969
                     groupno: 0,
978
                     count: it.count
970
                     count: it.count
979
                   }
971
                   }
980
-                  // let advice = []
981
-                  // advice.push(obj)
982
-                  // let advices = {
983
-                  //   advices: advice,
984
-                  //   group_no: 123
985
-                  // }
986
-
987
-                  // console.log(11111,item.new_advice)
988
                   item.doctor_advice.push(obj)
972
                   item.doctor_advice.push(obj)
989
                 })
973
                 })
990
               }
974
               }
997
             for (let i = 0; i < schedules.length; i++) {
981
             for (let i = 0; i < schedules.length; i++) {
998
               schedules[i].dialysis_no = schedules[i].patient.dialysis_no
982
               schedules[i].dialysis_no = schedules[i].patient.dialysis_no
999
             }
983
             }
1000
-            console.log('schedules', schedules)
1001
 
984
 
1002
             var arr = []
985
             var arr = []
1003
             for (let j = 0; j < schedules.length; j++) {
986
             for (let j = 0; j < schedules.length; j++) {
1006
             arr.sort(function (a, b) {
989
             arr.sort(function (a, b) {
1007
               return a - b
990
               return a - b
1008
             })
991
             })
1009
-            console.log('arr', arr)
992
+            // console.log('arr', arr)
1010
 
993
 
1011
             var arrTwo = []
994
             var arrTwo = []
1012
             for (let i = 0; i < arr.length; i++) {
995
             for (let i = 0; i < arr.length; i++) {
1063
                 }
1046
                 }
1064
               }
1047
               }
1065
             }
1048
             }
1066
-            console.log('zoneMap233232323223wo', zoneMap)
1067
-            console.log('scheduleMap', scheduleMap)
1068
-            console.log('this.sort_type_selected', this.sort_type_selected)
1069
 
1049
 
1070
             if (this.sort_type_selected == 1) {
1050
             if (this.sort_type_selected == 1) {
1071
               
1051
               
1072
               var newOneList = schedules.sort(this.compareList('sort'))
1052
               var newOneList = schedules.sort(this.compareList('sort'))
1073
-              console.log('newList', newOneList)
1074
               for (let index = 0; index < newOneList.length; index++) {
1053
               for (let index = 0; index < newOneList.length; index++) {
1075
                 const schedule = newOneList[index]
1054
                 const schedule = newOneList[index]
1076
                 if (schedule.doctor_advice.length == 0) {
1055
                 if (schedule.doctor_advice.length == 0) {
1089
 
1068
 
1090
             if (this.sort_type_selected == 2) {
1069
             if (this.sort_type_selected == 2) {
1091
               var newList = schedules.sort(this.compareList('assess_time'))
1070
               var newList = schedules.sort(this.compareList('assess_time'))
1092
-              console.log('newList', newList)
1071
+              // console.log('newList', newList)
1093
               for (let index = 0; index < newList.length; index++) {
1072
               for (let index = 0; index < newList.length; index++) {
1094
                 const schedule = newList[index]
1073
                 const schedule = newList[index]
1095
                 if (schedule.doctor_advice.length == 0) {
1074
                 if (schedule.doctor_advice.length == 0) {
1107
             }
1086
             }
1108
             //按透析号排序
1087
             //按透析号排序
1109
             if(this.sort_type_selected == 3){
1088
             if(this.sort_type_selected == 3){
1110
-              console.log("尽量-----------",schedules)
1111
               if(this.$store.getters.user.template_info.org_id == 10447){
1089
               if(this.$store.getters.user.template_info.org_id == 10447){
1112
                 for(let i=0;i<schedules.length;i++){
1090
                 for(let i=0;i<schedules.length;i++){
1113
                   schedules[i].is_dialysis_no = parseInt(schedules[i].dialysis_no)
1091
                   schedules[i].is_dialysis_no = parseInt(schedules[i].dialysis_no)
1114
                 }
1092
                 }
1115
               }
1093
               }
1116
               var newList = schedules.sort(this.compareList('is_dialysis_no'))
1094
               var newList = schedules.sort(this.compareList('is_dialysis_no'))
1117
-              console.log('newList', newList)
1118
               for (let index = 0; index < newList.length; index++) {
1095
               for (let index = 0; index < newList.length; index++) {
1119
                 const schedule = newList[index]
1096
                 const schedule = newList[index]
1120
                 if (schedule.doctor_advice.length == 0) {
1097
                 if (schedule.doctor_advice.length == 0) {
1131
               }
1108
               }
1132
             }
1109
             }
1133
 
1110
 
1134
-            console.log('schedules999999999', schedules)
1135
-
1136
             var zones = []
1111
             var zones = []
1137
             zones.push({ value: 0, text: '全部分区' })
1112
             zones.push({ value: 0, text: '全部分区' })
1138
             for (var zoneName in zoneMap) {
1113
             for (var zoneName in zoneMap) {
1144
             })
1119
             })
1145
             this.zones = zones
1120
             this.zones = zones
1146
 
1121
 
1147
-            console.log('scheduleMap2333222332', scheduleMap)
1148
             this.scheduleMap = scheduleMap
1122
             this.scheduleMap = scheduleMap
1149
           }
1123
           }
1150
-
1151
           if (config.is_open == 1) {
1124
           if (config.is_open == 1) {
1152
             this.showOne = false
1125
             this.showOne = false
1153
             this.show = true
1126
             this.show = true
1154
             var schedules = resp.data.hisAdvices
1127
             var schedules = resp.data.hisAdvices
1155
             for (let i = 0; i < schedules.length; i++) {
1128
             for (let i = 0; i < schedules.length; i++) {
1156
-              console.log(schedules[i])
1157
               schedules[i]['dialysis_no'] = schedules[i].patient.dialysis_no
1129
               schedules[i]['dialysis_no'] = schedules[i].patient.dialysis_no
1158
             }
1130
             }
1159
 
1131
 
1160
             var arr = []
1132
             var arr = []
1161
             // 按透析号排序
1133
             // 按透析号排序
1162
-
1163
             for (let j = 0; j < schedules.length; j++) {
1134
             for (let j = 0; j < schedules.length; j++) {
1164
               arr.push(schedules[j].dialysis_no)
1135
               arr.push(schedules[j].dialysis_no)
1165
             }
1136
             }
1167
               return a - b
1138
               return a - b
1168
             })
1139
             })
1169
 
1140
 
1170
-            console.log('arr', arr)
1171
-
1172
             var arrTwo = []
1141
             var arrTwo = []
1173
             for (let i = 0; i < arr.length; i++) {
1142
             for (let i = 0; i < arr.length; i++) {
1174
               for (let j = 0; j < schedules.length; j++) {
1143
               for (let j = 0; j < schedules.length; j++) {
1194
                 schedules[i].assess_time = schedules[i].dialysisassesmentbefor ? schedules[i].dialysisassesmentbefor.created_time : '3753619200'
1163
                 schedules[i].assess_time = schedules[i].dialysisassesmentbefor ? schedules[i].dialysisassesmentbefor.created_time : '3753619200'
1195
               }
1164
               }
1196
             }
1165
             }
1197
-            console.log('this.sort_type_selected', this.sort_type_selected)
1198
             var zoneMap = {}
1166
             var zoneMap = {}
1199
             var scheduleMap = {}
1167
             var scheduleMap = {}
1200
             if (this.sort_type_selected == 0) {
1168
             if (this.sort_type_selected == 0) {
1216
 
1184
 
1217
             if (this.sort_type_selected == 1) {
1185
             if (this.sort_type_selected == 1) {
1218
               var newOneList = schedules.sort(this.compareList('sort'))
1186
               var newOneList = schedules.sort(this.compareList('sort'))
1219
-              console.log('newList', newOneList)
1220
               for (let index = 0; index < newOneList.length; index++) {
1187
               for (let index = 0; index < newOneList.length; index++) {
1221
                 const schedule = newOneList[index]
1188
                 const schedule = newOneList[index]
1222
                 if (schedule.doctor_advice.length == 0) {
1189
                 if (schedule.doctor_advice.length == 0) {
1235
 
1202
 
1236
             if (this.sort_type_selected == 2) {
1203
             if (this.sort_type_selected == 2) {
1237
               var newList = schedules.sort(this.compareList('assess_time'))
1204
               var newList = schedules.sort(this.compareList('assess_time'))
1238
-              console.log('newList', newList)
1239
               for (let index = 0; index < newList.length; index++) {
1205
               for (let index = 0; index < newList.length; index++) {
1240
                 const schedule = newList[index]
1206
                 const schedule = newList[index]
1241
                 if (schedule.doctor_advice.length == 0) {
1207
                 if (schedule.doctor_advice.length == 0) {
1252
               }
1218
               }
1253
             }
1219
             }
1254
 
1220
 
1255
-            console.log('schedules000000', schedules)
1221
+            // console.log('schedules000000', schedules)
1256
 
1222
 
1257
             var zones = []
1223
             var zones = []
1258
             zones.push({ value: 0, text: '全部分区' })
1224
             zones.push({ value: 0, text: '全部分区' })
1266
             this.zones = zones
1232
             this.zones = zones
1267
 
1233
 
1268
             this.scheduleMap = scheduleMap
1234
             this.scheduleMap = scheduleMap
1269
-            console.log('打印', scheduleMap)
1270
           }
1235
           }
1271
           if (sessionStorage.getItem('adviceZone') != null) {
1236
           if (sessionStorage.getItem('adviceZone') != null) {
1272
             this.zone_selected = Number(sessionStorage.getItem('adviceZone'))
1237
             this.zone_selected = Number(sessionStorage.getItem('adviceZone'))
1295
 
1260
 
1296
     getBloodAccess (id) {
1261
     getBloodAccess (id) {
1297
       var blood_access = getDataConfig('hemodialysis', 'vascular_access_desc')
1262
       var blood_access = getDataConfig('hemodialysis', 'vascular_access_desc')
1298
-      console.log('血管通路', blood_access)
1263
+      // console.log('血管通路', blood_access)
1299
       var name = ''
1264
       var name = ''
1300
       for (let i = 0; i < blood_access.length; i++) {
1265
       for (let i = 0; i < blood_access.length; i++) {
1301
         if (id == blood_access[i].id) {
1266
         if (id == blood_access[i].id) {
1350
         ids: ids.join(','),
1315
         ids: ids.join(','),
1351
         exce_time: this.handleTime(this.nowExecTime)
1316
         exce_time: this.handleTime(this.nowExecTime)
1352
       }
1317
       }
1353
-      console.log('params', params)
1354
       excetionMobileAdvice(params).then(response => {
1318
       excetionMobileAdvice(params).then(response => {
1355
         if (response.data.state == 1) {
1319
         if (response.data.state == 1) {
1356
           if (response.data.data.msg == 1) {
1320
           if (response.data.data.msg == 1) {
1357
             var ids = response.data.data.ids
1321
             var ids = response.data.data.ids
1358
             if (ids != null && ids.length > 0) {
1322
             if (ids != null && ids.length > 0) {
1359
               var arr = ids.split(',')
1323
               var arr = ids.split(',')
1360
-              console.log('arr2332232323', arr)
1324
+              // console.log('arr2332232323', arr)
1361
               for (let i = 0; i < this.currentAdvices.length; i++) {
1325
               for (let i = 0; i < this.currentAdvices.length; i++) {
1362
                 for (let j = 0; j < arr.length; j++) {
1326
                 for (let j = 0; j < arr.length; j++) {
1363
                   if (this.currentAdvices[i].id == arr[j]) {
1327
                   if (this.currentAdvices[i].id == arr[j]) {
1383
     },
1347
     },
1384
     toCheck () {
1348
     toCheck () {
1385
       var ids = []
1349
       var ids = []
1386
-      console.log('this.currentAdvices999999', this.currentAdvices)
1387
       if (this.currentAdvices != null && this.currentAdvices.length > 0) {
1350
       if (this.currentAdvices != null && this.currentAdvices.length > 0) {
1388
         for (let i = 0; i < this.currentAdvices.length; i++) {
1351
         for (let i = 0; i < this.currentAdvices.length; i++) {
1389
           if (this.currentAdvices[i].check_state == 1) {
1352
           if (this.currentAdvices[i].check_state == 1) {
1400
       var params = {
1363
       var params = {
1401
         ids: ids.join(',')
1364
         ids: ids.join(',')
1402
       }
1365
       }
1403
-      console.log('param23232332o', params)
1404
       checkMobileAdvice(params).then(response => {
1366
       checkMobileAdvice(params).then(response => {
1405
         if (response.data.state == 1) {
1367
         if (response.data.state == 1) {
1406
           Toast.success('核对成功!')
1368
           Toast.success('核对成功!')
1407
           var ids = response.data.data.ids
1369
           var ids = response.data.data.ids
1408
           if (ids != null && ids.length > 0) {
1370
           if (ids != null && ids.length > 0) {
1409
             var arr = ids.split(',')
1371
             var arr = ids.split(',')
1410
-            console.log('arr2332232323', arr)
1411
             for (let i = 0; i < this.currentAdvices.length; i++) {
1372
             for (let i = 0; i < this.currentAdvices.length; i++) {
1412
               for (let j = 0; j < arr.length; j++) {
1373
               for (let j = 0; j < arr.length; j++) {
1413
                 if (this.currentAdvices[i].id == arr[j]) {
1374
                 if (this.currentAdvices[i].id == arr[j]) {

+ 3 - 19
src/pages/advice/NormalAdviceTable.vue View File

62
                 v-for="scheduleType in schedule_types"
62
                 v-for="scheduleType in schedule_types"
63
                 :key="scheduleType.value"
63
                 :key="scheduleType.value"
64
                 @click="handletimeType(scheduleType.value)"
64
                 @click="handletimeType(scheduleType.value)"
65
-                :class="
66
-                  schedule_type_selected == scheduleType.value ? 'tick' : ''
67
-                "
65
+                :class=" schedule_type_selected == scheduleType.value ? 'tick' : ''"
68
               >
66
               >
69
                 {{ scheduleType.text }}
67
                 {{ scheduleType.text }}
70
               </li>
68
               </li>
71
             </ul>
69
             </ul>
72
           </div>
70
           </div>
73
         </el-popover>
71
         </el-popover>
74
-        <!--<el-popover placement="bottom" trigger="click" v-model="show_advice_type_selector">-->
75
-        <!--<li slot="reference">{{advice_types[advice_type_selected].text}}<span class="iconfont">&#xe74a;</span></li>-->
76
-        <!--<div class="popover-demo-content">-->
77
-        <!--<ul>-->
78
-        <!--<li v-for="type in advice_types" :key="type.value" @click="handleAdviceType(type.value)" :class="advice_type_selected == type.value ? 'tick' : ''" >{{type.text}}</li>-->
79
-        <!--</ul>-->
80
-        <!--</div>-->
81
-        <!--</el-popover>-->
82
 
72
 
83
         <li @click="openPicker()">
73
         <li @click="openPicker()">
84
           {{ selected_date_str }}
74
           {{ selected_date_str }}
203
         />
193
         />
204
       </div>
194
       </div>
205
     </div>
195
     </div>
206
-    <!--<div class="NoData" v-show="zones.length <= 1"><img src="@/assets/login/data.jpg" alt=""></div>-->
207
 
196
 
208
     <mt-datetime-picker
197
     <mt-datetime-picker
209
       v-model="selected_date"
198
       v-model="selected_date"
230
     return {
219
     return {
231
       selected_date: new Date(),
220
       selected_date: new Date(),
232
       admin_user: [],
221
       admin_user: [],
233
-
234
       show_sch_type_selector: false,
222
       show_sch_type_selector: false,
235
       schedule_type_selected: 0,
223
       schedule_type_selected: 0,
236
       schedule_types: [
224
       schedule_types: [
239
         { value: 2, text: '下午' },
227
         { value: 2, text: '下午' },
240
         { value: 3, text: '晚上' }
228
         { value: 3, text: '晚上' }
241
       ],
229
       ],
242
-
243
       show_zone_selector: false,
230
       show_zone_selector: false,
244
       zone_selected: 0,
231
       zone_selected: 0,
245
       show_patient_type_selector: false,
232
       show_patient_type_selector: false,
246
       zones: [{ value: 0, text: '全部分区', select: true }],
233
       zones: [{ value: 0, text: '全部分区', select: true }],
247
-
248
       show_advice_type_selector: false,
234
       show_advice_type_selector: false,
249
       advice_type_selected: 0,
235
       advice_type_selected: 0,
250
       advice_types: [
236
       advice_types: [
252
         { value: 1, text: '长期医嘱' },
238
         { value: 1, text: '长期医嘱' },
253
         { value: 3, text: '临时医嘱' }
239
         { value: 3, text: '临时医嘱' }
254
       ],
240
       ],
255
-
256
       patient_types: [
241
       patient_types: [
257
         { value: 0, text: '全部病人' },
242
         { value: 0, text: '全部病人' },
258
         { value: 1, text: '我的病人' },
243
         { value: 1, text: '我的病人' },
259
         { value: 2, text: '未执行病人' }
244
         { value: 2, text: '未执行病人' }
260
       ],
245
       ],
261
       patient_selected: 0,
246
       patient_selected: 0,
262
-
263
       scheduleMap: {}
247
       scheduleMap: {}
264
     }
248
     }
265
   },
249
   },
310
         advice.dialysis_order.device_number &&
294
         advice.dialysis_order.device_number &&
311
         advice.dialysis_order.device_number.number.length > 0
295
         advice.dialysis_order.device_number.number.length > 0
312
       ) {
296
       ) {
313
-        console.log('111111')
297
+        // console.log('111111')
314
       } else {
298
       } else {
315
-        console.log('222222')
299
+        // console.log('222222')
316
       }
300
       }
317
     },
301
     },
318
     clickfunction: function (val) {
302
     clickfunction: function (val) {

+ 4 - 5
src/pages/allDoctorAdvice/index.vue View File

222
       GetDoctorAdviceDetail(id).then(response => {
222
       GetDoctorAdviceDetail(id).then(response => {
223
         if (response.data.state === 1) {
223
         if (response.data.state === 1) {
224
           var doctorAdvicedetail = response.data.data.doctorAdvicedetail
224
           var doctorAdvicedetail = response.data.data.doctorAdvicedetail
225
-          console.log('doctorAdvicedetail', doctorAdvicedetail)
225
+          // console.log('doctorAdvicedetail', doctorAdvicedetail)
226
           this.patient_name = doctorAdvicedetail[0].name
226
           this.patient_name = doctorAdvicedetail[0].name
227
           let objarr = []
227
           let objarr = []
228
           for (let i = 0; i < doctorAdvicedetail.length; i++) {
228
           for (let i = 0; i < doctorAdvicedetail.length; i++) {
231
             }
231
             }
232
           }
232
           }
233
           this.childList = objarr
233
           this.childList = objarr
234
-          console.log('紫瑶', this.childList)
234
+          // console.log('紫瑶', this.childList)
235
           let dataInfo = {}
235
           let dataInfo = {}
236
           doctorAdvicedetail.forEach((item, index) => {
236
           doctorAdvicedetail.forEach((item, index) => {
237
             let { start_time } = item
237
             let { start_time } = item
245
           })
245
           })
246
           let list = Object.values(dataInfo) // list 转换成功的数据
246
           let list = Object.values(dataInfo) // list 转换成功的数据
247
           let arr = []
247
           let arr = []
248
-          console.log('list是 ', list)
248
+          // console.log('list是 ', list)
249
           this.doctorAdvicedetail = list
249
           this.doctorAdvicedetail = list
250
         }
250
         }
251
       })
251
       })
261
       getAllDoctor().then(response => {
261
       getAllDoctor().then(response => {
262
         if (response.data.state === 1) {
262
         if (response.data.state === 1) {
263
           var doctor = response.data.data.doctor
263
           var doctor = response.data.data.doctor
264
-          console.log('doctor', doctor)
264
+          // console.log('doctor', doctor)
265
           this.doctor = doctor
265
           this.doctor = doctor
266
         }
266
         }
267
       })
267
       })
403
     setRem()
403
     setRem()
404
     setHeight()
404
     setHeight()
405
     var id = this.$route.query.id
405
     var id = this.$route.query.id
406
-    console.log('id是--------', id)
407
     this.GetDoctorAdviceDetail(id)
406
     this.GetDoctorAdviceDetail(id)
408
     var patientid = this.$route.query.patientid
407
     var patientid = this.$route.query.patientid
409
     this.id = patientid
408
     this.id = patientid

+ 3 - 32
src/pages/allDoctorAdvice/indexs.vue View File

270
             }
270
             }
271
           }
271
           }
272
           this.childList = objarr
272
           this.childList = objarr
273
-          console.log('childList', this.childList)
273
+          // console.log('childList', this.childList)
274
           let dataInfo = {}
274
           let dataInfo = {}
275
           doctorAdvicedetail.forEach((item, index) => {
275
           doctorAdvicedetail.forEach((item, index) => {
276
             let { start_time } = item
276
             let { start_time } = item
285
           let list = Object.values(dataInfo) // list 转换成功的数据
285
           let list = Object.values(dataInfo) // list 转换成功的数据
286
           let arr = []
286
           let arr = []
287
 
287
 
288
-          // list.map(item => {
289
-          //   let arr2 = [];
290
-          //   if (item.child.length > 1) {
291
-          //     item.child.map(it => {
292
-          //       if (arr.indexOf(it.advice_date) == -1) {
293
-          //         arr.push(it.advice_date);
294
-          //       } else {
295
-          //         delete it["advice_date"];
296
-          //       }
297
-          //     });
298
-          //     for (var i = item.child.length - 1; i != -1; i--) {
299
-          //       let obj = {};
300
-          //       obj.checker = item.child[i].checker;
301
-          //       obj.execution_staff = item.child[i].execution_staff;
302
-          //       obj.user_name = item.child[i].advice_doctor;
303
-          //       if (
304
-          //         JSON.stringify(arr2).includes(JSON.stringify(obj)) == false
305
-          //       ) {
306
-          //         arr2.push(obj);
307
-          //       } else {
308
-          //         console.log("删除");
309
-          //         delete item.child[i]["checker"];
310
-          //         delete item.child[i]["execution_staff"];
311
-          //         delete item.child[i]["advice_doctor"];
312
-          //       }
313
-          //     }
314
-          //   }
315
-          // });
316
-
317
-          console.log('list是 ', list)
288
+          // console.log('list是 ', list)
318
           this.doctorAdvicedetail = list
289
           this.doctorAdvicedetail = list
319
         }
290
         }
320
       })
291
       })
330
       getAllDoctor().then(response => {
301
       getAllDoctor().then(response => {
331
         if (response.data.state === 1) {
302
         if (response.data.state === 1) {
332
           var doctor = response.data.data.doctor
303
           var doctor = response.data.data.doctor
333
-          console.log('doctor', doctor)
304
+          // console.log('doctor', doctor)
334
           this.doctor = doctor
305
           this.doctor = doctor
335
         }
306
         }
336
       })
307
       })

+ 2 - 2
src/pages/allScheduling/index.vue View File

111
             schedulingDetail.schedule_type = "下午";
111
             schedulingDetail.schedule_type = "下午";
112
           }
112
           }
113
           this.schedulingDetail = schedulingDetail;
113
           this.schedulingDetail = schedulingDetail;
114
-          console.log("排班详情", schedulingDetail);
114
+          // console.log("排班详情", schedulingDetail);
115
           var patient = response.data.data.patient;
115
           var patient = response.data.data.patient;
116
           this.name = patient.name;
116
           this.name = patient.name;
117
-          console.log("patient", patient);
117
+          // console.log("patient", patient);
118
         }
118
         }
119
       });
119
       });
120
     },
120
     },

+ 2 - 11
src/pages/businessCenter/components/addCustomers.vue View File

351
             this.total_three = resp.data.total_three + '人'
351
             this.total_three = resp.data.total_three + '人'
352
 
352
 
353
             for (let i = 0; i < resp.data.chart_data.length; i++) {
353
             for (let i = 0; i < resp.data.chart_data.length; i++) {
354
-              console.log(resp.data.chart_data[i].date)
354
+              // console.log(resp.data.chart_data[i].date)
355
               this.options.xAxis.data.push(resp.data.chart_data[i].date)
355
               this.options.xAxis.data.push(resp.data.chart_data[i].date)
356
               this.options.series[0].data.push(resp.data.chart_data[i].value)
356
               this.options.series[0].data.push(resp.data.chart_data[i].value)
357
             }
357
             }
358
             this.getArrLength(this.options.xAxis.data)
358
             this.getArrLength(this.options.xAxis.data)
359
-            console.log(this.options)
359
+            // console.log(this.options)
360
           } else {
360
           } else {
361
             this.$toast({
361
             this.$toast({
362
               message: resp.msg
362
               message: resp.msg
410
   .active {
410
   .active {
411
     background: rgba(51, 138, 251, 1);
411
     background: rgba(51, 138, 251, 1);
412
     color: #fff;
412
     color: #fff;
413
-    // border: 1px solid #338afb;
414
   }
413
   }
415
 
414
 
416
   }
415
   }
424
     font-size: 0.875rem;
423
     font-size: 0.875rem;
425
     border-radius: 30px;
424
     border-radius: 30px;
426
   }
425
   }
427
-  /*.toolBox {*/
428
-
429
-  /*/ / display: flex;*/
430
-  /*/ / height: 2.5 rem;*/
431
-  /*/ / align-items: center;*/
432
-
433
   .toolOne {
426
   .toolOne {
434
     width: 6.25rem;
427
     width: 6.25rem;
435
     height: 1.875rem;
428
     height: 1.875rem;
441
     display: flex;
434
     display: flex;
442
     align-items: center;
435
     align-items: center;
443
     justify-content: space-around;
436
     justify-content: space-around;
444
-    /*/ / margin-left: 0.8125 rem;*/
445
   }
437
   }
446
 
438
 
447
-  /*}*/
448
   .chart {
439
   .chart {
449
     font-size: 1rem;
440
     font-size: 1rem;
450
     font-weight: bold;
441
     font-weight: bold;

+ 1 - 1
src/pages/businessCenter/components/bloodNoStandard.vue View File

186
         if (response.data.state == 1) {
186
         if (response.data.state == 1) {
187
           this.loading = false
187
           this.loading = false
188
           var record = response.data.data.record
188
           var record = response.data.data.record
189
-          console.log('recored', record)
189
+          // console.log('recored', record)
190
           var recordtwo = response.data.data.recoredtwo
190
           var recordtwo = response.data.data.recoredtwo
191
           this.noStandTotal = recordtwo.length
191
           this.noStandTotal = recordtwo.length
192
           var bloodPressure = response.data.data.bloodPressure
192
           var bloodPressure = response.data.data.bloodPressure

+ 0 - 1
src/pages/businessCenter/components/bloodStandard.vue View File

185
         if (response.data.state == 1) {
185
         if (response.data.state == 1) {
186
           this.loading = false
186
           this.loading = false
187
           var record = response.data.data.record
187
           var record = response.data.data.record
188
-          console.log('record', record)
189
           var recordtwo = response.data.data.recordtwo
188
           var recordtwo = response.data.data.recordtwo
190
           var bloodPressure = response.data.data.bloodPressure
189
           var bloodPressure = response.data.data.bloodPressure
191
           var obj = {}
190
           var obj = {}

+ 2 - 2
src/pages/businessCenter/components/outCustomers.vue View File

349
             this.total = resp.data.total + '人'
349
             this.total = resp.data.total + '人'
350
 
350
 
351
             for (let i = 0; i < resp.data.chart_data.length; i++) {
351
             for (let i = 0; i < resp.data.chart_data.length; i++) {
352
-              console.log(resp.data.chart_data[i].date)
352
+              // console.log(resp.data.chart_data[i].date)
353
               this.options.xAxis.data.push(resp.data.chart_data[i].date)
353
               this.options.xAxis.data.push(resp.data.chart_data[i].date)
354
               this.options.series[0].data.push(resp.data.chart_data[i].value)
354
               this.options.series[0].data.push(resp.data.chart_data[i].value)
355
             }
355
             }
356
             this.getArrLength(this.options.xAxis.data)
356
             this.getArrLength(this.options.xAxis.data)
357
-            console.log(this.options)
357
+            // console.log(this.options)
358
           } else {
358
           } else {
359
             this.$toast({
359
             this.$toast({
360
               message: resp.msg
360
               message: resp.msg

+ 0 - 42
src/pages/businessCenter/components/patient.vue View File

248
   },
248
   },
249
   methods: {
249
   methods: {
250
     chooseState (val) {
250
     chooseState (val) {
251
-      // console.log('type', this.type)
252
       if (val === '指标达标统计') {
251
       if (val === '指标达标统计') {
253
         this.bannerName = '查看患者指标达标详情'
252
         this.bannerName = '查看患者指标达标详情'
254
         this.state = val
253
         this.state = val
279
       }
278
       }
280
     },
279
     },
281
     chooseType (val) {
280
     chooseType (val) {
282
-      // console.log('bloodType', this.bloodType)
283
       if (val == '按季度统计对比') {
281
       if (val == '按季度统计对比') {
284
         this.type = val
282
         this.type = val
285
         this.targeType = 1
283
         this.targeType = 1
331
       getMobileNormData().then(response => {
329
       getMobileNormData().then(response => {
332
         if (response.data.state == 1) {
330
         if (response.data.state == 1) {
333
           var normdata = response.data.data.normdata
331
           var normdata = response.data.data.normdata
334
-          // console.log('normdata', normdata)
335
           var bloodPressure = response.data.data.bloodPressure
332
           var bloodPressure = response.data.data.bloodPressure
336
-          // console.log('bloodPressure', bloodPressure)
337
           this.getlist()
333
           this.getlist()
338
         }
334
         }
339
       })
335
       })
465
             nostand[i].Total = 1
461
             nostand[i].Total = 1
466
           }
462
           }
467
         }
463
         }
468
-        // console.log('stand', stand)
469
-        // console.log('nostand', nostand)
470
         for (let i = 0; i < stand.length; i++) {
464
         for (let i = 0; i < stand.length; i++) {
471
           this.modesData.xAxis.push(stand[i].Name)
465
           this.modesData.xAxis.push(stand[i].Name)
472
           this.modesData.series.push(((stand[i].Count / stand[i].Total) * 100).toFixed(1))
466
           this.modesData.series.push(((stand[i].Count / stand[i].Total) * 100).toFixed(1))
484
       this.modesData.series = []
478
       this.modesData.series = []
485
       this.modesData.seriestwo = []
479
       this.modesData.seriestwo = []
486
       this.modesData.xAxis = []
480
       this.modesData.xAxis = []
487
-      // console.log('按月份指标统计')
488
       const januaryStart = moment().month(0).startOf('month').format('YYYY-MM-DD')
481
       const januaryStart = moment().month(0).startOf('month').format('YYYY-MM-DD')
489
       const januaryEnd = moment().month(0).endOf('month').format('YYYY-MM-DD')
482
       const januaryEnd = moment().month(0).endOf('month').format('YYYY-MM-DD')
490
 
483
 
547
         decStart: decStart,
540
         decStart: decStart,
548
         decEnd: decEnd
541
         decEnd: decEnd
549
       }
542
       }
550
-      // console.log('params', params)
551
       getMonthTarget(params).then(response => {
543
       getMonthTarget(params).then(response => {
552
         if (response.data.state == 1) {
544
         if (response.data.state == 1) {
553
           var stand = response.data.data.stand
545
           var stand = response.data.data.stand
554
-          // console.log('stand=====', stand)
555
           var nostand = response.data.data.nostand
546
           var nostand = response.data.data.nostand
556
-          // console.log('nostand', nostand)
557
           var contagionTargeStand = response.data.data.contagionTargeStand
547
           var contagionTargeStand = response.data.data.contagionTargeStand
558
-          // console.log('contagionTargeStand', contagionTargeStand)
559
           var contagionTargeNoStand = response.data.data.contagionTargeNoStand
548
           var contagionTargeNoStand = response.data.data.contagionTargeNoStand
560
-          // console.log('contagionTargeNoStand', contagionTargeNoStand)
561
 
549
 
562
           var newArr = [
550
           var newArr = [
563
             {Name: '1', Count: 0},
551
             {Name: '1', Count: 0},
701
               nostand[i].Total = 1
689
               nostand[i].Total = 1
702
             }
690
             }
703
           }
691
           }
704
-          // console.log('stand', stand)
705
-          // console.log('nostand', nostand)
706
           for (let i = 0; i < stand.length; i++) {
692
           for (let i = 0; i < stand.length; i++) {
707
             this.modesData.xAxis.push(stand[i].Name)
693
             this.modesData.xAxis.push(stand[i].Name)
708
             this.modesData.series.push(((stand[i].Count / stand[i].Total) * 100).toFixed(1))
694
             this.modesData.series.push(((stand[i].Count / stand[i].Total) * 100).toFixed(1))
896
     },
882
     },
897
     // 指标按月份
883
     // 指标按月份
898
     getMonthBloodList () {
884
     getMonthBloodList () {
899
-      // console.log('血压按月份')
900
-
901
       this.modesData.series = []
885
       this.modesData.series = []
902
       this.modesData.seriestwo = []
886
       this.modesData.seriestwo = []
903
       this.modesData.xAxis = []
887
       this.modesData.xAxis = []
904
-      // console.log('按月份指标统计')
905
       const januaryStart = moment().month(0).startOf('month').format('YYYY-MM-DD')
888
       const januaryStart = moment().month(0).startOf('month').format('YYYY-MM-DD')
906
       const januaryEnd = moment().month(0).endOf('month').format('YYYY-MM-DD')
889
       const januaryEnd = moment().month(0).endOf('month').format('YYYY-MM-DD')
907
 
890
 
1015
           var decArr = []
998
           var decArr = []
1016
 
999
 
1017
           var januaryList = response.data.data.januaryList
1000
           var januaryList = response.data.data.januaryList
1018
-          // console.log('一月', januaryList)
1019
           var febList = response.data.data.febList
1001
           var febList = response.data.data.febList
1020
-          // console.log('二月', febList)
1021
           var marList = response.data.data.marList
1002
           var marList = response.data.data.marList
1022
-          // console.log('三月', marList)
1023
           var aprList = response.data.data.aprList
1003
           var aprList = response.data.data.aprList
1024
-          // console.log('四月', aprList)
1025
           var mayList = response.data.data.mayList
1004
           var mayList = response.data.data.mayList
1026
-          // console.log('五月', mayList)
1027
           var junList = response.data.data.junList
1005
           var junList = response.data.data.junList
1028
-          // console.log('六月', junList)
1029
           var julList = response.data.data.julList
1006
           var julList = response.data.data.julList
1030
-          // console.log('七月', julList)
1031
           var augList = response.data.data.augList
1007
           var augList = response.data.data.augList
1032
-          // console.log('八月', augList)
1033
           var sepList = response.data.data.sepList
1008
           var sepList = response.data.data.sepList
1034
-          // console.log('九月', sepList)
1035
           var octList = response.data.data.octList
1009
           var octList = response.data.data.octList
1036
-          // console.log('10月', octList)
1037
           var novList = response.data.data.novList
1010
           var novList = response.data.data.novList
1038
-          // console.log('11月', novList)
1039
           var decList = response.data.data.decList
1011
           var decList = response.data.data.decList
1040
-          // console.log('12月', decList)
1041
           var bloodPressure = response.data.data.bloodPressure
1012
           var bloodPressure = response.data.data.bloodPressure
1042
           var obj = {}
1013
           var obj = {}
1043
           var newArr = []
1014
           var newArr = []
1050
             obj = bloodPressure[0]
1021
             obj = bloodPressure[0]
1051
           }
1022
           }
1052
           newArr.push(obj)
1023
           newArr.push(obj)
1053
-          // console.log('newArr', newArr)
1054
           // 1月
1024
           // 1月
1055
           if (januaryList.length > 0) {
1025
           if (januaryList.length > 0) {
1056
             for (let i = 0; i < januaryList.length; i++) {
1026
             for (let i = 0; i < januaryList.length; i++) {
1060
                 }
1030
                 }
1061
               }
1031
               }
1062
             }
1032
             }
1063
-            // console.log('一月合格人数', janArr)xs
1064
           }
1033
           }
1065
           // 2月
1034
           // 2月
1066
           if (febList.length > 0) {
1035
           if (febList.length > 0) {
1071
                 }
1040
                 }
1072
               }
1041
               }
1073
             }
1042
             }
1074
-            // console.log('二月合格人数', febArr)
1075
           }
1043
           }
1076
           // 3月
1044
           // 3月
1077
           if (marList.length > 0) {
1045
           if (marList.length > 0) {
1082
                 }
1050
                 }
1083
               }
1051
               }
1084
             }
1052
             }
1085
-            // console.log('三月合格人数', marArr)
1086
           }
1053
           }
1087
           // 4月
1054
           // 4月
1088
           if (aprList.length > 0) {
1055
           if (aprList.length > 0) {
1093
                 }
1060
                 }
1094
               }
1061
               }
1095
             }
1062
             }
1096
-            // console.log('四月合格人数', aprArr)
1097
           }
1063
           }
1098
           // 5月
1064
           // 5月
1099
           if (mayList.length > 0) {
1065
           if (mayList.length > 0) {
1104
                 }
1070
                 }
1105
               }
1071
               }
1106
             }
1072
             }
1107
-            // console.log('五月合格人数', mayArr)
1108
           }
1073
           }
1109
           // 6月
1074
           // 6月
1110
           if (junList.length > 0) {
1075
           if (junList.length > 0) {
1115
                 }
1080
                 }
1116
               }
1081
               }
1117
             }
1082
             }
1118
-            // console.log('六月合格人数', junArr)
1119
           }
1083
           }
1120
           // 7月
1084
           // 7月
1121
           if (julList.length > 0) {
1085
           if (julList.length > 0) {
1126
                 }
1090
                 }
1127
               }
1091
               }
1128
             }
1092
             }
1129
-            // console.log('七月合格人数', julArr)
1130
           }
1093
           }
1131
           // 8月
1094
           // 8月
1132
           if (augList.length > 0) {
1095
           if (augList.length > 0) {
1137
                 }
1100
                 }
1138
               }
1101
               }
1139
             }
1102
             }
1140
-            // console.log('八月合格人数', augArr)
1141
           }
1103
           }
1142
           // 9月
1104
           // 9月
1143
           if (sepList.length > 0) {
1105
           if (sepList.length > 0) {
1148
                 }
1110
                 }
1149
               }
1111
               }
1150
             }
1112
             }
1151
-            // console.log('九月合格人数', sepArr)
1152
           }
1113
           }
1153
           // 10月
1114
           // 10月
1154
           if (octList.length > 0) {
1115
           if (octList.length > 0) {
1159
                 }
1120
                 }
1160
               }
1121
               }
1161
             }
1122
             }
1162
-            // console.log('10月合格人数', octArr)
1163
           }
1123
           }
1164
           // 11月
1124
           // 11月
1165
           if (novList.length > 0) {
1125
           if (novList.length > 0) {
1170
                 }
1130
                 }
1171
               }
1131
               }
1172
             }
1132
             }
1173
-            // console.log('11月合格人数', novArr)
1174
           }
1133
           }
1175
           // 12月
1134
           // 12月
1176
           if (decList.length > 0) {
1135
           if (decList.length > 0) {
1181
                 }
1140
                 }
1182
               }
1141
               }
1183
             }
1142
             }
1184
-            // console.log('12月合格人数', decArr)
1185
           }
1143
           }
1186
 
1144
 
1187
           // 一月
1145
           // 一月

+ 1 - 24
src/pages/businessCenter/components/project.vue View File

14
               </div>
14
               </div>
15
             </div>
15
             </div>
16
         </div>
16
         </div>
17
-        <!-- <div class="quarterBox" v-if="type == '按季度统计对比'">
18
-            <p :class="Num == 1 ? 'active' : ''" @click="onClick(1)">第一季度</p>
19
-            <p :class="Num == 2 ? 'active' : ''" @click="onClick(2)">第二季度</p>
20
-            <p :class="Num == 3 ? 'active' : ''" @click="onClick(3)">第三季度</p>
21
-            <p :class="Num == 4 ? 'active' : ''" @click="onClick(4)">第四季度</p>
22
-        </div> -->
23
-        <!-- <div class="month" v-if="type == '按月份统计对比'">
24
-            <div class="monthBox" ref="nav">
25
-                <p
26
-                v-for="(item, index) in monthArr"
27
-                :key="index"
28
-                :class="month == index ? 'active' : ''"
29
-                @click="clickMonth(index)"
30
-                >{{ item }}</p>
31
-            </div>
32
-        </div> -->
33
 
17
 
34
         <div class="chart2">统计图</div>
18
         <div class="chart2">统计图</div>
35
         <bar-chart :options="options"></bar-chart>
19
         <bar-chart :options="options"></bar-chart>
330
       this.month = index
314
       this.month = index
331
     },
315
     },
332
     chooseProject (val) {
316
     chooseProject (val) {
333
-      // console.log('val', val)
334
-
335
       this.project = val
317
       this.project = val
336
       this.projectShow = false
318
       this.projectShow = false
337
 
319
 
364
         if (response.data.state == 1) {
346
         if (response.data.state == 1) {
365
           var newArr = []
347
           var newArr = []
366
           var normdata = response.data.data.normdata
348
           var normdata = response.data.data.normdata
367
-          // console.log('normdata', normdata)
368
           newArr = normdata
349
           newArr = normdata
369
           var bloodPressure = response.data.data.bloodPressure
350
           var bloodPressure = response.data.data.bloodPressure
370
           for (let i = 0; i < bloodPressure.length; i++) {
351
           for (let i = 0; i < bloodPressure.length; i++) {
384
           })
365
           })
385
           var newarr = newArr.sort((a, b) => { return a.sort - b.sort })
366
           var newarr = newArr.sort((a, b) => { return a.sort - b.sort })
386
           this.normData = newarr
367
           this.normData = newarr
387
-          // console.log('newarr', newarr
388
           var arr = []
368
           var arr = []
389
           for (let i = 0; i < newarr.length; i++) {
369
           for (let i = 0; i < newarr.length; i++) {
390
             this.project = newarr[0].item_name
370
             this.project = newarr[0].item_name
391
             arr.push(newarr[i].item_name)
371
             arr.push(newarr[i].item_name)
392
           }
372
           }
393
-          // console.log('arr', arr)
394
           this.columns2 = arr
373
           this.columns2 = arr
395
           if (this.project == '收缩压' || this.project == '舒张压') {
374
           if (this.project == '收缩压' || this.project == '舒张压') {
396
             this.getMobileBloodList()
375
             this.getMobileBloodList()
1562
               newArr[11].Total = dectotal
1541
               newArr[11].Total = dectotal
1563
               newArr[11].Count = decstandtotal
1542
               newArr[11].Count = decstandtotal
1564
             }
1543
             }
1565
-            //  console.log("newarr",newArr)
1566
             for (let j = 0; j < newArr.length; j++) {
1544
             for (let j = 0; j < newArr.length; j++) {
1567
               this.modesData.xAxis.push(newArr[j].name)
1545
               this.modesData.xAxis.push(newArr[j].name)
1568
               this.modesData.series.push(((newArr[j].Count / newArr[j].Total) * 100).toFixed(1))
1546
               this.modesData.series.push(((newArr[j].Count / newArr[j].Total) * 100).toFixed(1))
1590
 }
1568
 }
1591
 </script>
1569
 </script>
1592
 
1570
 
1571
+
1593
 <style lang="scss" scoped>
1572
 <style lang="scss" scoped>
1594
 .page_project{
1573
 .page_project{
1595
     .optionsBox {
1574
     .optionsBox {
1690
     font-weight: bold;
1669
     font-weight: bold;
1691
     margin-left: 0.8125rem;
1670
     margin-left: 0.8125rem;
1692
     color: #000;
1671
     color: #000;
1693
-    // margin-top: 1.375rem;
1694
   }
1672
   }
1695
   .rangeBox {
1673
   .rangeBox {
1696
     margin-left: 0.8125rem;
1674
     margin-left: 0.8125rem;
1730
   height: 0 !important;
1708
   height: 0 !important;
1731
   width: 0;
1709
   width: 0;
1732
 }
1710
 }
1733
-
1734
 </style>
1711
 </style>

+ 0 - 8
src/pages/businessCenter/components/returnGoods.vue View File

32
           </template>
32
           </template>
33
         </el-table-column>
33
         </el-table-column>
34
         <!--style="color: #579ef8"-->
34
         <!--style="color: #579ef8"-->
35
-
36
         <el-table-column label="数量" align="center" width="80">
35
         <el-table-column label="数量" align="center" width="80">
37
           <template slot-scope="scope">
36
           <template slot-scope="scope">
38
             <span
37
             <span
120
                 }
119
                 }
121
               }
120
               }
122
 
121
 
123
-
124
             } else {
122
             } else {
125
               this.$toast({
123
               this.$toast({
126
                 message: resp.msg
124
                 message: resp.msg
130
           .catch(error => {
128
           .catch(error => {
131
 
129
 
132
           })
130
           })
133
-
134
-
135
       },
131
       },
136
-
137
       onClick(id) {
132
       onClick(id) {
138
         if (id == 1) {
133
         if (id == 1) {
139
           this.Num = 1;
134
           this.Num = 1;
142
         } else if (id == 3) {
137
         } else if (id == 3) {
143
           this.Num = 3;
138
           this.Num = 3;
144
         }
139
         }
145
-
146
         switch (this.Num) {
140
         switch (this.Num) {
147
-
148
           case 1: //近1个月
141
           case 1: //近1个月
149
             this.currentDate1 = new Date(new Date().setMonth(new Date().getMonth() + 1)),
142
             this.currentDate1 = new Date(new Date().setMonth(new Date().getMonth() + 1)),
150
               this.currentDate2 = new Date()
143
               this.currentDate2 = new Date()
174
             this.GetStockInfo(this.query)
167
             this.GetStockInfo(this.query)
175
             break
168
             break
176
         }
169
         }
177
-
178
       },
170
       },
179
       getstartTime(value) {
171
       getstartTime(value) {
180
         this.Num = 0
172
         this.Num = 0

+ 0 - 16
src/pages/businessCenter/components/targetNoStandard.vue View File

128
       if (id == 1) {
128
       if (id == 1) {
129
         this.Num = 1
129
         this.Num = 1
130
         this.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
130
         this.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
131
-        // console.log('开始时间', this.start_time)
132
         this.end_time = moment(new Date()).format('YYYY-MM-DD')
131
         this.end_time = moment(new Date()).format('YYYY-MM-DD')
133
-        // console.log('结束时间', this.end_time)
134
         this.getlist()
132
         this.getlist()
135
       } else if (id == 2) {
133
       } else if (id == 2) {
136
         this.Num = 2
134
         this.Num = 2
137
         this.start_time = moment().subtract('month', 3).format('YYYY-MM-DD')
135
         this.start_time = moment().subtract('month', 3).format('YYYY-MM-DD')
138
-        // console.log('开始时间', this.start_time)
139
         this.end_time = moment(new Date()).format('YYYY-MM-DD')
136
         this.end_time = moment(new Date()).format('YYYY-MM-DD')
140
-        // console.log('结束时间', this.end_time)
141
         this.getlist()
137
         this.getlist()
142
       } else if (id == 3) {
138
       } else if (id == 3) {
143
         this.Num = 3
139
         this.Num = 3
144
         this.start_time = moment().subtract('month', 6).format('YYYY-MM-DD')
140
         this.start_time = moment().subtract('month', 6).format('YYYY-MM-DD')
145
-        // console.log('开始时间', this.start_time)
146
         this.end_time = moment(new Date()).format('YYYY-MM-DD')
141
         this.end_time = moment(new Date()).format('YYYY-MM-DD')
147
-        // console.log('结束时间', this.end_time)
148
         this.getlist()
142
         this.getlist()
149
       }
143
       }
150
     },
144
     },
185
       getMobileNormData().then(response => {
179
       getMobileNormData().then(response => {
186
         if (response.data.state == 1) {
180
         if (response.data.state == 1) {
187
           var normdata = response.data.data.normdata
181
           var normdata = response.data.data.normdata
188
-          //   console.log('normdate', normdata)
189
           this.normData = normdata
182
           this.normData = normdata
190
           var a = []
183
           var a = []
191
           for (let i = 0; i < normdata.length; i++) {
184
           for (let i = 0; i < normdata.length; i++) {
202
       this.tableData = []
195
       this.tableData = []
203
       if (this.Num == 1) {
196
       if (this.Num == 1) {
204
         this.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
197
         this.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
205
-        // console.log('开始时间', this.start_time)
206
         this.end_time = moment(new Date()).format('YYYY-MM-DD')
198
         this.end_time = moment(new Date()).format('YYYY-MM-DD')
207
-        // console.log('结束时间', this.end_time)
208
       }
199
       }
209
       const params = {
200
       const params = {
210
         startime: this.start_time,
201
         startime: this.start_time,
215
       getTargetNoStandDetail(params).then(response => {
206
       getTargetNoStandDetail(params).then(response => {
216
         if (response.data.state == 1) {
207
         if (response.data.state == 1) {
217
           var inspectlist = response.data.data.inspectlist
208
           var inspectlist = response.data.data.inspectlist
218
-          //   console.log('inspectilist', inspectlist)
219
           var configurationlist = response.data.data.configurationlist
209
           var configurationlist = response.data.data.configurationlist
220
-          //   console.log('configurationlist', configurationlist)
221
           configurationlist.map(item => {
210
           configurationlist.map(item => {
222
             inspectlist.push(item)
211
             inspectlist.push(item)
223
           })
212
           })
224
           var list = response.data.data.list
213
           var list = response.data.data.list
225
-          //   console.log('list', list)
226
-          //   console.log('configurationlist', inspectlist)
227
 
214
 
228
           let dataInfo = {}
215
           let dataInfo = {}
229
           inspectlist.forEach((item, index) => {
216
           inspectlist.forEach((item, index) => {
236
             }
223
             }
237
           })
224
           })
238
           let list = Object.values(dataInfo)
225
           let list = Object.values(dataInfo)
239
-          //   console.log('list', list)
240
           var dd = {}
226
           var dd = {}
241
           for (const index in inspectlist) {
227
           for (const index in inspectlist) {
242
             if (!(inspectlist[index].inspect_date in dd)) {
228
             if (!(inspectlist[index].inspect_date in dd)) {
246
               dd[inspectlist[index].inspect_date][inspectlist[index].item_name] = inspectlist[index]
232
               dd[inspectlist[index].inspect_date][inspectlist[index].item_name] = inspectlist[index]
247
             }
233
             }
248
           }
234
           }
249
-          //   console.log('dd', dd)
250
 
235
 
251
           for (const key in dd) {
236
           for (const key in dd) {
252
             for (const mkey in this.ObjectData) {
237
             for (const mkey in this.ObjectData) {
268
               }
253
               }
269
             }
254
             }
270
           })
255
           })
271
-          // console.log('this===', this.tableData.length)
272
           this.$nextTick(() => {
256
           this.$nextTick(() => {
273
             this.$refs.tab.doLayout()
257
             this.$refs.tab.doLayout()
274
           })
258
           })

+ 1 - 9
src/pages/businessCenter/components/targetStandard.vue View File

176
     getMobileNormData () {
176
     getMobileNormData () {
177
       getMobileNormData().then(response => {
177
       getMobileNormData().then(response => {
178
         var normdata = response.data.data.normdata
178
         var normdata = response.data.data.normdata
179
-        // console.log('normdate', normdata)
180
         this.normData = normdata
179
         this.normData = normdata
181
         var a = []
180
         var a = []
182
         for (let i = 0; i < normdata.length; i++) {
181
         for (let i = 0; i < normdata.length; i++) {
191
     getlist () {
190
     getlist () {
192
       if (this.Num == 1) {
191
       if (this.Num == 1) {
193
         this.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
192
         this.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
194
-        // console.log('开始时间', this.start_time)
195
         this.end_time = moment(new Date()).format('YYYY-MM-DD')
193
         this.end_time = moment(new Date()).format('YYYY-MM-DD')
196
-        // console.log('结束时间', this.end_time)
197
       }
194
       }
198
       const params = {
195
       const params = {
199
         startime: this.start_time,
196
         startime: this.start_time,
205
       getTargeStandDetail(params).then(response => {
202
       getTargeStandDetail(params).then(response => {
206
         if (response.data.state == 1) {
203
         if (response.data.state == 1) {
207
           var standlist = response.data.data.standlist
204
           var standlist = response.data.data.standlist
208
-          // console.log('standlist', standlist)
209
           var confstandlist = response.data.data.confstandlist
205
           var confstandlist = response.data.data.confstandlist
210
-          // console.log('confstandlist', confstandlist)
211
           var inspectlist = response.data.data.inspectlist
206
           var inspectlist = response.data.data.inspectlist
212
-          // console.log('inspectlit', inspectlist)
213
           confstandlist.map(item => {
207
           confstandlist.map(item => {
214
             standlist.push(item)
208
             standlist.push(item)
215
           })
209
           })
216
-          // console.log('standlist', standlist)
217
 
210
 
218
           let dataInfo = {}
211
           let dataInfo = {}
219
           standlist.forEach((item, index) => {
212
           standlist.forEach((item, index) => {
226
             }
219
             }
227
           })
220
           })
228
           let list = Object.values(dataInfo)
221
           let list = Object.values(dataInfo)
229
-          //   console.log('list', list)
222
+
230
           var dd = {}
223
           var dd = {}
231
           for (const index in standlist) {
224
           for (const index in standlist) {
232
             if (!(standlist[index].inspect_date in dd)) {
225
             if (!(standlist[index].inspect_date in dd)) {
236
               dd[standlist[index].inspect_date][standlist[index].item_name] = standlist[index]
229
               dd[standlist[index].inspect_date][standlist[index].item_name] = standlist[index]
237
             }
230
             }
238
           }
231
           }
239
-          //   console.log('dd', dd)
240
 
232
 
241
           for (const key in dd) {
233
           for (const key in dd) {
242
             for (const mkey in this.ObjectData) {
234
             for (const mkey in this.ObjectData) {

+ 0 - 8
src/pages/businessCenter/components/time1.vue View File

149
       currentDate: new Date(),
149
       currentDate: new Date(),
150
       startTime: '请选择',
150
       startTime: '请选择',
151
       endTime: '请选择',
151
       endTime: '请选择',
152
-      // minDate: new Date(1970, 0, 1),
153
-      // maxDate: new Date(2025, 10, 1),
154
       options: {
152
       options: {
155
         title: {
153
         title: {
156
           text: 'ECharts 入门示例'
154
           text: 'ECharts 入门示例'
157
         },
155
         },
158
         tooltip: {},
156
         tooltip: {},
159
-        // legend: {
160
-        //   data: ["达标率%"],
161
-        //   left: 0
162
-        // },
163
         xAxis: {
157
         xAxis: {
164
           data: [],
158
           data: [],
165
           axisLabel: {
159
           axisLabel: {
208
             // 配置样式
202
             // 配置样式
209
             itemStyle: {
203
             itemStyle: {
210
               // 通常情况下:
204
               // 通常情况下:
211
-
212
               // 每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
205
               // 每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
213
               normal: {
206
               normal: {
214
                 color: function (params) {
207
                 color: function (params) {
224
                     ['#D7C3FD', '#B3A8F7'],
217
                     ['#D7C3FD', '#B3A8F7'],
225
                     ['#D7C3FD', '#B3A8F7']
218
                     ['#D7C3FD', '#B3A8F7']
226
                   ]
219
                   ]
227
-
228
                   var index = params.dataIndex
220
                   var index = params.dataIndex
229
                   if (params.dataIndex >= colorList.length) {
221
                   if (params.dataIndex >= colorList.length) {
230
                     index = params.dataIndex % colorList.length
222
                     index = params.dataIndex % colorList.length

+ 0 - 10
src/pages/businessCenter/components/warehouseOut.vue View File

35
 
35
 
36
             </template>
36
             </template>
37
           </el-table-column>
37
           </el-table-column>
38
-          <!--style="color: #579ef8"-->
39
 
38
 
40
           <el-table-column label="数量" align="center" width="80">
39
           <el-table-column label="数量" align="center" width="80">
41
             <template slot-scope="scope">
40
             <template slot-scope="scope">
46
           </el-table-column>
45
           </el-table-column>
47
           <el-table-column label="总价" align="center" width="80">
46
           <el-table-column label="总价" align="center" width="80">
48
             <template slot-scope="scope">
47
             <template slot-scope="scope">
49
-              <!--<span>{{scope.row}}</span>-->
50
-              <!--<span>{{scope.row.query_warehouseout_info.total_price}}</span>-->
51
               <span v-if="scope.row.is_total == 1">{{getTotal(scope.row)}}</span>
48
               <span v-if="scope.row.is_total == 1">{{getTotal(scope.row)}}</span>
52
               <span v-if="scope.row.is_total == 2">{{scope.row.total}}</span>
49
               <span v-if="scope.row.is_total == 2">{{scope.row.total}}</span>
53
-
54
-
55
-
56
             </template>
50
             </template>
57
           </el-table-column>
51
           </el-table-column>
58
         </el-table>
52
         </el-table>
162
           .catch(error => {
156
           .catch(error => {
163
 
157
 
164
           })
158
           })
165
-
166
-
167
       },
159
       },
168
 
160
 
169
       onClick(id) {
161
       onClick(id) {
174
         } else if (id == 3) {
166
         } else if (id == 3) {
175
           this.Num = 3;
167
           this.Num = 3;
176
         }
168
         }
177
-
178
         switch (this.Num) {
169
         switch (this.Num) {
179
-
180
           case 1: //近1个月
170
           case 1: //近1个月
181
             this.currentDate1 = new Date(new Date().setMonth(new Date().getMonth() + 1)),
171
             this.currentDate1 = new Date(new Date().setMonth(new Date().getMonth() + 1)),
182
               this.currentDate2 = new Date()
172
               this.currentDate2 = new Date()

+ 0 - 2
src/pages/businessCenter/components/warehousing.vue View File

291
 
291
 
292
   }
292
   }
293
 
293
 
294
-
295
-
296
   .toolOne {
294
   .toolOne {
297
     width: 6.25rem;
295
     width: 6.25rem;
298
     height: 1.875rem;
296
     height: 1.875rem;

+ 2 - 7
src/pages/businessCenter/components/withdrawal.vue View File

4
       <p :class="Num == 1 ? 'active' : ''" @click="onClick(1)">近一月</p>
4
       <p :class="Num == 1 ? 'active' : ''" @click="onClick(1)">近一月</p>
5
       <p :class="Num == 2 ? 'active' : ''" @click="onClick(2)">近三月</p>
5
       <p :class="Num == 2 ? 'active' : ''" @click="onClick(2)">近三月</p>
6
       <p :class="Num == 3 ? 'active' : ''" @click="onClick(3)">近半年</p>
6
       <p :class="Num == 3 ? 'active' : ''" @click="onClick(3)">近半年</p>
7
-      <!-- <div class="toolBox"> -->
8
       <div class="toolOne" @click="startShow = true">
7
       <div class="toolOne" @click="startShow = true">
9
         <div style="display: flex;align-items: center;">
8
         <div style="display: flex;align-items: center;">
10
           {{ query.start_time }}
9
           {{ query.start_time }}
17
           <van-icon name="arrow-down"/>
16
           <van-icon name="arrow-down"/>
18
         </div>
17
         </div>
19
       </div>
18
       </div>
20
-      <!-- </div> -->
21
     </div>
19
     </div>
22
     <div>
20
     <div>
23
       <el-table ref="tab" :data="tableData" style="width: 100%" :height="tableHeight" border :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
21
       <el-table ref="tab" :data="tableData" style="width: 100%" :height="tableHeight" border :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
31
             <span>{{ scope.row.specification_name }}</span>
29
             <span>{{ scope.row.specification_name }}</span>
32
           </template>
30
           </template>
33
         </el-table-column>
31
         </el-table-column>
34
-        <!--style="color: #579ef8"-->
35
 
32
 
36
         <el-table-column label="数量" align="center" width="80">
33
         <el-table-column label="数量" align="center" width="80">
37
           <template slot-scope="scope">
34
           <template slot-scope="scope">
72
 <script>
69
 <script>
73
   const moment = require('moment')
70
   const moment = require('moment')
74
   import {GetStockInfo} from "@/api/statistics";
71
   import {GetStockInfo} from "@/api/statistics";
75
-
76
   export default {
72
   export default {
77
     data() {
73
     data() {
78
       return {
74
       return {
129
           .catch(error => {
125
           .catch(error => {
130
 
126
 
131
           })
127
           })
132
-
133
-
134
       },
128
       },
135
 
129
 
136
       onClick(id) {
130
       onClick(id) {
210
         this.GetStockInfo(this.query)
204
         this.GetStockInfo(this.query)
211
 
205
 
212
       },
206
       },
213
-    }, created() {
207
+    },
208
+    created() {
214
       this.tableHeight = (document.documentElement.clientHeight - (Number(document.documentElement.style.fontSize.slice(0, -2)) * 2.75)) + 'px'
209
       this.tableHeight = (document.documentElement.clientHeight - (Number(document.documentElement.style.fontSize.slice(0, -2)) * 2.75)) + 'px'
215
       this.query.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
210
       this.query.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
216
       // 本月的结束时间
211
       // 本月的结束时间

+ 0 - 6
src/pages/businessCenter/index.vue View File

4
             <i class="iconfont icon-zuojiantou jiantou" @click="goBack"></i>
4
             <i class="iconfont icon-zuojiantou jiantou" @click="goBack"></i>
5
             <span class="titleName">经营中心</span>
5
             <span class="titleName">经营中心</span>
6
       </div>
6
       </div>
7
-      <!-- <div>
8
-          <van-cell title="患者统计" is-link @click="toCustomClick" />
9
-          <van-cell title="质量统计" is-link @click="toClick" />
10
-          <van-cell title="库存统计" is-link @click="toStockClick"/>
11
-      </div> -->
12
       <div class="consoleBox">
7
       <div class="consoleBox">
13
       <div class="consoleOne" @click="toCustomClick">
8
       <div class="consoleOne" @click="toCustomClick">
14
         <img src="../../assets/images/A1.jpg" alt />
9
         <img src="../../assets/images/A1.jpg" alt />
57
     },
52
     },
58
     toCustomClick(){
53
     toCustomClick(){
59
       this.$router.push('/bus/quality?tabName=' + '患者统计')
54
       this.$router.push('/bus/quality?tabName=' + '患者统计')
60
-
61
     },
55
     },
62
     toClick () {
56
     toClick () {
63
       this.$router.push('/bus/quality?tabName=' + '质量统计')
57
       this.$router.push('/bus/quality?tabName=' + '质量统计')

+ 3 - 3
src/pages/businessCenter/quality.vue View File

18
 </template>
18
 </template>
19
 
19
 
20
 <script>
20
 <script>
21
-import Project from './components/project.vue'
22
-import Time1 from './components/time1.vue'
23
-import Patient from './components/patient.vue'
21
+import Project from './components/project'
22
+import Time1 from './components/time1'
23
+import Patient from './components/patient'
24
 export default {
24
 export default {
25
   components: {
25
   components: {
26
     Project,
26
     Project,

+ 1 - 2
src/pages/businessCenter/targetStandard.vue View File

65
       this.$router.go(-1)
65
       this.$router.go(-1)
66
     },
66
     },
67
     onConfirm (value) {
67
     onConfirm (value) {
68
-      console.log('value', value)
69
       this.type = value
68
       this.type = value
70
       this.show = false
69
       this.show = false
71
     }
70
     }
80
     }
79
     }
81
     this.tabName = this.$route.query.tabName
80
     this.tabName = this.$route.query.tabName
82
     var test = localStorage.getItem('test', this.active)
81
     var test = localStorage.getItem('test', this.active)
83
-    console.log('dovActive', test)
82
+
84
   }
83
   }
85
 }
84
 }
86
 </script>
85
 </script>

+ 3 - 3
src/pages/configureCenter/components/Bed.vue View File

66
       GetAllNumber(this.page, this.limit).then(response => {
66
       GetAllNumber(this.page, this.limit).then(response => {
67
         if (response.data.state === 1) {
67
         if (response.data.state === 1) {
68
           var number = response.data.data.number;
68
           var number = response.data.data.number;
69
-          console.log("number", number);
69
+          // console.log("number", number);
70
           let arr = this.BedNumber;
70
           let arr = this.BedNumber;
71
           arr.push(...number);
71
           arr.push(...number);
72
           this.BedNumber = arr;
72
           this.BedNumber = arr;
73
           var total = response.data.data.total;
73
           var total = response.data.data.total;
74
-          console.log("total", total);
74
+          // console.log("total", total);
75
           this.total = total;
75
           this.total = total;
76
           var zone = response.data.data.zone;
76
           var zone = response.data.data.zone;
77
           this.Zone = zone;
77
           this.Zone = zone;
143
     }
143
     }
144
   },
144
   },
145
   created() {
145
   created() {
146
-    console.log("active", this.active);
146
+    // console.log("active", this.active);
147
     this.GetAllNumber();
147
     this.GetAllNumber();
148
   }
148
   }
149
 };
149
 };

+ 2 - 2
src/pages/configureCenter/components/Grouping.vue View File

64
           let arr = this.group;
64
           let arr = this.group;
65
           arr.push(...group);
65
           arr.push(...group);
66
           this.group = arr;
66
           this.group = arr;
67
-          console.log("group", group);
67
+          // console.log("group", group);
68
           var total = response.data.data.total;
68
           var total = response.data.data.total;
69
-          console.log("total", total);
69
+          // console.log("total", total);
70
           this.total = total;
70
           this.total = total;
71
           this.loading = false;
71
           this.loading = false;
72
         }
72
         }

+ 1 - 1
src/pages/configureCenter/components/Partition.vue View File

68
       GetAllZone(this.page, this.limit).then(response => {
68
       GetAllZone(this.page, this.limit).then(response => {
69
         if (response.data.state === 1) {
69
         if (response.data.state === 1) {
70
           var zone = response.data.data.zone;
70
           var zone = response.data.data.zone;
71
-          console.log("分区", zone);
71
+          // console.log("分区", zone);
72
           for (let i = 0; i < zone.length; i++) {
72
           for (let i = 0; i < zone.length; i++) {
73
             if (zone[i].type === 1) {
73
             if (zone[i].type === 1) {
74
               zone[i].type = "普通";
74
               zone[i].type = "普通";

+ 2 - 2
src/pages/configureCenter/editBed.vue View File

131
           var bedDetail = response.data.data.bedDetail;
131
           var bedDetail = response.data.data.bedDetail;
132
           this.form.id = bedDetail.id;
132
           this.form.id = bedDetail.id;
133
           var zone = response.data.data.zone;
133
           var zone = response.data.data.zone;
134
-          console.log(zone);
134
+          // console.log(zone);
135
           var group = response.data.data.group;
135
           var group = response.data.data.group;
136
-          console.log("bedDetail", bedDetail);
136
+          // console.log("bedDetail", bedDetail);
137
           // this.zone = bedDetail.zone_id;
137
           // this.zone = bedDetail.zone_id;
138
           this.name = bedDetail.number;
138
           this.name = bedDetail.number;
139
           for (let i = 0; i < zone.length; i++) {
139
           for (let i = 0; i < zone.length; i++) {

+ 1 - 1
src/pages/configureCenter/editGrouping.vue View File

35
       getGroupDetail(id).then(response => {
35
       getGroupDetail(id).then(response => {
36
         if (response.data.state == 1) {
36
         if (response.data.state == 1) {
37
           var groupdetail = response.data.data.groupDetail;
37
           var groupdetail = response.data.data.groupDetail;
38
-          console.log("groupdetail", groupdetail);
38
+          // console.log("groupdetail", groupdetail);
39
           this.name = groupdetail.name;
39
           this.name = groupdetail.name;
40
           this.id = groupdetail.id;
40
           this.id = groupdetail.id;
41
         }
41
         }

+ 1 - 2
src/pages/configureCenter/editPartion.vue View File

115
           if (partionDetail.type === 6) {
115
           if (partionDetail.type === 6) {
116
             this.type = "梅毒";
116
             this.type = "梅毒";
117
           }
117
           }
118
-          console.log("partionDetail", partionDetail);
118
+          // console.log("partionDetail", partionDetail);
119
         }
119
         }
120
       });
120
       });
121
     },
121
     },
185
   created() {
185
   created() {
186
     this.active = parseInt(this.$route.query.active);
186
     this.active = parseInt(this.$route.query.active);
187
     var id = this.$route.query.id;
187
     var id = this.$route.query.id;
188
-    console.log("id", id);
189
     this.getPartionDetail(id);
188
     this.getPartionDetail(id);
190
     localStorage.setItem("test", this.active);
189
     localStorage.setItem("test", this.active);
191
   }
190
   }

+ 2 - 2
src/pages/configureCenter/index.vue View File

68
 
68
 
69
     this.active = parseInt(localStorage.getItem("test"));
69
     this.active = parseInt(localStorage.getItem("test"));
70
     localStorage.removeItem("test");
70
     localStorage.removeItem("test");
71
-    console.log(this.active);
71
+    // console.log(this.active);
72
     var center = parseInt(localStorage.getItem("center"));
72
     var center = parseInt(localStorage.getItem("center"));
73
     this.center = center;
73
     this.center = center;
74
-    console.log("------", center);
74
+    // console.log("------", center);
75
   },
75
   },
76
   mounted() {
76
   mounted() {
77
     setRem();
77
     setRem();

+ 0 - 1
src/pages/configureCenter/newBed.vue View File

74
             this.columns.push(zone[j].name);
74
             this.columns.push(zone[j].name);
75
           }
75
           }
76
           this.dataOne = zone;
76
           this.dataOne = zone;
77
-          console.log("zone", zone);
78
         }
77
         }
79
       });
78
       });
80
     },
79
     },

+ 1 - 17
src/pages/console/managementConsole/index.vue View File

25
           <van-icon name="arrow" />
25
           <van-icon name="arrow" />
26
         </div>
26
         </div>
27
       </div>
27
       </div>
28
-      <!--<div class="consoleOne">-->
29
-      <!--<img src="../../../assets/images/A3.jpg" alt="" />-->
30
-      <!--<div class="consoleRight">-->
31
-      <!--<div>-->
32
-      <!--<p class="rightName">应用管理</p>-->
33
-      <!--<p class="rightTip">管理员可以添加或者停用应用</p>-->
34
-      <!--</div>-->
35
-      <!--<van-icon name="arrow" />-->
36
-      <!--</div>-->
37
-      <!--</div>-->
38
       <div class="consoleOne" @click="toOrgSetting()">
28
       <div class="consoleOne" @click="toOrgSetting()">
39
         <img src="../../../assets/images/A4.jpg" alt="" />
29
         <img src="../../../assets/images/A4.jpg" alt="" />
40
         <div class="consoleRight">
30
         <div class="consoleRight">
56
         </div>
46
         </div>
57
       </div>
47
       </div>
58
     </div>
48
     </div>
59
-    <!--<div class="transfer">-->
60
-    <!--<img src="../../../assets/images/A6.jpg" alt="" />-->
61
-    <!--<div class="transferRight">-->
62
-    <!--<p class="rightName">员工管理</p>-->
63
-    <!--<van-icon name="arrow" />-->
64
-    <!--</div>-->
65
-    <!--</div>-->
49
+
66
   </div>
50
   </div>
67
 </template>
51
 </template>
68
 <script>
52
 <script>

+ 2 - 4
src/pages/console/managementConsole/staff_role/addStaff/index.vue View File

188
         }
188
         }
189
       }
189
       }
190
 
190
 
191
-      console.log(this.departments)
192
-
193
       for (let i = 0; i < this.departments.length; i++){
191
       for (let i = 0; i < this.departments.length; i++){
194
-        console.log(this.departments[i])
192
+        // console.log(this.departments[i])
195
         if(this.department_name == this.departments[i].name){
193
         if(this.department_name == this.departments[i].name){
196
           this.department_id = this.departments[i].id
194
           this.department_id = this.departments[i].id
197
         }
195
         }
198
       }
196
       }
199
 
197
 
200
-      console.log(this.department_id)
198
+      // console.log(this.department_id)
201
     },
199
     },
202
     onUserTypeConfirm(value, index) {
200
     onUserTypeConfirm(value, index) {
203
       this.show1 = false;
201
       this.show1 = false;

+ 2 - 15
src/pages/console/managementConsole/staff_role/editRole/index.vue View File

5
       <span class="titleName">模块权限配置</span>
5
       <span class="titleName">模块权限配置</span>
6
     </div>
6
     </div>
7
 
7
 
8
-    <!--<div class="roleDescription">-->
9
-      <!--&lt;!&ndash;<van-field v-if="!isShow" v-model="desc" rows="1" autosize label="角色描述" type="textarea" placeholder="请填写角色描述"/>&ndash;&gt;-->
10
-      <!--&lt;!&ndash;<van-field v-else v-model="desc" rows="1" autosize label="角色描述" type="textarea" placeholder="请填写角色描述"/>&ndash;&gt;-->
11
-    <!--</div>-->
12
     <div class="disposeBox">
8
     <div class="disposeBox">
13
       <p class="disposeTitle">模块权限配置</p>
9
       <p class="disposeTitle">模块权限配置</p>
14
 
10
 
15
       <div v-for="(item, index) in allPurview" :key="index">
11
       <div v-for="(item, index) in allPurview" :key="index">
16
         <div class="disposeOne" v-if="!item.no_sub" @click="toSubPurview(item)">
12
         <div class="disposeOne" v-if="!item.no_sub" @click="toSubPurview(item)">
17
           <van-cell :title="item.name" is-link center />
13
           <van-cell :title="item.name" is-link center />
18
-          <!-- <div class="disposeImg" style="visibility: hidden">
19
-            <img :src="item.icon_url" alt/>
20
-          </div>
21
-          <div class="disposeTxt">
22
-            <div>
23
-              <p class="disposeName">{{ item.name }}</p>
24
-              <p class="disposeTip">{{ item.desc }}</p>
25
-            </div>
26
-            <van-icon class="arrow" name="arrow"/>
27
-          </div> -->
14
+  
28
         </div>
15
         </div>
29
         <van-cell center :title="item.name" v-if="item.no_sub">
16
         <van-cell center :title="item.name" v-if="item.no_sub">
30
           <template #right-icon>
17
           <template #right-icon>
199
         GetNewPurview(params).then(response => {
186
         GetNewPurview(params).then(response => {
200
           if (response.data.state === 1) {
187
           if (response.data.state === 1) {
201
             this.loading = false
188
             this.loading = false
202
-            console.log( this.$route.query.url == '/config/manage')
189
+            // console.log( this.$route.query.url == '/config/manage')
203
 
190
 
204
             for (let i = 0; i < response.data.data.purviews.length; i++) {
191
             for (let i = 0; i < response.data.data.purviews.length; i++) {
205
               var purview = response.data.data.purviews[i].sub_purview
192
               var purview = response.data.data.purviews[i].sub_purview

+ 0 - 22
src/pages/console/managementConsole/staff_role/editStaff/index.vue View File

64
     <div class="staffBox">
64
     <div class="staffBox">
65
       <van-field v-model="title" label="职位" placeholder="请填写"/>
65
       <van-field v-model="title" label="职位" placeholder="请填写"/>
66
     </div>
66
     </div>
67
-    <!--<div v-if="isShow()" class="stop" @click="onClick(2)">禁用该员工账号</div>-->
68
-    <!--<div v-if="isShow()" class="stop" @click="onClick(2)">禁用该员工账号</div>-->
69
 
67
 
70
     <div v-if="adminInfo.status == 1  &&  isShow()" class="stop" @click="onClick(2)">禁用该员工账号</div>
68
     <div v-if="adminInfo.status == 1  &&  isShow()" class="stop" @click="onClick(2)">禁用该员工账号</div>
71
     <div v-if="adminInfo.status != 1  &&  isShow()" class="stop1" @click="onClick(1)">恢复该员工账号</div>
69
     <div v-if="adminInfo.status != 1  &&  isShow()" class="stop1" @click="onClick(1)">恢复该员工账号</div>
194
           }
192
           }
195
         }
193
         }
196
 
194
 
197
-        // if(this.adminInfo.admin_user_id)
198
-
199
-
200
       },
195
       },
201
       onUserTypeConfirm(value, index) {
196
       onUserTypeConfirm(value, index) {
202
         this.type_name = value
197
         this.type_name = value
206
           if (this.user_types[i].name == value) {
201
           if (this.user_types[i].name == value) {
207
             this.user_type = this.user_types[i].index
202
             this.user_type = this.user_types[i].index
208
             this.type_name = this.user_types[i].name
203
             this.type_name = this.user_types[i].name
209
-
210
           }
204
           }
211
-
212
         }
205
         }
213
-
214
-
215
       },
206
       },
216
       onUserTitleConfirm(value, index) {
207
       onUserTitleConfirm(value, index) {
217
         this.titles_name = value
208
         this.titles_name = value
224
 
215
 
225
           }
216
           }
226
         }
217
         }
227
-
228
-
229
       },
218
       },
230
       onCancel() {
219
       onCancel() {
231
         this.show1 = false
220
         this.show1 = false
232
         this.show2 = false
221
         this.show2 = false
233
         this.show3 = false
222
         this.show3 = false
234
-
235
-
236
       },
223
       },
237
       save() {
224
       save() {
238
 
225
 
318
               }
305
               }
319
             }
306
             }
320
 
307
 
321
-
322
             for (let i = 0; i < this.user_department_name.length; i++) {
308
             for (let i = 0; i < this.user_department_name.length; i++) {
323
               if (this.user_department_name[i] == this.adminInfo.department) {
309
               if (this.user_department_name[i] == this.adminInfo.department) {
324
                 this.department_name = this.user_department_name[i]
310
                 this.department_name = this.user_department_name[i]
331
               }
317
               }
332
             }
318
             }
333
 
319
 
334
-
335
             //如果当前用户是超级管理员,而且是在编辑自己的信息的时候,将子管理员角色去除
320
             //如果当前用户是超级管理员,而且是在编辑自己的信息的时候,将子管理员角色去除
336
             for (let i = 0; i < this.roles.length; i++) {
321
             for (let i = 0; i < this.roles.length; i++) {
337
               if (this.adminInfo.admin.id == this.$store.getters.user.admin.id && this.$store.getters.user.admin.is_super_admin && this.roles[i].is_system == 1 && this.roles[i].name == "子管理员") {
322
               if (this.adminInfo.admin.id == this.$store.getters.user.admin.id && this.$store.getters.user.admin.is_super_admin && this.roles[i].is_system == 1 && this.roles[i].name == "子管理员") {
340
               }
325
               }
341
             }
326
             }
342
 
327
 
343
-
344
           } else {
328
           } else {
345
             this.$toast({
329
             this.$toast({
346
               message: response.data.msg
330
               message: response.data.msg
402
 
386
 
403
             this.GetAdminUserInfo(this.$route.query.id)
387
             this.GetAdminUserInfo(this.$route.query.id)
404
 
388
 
405
-
406
           } else {
389
           } else {
407
             this.$toast({
390
             this.$toast({
408
               message: response.data.msg
391
               message: response.data.msg
418
           }).then(() => {
401
           }).then(() => {
419
             this.StopAdminUser(id)
402
             this.StopAdminUser(id)
420
 
403
 
421
-
422
           });
404
           });
423
         } else if (id == 1) {
405
         } else if (id == 1) {
424
           Dialog.confirm({
406
           Dialog.confirm({
425
             message: "是否确定要恢复该员工账号?"
407
             message: "是否确定要恢复该员工账号?"
426
           }).then(() => {
408
           }).then(() => {
427
             this.StopAdminUser(id)
409
             this.StopAdminUser(id)
428
-
429
-
430
           });
410
           });
431
         }
411
         }
432
       }
412
       }
433
     }, created() {
413
     }, created() {
434
       this.GetDepartment();
414
       this.GetDepartment();
435
       this.GetAdminUserInitData()
415
       this.GetAdminUserInitData()
436
-
437
       setRem()
416
       setRem()
438
-
439
     }
417
     }
440
   };
418
   };
441
 </script>
419
 </script>

+ 1 - 1
src/pages/console/managementConsole/staff_role/employeeList/index.vue View File

79
             this.admin_user = response.data.data.admins;
79
             this.admin_user = response.data.data.admins;
80
             this.isSubSuperAdmin = response.data.data.isSubSuperAdmin;
80
             this.isSubSuperAdmin = response.data.data.isSubSuperAdmin;
81
 
81
 
82
-            console.log(this.admin_user);
82
+            // console.log(this.admin_user);
83
             for (let i = 0; i < this.admin_user.length; i++) {
83
             for (let i = 0; i < this.admin_user.length; i++) {
84
               if (this.admin_user[i].role_ids.length > 0) {
84
               if (this.admin_user[i].role_ids.length > 0) {
85
                 let isExist = -1;
85
                 let isExist = -1;

+ 1 - 1
src/pages/console/managementConsole/staff_role/otherPurview/index.vue View File

231
             this.desc = response.data.data.role.intro;
231
             this.desc = response.data.data.role.intro;
232
             this.ids = this.rolePurview.PurviewIds.split(",");
232
             this.ids = this.rolePurview.PurviewIds.split(",");
233
 
233
 
234
-            console.log(this.subPurview)
234
+            // console.log(this.subPurview)
235
             for (let a = 0; a < this.ids.length; a++) {
235
             for (let a = 0; a < this.ids.length; a++) {
236
               for (let i = 0; i < this.subPurview.length; i++) {
236
               for (let i = 0; i < this.subPurview.length; i++) {
237
                 if (parseInt(this.ids[a]) == this.subPurview[i].id) {
237
                 if (parseInt(this.ids[a]) == this.subPurview[i].id) {

+ 1 - 1
src/pages/console/managementConsole/staff_role/privilegeManagement/index.vue View File

73
         this.loading = true
73
         this.loading = true
74
         GetAllRole().then(response => {
74
         GetAllRole().then(response => {
75
           if (response.data.state === 1) {
75
           if (response.data.state === 1) {
76
-            console.log(response.data.data.roles.length)
76
+            // console.log(response.data.data.roles.length)
77
             for (let i = 0; i < response.data.data.roles.length; i++) {
77
             for (let i = 0; i < response.data.data.roles.length; i++) {
78
               if (!response.data.data.roles[i].is_super_admin) {
78
               if (!response.data.data.roles[i].is_super_admin) {
79
                 this.roles.push(response.data.data.roles[i])
79
                 this.roles.push(response.data.data.roles[i])

+ 1 - 25
src/pages/console/managementConsole/staff_role/userManage/index.vue View File

88
           this.isSubSuperAdmin = response.data.data.isSubSuperAdmin;
88
           this.isSubSuperAdmin = response.data.data.isSubSuperAdmin;
89
 
89
 
90
           for (let i = 0; i < this.admin_user.length; i++) {
90
           for (let i = 0; i < this.admin_user.length; i++) {
91
-            console.log(this.admin_user[i].role_ids.length)
91
+            // console.log(this.admin_user[i].role_ids.length)
92
             if (this.admin_user[i].role_ids.length >= 0) {
92
             if (this.admin_user[i].role_ids.length >= 0) {
93
               let isExist = -1;
93
               let isExist = -1;
94
               let ids = this.admin_user[i].role_ids.split(",");
94
               let ids = this.admin_user[i].role_ids.split(",");
111
       });
111
       });
112
     },
112
     },
113
     goEditStaff: function(is_sub_admin, user_id) {
113
     goEditStaff: function(is_sub_admin, user_id) {
114
-      // if (this.isShow(is_sub_admin,user_id)){
115
         this.$router.push({ path: "/staff/editstaff?id=" + user_id });
114
         this.$router.push({ path: "/staff/editstaff?id=" + user_id });
116
-      // }
117
-      // else{
118
-      //   if (!this.isSubSuperAdmin){
119
-
120
-
121
-      //   }else {
122
-      //     if (is_sub_admin) {
123
-      //       if (user_id == this.$store.getters.user.admin.id) {
124
-
125
-      //       }else{
126
-      //         Toast("无法修改其他子管理员或者管理员信息");
127
-      //       }
128
-      //     } else {
129
-      //       if (user_id != this.$store.getters.user.org.creator) {
130
-
131
-      //       } else {
132
-      //         Toast("无法修改其他子管理员或者管理员信息");
133
-      //       }
134
-      //     }
135
-      //   }
136
-
137
-
138
-      // }
139
     },
115
     },
140
     goAddStaff: function() {
116
     goAddStaff: function() {
141
       this.$router.push({ path: "/staff/addstaff" });
117
       this.$router.push({ path: "/staff/addstaff" });

+ 3 - 6
src/pages/doctorAdvice/add/addCourseManagement.vue View File

1
-<template>
1
+<!-- <template>
2
     <div class="page_newCourse">
2
     <div class="page_newCourse">
3
         <van-sticky>
3
         <van-sticky>
4
             <div class="newCourseTitle">
4
             <div class="newCourseTitle">
105
     },
105
     },
106
 
106
 
107
     onConfirm (value) {
107
     onConfirm (value) {
108
-      console.log('value', value)
109
       var content = ''
108
       var content = ''
110
       for (let i = 0; i < this.template.length; i++) {
109
       for (let i = 0; i < this.template.length; i++) {
111
         if (value == this.template[i].title) {
110
         if (value == this.template[i].title) {
112
           content = this.template[i].content
111
           content = this.template[i].content
113
         }
112
         }
114
       }
113
       }
115
-      console.log('content', content)
116
       this.content = content.replace(/<[^>]+>/g, '')
114
       this.content = content.replace(/<[^>]+>/g, '')
117
       this.course_content = value
115
       this.course_content = value
118
       this.typeShow = false
116
       this.typeShow = false
137
         content: this.content,
135
         content: this.content,
138
         patientid: this.patientid
136
         patientid: this.patientid
139
       }
137
       }
140
-      console.log('params', params)
141
       saveCourseManagement(params).then(response => {
138
       saveCourseManagement(params).then(response => {
142
         if (response.data.state == 1) {
139
         if (response.data.state == 1) {
143
           var record = response.data.data.record
140
           var record = response.data.data.record
144
-          console.log('record', record)
141
+          // console.log('record', record)
145
           this.$toast('保存成功')
142
           this.$toast('保存成功')
146
           this.$router.push('/patientdetail?patientid=' + this.patientid + '&seacherActive=' + this.seacherActive + '&active=' + 5)
143
           this.$router.push('/patientdetail?patientid=' + this.patientid + '&seacherActive=' + this.seacherActive + '&active=' + 5)
147
         }
144
         }
234
     height:100%;
231
     height:100%;
235
   }
232
   }
236
 }
233
 }
237
-</style>
234
+</style> -->

+ 3 - 8
src/pages/doctorAdvice/components/Contagion.vue View File

58
         <img src="../../../assets/images/none.png" alt />
58
         <img src="../../../assets/images/none.png" alt />
59
       </div>
59
       </div>
60
     </div>
60
     </div>
61
-    <!-- <div class="add">
62
-      <div style="display: flex;align-items: center;">
63
-        <van-icon class="addIcon" name="add" />新增
64
-      </div>
65
-    </div>-->
66
 
61
 
67
     <!-- 弹出层 -->
62
     <!-- 弹出层 -->
68
     <div>
63
     <div>
263
       getAllInspection().then(response => {
258
       getAllInspection().then(response => {
264
         if (response.data.state === 1) {
259
         if (response.data.state === 1) {
265
           var inspection = response.data.data.inspection
260
           var inspection = response.data.data.inspection
266
-          console.log('inspection9999', inspection)
261
+          // console.log('inspection9999', inspection)
267
           this.checkdata = inspection
262
           this.checkdata = inspection
268
           for (let i = 0; i < inspection.length; i++) {
263
           for (let i = 0; i < inspection.length; i++) {
269
             this.columns.push(inspection[i].project_name)
264
             this.columns.push(inspection[i].project_name)
289
             }
284
             }
290
           }
285
           }
291
           var total = response.data.data.total
286
           var total = response.data.data.total
292
-           console.log("inspection2222", inspection);
287
+          //  console.log("inspection2222", inspection);
293
           let dataInfo = {}
288
           let dataInfo = {}
294
           inspection.forEach((item, index) => {
289
           inspection.forEach((item, index) => {
295
             let { inspect_date } = item
290
             let { inspect_date } = item
317
             item.child = arr
312
             item.child = arr
318
           })
313
           })
319
           this.Inspection = list.reverse()
314
           this.Inspection = list.reverse()
320
-          console.log('this', this.Inspection)
315
+          // console.log('this', this.Inspection)
321
         }
316
         }
322
       })
317
       })
323
       this.finished = true
318
       this.finished = true

+ 0 - 15
src/pages/doctorAdvice/components/CourseManagement.vue View File

58
         <img src="../../../assets/images/none.png" alt />
58
         <img src="../../../assets/images/none.png" alt />
59
       </div>
59
       </div>
60
     </div>
60
     </div>
61
-<!--    <div class="add">-->
62
-<!--      <div style="display: flex;align-items: center;margin: 0 auto;width: 15%;" @click="addCourse">-->
63
-<!--        <van-icon class="addIcon" name="add" />新增-->
64
-<!--      </div>-->
65
-<!--    </div>-->
66
 
61
 
67
     <!-- 弹出层 -->
62
     <!-- 弹出层 -->
68
     <div>
63
     <div>
241
       })
236
       })
242
     },
237
     },
243
     onLoad () {
238
     onLoad () {
244
-      // setTimeout(() => {
245
-      //   this.page++
246
-      //   // console.log(this.page)
247
-      //   if (this.page <= Math.ceil(this.total / 10)) {
248
-      //     this.getCourseManagement(this.patientid)
249
-      //   } else {
250
-      //     this.loading = false
251
-      //     this.finished = true
252
-      //   }
253
-      // }, 1000)
254
         this.loading = false
239
         this.loading = false
255
         this.finished = true
240
         this.finished = true
256
     },
241
     },

+ 0 - 1
src/pages/doctorAdvice/components/DialysisRecord.vue View File

473
       this.page++
473
       this.page++
474
       if (this.page <= Math.ceil(this.total / 10)) {
474
       if (this.page <= Math.ceil(this.total / 10)) {
475
         this.getDialysisRecord(this.patient_id)
475
         this.getDialysisRecord(this.patient_id)
476
-        console.log('patientid', this.patient_id)
477
       } else {
476
       } else {
478
         this.loading = false
477
         this.loading = false
479
         this.finished = true
478
         this.finished = true

+ 3 - 9
src/pages/doctorAdvice/components/DoctorManagement.vue View File

171
                 </div>
171
                 </div>
172
             </div>
172
             </div>
173
          </div>
173
          </div>
174
-
175
             <div class="all" @click="toDoctorAdviceDetail(item.start_time)">全部</div>
174
             <div class="all" @click="toDoctorAdviceDetail(item.start_time)">全部</div>
176
           </div>
175
           </div>
177
         </van-list>
176
         </van-list>
181
         <img src="../../../assets/images/none.png" alt />
180
         <img src="../../../assets/images/none.png" alt />
182
       </div>
181
       </div>
183
     </div>
182
     </div>
184
-    <!-- <div class="add">
185
-      <div style="display: flex;align-items: center;">
186
-        <van-icon class="addIcon" name="add" />新增
187
-      </div>
188
-    </div>-->
189
 
183
 
190
     <!-- 弹出层 -->
184
     <!-- 弹出层 -->
191
     <div id='screen'>
185
     <div id='screen'>
441
           this.childList = objarr
435
           this.childList = objarr
442
           let arr = this.doctorAdvice
436
           let arr = this.doctorAdvice
443
           arr.push(...list.reverse())
437
           arr.push(...list.reverse())
444
-          console.log('arr', arr)
438
+          // console.log('arr', arr)
445
           this.doctorAdvice = arr
439
           this.doctorAdvice = arr
446
 
440
 
447
           this.loading = false
441
           this.loading = false
452
       getPatientDetail(patientid).then(response => {
446
       getPatientDetail(patientid).then(response => {
453
         if (response.data.state === 1) {
447
         if (response.data.state === 1) {
454
           var patientDetail = response.data.data.patientDetail
448
           var patientDetail = response.data.data.patientDetail
455
-          console.log('patientDetail', patientDetail)
449
+          // console.log('patientDetail', patientDetail)
456
           if (patientDetail.blood_patients == 0) {
450
           if (patientDetail.blood_patients == 0) {
457
             this.doctorAdvice = []
451
             this.doctorAdvice = []
458
             this.showOne = false
452
             this.showOne = false
477
       getAllDoctor().then(response => {
471
       getAllDoctor().then(response => {
478
         if (response.data.state === 1) {
472
         if (response.data.state === 1) {
479
           var doctor = response.data.data.doctor
473
           var doctor = response.data.data.doctor
480
-          console.log('doctor是', doctor)
474
+          // console.log('doctor是', doctor)
481
           this.doctor = doctor
475
           this.doctor = doctor
482
         }
476
         }
483
       })
477
       })

+ 0 - 5
src/pages/doctorAdvice/components/Education.vue View File

51
         <img src="../../../assets/images/none.png" alt />
51
         <img src="../../../assets/images/none.png" alt />
52
       </div>
52
       </div>
53
     </div>
53
     </div>
54
-    <!-- <div class="add">
55
-      <div style="display: flex;align-items: center;">
56
-        <van-icon class="addIcon" name="add" />新增
57
-      </div>
58
-    </div>-->
59
 
54
 
60
     <!-- 弹出层 -->
55
     <!-- 弹出层 -->
61
     <div>
56
     <div>

+ 4 - 2
src/pages/doctorAdvice/components/Inspection.vue View File

27
           v-model="loading"
27
           v-model="loading"
28
           :finished="finished"
28
           :finished="finished"
29
           finished-text="没有更多了"
29
           finished-text="没有更多了"
30
+          style="width: 100%;height: 100%;overflow-y: auto;"
30
         >
31
         >
31
           <div class="adviceMain">
32
           <div class="adviceMain">
32
             <div class="adviceOne" v-for="(item, index) in Inspection" :key="index" >
33
             <div class="adviceOne" v-for="(item, index) in Inspection" :key="index" >
263
       getAllInspection().then(response => {
264
       getAllInspection().then(response => {
264
         if (response.data.state === 1) {
265
         if (response.data.state === 1) {
265
           var inspection = response.data.data.inspection
266
           var inspection = response.data.data.inspection
266
-          console.log('inspection', inspection)
267
+          // console.log('inspection', inspection)
267
           this.checkdata = inspection
268
           this.checkdata = inspection
268
           for (let i = 0; i < inspection.length; i++) {
269
           for (let i = 0; i < inspection.length; i++) {
269
             this.columns.push(inspection[i].project_name)
270
             this.columns.push(inspection[i].project_name)
311
             item.child = arr
312
             item.child = arr
312
           })
313
           })
313
           this.Inspection = list.reverse()
314
           this.Inspection = list.reverse()
314
-          console.log('this', this.Inspection)
315
+          // console.log('this', this.Inspection)
316
+          this.loading = false
315
         }
317
         }
316
       })
318
       })
317
       this.finished = true
319
       this.finished = true

+ 0 - 4
src/pages/doctorAdvice/components/LongDialysis.vue View File

433
       })
433
       })
434
     },
434
     },
435
     onLoad () {
435
     onLoad () {
436
-      console.log('page23323223wo', this.page)
437
       setTimeout(() => {
436
       setTimeout(() => {
438
         this.page++
437
         this.page++
439
-        console.log('page23323223wo', this.page)
440
-        console.log('Math.ceil(this.total / 10)', Math.ceil(this.total / 10))
441
-        console.log('total2323223', this.total)
442
         if (this.page <= Math.ceil(this.total / 10)) {
438
         if (this.page <= Math.ceil(this.total / 10)) {
443
           this.GetLongDialysisRecord(
439
           this.GetLongDialysisRecord(
444
             this.patient_id,
440
             this.patient_id,

+ 0 - 7
src/pages/doctorAdvice/components/RescueRecord.vue View File

55
         <img src="../../../assets/images/none.png" alt />
55
         <img src="../../../assets/images/none.png" alt />
56
       </div>
56
       </div>
57
     </div>
57
     </div>
58
-    <!-- <div class="add">
59
-      <div style="display: flex;align-items: center;">
60
-        <van-icon class="addIcon" name="add" />新增
61
-      </div>
62
-    </div>-->
63
 
58
 
64
     <!-- 弹出层 -->
59
     <!-- 弹出层 -->
65
     <div>
60
     <div>
206
             this.showOne = true
201
             this.showOne = true
207
             this.showTwo = false
202
             this.showTwo = false
208
           }
203
           }
209
-          // console.log("病人详情", patientDetail);
210
           this.patientName = patientDetail.name
204
           this.patientName = patientDetail.name
211
         }
205
         }
212
       })
206
       })
304
   },
298
   },
305
   created () {
299
   created () {
306
     var patientid = this.$route.query.patientid
300
     var patientid = this.$route.query.patientid
307
-    // console.log("病人id能否获取", patientid);
308
     this.patient_id = patientid
301
     this.patient_id = patientid
309
     this.getPatientDetail(patientid)
302
     this.getPatientDetail(patientid)
310
     this.getRescueRecord(patientid)
303
     this.getRescueRecord(patientid)

+ 0 - 5
src/pages/doctorAdvice/components/Scheduling.vue View File

56
         <img src="../../../assets/images/none.png" alt />
56
         <img src="../../../assets/images/none.png" alt />
57
       </div>
57
       </div>
58
     </div>
58
     </div>
59
-    <!-- <div class="add">
60
-      <div style="display: flex;align-items: center;">
61
-        <van-icon class="addIcon" name="add" />新增
62
-      </div>
63
-    </div> -->
64
 
59
 
65
     <!-- 弹出层 -->
60
     <!-- 弹出层 -->
66
     <div>
61
     <div>

+ 0 - 23
src/pages/doctorAdvice/components/deviceManagement.vue View File

18
       <div class="noimgBox">
18
       <div class="noimgBox">
19
         <img src="../../../assets/images/none.png" alt />
19
         <img src="../../../assets/images/none.png" alt />
20
       </div>
20
       </div>
21
-      <!-- <div class="adviceBox">
22
-        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
23
-          <div class="adviceOne" v-for="item in 3" :key="index">
24
-            <div class="adviceTitle">
25
-              <p>2019.09.01</p>
26
-              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
27
-            </div>
28
-            <div class="orderContent">
29
-              <p>血压</p>
30
-              <p>血糖</p>
31
-              <p>体重</p>
32
-              <p>体温</p>
33
-              <p>心率</p>
34
-            </div>
35
-            <div class="all">全部</div>
36
-          </div>
37
-        </van-list>
38
-      </div>-->
39
     </div>
21
     </div>
40
-    <!-- <div class="add">
41
-      <div style="display: flex;align-items: center;">
42
-        <van-icon class="addIcon" name="add" />新增
43
-      </div>
44
-    </div>-->
45
 
22
 
46
     <!-- 弹出层 -->
23
     <!-- 弹出层 -->
47
     <div>
24
     <div>

+ 0 - 23
src/pages/doctorAdvice/components/medicationPlan.vue View File

18
       <div class="noimgBox">
18
       <div class="noimgBox">
19
         <img src="../../../assets/images/none.png" alt />
19
         <img src="../../../assets/images/none.png" alt />
20
       </div>
20
       </div>
21
-      <!-- <div class="adviceBox">
22
-        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
23
-          <div class="adviceOne" v-for="item in 3" :key="index">
24
-            <div class="adviceTitle">
25
-              <p>2019.09.01</p>
26
-              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
27
-            </div>
28
-            <div class="orderContent">
29
-              <p>血压</p>
30
-              <p>血糖</p>
31
-              <p>体重</p>
32
-              <p>体温</p>
33
-              <p>心率</p>
34
-            </div>
35
-            <div class="all">全部</div>
36
-          </div>
37
-        </van-list>
38
-      </div>-->
39
     </div>
21
     </div>
40
-    <!-- <div class="add">
41
-      <div style="display: flex;align-items: center;">
42
-        <van-icon class="addIcon" name="add" />新增
43
-      </div>
44
-    </div>-->
45
 
22
 
46
     <!-- 弹出层 -->
23
     <!-- 弹出层 -->
47
     <div>
24
     <div>

+ 0 - 24
src/pages/doctorAdvice/components/recoverNotes.vue View File

18
       <div class="noimgBox">
18
       <div class="noimgBox">
19
         <img src="../../../assets/images/none.png" alt />
19
         <img src="../../../assets/images/none.png" alt />
20
       </div>
20
       </div>
21
-      <!-- <div class="adviceBox">
22
-        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
23
-          <div class="adviceOne" v-for="item in 3" :key="index">
24
-            <div class="adviceTitle">
25
-              <p>2019.09.01</p>
26
-              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
27
-            </div>
28
-            <div class="orderContent">
29
-              <p>血压</p>
30
-              <p>血糖</p>
31
-              <p>体重</p>
32
-              <p>体温</p>
33
-              <p>心率</p>
34
-            </div>
35
-            <div class="all">全部</div>
36
-          </div>
37
-        </van-list>
38
-      </div>-->
39
     </div>
21
     </div>
40
-    <!-- <div class="add">
41
-      <div style="display: flex;align-items: center;">
42
-        <van-icon class="addIcon" name="add" />新增
43
-      </div>
44
-    </div>-->
45
 
22
 
46
     <!-- 弹出层 -->
23
     <!-- 弹出层 -->
47
     <div>
24
     <div>
111
       this.typeShow = false;
88
       this.typeShow = false;
112
     },
89
     },
113
     getstartTime(value) {
90
     getstartTime(value) {
114
-      // console.log(value);
115
       let year = value.getFullYear();
91
       let year = value.getFullYear();
116
       let month = value.getMonth() + 1;
92
       let month = value.getMonth() + 1;
117
       let day = value.getDate();
93
       let day = value.getDate();

+ 1 - 24
src/pages/doctorAdvice/components/signsRecord.vue View File

24
       <div class="noimgBox">
24
       <div class="noimgBox">
25
         <img src="../../../assets/images/none.png" alt />
25
         <img src="../../../assets/images/none.png" alt />
26
       </div>
26
       </div>
27
-      <!-- <div class="adviceBox">
28
-        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
29
-          <div class="adviceOne" v-for="item in 3" :key="index">
30
-            <div class="adviceTitle">
31
-              <p>2019.09.01</p>
32
-              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
33
-            </div>
34
-            <div class="orderContent">
35
-              <p>血压</p>
36
-              <p>血糖</p>
37
-              <p>体重</p>
38
-              <p>体温</p>
39
-              <p>心率</p>
40
-            </div>
41
-            <div class="all">全部</div>
42
-          </div>
43
-        </van-list>
44
-      </div>-->
45
     </div>
27
     </div>
46
-    <!-- <div class="add">
47
-      <div style="display: flex;align-items: center;">
48
-        <van-icon class="addIcon" name="add" />新增
49
-      </div>
50
-    </div>-->
51
-
28
+    
52
     <!-- 弹出层 -->
29
     <!-- 弹出层 -->
53
     <div>
30
     <div>
54
       <van-popup v-model="typeShow" get-container="#app" position="bottom" :style="{ height: '40%' }">
31
       <van-popup v-model="typeShow" get-container="#app" position="bottom" :style="{ height: '40%' }">

+ 0 - 21
src/pages/doctorAdvice/index.vue View File

59
       <van-tab title="设备管理">
59
       <van-tab title="设备管理">
60
         <device-management :active="active"></device-management>
60
         <device-management :active="active"></device-management>
61
       </van-tab>
61
       </van-tab>
62
-
63
-      <!-- <van-tab v-for="(item, index) in title" :title="item" :key="index">
64
-        <doctor-management :dryId="patient_id"></doctor-management>
65
-        <long-dialysis :active="active"></long-dialysis>
66
-        <dialysis-record></dialysis-record>
67
-        <dry-weight :active="active" :dryId="patient_id"></dry-weight>
68
-        <inspection></inspection>
69
-        <course-management :active="active"></course-management>
70
-        <rescue-record :active="active"></rescue-record>
71
-        <scheduling :active="active" :schedulingId="patient_id"></scheduling>
72
-        <education :active="active"></education>
73
-        <signs-record :active="active"></signs-record>
74
-        <recover-notes :active="active"></recover-notes>
75
-        <medication-plan :active="active"></medication-plan>
76
-        <device-management :active="active"></device-management>
77
-      </van-tab>-->
78
     </van-tabs>
62
     </van-tabs>
79
     <van-popup v-model="show" position="top" :style="{ height: '100%' }">
63
     <van-popup v-model="show" position="top" :style="{ height: '100%' }">
80
       <div
64
       <div
387
           this.nowdate = nowdate
371
           this.nowdate = nowdate
388
           this.id = patientDetail.blood_id
372
           this.id = patientDetail.blood_id
389
           this.name = patientDetail.name
373
           this.name = patientDetail.name
390
-          console.log('patientDetail详情', patientDetail)
391
           this.patientName = patientDetail.name
374
           this.patientName = patientDetail.name
392
         }
375
         }
393
       })
376
       })
426
       getBloodPatient().then(response => {
409
       getBloodPatient().then(response => {
427
         if (response.data.state === 1) {
410
         if (response.data.state === 1) {
428
           var patient = response.data.data.patient
411
           var patient = response.data.data.patient
429
-          // console.log("血透patient", patient);
430
           this.patient = patient
412
           this.patient = patient
431
           let cityNameList = []
413
           let cityNameList = []
432
           for (let p in patient) {
414
           for (let p in patient) {
459
       getSlowPatient().then(response => {
441
       getSlowPatient().then(response => {
460
         if (response.data.state === 1) {
442
         if (response.data.state === 1) {
461
           var patient = response.data.data.patient
443
           var patient = response.data.data.patient
462
-          // console.log("慢病patient", patient);
463
           this.patient = patient
444
           this.patient = patient
464
           let cityNameList = []
445
           let cityNameList = []
465
           for (let p in patient) {
446
           for (let p in patient) {
491
       getMemberPatient().then(response => {
472
       getMemberPatient().then(response => {
492
         if (response.data.state === 1) {
473
         if (response.data.state === 1) {
493
           var patient = response.data.data.patient
474
           var patient = response.data.data.patient
494
-          // console.log("会员patient", patient);
495
           this.patient = patient
475
           this.patient = patient
496
           let cityNameList = []
476
           let cityNameList = []
497
           for (let p in patient) {
477
           for (let p in patient) {
568
       this.$router.push('/editPatient?patientid=' + this.patient_id)
548
       this.$router.push('/editPatient?patientid=' + this.patient_id)
569
     },
549
     },
570
     toReturn () {
550
     toReturn () {
571
-      console.log('this.restatus', this.restatus)
572
       if (this.restatus == 1) {
551
       if (this.restatus == 1) {
573
         this.$router.push(
552
         this.$router.push(
574
           '/details?patient_id=' +
553
           '/details?patient_id=' +

+ 0 - 3
src/pages/dqc/assayDetail.vue View File

196
   },
196
   },
197
   methods: {
197
   methods: {
198
     choosePatient (val) {
198
     choosePatient (val) {
199
-      console.log(val)
200
-
201
       this.query.patient_id = val.id
199
       this.query.patient_id = val.id
202
       this.query.page = 1
200
       this.query.page = 1
203
       this.patient_name = val.name
201
       this.patient_name = val.name
257
             })
255
             })
258
             this.patients = newObj
256
             this.patients = newObj
259
           })
257
           })
260
-          console.log(this.FirstPin)
261
         } else {
258
         } else {
262
 
259
 
263
         }
260
         }

+ 2 - 2
src/pages/dqc/basicInfo.vue View File

468
         getMobileTotalLapseCount(params).then(response => {
468
         getMobileTotalLapseCount(params).then(response => {
469
           if (response.data.state === 1) {
469
           if (response.data.state === 1) {
470
             this.patienttotal = response.data.data.count
470
             this.patienttotal = response.data.data.count
471
-            console.log("count22222222",this.patienttotal)
471
+            // console.log("count22222222",this.patienttotal)
472
             var patients = response.data.data.patient
472
             var patients = response.data.data.patient
473
             this.rollouttotal = patients.length
473
             this.rollouttotal = patients.length
474
             var patienttwo = response.data.data.patienttwo
474
             var patienttwo = response.data.data.patienttwo
475
             this.outtotal = patienttwo.length
475
             this.outtotal = patienttwo.length
476
             // var rollout =  response.data.data.rollout
476
             // var rollout =  response.data.data.rollout
477
             // this.outtotal = rollout.length
477
             // this.outtotal = rollout.length
478
-            console.log("转出人数22222",rollout)
478
+            // console.log("转出人数22222",rollout)
479
           }
479
           }
480
         })
480
         })
481
       },
481
       },

+ 0 - 20
src/pages/dqc/components/AssayTemplate.vue View File

253
                 normal: {
253
                 normal: {
254
                   color:(params) => {
254
                   color:(params) => {
255
                     //我这边就两个柱子,大体就两个柱子颜色渐变,所以数组只有两个值,多个颜色就多个值
255
                     //我这边就两个柱子,大体就两个柱子颜色渐变,所以数组只有两个值,多个颜色就多个值
256
-                    // if(this.colorArr != []){
257
-                    //   var colorList = this.colorArr
258
-                    // }else{
259
-                    //    var colorList = [
260
-                    //     ["#FFD7C0", "#FF9994"],
261
-                    //     ["#A9E0F3", "#9FBDFC"],
262
-                    //     ["#A9E0F3", "#9FBDFC"],
263
-
264
-                    //     ["#FFD7C0", "#FF9994"]
265
-                    //   ];
266
-                    // }
267
                     var colorList = [
256
                     var colorList = [
268
                       ['#409EFF','#409EFF'],
257
                       ['#409EFF','#409EFF'],
269
                       ['#f56c6c','#f56c6c']
258
                       ['#f56c6c','#f56c6c']
270
                       ];
259
                       ];
271
-                    console.log(this)
272
                     if(params.seriesName == this.otherData[params.dataIndex]){
260
                     if(params.seriesName == this.otherData[params.dataIndex]){
273
                       var index = 0 
261
                       var index = 0 
274
                     }else {
262
                     }else {
275
                       var index = 1
263
                       var index = 1
276
                     }
264
                     }
277
-                   
278
-
279
-                    // var index = params.dataIndex;
280
-                    // if (params.dataIndex >= colorList.length) {
281
-                    //   index = params.dataIndex % colorList.length;
282
-                    // }
283
-
284
                     return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
265
                     return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
285
                       {offset: 0, color: colorList[index][0]},
266
                       {offset: 0, color: colorList[index][0]},
286
                       // { offset: 0.5, color: colorList[index][1] },
267
                       // { offset: 0.5, color: colorList[index][1] },
335
         GetPatientInspectionIndexChart(params)
316
         GetPatientInspectionIndexChart(params)
336
           .then(rs => {
317
           .then(rs => {
337
             var resp = rs.data
318
             var resp = rs.data
338
-            console.log(resp)
339
             if (resp.state == 1) {
319
             if (resp.state == 1) {
340
 
320
 
341
               let tempData = []
321
               let tempData = []

+ 1 - 76
src/pages/dqc/components/BarChart.vue View File

50
   },
50
   },
51
   mounted() {
51
   mounted() {
52
     this.initChart();
52
     this.initChart();
53
-    // if (this.autoResize) {
54
-    //   this.__resizeHanlder = debounce(() => {
55
-    //     if (this.chart) {
56
-    //       this.chart.resize()
57
-    //     }
58
-    //   }, 100)
59
-    //   window.addEventListener('resize', this.__resizeHanlder)
60
-    // }
61
-
62
-    // // 监听侧边栏的变化
63
-    // const sidebarElm = document.getElementsByClassName('sidebar-container')[0]
64
-    // sidebarElm.addEventListener('transitionend', this.__resizeHanlder)
65
   },
53
   },
66
   beforeDestroy() {
54
   beforeDestroy() {
67
-    // if (!this.chart) {
68
-    //   return;
69
-    // }
70
-    // if (this.autoResize) {
71
-    //   window.removeEventListener("resize", this.__resizeHanlder);
72
-    // }
73
-    // const sidebarElm = document.getElementsByClassName("sidebar-container")[0];
74
-    // sidebarElm.removeEventListener("transitionend", this.__resizeHanlder);
75
-    // this.chart.dispose();
76
-    // this.chart = null;
77
   },
55
   },
78
   watch: {
56
   watch: {
79
-    // "options":function(){
80
-    //   this.chartOptions = this.options;
81
-    //   this.initChart()
82
-    //   this.__resizeHanlder = debounce(() => {
83
-    //     if (this.chart) {
84
-    //       this.chart.resize()
85
-    //     }
86
-    //   }, 100)
87
-    //   window.addEventListener('resize', this.__resizeHanlder)
88
-    // },
89
     options:{
57
     options:{
90
       handler(newValue,oldValue){
58
       handler(newValue,oldValue){
91
         this.getInitChart();
59
         this.getInitChart();
104
   },
72
   },
105
   created() {
73
   created() {
106
     this.chartOptions = this.options;
74
     this.chartOptions = this.options;
107
-    console.log("this.chartOptions", this.chartOptions, this.options);
75
+    // console.log("this.chartOptions", this.chartOptions, this.options);
108
   },
76
   },
109
   methods: {
77
   methods: {
110
     getInitChart() {
78
     getInitChart() {
111
       this.chartOptions = this.options;
79
       this.chartOptions = this.options;
112
       this.initChart();
80
       this.initChart();
113
-      // this.__resizeHanlder = debounce(() => {
114
-      //   if (this.chart) {
115
-      //     this.chart.resize();
116
-      //   }
117
-      // }, 100);
118
-      // window.addEventListener("resize", this.__resizeHanlder);
119
     },
81
     },
120
     setOptions({ expectedData, actualData } = {}) {
82
     setOptions({ expectedData, actualData } = {}) {
121
       this.chart.setOption({
83
       this.chart.setOption({
122
-        // title: {
123
-        //   text: this.title
124
-        // },
125
         xAxis: {
84
         xAxis: {
126
           data: this.chartOptions.xAxis.data,
85
           data: this.chartOptions.xAxis.data,
127
           // boundaryGap: false
86
           // boundaryGap: false
134
             }
93
             }
135
           },
94
           },
136
           axisLabel: this.chartOptions.xAxis.axisLabel
95
           axisLabel: this.chartOptions.xAxis.axisLabel
137
-          // axisLabel: {
138
-          //   interval: 0,
139
-          //   formatter: function(value) {
140
-          //     var ret = ""; //拼接加\n返回的类目项
141
-          //     var maxLength = 8; //每项显示文字个数
142
-          //     var valLength = value.length; //X轴类目项的文字个数
143
-          //     var rowN = Math.ceil(valLength / maxLength); //类目项需要换行的行数
144
-          //     if (rowN > 1) {
145
-          //       //如果类目项的文字大于3,
146
-          //       for (var i = 0; i < rowN; i++) {
147
-          //         var temp = ""; //每次截取的字符串
148
-          //         var start = i * maxLength; //开始截取的位置
149
-          //         var end = start + maxLength; //结束截取的位置
150
-          //         //这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧
151
-          //         temp = value.substring(start, end) + "\n";
152
-          //         ret += temp; //凭借最终的字符串
153
-          //       }
154
-          //       return ret;
155
-          //     } else {
156
-          //       return value;
157
-          //     }
158
-          //   },
159
-          //   textStyle: {
160
-          //     color:"#2F3133"
161
-          //   }
162
-          // }
163
-          
164
         },
96
         },
165
         grid: {
97
         grid: {
166
           left: 0,
98
           left: 0,
169
           top: 30,
101
           top: 30,
170
           containLabel: true
102
           containLabel: true
171
         },
103
         },
172
-        // tooltip: {
173
-        //   trigger: "axis",
174
-        //   axisPointer: {
175
-        //     type: "cross"
176
-        //   },
177
-        //   padding: [5, 10]
178
-        // },
179
         yAxis: {
104
         yAxis: {
180
           axisTick: {
105
           axisTick: {
181
             show: true
106
             show: true

+ 5 - 71
src/pages/dqc/components/BarChart1.vue View File

50
   },
50
   },
51
   mounted() {
51
   mounted() {
52
     this.initChart();
52
     this.initChart();
53
-    // if (this.autoResize) {
54
-    //   this.__resizeHanlder = debounce(() => {
55
-    //     if (this.chart) {
56
-    //       this.chart.resize()
57
-    //     }
58
-    //   }, 100)
59
-    //   window.addEventListener('resize', this.__resizeHanlder)
60
-    // }
61
-
62
-    // // 监听侧边栏的变化
63
-    // const sidebarElm = document.getElementsByClassName('sidebar-container')[0]
64
-    // sidebarElm.addEventListener('transitionend', this.__resizeHanlder)
53
+ 
65
   },
54
   },
66
   beforeDestroy() {
55
   beforeDestroy() {
67
-    // if (!this.chart) {
68
-    //   return;
69
-    // }
70
-    // if (this.autoResize) {
71
-    //   window.removeEventListener("resize", this.__resizeHanlder);
72
-    // }
73
-    // const sidebarElm = document.getElementsByClassName("sidebar-container")[0];
74
-    // sidebarElm.removeEventListener("transitionend", this.__resizeHanlder);
75
-    // this.chart.dispose();
76
-    // this.chart = null;
56
+ 
77
   },
57
   },
78
   watch: {
58
   watch: {
79
-    // "options":function(){
80
-    //   this.chartOptions = this.options;
81
-    //   this.initChart()
82
-    //   this.__resizeHanlder = debounce(() => {
83
-    //     if (this.chart) {
84
-    //       this.chart.resize()
85
-    //     }
86
-    //   }, 100)
87
-    //   window.addEventListener('resize', this.__resizeHanlder)
88
-    // },
59
+
89
     options:{
60
     options:{
90
       handler(newValue,oldValue){
61
       handler(newValue,oldValue){
91
         this.getInitChart();
62
         this.getInitChart();
110
     getInitChart() {
81
     getInitChart() {
111
       this.chartOptions = this.options;
82
       this.chartOptions = this.options;
112
       this.initChart();
83
       this.initChart();
113
-      // this.__resizeHanlder = debounce(() => {
114
-      //   if (this.chart) {
115
-      //     this.chart.resize();
116
-      //   }
117
-      // }, 100);
118
-      // window.addEventListener("resize", this.__resizeHanlder);
84
+
119
     },
85
     },
120
     setOptions({ expectedData, actualData } = {}) {
86
     setOptions({ expectedData, actualData } = {}) {
121
       this.chart.setOption({
87
       this.chart.setOption({
134
             }
100
             }
135
           },
101
           },
136
           axisLabel: this.chartOptions.xAxis.axisLabel
102
           axisLabel: this.chartOptions.xAxis.axisLabel
137
-          // axisLabel: {
138
-          //   interval: 0,
139
-          //   formatter: function(value) {
140
-          //     var ret = ""; //拼接加\n返回的类目项
141
-          //     var maxLength = 8; //每项显示文字个数
142
-          //     var valLength = value.length; //X轴类目项的文字个数
143
-          //     var rowN = Math.ceil(valLength / maxLength); //类目项需要换行的行数
144
-          //     if (rowN > 1) {
145
-          //       //如果类目项的文字大于3,
146
-          //       for (var i = 0; i < rowN; i++) {
147
-          //         var temp = ""; //每次截取的字符串
148
-          //         var start = i * maxLength; //开始截取的位置
149
-          //         var end = start + maxLength; //结束截取的位置
150
-          //         //这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧
151
-          //         temp = value.substring(start, end) + "\n";
152
-          //         ret += temp; //凭借最终的字符串
153
-          //       }
154
-          //       return ret;
155
-          //     } else {
156
-          //       return value;
157
-          //     }
158
-          //   },
159
-          //   textStyle: {
160
-          //     color:"#2F3133"
161
-          //   }
162
-          // }
163
           
103
           
164
         },
104
         },
165
         grid: {
105
         grid: {
169
           top: 30,
109
           top: 30,
170
           containLabel: true
110
           containLabel: true
171
         },
111
         },
172
-        // tooltip: {
173
-        //   trigger: "axis",
174
-        //   axisPointer: {
175
-        //     type: "cross"
176
-        //   },
177
-        //   padding: [5, 10]
178
-        // },
112
+
179
         yAxis: {
113
         yAxis: {
180
           axisTick: {
114
           axisTick: {
181
             show: true
115
             show: true

+ 1 - 26
src/pages/dqc/components/BasicTemplate.vue View File

785
           start_time:this.startDate,
785
           start_time:this.startDate,
786
           end_time:this.endDate
786
           end_time:this.endDate
787
         }
787
         }
788
-        console.log("params",params)
789
         getMobileRolloutCount(params).then(response=>{
788
         getMobileRolloutCount(params).then(response=>{
790
           if(response.data.state == 1){
789
           if(response.data.state == 1){
791
             var rollout =  response.data.data.rollout
790
             var rollout =  response.data.data.rollout
792
-            console.log("rollout",rollout)
791
+            // console.log("rollout",rollout)
793
             var arr = []
792
             var arr = []
794
             var arrOne = []
793
             var arrOne = []
795
             for(let i=0;i<rollout.length;i++){
794
             for(let i=0;i<rollout.length;i++){
800
                 arrOne.push(rollout[i])
799
                 arrOne.push(rollout[i])
801
               }
800
               }
802
             }
801
             }
803
-            console.log("arr",arr)
804
-            console.log("arrone",arrOne)
805
             if(this.typetwo == "留治"){
802
             if(this.typetwo == "留治"){
806
               this.modesDataTwo.xAxis = []
803
               this.modesDataTwo.xAxis = []
807
               this.modesDataTwo.series = []
804
               this.modesDataTwo.series = []
837
     watch: {
834
     watch: {
838
       // 正确给 cData 赋值的 方法
835
       // 正确给 cData 赋值的 方法
839
       dialysisModeType: function (newVal, oldVal) {
836
       dialysisModeType: function (newVal, oldVal) {
840
-        // console.log('modesData', this.dialysisModeType)
841
 
837
 
842
-        // for (let i = 0; i < this.dialysisModeType.length; i++) {
843
-        //   this.modesData.xAxis.push(this.dialysisModeType[i].mode_id)
844
-        //   this.modesData.series.push(((this.dialysisModeType[i].count / this.dialysisTotal * 100)).toFixed(1))
845
-        // }
846
-        // this.options.series[0].data = this.modesData.series
847
-        // this.options.xAxis.data = this.modesData.xAxis
848
-        // this.getArrLength(this.options.xAxis.data)
849
       },
838
       },
850
 
839
 
851
       rollouttotal: function (newVal, oldVal) {
840
       rollouttotal: function (newVal, oldVal) {
853
           {name: '留治', count: 0},
842
           {name: '留治', count: 0},
854
           {name: '转归', count: 0}
843
           {name: '转归', count: 0}
855
         ]
844
         ]
856
-
857
-        // for (let i = 0; i < arr.length; i++) {
858
-        //   arr[0].count = this.rollouttotal
859
-        //   arr[1].count = this.outtotal
860
-        // }
861
-        // // console.log('arr', arr)
862
-        // for (let j = 0; j < arr.length; j++) {
863
-        //   this.modesDataTwo.xAxis.push(arr[j].name)
864
-        //   this.modesDataTwo.series.push((parseInt(arr[j].count) / this.patienttotal * 100).toFixed(1))
865
-        // }
866
-        // // console.log('数据', this.modesDataTwo)
867
-        // this.barOptions.series[0].data = this.modesDataTwo.series
868
-        // this.barOptions.xAxis.data = this.modesDataTwo.xAxis
869
-        // this.getArrLength1(this.barOptions.xAxis.data)
870
       },
845
       },
871
     }
846
     }
872
   }
847
   }

+ 0 - 69
src/pages/dqc/components/DepartmentProject.vue View File

1
 <template>
1
 <template>
2
   <div class="page_departmentTime">
2
   <div class="page_departmentTime">
3
     <div class="optionsBox">
3
     <div class="optionsBox">
4
-      <!-- <div class="optionsOne" @click="stateShow = true">
5
-        <div style="display: flex;align-items: center;">
6
-          {{ state }}
7
-          <van-icon name="arrow-down" />
8
-        </div>
9
-      </div> -->
10
       <div class="optionsOne" @click="typeShow = true">
4
       <div class="optionsOne" @click="typeShow = true">
11
         <div style="display: flex;align-items: center;">
5
         <div style="display: flex;align-items: center;">
12
           {{ type }}
6
           {{ type }}
30
       <span>指标正常范围值</span>
24
       <span>指标正常范围值</span>
31
     </div>
25
     </div>
32
     <div class="rangeMain">
26
     <div class="rangeMain">
33
-      <!-- <p v-for="(item,index) in normData" :key="index">
34
-        <span v-if="item.range_type == 1">{{item.item_name}}({{item.min_range}}-{{item.large_range}})</span>
35
-        <span v-if="item.range_type == 2">{{item.item_name}}({{item.range_value}})</span>
36
-     </p> -->
37
       <p v-for="(item,index) in this.normData" :key="index">
27
       <p v-for="(item,index) in this.normData" :key="index">
38
           <span v-if="item.is_status == 1">{{item.item_name}}</span>
28
           <span v-if="item.is_status == 1">{{item.item_name}}</span>
39
           <span v-if="item.is_status == 0 && item.inspection_major == 0  && item.inspection_minor == -1">收缩压</span>
29
           <span v-if="item.is_status == 0 && item.inspection_major == 0  && item.inspection_minor == -1">收缩压</span>
109
           text: 'ECharts 入门示例'
99
           text: 'ECharts 入门示例'
110
         },
100
         },
111
         tooltip: {},
101
         tooltip: {},
112
-        // legend: {
113
-        //   data: ['达标率%'],
114
-        //   left: 0
115
-        // },
116
         xAxis: {
102
         xAxis: {
117
           data: [],
103
           data: [],
118
           axisLabel: {
104
           axisLabel: {
257
           this.getlist()
243
           this.getlist()
258
         }
244
         }
259
       }
245
       }
260
-      // this.type = val
261
-      // this.typeShow = false
262
-      // if (val == '按季度统计对比') {
263
-      //   this.getlist()
264
-      //   this.options.dataZoom = []
265
-      // }
266
-      // if (val == '按月份统计对比') {
267
-      //   this.getMonthList()
268
-      //   this.options.dataZoom = [
269
-      //     {
270
-      //       // Y轴固定,让内容滚动
271
-      //       type: 'slider',
272
-      //       show: false,
273
-      //       xAxisIndex: [0],
274
-      //       start: 1,
275
-      //       end: 50, // 设置X轴刻度之间的间隔(根据数据量来调整)
276
-      //       zoomLock: true // 锁定区域禁止缩放(鼠标滚动会缩放,所以禁止)
277
-      //     },
278
-      //     {
279
-      //       type: 'inside',
280
-      //       xAxisIndex: [0],
281
-      //       start: 1,
282
-      //       end: 40,
283
-      //       zoomLock: true // 锁定区域禁止缩放
284
-      //     }
285
-      //   ]
286
-      // }
287
     },
246
     },
288
     chooseProject (val) {
247
     chooseProject (val) {
289
-      // this.project = val
290
-      // this.projectShow = false
291
-      // // console.log('数组源', this.normData)
292
-      // var rangetype = 0
293
-      // for (let i = 0; i < this.normData.length; i++) {
294
-      //   if (val == this.normData[i].item_name) {
295
-      //     rangetype = this.normData[i].range_type
296
-      //   }
297
-      // }
298
-      // this.range_type = rangetype
299
-
300
-      // if (this.type == '按月份统计对比') {
301
-      //   this.getMonthList()
302
-      // }
303
-      // if (this.type == '按季度统计对比') {
304
-      //   this.getlist()
305
-      // }
306
-
307
       this.project = val
248
       this.project = val
308
       this.projectShow = false
249
       this.projectShow = false
309
 
250
 
450
           var list = response.data.data.list
391
           var list = response.data.data.list
451
           // console.log('list', list)
392
           // console.log('list', list)
452
           var standList = response.data.data.standList
393
           var standList = response.data.data.standList
453
-          //  console.log('standList', standList)
454
 
394
 
455
           var newArr = [
395
           var newArr = [
456
             {Total: '第一季度', Count: 1, NoCount: 0},
396
             {Total: '第一季度', Count: 1, NoCount: 0},
458
             {Total: '第三季度', Count: 1, NoCount: 0},
398
             {Total: '第三季度', Count: 1, NoCount: 0},
459
             {Total: '第四季度', Count: 1, NoCount: 0}
399
             {Total: '第四季度', Count: 1, NoCount: 0}
460
           ]
400
           ]
461
-
462
           // 获取2个数组不同的部分
401
           // 获取2个数组不同的部分
463
           var arrTwo = this.arrayDate(list, newArr)
402
           var arrTwo = this.arrayDate(list, newArr)
464
           arrTwo.map(item => {
403
           arrTwo.map(item => {
530
       })
469
       })
531
     },
470
     },
532
     arrayDate (array1, array2) {
471
     arrayDate (array1, array2) {
533
-      //  console.log("array1",array1)
534
-      //  console.log("array2",array2)
535
       var array1 = array1
472
       var array1 = array1
536
       var array2 = array2
473
       var array2 = array2
537
       var result = []
474
       var result = []
555
       return result
492
       return result
556
     },
493
     },
557
     arrayDateTwo (array1, array2) {
494
     arrayDateTwo (array1, array2) {
558
-      //   console.log("array1",array1)
559
-      //   console.log("array2",array2)
560
       var array1 = array1
495
       var array1 = array1
561
       var array2 = array2
496
       var array2 = array2
562
       var result = []
497
       var result = []
580
       return result
515
       return result
581
     },
516
     },
582
     arrayDateThree (array1, array2) {
517
     arrayDateThree (array1, array2) {
583
-      // console.log("array1",array1)
584
-      // console.log("array2",array2)
585
       var array1 = array1
518
       var array1 = array1
586
       var array2 = array2
519
       var array2 = array2
587
       var result = []
520
       var result = []
605
       return result
538
       return result
606
     },
539
     },
607
     arrayDateFour (array1, array2) {
540
     arrayDateFour (array1, array2) {
608
-      //   console.log("array1",array1)
609
-      //   console.log("array2",array2)
610
       var array1 = array1
541
       var array1 = array1
611
       var array2 = array2
542
       var array2 = array2
612
       var result = []
543
       var result = []

+ 2 - 16
src/pages/dqc/components/DepartmentTime.vue View File

1
 <template>
1
 <template>
2
   <div class="page_departmentTime">
2
   <div class="page_departmentTime">
3
     <div class="optionsBox">
3
     <div class="optionsBox">
4
-      <!-- <div class="optionsOne" @click="stateShow = true">
5
-        <div style="display: flex;align-items: center;">
6
-          {{ state }}
7
-          <van-icon name="arrow-down" />
8
-        </div>
9
-      </div> -->
10
       <div class="optionsOne" @click="typeShow = true">
4
       <div class="optionsOne" @click="typeShow = true">
11
         <div style="display: flex;align-items: center;">
5
         <div style="display: flex;align-items: center;">
12
           {{ type }}
6
           {{ type }}
58
       <span>指标正常范围值</span>
52
       <span>指标正常范围值</span>
59
     </div>
53
     </div>
60
     <div class="rangeMain">
54
     <div class="rangeMain">
61
-      <!-- <p v-for = "(item,index) in normData" :key="index">
62
-        <span v-if="item.range_type == 1">{{item.item_name}}({{item.min_range}}-{{item.large_range}})</span>
63
-        <span v-if="item.range_type == 2">{{item.item_name}}({{item.range_value}})</span>
64
-       </p> -->
65
         <p v-for="(item,index) in this.normData" :key="index">
55
         <p v-for="(item,index) in this.normData" :key="index">
66
           <span v-if="item.is_status == 1">{{item.item_name}}</span>
56
           <span v-if="item.is_status == 1">{{item.item_name}}</span>
67
           <span v-if="item.is_status == 0 && item.inspection_major == 0  && item.inspection_minor == -1">收缩压</span>
57
           <span v-if="item.is_status == 0 && item.inspection_major == 0  && item.inspection_minor == -1">收缩压</span>
168
           text: 'ECharts 入门示例'
158
           text: 'ECharts 入门示例'
169
         },
159
         },
170
         tooltip: {},
160
         tooltip: {},
171
-        // legend: {
172
-        //   data: ["达标率%"],
173
-        //   left: 0
174
-        // },
175
         xAxis: {
161
         xAxis: {
176
           data: [],
162
           data: [],
177
           axisLabel: {
163
           axisLabel: {
617
 
603
 
618
           var sysstandTotal = 0
604
           var sysstandTotal = 0
619
           var systolic = response.data.data.systolic
605
           var systolic = response.data.data.systolic
620
-          console.log('systolic', systolic)
606
+          // console.log('systolic', systolic)
621
           var sysArr = []
607
           var sysArr = []
622
           for (let i = 0; i < systolic.length; i++) {
608
           for (let i = 0; i < systolic.length; i++) {
623
             if (systolic[i].systolic_blood_pressure >= this.sysmin && systolic[i].systolic_blood_pressure <= this.syslarge) {
609
             if (systolic[i].systolic_blood_pressure >= this.sysmin && systolic[i].systolic_blood_pressure <= this.syslarge) {
624
               sysArr.push(systolic[i])
610
               sysArr.push(systolic[i])
625
             }
611
             }
626
           }
612
           }
627
-          console.log('sysArr', sysArr)
613
+          // console.log('sysArr', sysArr)
628
           sysstandTotal = sysArr.length
614
           sysstandTotal = sysArr.length
629
           var diastotal = response.data.data.diastotal
615
           var diastotal = response.data.data.diastotal
630
 
616
 

+ 1 - 3
src/pages/dqc/components/ScrollTop.vue View File

2
   <van-icon name="upgrade" class="toTop" v-show="toTopShow" @click="backTop" />
2
   <van-icon name="upgrade" class="toTop" v-show="toTopShow" @click="backTop" />
3
 </template>
3
 </template>
4
 
4
 
5
-
6
-
7
 <script>
5
 <script>
8
 export default {
6
 export default {
9
   data() {
7
   data() {
22
       }
20
       }
23
     },
21
     },
24
     backTop() {
22
     backTop() {
25
-      console.log(document.getElementById("app").children[0].scrollTop);
23
+      // console.log(document.getElementById("app").children[0].scrollTop);
26
       let timer = null,
24
       let timer = null,
27
         _that = this;
25
         _that = this;
28
       //动画,使用requestAnimationFrame代替setInterval
26
       //动画,使用requestAnimationFrame代替setInterval

+ 0 - 13
src/pages/dqc/components/bloodPressure.vue View File

271
             //配置样式
271
             //配置样式
272
             itemStyle: {
272
             itemStyle: {
273
               //通常情况下:
273
               //通常情况下:
274
-
275
               //每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
274
               //每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
276
               normal: {
275
               normal: {
277
                 color: function(params) {
276
                 color: function(params) {
281
 
280
 
282
                     ["#FFD7C0", "#FF9994"]
281
                     ["#FFD7C0", "#FF9994"]
283
                   ];
282
                   ];
284
-
285
                   var index = params.dataIndex;
283
                   var index = params.dataIndex;
286
                   if (params.dataIndex >= colorList.length) {
284
                   if (params.dataIndex >= colorList.length) {
287
                     index = params.dataIndex % colorList.length;
285
                     index = params.dataIndex % colorList.length;
288
                   }
286
                   }
289
-
290
                   return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
287
                   return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
291
                     { offset: 0, color: colorList[index][0] },
288
                     { offset: 0, color: colorList[index][0] },
292
                     // { offset: 0.5, color: colorList[index][1] },
289
                     // { offset: 0.5, color: colorList[index][1] },
295
                 },
292
                 },
296
                 barBorderRadius: [5, 5, 0, 0] //柱状角成椭圆形
293
                 barBorderRadius: [5, 5, 0, 0] //柱状角成椭圆形
297
               },
294
               },
298
-
299
               //鼠标悬停时:
295
               //鼠标悬停时:
300
               emphasis: {
296
               emphasis: {
301
                 shadowBlur: 10,
297
                 shadowBlur: 10,
324
     this.query.statistics_type = 1
320
     this.query.statistics_type = 1
325
     this.GetDialysisBloodPressureChartData(this.query)
321
     this.GetDialysisBloodPressureChartData(this.query)
326
     this.GetDialysisBloodPressureTableData(this.query)
322
     this.GetDialysisBloodPressureTableData(this.query)
327
-
328
   },
323
   },
329
   methods: {
324
   methods: {
330
     jumpDetail(patient_id){
325
     jumpDetail(patient_id){
331
       this.$router.push("/dqc/bloodpressure/detail?id="+patient_id)
326
       this.$router.push("/dqc/bloodpressure/detail?id="+patient_id)
332
-
333
     },
327
     },
334
     getTime (time) {
328
     getTime (time) {
335
       return uParseTime(time, '{y}-{m}-{d}')
329
       return uParseTime(time, '{y}-{m}-{d}')
347
               this.options.xAxis.data.push(resp.data.data[i].name)
341
               this.options.xAxis.data.push(resp.data.data[i].name)
348
               this.options.series[0].data.push(resp.data.data[i].total)
342
               this.options.series[0].data.push(resp.data.data[i].total)
349
               this.percent.push(resp.data.data[i].ratio)
343
               this.percent.push(resp.data.data[i].ratio)
350
-
351
             }
344
             }
352
           } else {
345
           } else {
353
             this.$toast({
346
             this.$toast({
356
           }
349
           }
357
         })
350
         })
358
         .catch(error => {
351
         .catch(error => {
359
-
360
         })
352
         })
361
     },
353
     },
362
     GetDialysisBloodPressureTableData(params) {
354
     GetDialysisBloodPressureTableData(params) {
418
       this.project = val;
410
       this.project = val;
419
       this.projectShow = false;
411
       this.projectShow = false;
420
       this.GetDialysisBloodPressureChartData(this.query)
412
       this.GetDialysisBloodPressureChartData(this.query)
421
-
422
     },
413
     },
423
 
414
 
424
     getstartTime(value) {
415
     getstartTime(value) {
433
         day = `0${day}`;
424
         day = `0${day}`;
434
       }
425
       }
435
       this.startTime = `${year}-${month}-${day}`;
426
       this.startTime = `${year}-${month}-${day}`;
436
-
437
       this.query.start_time = `${year}-${month}-${day}`;
427
       this.query.start_time = `${year}-${month}-${day}`;
438
       this.GetDialysisBloodPressureChartData(this.query)
428
       this.GetDialysisBloodPressureChartData(this.query)
439
       this.GetDialysisBloodPressureTableData(this.query)
429
       this.GetDialysisBloodPressureTableData(this.query)
441
     },
431
     },
442
     getstartTime2(value) {
432
     getstartTime2(value) {
443
       this.query.page = 1;
433
       this.query.page = 1;
444
-
445
       let year = value.getFullYear();
434
       let year = value.getFullYear();
446
       let month = value.getMonth() + 1;
435
       let month = value.getMonth() + 1;
447
       let day = value.getDate();
436
       let day = value.getDate();
492
 };
481
 };
493
 </script>
482
 </script>
494
 
483
 
495
-
496
-
497
 <style lang="scss" scoped>
484
 <style lang="scss" scoped>
498
 .page_bloodPressure {
485
 .page_bloodPressure {
499
   .searchBox{
486
   .searchBox{

+ 1 - 2
src/pages/dqc/components/checkStatisticsAll.vue View File

443
     getAllMobileMajorInspection () {
443
     getAllMobileMajorInspection () {
444
       getAllMobileMajorInspection().then(response => {
444
       getAllMobileMajorInspection().then(response => {
445
         var inspection = response.data.data.inspection
445
         var inspection = response.data.data.inspection
446
-        console.log('inspection', inspection)
446
+        // console.log('inspection', inspection)
447
         var a = []
447
         var a = []
448
         for (let i = 0; i < inspection.length; i++) {
448
         for (let i = 0; i < inspection.length; i++) {
449
           a.push(inspection[i])
449
           a.push(inspection[i])
465
       getMobilePatientTwo(this.startTime, this.endTime, this.limit, this.page).then(response => {
465
       getMobilePatientTwo(this.startTime, this.endTime, this.limit, this.page).then(response => {
466
         if (response.data.state === 1) {
466
         if (response.data.state === 1) {
467
           var patientInfo = response.data.data.patientInfo
467
           var patientInfo = response.data.data.patientInfo
468
-          console.log('patientInfo', patientInfo)
469
           var total = response.data.data.total
468
           var total = response.data.data.total
470
           // console.log('total', total)
469
           // console.log('total', total)
471
           var list = response.data.data.list
470
           var list = response.data.data.list

+ 0 - 4
src/pages/dqc/components/checkStatisticsPersonal.vue View File

106
           text: 'ECharts 入门示例'
106
           text: 'ECharts 入门示例'
107
         },
107
         },
108
         tooltip: {},
108
         tooltip: {},
109
-        // legend: {
110
-        //   data: ['次数'],
111
-        //   left: 0
112
-        // },
113
         xAxis: {
109
         xAxis: {
114
           data: [],
110
           data: [],
115
           axisLabel: {
111
           axisLabel: {

+ 2 - 3
src/pages/dqc/components/dialysisProcess.vue View File

38
       </div>
38
       </div>
39
     </div>
39
     </div>
40
     
40
     
41
-
42
     <div class="chart1">统计图&nbsp;&nbsp;<span style="font-weight:normal">(患者姓名:{{patient_name}})</span></div>
41
     <div class="chart1">统计图&nbsp;&nbsp;<span style="font-weight:normal">(患者姓名:{{patient_name}})</span></div>
43
     <div class="rangeBox" style="margin-top:.625rem">
42
     <div class="rangeBox" style="margin-top:.625rem">
44
       <p class="range"></p>
43
       <p class="range"></p>
619
         })
618
         })
620
     },
619
     },
621
     GetDialysisProcessIndexChartData (params) {
620
     GetDialysisProcessIndexChartData (params) {
622
-      console.log(params)
621
+      // console.log(params)
623
 
622
 
624
       this.options.xAxis.data = []
623
       this.options.xAxis.data = []
625
       this.options.series[0].data = []
624
       this.options.series[0].data = []
632
         .then(rs => {
631
         .then(rs => {
633
           var resp = rs.data
632
           var resp = rs.data
634
           if (resp.state == 1) {
633
           if (resp.state == 1) {
635
-            console.log(this.query.statistics_type)
634
+            // console.log(this.query.statistics_type)
636
 
635
 
637
             if (this.query.statistics_type != 9 && this.query.statistics_type != 10) {
636
             if (this.query.statistics_type != 9 && this.query.statistics_type != 10) {
638
               for (let i = 0; i < resp.data.data.length; i++) {
637
               for (let i = 0; i < resp.data.data.length; i++) {

+ 0 - 10
src/pages/dqc/components/dialysisStatisticsAll.vue View File

1
 <template>
1
 <template>
2
   <div class="page_statisticsAll">
2
   <div class="page_statisticsAll">
3
     <div class="options">
3
     <div class="options">
4
-      <!-- <div class="optionsOne" @click="stateShow = true">
5
-        <div style="display: flex;align-items: center;">
6
-          {{ state }}
7
-          <van-icon name="arrow-down" />
8
-        </div>
9
-      </div> -->
10
       <div class="toolOne" @click="startShow = true">
4
       <div class="toolOne" @click="startShow = true">
11
         <div style="display: flex;align-items: center;">
5
         <div style="display: flex;align-items: center;">
12
           {{ startTime }}
6
           {{ startTime }}
86
           text: 'ECharts 入门示例'
80
           text: 'ECharts 入门示例'
87
         },
81
         },
88
         tooltip: {},
82
         tooltip: {},
89
-        // legend: {
90
-        //   data: ['次数'],
91
-        //   left: 0
92
-        // },
93
         xAxis: {
83
         xAxis: {
94
           data: [],
84
           data: [],
95
           axisLabel: {
85
           axisLabel: {

+ 0 - 2
src/pages/dqc/components/dialysisStatisticsPersonal.vue View File

46
         <el-table-column prop="dialysis_no" label="透析号" width="80"></el-table-column>
46
         <el-table-column prop="dialysis_no" label="透析号" width="80"></el-table-column>
47
         <el-table-column prop="mode_id" label="透析模式" min-width="300">
47
         <el-table-column prop="mode_id" label="透析模式" min-width="300">
48
           <template slot-scope="scope">
48
           <template slot-scope="scope">
49
-                <!-- <span>{{ scope.row.mode_id.join("、") }}</span> -->
50
                 <span>{{getModeCount(scope.row.patient_id)}}</span>
49
                 <span>{{getModeCount(scope.row.patient_id)}}</span>
51
               </template>
50
               </template>
52
         </el-table-column>
51
         </el-table-column>
53
         <el-table-column fixed="right" label="透析总次数" width="100">
52
         <el-table-column fixed="right" label="透析总次数" width="100">
54
           <template slot-scope="scope">
53
           <template slot-scope="scope">
55
-            <!-- {{ scope.row.total_dialysis + scope.row.user_sys_before_count }} -->
56
             {{getDialysisCount(scope.row.patient_id)}}
54
             {{getDialysisCount(scope.row.patient_id)}}
57
           </template>
55
           </template>
58
         </el-table-column>
56
         </el-table-column>

+ 0 - 1
src/pages/dqc/components/doctor.vue View File

29
         </div>
29
         </div>
30
       </div>
30
       </div>
31
     </div>
31
     </div>
32
-    <!-- </van-sticky> -->
33
 
32
 
34
     <div class="chart1">统计图</div>
33
     <div class="chart1">统计图</div>
35
     <div>
34
     <div>

+ 0 - 3
src/pages/dqc/components/nurse.vue View File

420
                 this.getArrLength(this.options.xAxis.data)
420
                 this.getArrLength(this.options.xAxis.data)
421
 
421
 
422
               }
422
               }
423
-              console.log( this.percent)
424
             } else {
423
             } else {
425
               this.$toast({
424
               this.$toast({
426
                 message: resp.msg
425
                 message: resp.msg
477
                 this.$refs.tab.doLayout()
476
                 this.$refs.tab.doLayout()
478
               })
477
               })
479
               var dialysisCount = resp.data.dialysisCount
478
               var dialysisCount = resp.data.dialysisCount
480
-                console.log("dialysisCount",dialysisCount)
481
               for(let i=0;i<dialysisCount.length;i++){
479
               for(let i=0;i<dialysisCount.length;i++){
482
                 if(dialysisCount[i].mode_id == 1){
480
                 if(dialysisCount[i].mode_id == 1){
483
                   dialysisCount[i].mode_id = "HD"
481
                   dialysisCount[i].mode_id = "HD"
544
                  }
542
                  }
545
                }
543
                }
546
              })
544
              })
547
-             console.log("listq23333",list)
548
              this.modeList.push(...list)
545
              this.modeList.push(...list)
549
             } else {
546
             } else {
550
               this.$toast({
547
               this.$toast({

+ 1 - 16
src/pages/dqc/components/office.vue View File

56
 
56
 
57
         <el-table-column :label="item_name" align="center">
57
         <el-table-column :label="item_name" align="center">
58
           <template slot-scope="scope">
58
           <template slot-scope="scope">
59
-            <!--<div v-if="query.range_type == 1&&parseInt(scope.row.inspect_value) > parseInt(scope.row.inspect_value)">{{scope.row.inspect_value}}↑</div>-->
60
             <span v-html="getValue(scope.row)"></span>
59
             <span v-html="getValue(scope.row)"></span>
61
           </template>
60
           </template>
62
         </el-table-column>
61
         </el-table-column>
74
         </el-table-column>
73
         </el-table-column>
75
 
74
 
76
       </el-table>
75
       </el-table>
77
-
78
     </div>
76
     </div>
79
-
80
     <div>
77
     <div>
81
       <van-popup v-model="projectShow" position="bottom" :style="{ height: '40%' }">
78
       <van-popup v-model="projectShow" position="bottom" :style="{ height: '40%' }">
82
         <van-picker
79
         <van-picker
85
           @confirm="chooseProject"
82
           @confirm="chooseProject"
86
           @cancel="projectShow = false"
83
           @cancel="projectShow = false"
87
         />
84
         />
88
-
89
       </van-popup>
85
       </van-popup>
90
 
86
 
91
-
92
       <van-popup v-model="itemShow" position="bottom" :style="{ height: '40%' }">
87
       <van-popup v-model="itemShow" position="bottom" :style="{ height: '40%' }">
93
         <van-picker
88
         <van-picker
94
           show-toolbar
89
           show-toolbar
98
         />
93
         />
99
       </van-popup>
94
       </van-popup>
100
 
95
 
101
-      <!--<van-popup v-model="patientShow" position="bottom" :style="{ height: '40%' }">-->
102
-      <!--<van-picker-->
103
-      <!--show-toolbar-->
104
-      <!--:columns="patient_type_columns"-->
105
-      <!--@confirm="chooseProject"-->
106
-      <!--@cancel="patientShow = false"-->
107
-      <!--/>-->
108
-      <!--</van-popup>-->
109
-
110
-
111
       <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
96
       <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
112
         <van-datetime-picker
97
         <van-datetime-picker
113
           v-model="currentDate1"
98
           v-model="currentDate1"
118
           @cancel="startShow = false"
103
           @cancel="startShow = false"
119
         />
104
         />
120
       </van-popup>
105
       </van-popup>
106
+
121
       <van-popup v-model="endShow" position="bottom" :style="{ height: '40%' }">
107
       <van-popup v-model="endShow" position="bottom" :style="{ height: '40%' }">
122
         <van-datetime-picker
108
         <van-datetime-picker
123
           v-model="currentDate2"
109
           v-model="currentDate2"
129
         />
115
         />
130
       </van-popup>
116
       </van-popup>
131
 
117
 
132
-
133
       <van-popup v-model="sectionShow" position="bottom" :style="{ height: '40%' }">
118
       <van-popup v-model="sectionShow" position="bottom" :style="{ height: '40%' }">
134
         <van-picker
119
         <van-picker
135
           show-toolbar
120
           show-toolbar

+ 0 - 4
src/pages/dqc/components/sufferer.vue View File

106
           @cancel="endShow = false"
106
           @cancel="endShow = false"
107
         />
107
         />
108
       </van-popup>
108
       </van-popup>
109
-
110
-
111
       <van-popup v-model="sectionShow" position="bottom" :style="{ height: '40%' }">
109
       <van-popup v-model="sectionShow" position="bottom" :style="{ height: '40%' }">
112
         <van-picker
110
         <van-picker
113
           show-toolbar
111
           show-toolbar
272
                 //每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
270
                 //每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
273
                 normal: {
271
                 normal: {
274
                   color: function (params) {
272
                   color: function (params) {
275
-                    console.log(params.color)
276
                     //我这边就两个柱子,大体就两个柱子颜色渐变,所以数组只有两个值,多个颜色就多个值
273
                     //我这边就两个柱子,大体就两个柱子颜色渐变,所以数组只有两个值,多个颜色就多个值
277
                     var colorList = [
274
                     var colorList = [
278
                       ["#A9E0F3", "#9FBDFC"],
275
                       ["#A9E0F3", "#9FBDFC"],
397
                 //每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
394
                 //每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
398
                 normal: {
395
                 normal: {
399
                   color: function (params) {
396
                   color: function (params) {
400
-                    console.log(params)
401
                     //我这边就两个柱子,大体就两个柱子颜色渐变,所以数组只有两个值,多个颜色就多个值
397
                     //我这边就两个柱子,大体就两个柱子颜色渐变,所以数组只有两个值,多个颜色就多个值
402
                     var colorList = [
398
                     var colorList = [
403
                       ["#A9E0F3", "#9FBDFC"],
399
                       ["#A9E0F3", "#9FBDFC"],

+ 0 - 10
src/pages/dqc/components/weight.vue View File

17
       </el-autocomplete>
17
       </el-autocomplete>
18
     </div>
18
     </div>
19
 
19
 
20
-
21
     <div class="optionsBox">
20
     <div class="optionsBox">
22
       <div class="toolOne" @click="startShow = true">
21
       <div class="toolOne" @click="startShow = true">
23
         <div style="display: flex;align-items: center;">
22
         <div style="display: flex;align-items: center;">
24
           {{  query.start_time }}
23
           {{  query.start_time }}
25
-
26
           <van-icon name="arrow-down" />
24
           <van-icon name="arrow-down" />
27
         </div>
25
         </div>
28
       </div>
26
       </div>
68
         <el-table-column label="干体重" align="center">
66
         <el-table-column label="干体重" align="center">
69
           <template slot-scope="scope">
67
           <template slot-scope="scope">
70
             {{scope.row.dry_weight?scope.row.dry_weight:''}}
68
             {{scope.row.dry_weight?scope.row.dry_weight:''}}
71
-
72
             <!--{{// scope.row.patient.lapseto == 1 ? '留治':'转出'}}-->
69
             <!--{{// scope.row.patient.lapseto == 1 ? '留治':'转出'}}-->
73
           </template>
70
           </template>
74
         </el-table-column>
71
         </el-table-column>
76
         <el-table-column label="前次透后体重" align="center">
73
         <el-table-column label="前次透后体重" align="center">
77
           <template slot-scope="scope">
74
           <template slot-scope="scope">
78
             {{scope.row.last_after_weight?scope.row.last_after_weight:''}}
75
             {{scope.row.last_after_weight?scope.row.last_after_weight:''}}
79
-
80
             <!--<div v-if="scope.row.before.systolic_blood_pressure">{{scope.row.before.systolic_blood_pressure}} / {{scope.row.before.diastolic_blood_pressure}}</div>-->
76
             <!--<div v-if="scope.row.before.systolic_blood_pressure">{{scope.row.before.systolic_blood_pressure}} / {{scope.row.before.diastolic_blood_pressure}}</div>-->
81
           </template>
77
           </template>
82
         </el-table-column>
78
         </el-table-column>
84
         <el-table-column label="透前体重" align="center">
80
         <el-table-column label="透前体重" align="center">
85
           <template slot-scope="scope">
81
           <template slot-scope="scope">
86
             {{scope.row.weight_before?scope.row.weight_before:''}}
82
             {{scope.row.weight_before?scope.row.weight_before:''}}
87
-
88
             <!--<div v-if="scope.row.min_monitor.systolic_blood_pressure">{{ scope.row.min_monitor.systolic_blood_pressure}} /{{ scope.row.min_monitor.diastolic_blood_pressure}}</div>-->
83
             <!--<div v-if="scope.row.min_monitor.systolic_blood_pressure">{{ scope.row.min_monitor.systolic_blood_pressure}} /{{ scope.row.min_monitor.diastolic_blood_pressure}}</div>-->
89
           </template>
84
           </template>
90
         </el-table-column>
85
         </el-table-column>
93
           <template slot-scope="scope">
88
           <template slot-scope="scope">
94
             <!--<div v-if="scope.row.max_monitor.systolic_blood_pressure">{{ scope.row.max_monitor.systolic_blood_pressure}} /{{ scope.row.max_monitor.diastolic_blood_pressure}}</div>-->
89
             <!--<div v-if="scope.row.max_monitor.systolic_blood_pressure">{{ scope.row.max_monitor.systolic_blood_pressure}} /{{ scope.row.max_monitor.diastolic_blood_pressure}}</div>-->
95
             {{scope.row.after.weight_after?scope.row.after.weight_after:''}}
90
             {{scope.row.after.weight_after?scope.row.after.weight_after:''}}
96
-
97
-
98
           </template>
91
           </template>
99
         </el-table-column>
92
         </el-table-column>
100
 
93
 
280
               //配置样式
273
               //配置样式
281
               itemStyle: {
274
               itemStyle: {
282
                 //通常情况下:
275
                 //通常情况下:
283
-
284
                 //每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
276
                 //每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
285
                 normal: {
277
                 normal: {
286
                   color: function(params) {
278
                   color: function(params) {
521
     width: 37.5rem;
513
     width: 37.5rem;
522
     background: #fff;
514
     background: #fff;
523
   .optionsOne {
515
   .optionsOne {
524
-  //   max-width: 8.75rem;
525
-  //   min-width: 6.25rem;
526
     padding: 0 0.75rem;
516
     padding: 0 0.75rem;
527
     height: 1.875rem;
517
     height: 1.875rem;
528
     background: rgba(246, 246, 246, 1);
518
     background: rgba(246, 246, 246, 1);

+ 1 - 1
src/pages/dqc/patientBloodPressure.vue View File

567
       },
567
       },
568
 
568
 
569
       GetDialysisPatientBloodPressureChartData(params) {
569
       GetDialysisPatientBloodPressureChartData(params) {
570
-        console.log(params)
570
+        // console.log(params)
571
 
571
 
572
         this.options.xAxis.data = []
572
         this.options.xAxis.data = []
573
         this.options.series[0].data = []
573
         this.options.series[0].data = []

+ 3 - 260
src/pages/dqc/patientStatistics.vue View File

22
         </template>
22
         </template>
23
       </el-autocomplete>
23
       </el-autocomplete>
24
     </div>
24
     </div>
25
-    <!-- <div style="width:100%;overflow-x:auto"> -->
26
       <div class="options">
25
       <div class="options">
27
-        <!-- <div class="optionsOne" @click="typeShow = true">
28
-          <div style="display: flex;align-items: center;">
29
-            {{ type }}
30
-            <van-icon name="arrow-down" />
31
-          </div>
32
-        </div> -->
33
         <div class="toolOne" @click="startShow = true">
26
         <div class="toolOne" @click="startShow = true">
34
           <div style="display: flex;align-items: center;">
27
           <div style="display: flex;align-items: center;">
35
             {{ startTime }}
28
             {{ startTime }}
43
           </div>
36
           </div>
44
         </div>
37
         </div>
45
       </div>
38
       </div>
46
-    <!-- </div> -->
47
 
39
 
48
     <div class="chart1">统计图</div>
40
     <div class="chart1">统计图</div>
49
     <div>
41
     <div>
478
               })
470
               })
479
             })
471
             })
480
             // console.log('表哥', this.tableData)
472
             // console.log('表哥', this.tableData)
481
-
482
-            // let projectArr = []
483
-            // this.newArr.map(item => {
484
-            //   projectArr.push(item.item_name)
485
-            // })
486
-
487
-            // this.tableData.map(item => {
488
-            //   let newarr = Object.values(item.data)
489
-            //   newarr.sort((a, b) => {
490
-            //     return projectArr.indexOf(a.item_name) - projectArr.indexOf(b.item_name)
491
-            //   })
492
-            //   item.data = newarr
493
-            // })
494
             let newData = this.tableData
473
             let newData = this.tableData
495
-            // for (let i = 0; i < this.patientsArr.length; i++) {
496
-            //   for (let j = 0; j < newData.length; j++) {
497
-            //     if (this.patientsArr[i].name == newData[j].name) {
498
-            //       newData[j].dialysis_no = this.patientsArr[i].dialysis_no
499
-            //       newData[j].patient_id = this.patientsArr[i].id
500
-            //     }
501
-            //   }
502
-            // }
503
 
474
 
504
             this.tableData = []
475
             this.tableData = []
505
             newData.map(item => {
476
             newData.map(item => {
506
               this.tableData.push(item)
477
               this.tableData.push(item)
507
             })
478
             })
508
-
509
             if (response.data.data.patients.length <= 0) {
479
             if (response.data.data.patients.length <= 0) {
510
               this.isStop = true
480
               this.isStop = true
511
             } else {
481
             } else {
751
 
721
 
752
           this.tablePatients = patients
722
           this.tablePatients = patients
753
 
723
 
754
-          //  let dataInfothree = {}
755
-          //   patients.forEach((item, index) => {
756
-          //     let { inspect_date } = item
757
-          //     if (!dataInfothree[inspect_date]) {
758
-          //       dataInfothree[inspect_date] = {
759
-          //         inspect_date,
760
-          //         name: item.name,
761
-          //         child: [],
762
-          //         patient_id: item.patient_id,
763
-          //       }
764
-          //     }
765
-          //   })
766
-          // let patientlist = Object.values(dataInfothree)
767
-          // console.log("patientlist",patientlist)
768
-
769
         var total = response.data.data.total
724
         var total = response.data.data.total
770
         this.total = total
725
         this.total = total
771
         var control = response.data.data.control
726
         var control = response.data.data.control
776
         control.push(item)
731
         control.push(item)
777
       })
732
       })
778
 
733
 
779
-
780
-      //  var newPatinteArr = []
781
-      //  patientlist.map(item=>{
782
-      //    for(let i=0;i<control.length;i++){
783
-      //       if(item.inspect_date == control[i].inspect_date && item.patient_id == control[i].patient_id){
784
-      //            item.child.push(control[i])
785
-      //       }
786
-      //    }
787
-      //  })
788
-      //  console.log("patientlist",patientlist)
789
-
790
         var newArr = []
734
         var newArr = []
791
         // 分页
735
         // 分页
792
         for (let i = 0; i < control.length; i++) {
736
         for (let i = 0; i < control.length; i++) {
796
             }
740
             }
797
           }
741
           }
798
         }
742
         }
799
-        console.log(newArr)
800
-
801
-        console.log("newArr")
802
-
803
-
804
-
805
           let dataInfo = {}
743
           let dataInfo = {}
806
           newArr.forEach((item, index) => {
744
           newArr.forEach((item, index) => {
807
             let { patient_id } = item
745
             let { patient_id } = item
834
             })
772
             })
835
           })
773
           })
836
 
774
 
837
-          console.log("list")
838
-          console.log(list)
839
-          console.log(newarrtwo)
775
+          // console.log(list)
776
+          // console.log(newarrtwo)
840
 
777
 
841
 
778
 
842
           // 配置的才显示
779
           // 配置的才显示
848
               }
785
               }
849
             }
786
             }
850
           }
787
           }
851
-        console.log('arrthree', arrthree)
788
+        // console.log('arrthree', arrthree)
852
         var arrfour = this.arrayDate(arrthree, newarrtwo)
789
         var arrfour = this.arrayDate(arrthree, newarrtwo)
853
         arrfour.map(item => {
790
         arrfour.map(item => {
854
           item.item_name = ''
791
           item.item_name = ''
914
           }
851
           }
915
         }
852
         }
916
       }
853
       }
917
-          // var total = response.data.data.total
918
-          // var standtotal = response.data.data.standtotal
919
-          // var standtotalone = response.data.data.standtotalOne
920
-          // var cartogramlist = response.data.data.cartogramlist
921
-          // console.log('cartogramlist', cartogramlist)
922
-          // var infectiouscontrol = response.data.data.infectiouscontrol
923
-          // console.log('infectiouscontrol', infectiouscontrol)
924
-          // infectiouscontrol.map(item => {
925
-          //   cartogramlist.push(item)
926
-          // })
927
-          // var totaltwo = response.data.data.total
928
-          // var cart = []
929
-          // // 过滤已经配置的选项
930
-          // for (let i = 0; i < cartogramlist.length; i++) {
931
-          //   for (let j = 0; j < this.normData.length; j++) {
932
-          //     if (cartogramlist[i].item_id == this.normData[j].inspection_minor) {
933
-          //       cart.push(cartogramlist[i])
934
-          //     }
935
-          //   }
936
-          // }
937
-          // console.log('cart', cart)
938
-          // // for (let i = 0; i < cartogramlist.length; i++) {
939
-          // //   if (cartogramlist[i].inspect_value != '') {
940
-          // //     cart.push(cartogramlist[i])
941
-          // //   }
942
-          // // }
943
-          // // console.log("cart",cart)
944
-          // let dataInfo = {}
945
-          // cart.forEach((item, index) => {
946
-          //   let { patient_id } = item
947
-          //   if (!dataInfo[patient_id]) {
948
-          //     dataInfo[patient_id] = {
949
-          //       patient_id,
950
-          //       name: item.name,
951
-          //       child: [],
952
-          //       inspect_date: item.inspect_date,
953
-          //       total: 0,
954
-          //       count: 0,
955
-          //       infectotal: 0
956
-          //     }
957
-          //   }
958
-          // })
959
-          // let list = Object.values(dataInfo)
960
-          // console.log('list', list)
961
-
962
-          // var arr = []
963
-          // list.map(item => {
964
-          //   for (let i = 0; i < cart.length; i++) {
965
-          //     if (item.inspect_date == cart[i].inspect_date && item.patient_id == cart[i].patient_id) {
966
-          //       item.child.push(cart[i])
967
-          //     }
968
-          //   }
969
-          // })
970
-
971
-          // list.map(item => {
972
-          //   item.child.map(it => {
973
-          //     if (it.range_type == 1 && parseInt(it.range_min) <= parseInt(it.inspect_value) && parseInt(it.inspect_value) <= parseInt(it.range_max)) {
974
-          //       item.total++
975
-          //     }
976
-          //     if (it.range_type == 2 && it.inspect_value == it.range_value) {
977
-          //       item.infectotal++
978
-          //     }
979
-          //   })
980
-          // })
981
-          // var standardTotal = 0
982
-
983
-          // list.map(item => {
984
-          //   if ((item.total + item.infectotal) == item.child.length) {
985
-          //     item.count++
986
-          //   }
987
-          // })
988
-          // list.map(item => {
989
-          //   standardTotal += item.count
990
-          // })
991
-          // var totalCount = list.length
992
-          // console.log('totalCount', totalCount)
993
-          // for (let i = 0; i < this.dataCount.length; i++) {
994
-          //   this.dataCount[0].count = standtotal + standtotalone
995
-          //   this.dataCount[1].count = total - standtotalone - standtotal
996
-          //   this.obj.push(this.dataCount[i].count)
997
-          // }
998
-          // for (let i = 0; i < this.dataName.length; i++) {
999
-          //   this.modesData.xAxis.push(this.dataName[i].name)
1000
-          // }
1001
-          // for (let i = 0; i < this.dataCount.length; i++) {
1002
-          //   this.modesData.series.push(((this.dataCount[i].count / total) * 100).toFixed(1))
1003
-          // }
1004
-          // this.options.series[0].data = this.modesData.series
1005
-          // this.options.xAxis.data = this.modesData.xAxis
1006
-          // // var cart = []
1007
-          // for (let i = 0; i < cartogramlist.length; i++) {
1008
-          //   if (cartogramlist[i].inspect_value != '') {
1009
-          //     cart.push(cartogramlist[i])
1010
-          //   }
1011
-          // }
1012
-          // let dataInfo = {}
1013
-          // cart.forEach((item, index) => {
1014
-          //   let { patient_id } = item
1015
-          //   if (!dataInfo[patient_id]) {
1016
-          //     dataInfo[patient_id] = {
1017
-          //       patient_id,
1018
-          //       name: item.name,
1019
-          //       child: [],
1020
-          //       inspect_date: item.inspect_date,
1021
-          //       total: 0
1022
-          //     }
1023
-          //   }
1024
-          // })
1025
-          // let list = Object.values(dataInfo)
1026
-
1027
-          // var arr = []
1028
-          // list.map(item => {
1029
-          //   for (let i = 0; i < cart.length; i++) {
1030
-          //     if (item.inspect_date == cart[i].inspect_date && item.patient_id == cart[i].patient_id) {
1031
-          //       item.child.push(cart[i])
1032
-          //       item.total++
1033
-          //     }
1034
-          //   }
1035
-          // })
1036
-
1037
-          // list.map(item => {
1038
-          //   item.child.map(it => {
1039
-          //     arr.push(it)
1040
-          //   })
1041
-          // })
1042
-
1043
-          // var arrtwo = []
1044
-          // for (let i = 0; i < arr.length; i++) {
1045
-          //   if (parseInt(arr[i].range_min) <= parseInt(arr[i].inspect_value) && parseInt(arr[i].inspect_value) <= parseInt(arr[i].range_max)) {
1046
-          //     arrtwo.push(arr[i])
1047
-          //   }
1048
-          // }
1049
-
1050
-          // let objinfo = {}
1051
-          // arrtwo.forEach((item, index) => {
1052
-          //   let { patient_id } = item
1053
-          //   if (!objinfo[patient_id]) {
1054
-          //     objinfo[patient_id] = {
1055
-          //       patient_id,
1056
-          //       name: item.name,
1057
-          //       child: [],
1058
-          //       inspect_date: item.inspect_date,
1059
-          //       count: 0
1060
-          //     }
1061
-          //   }
1062
-          // })
1063
-          // let newlist = Object.values(objinfo)
1064
-          // newlist.map(item => {
1065
-          //   for (let i = 0; i < arrtwo.length; i++) {
1066
-          //     if (arrtwo[i].patient_id == item.patient_id && arrtwo[i].inspect_date == item.inspect_date) {
1067
-          //       item.child.push(arrtwo[i])
1068
-          //     }
1069
-          //   }
1070
-          // })
1071
-
1072
-          // newlist.map(item => {
1073
-          //   item.child.map(it => {
1074
-          //     if (parseInt(it.range_min) <= parseInt(it.inspect_value) && parseInt(it.inspect_value) <= parseInt(it.range_max)) {
1075
-          //       item.count++
1076
-          //     }
1077
-          //   })
1078
-          // })
1079
-
1080
-          // var newtotal = 0
1081
-
1082
-          // list.map(item => {
1083
-          //   for (let i = 0; i < newlist.length; i++) {
1084
-          //     if (item.patient_id == newlist[i].patient_id && item.total == newlist[i].count) {
1085
-          //       newtotal++
1086
-          //     }
1087
-          //   }
1088
-          // })
1089
-
1090
-          // var totalCount = totaltwo - newtotal
1091
-          // for (let i = 0; i < this.dataName.length; i++) {
1092
-          //   this.modesData.xAxis.push(this.dataName[i].name)
1093
-          // }
1094
-
1095
-          // for (let i = 0; i < this.dataCount.length; i++) {
1096
-          //   this.dataCount[0].count = newtotal
1097
-          //   this.dataCount[1].count = totalCount
1098
-          // }
1099
-
1100
-          // for (let i = 0; i < this.dataCount.length; i++) {
1101
-          //   this.modesData.series.push(((this.dataCount[i].count / totaltwo) * 100).toFixed(1))
1102
-          // }
1103
-          // this.options.series[0].data = this.modesData.series
1104
-          // this.options.xAxis.data = this.modesData.xAxis
1105
         }
854
         }
1106
       })
855
       })
1107
     },
856
     },
1146
       toSearchPatientsControl(params).then(response => {
895
       toSearchPatientsControl(params).then(response => {
1147
         if (response.data.state == 1) {
896
         if (response.data.state == 1) {
1148
           var control = response.data.data.control
897
           var control = response.data.data.control
1149
-          console.log('control', control)
1150
 
898
 
1151
           let dataInfo = {}
899
           let dataInfo = {}
1152
           control.forEach((item, index) => {
900
           control.forEach((item, index) => {
1163
             }
911
             }
1164
           })
912
           })
1165
           let list = Object.values(dataInfo)
913
           let list = Object.values(dataInfo)
1166
-          console.log('list', list)
1167
           list.map(item => {
914
           list.map(item => {
1168
             for (let i = 0; i < control.length; i++) {
915
             for (let i = 0; i < control.length; i++) {
1169
               if (item.inspect_date == control[i].inspect_date && item.patient_id == control[i].patient_id) {
916
               if (item.inspect_date == control[i].inspect_date && item.patient_id == control[i].patient_id) {
1219
             }
966
             }
1220
             this.tableData.push({ name: key, data: dd[key]})
967
             this.tableData.push({ name: key, data: dd[key]})
1221
           }
968
           }
1222
-          console.log('this.tabledate', this.tableData)
1223
           let dataInfotwo = {}
969
           let dataInfotwo = {}
1224
           control.forEach((item, index) => {
970
           control.forEach((item, index) => {
1225
             let { inspect_date } = item
971
             let { inspect_date } = item
1232
             }
978
             }
1233
           })
979
           })
1234
           let listtwo = Object.values(dataInfotwo)
980
           let listtwo = Object.values(dataInfotwo)
1235
-          // console.log("listtwo",listtwo)
1236
           listtwo.map(item => {
981
           listtwo.map(item => {
1237
             this.tableData.map(it => {
982
             this.tableData.map(it => {
1238
               if (item.inspect_date == parseInt(it.name)) {
983
               if (item.inspect_date == parseInt(it.name)) {
1259
     toReturn () {
1004
     toReturn () {
1260
       this.$router.push('/dqc/index')
1005
       this.$router.push('/dqc/index')
1261
     }
1006
     }
1262
-
1263
   },
1007
   },
1264
   created () {
1008
   created () {
1265
     // 列表
1009
     // 列表
1269
     this.tableHeight = (document.documentElement.clientHeight - (Number(document.documentElement.style.fontSize.slice(0, -2)) * 3.125)) + 'px'
1013
     this.tableHeight = (document.documentElement.clientHeight - (Number(document.documentElement.style.fontSize.slice(0, -2)) * 3.125)) + 'px'
1270
     // 获取指标数据
1014
     // 获取指标数据
1271
     this.getMobileNormData()
1015
     this.getMobileNormData()
1272
-
1273
     // 获取统计图数据
1016
     // 获取统计图数据
1274
     this.getMobileCartogramlist()
1017
     this.getMobileCartogramlist()
1275
   }
1018
   }

+ 3 - 4
src/pages/dqc/patientWeight.vue View File

347
             var resp = rs.data
347
             var resp = rs.data
348
             if (resp.state == 1) {
348
             if (resp.state == 1) {
349
               for (let i = 0;  i < resp.data.data.length;i++){
349
               for (let i = 0;  i < resp.data.data.length;i++){
350
-                console.log(resp.data.data[i])
351
-                console.log(resp.data.data[i].value)
352
-
350
+                // console.log(resp.data.data[i])
351
+                // console.log(resp.data.data[i].value)
353
                 this.options.xAxis.data.push(resp.data.data[i].date)
352
                 this.options.xAxis.data.push(resp.data.data[i].date)
354
                 this.options.series[0].data.push(parseFloat(resp.data.data[i].value).toFixed(1))
353
                 this.options.series[0].data.push(parseFloat(resp.data.data[i].value).toFixed(1))
355
               }
354
               }
356
-              console.log( this.options.series[0])
355
+              // console.log( this.options.series[0])
357
               this.getArrLength(this.options.xAxis.data)
356
               this.getArrLength(this.options.xAxis.data)
358
 
357
 
359
             } else {
358
             } else {

+ 1 - 1
src/pages/home/Popup/index.vue View File

38
 
38
 
39
   watch: {
39
   watch: {
40
     showscret(newval, oldval) {
40
     showscret(newval, oldval) {
41
-      console.log(newval);
41
+      // console.log(newval);
42
       this.show = newval; //newval为监听到发生改变数据
42
       this.show = newval; //newval为监听到发生改变数据
43
     },
43
     },
44
   },
44
   },

+ 0 - 68
src/pages/home/active.vue View File

1
 <template>
1
 <template>
2
     <div class="page_kuyishop">
2
     <div class="page_kuyishop">
3
-        <!-- <div class="activeBox">
4
-            <div class="activeTitleBox">
5
-                <div class="activeTitle">
6
-                    <img src="../../assets/images/activeIcon_03.png" alt="">
7
-                    <p>活 动 详 情</p>
8
-                </div>
9
-            </div>
10
-            <div class="activeOne">
11
-                <div class="activeTipBox">
12
-                    <div class="activeTip"></div>
13
-                    <p>活动介绍</p>
14
-                </div>
15
-                <div class="activeTxt">
16
-                    注册酷医云系统并体验系统即可获得<span>价值69元的精美礼品一份(多功能补水仪/多功能加湿器/保温杯套装)</span>
17
-                </div>  
18
-            </div>
19
-            <div class="activeOne">
20
-                <div class="activeTipBox">
21
-                    <div class="activeTip"></div>
22
-                    <p>参与对象</p>
23
-                </div>
24
-                <div class="activeTxt">
25
-                    <span>民营透析机构医护人员</span>
26
-                </div>  
27
-            </div>
28
-            <div class="activeOne">
29
-                <div class="activeTipBox">
30
-                    <div class="activeTip"></div>
31
-                    <p>活动主题</p>
32
-                </div>
33
-                <div class="activeTxt">
34
-                    自春节以来,新冠肺炎疫情肆虐。疫期,民营透析机构在医护紧缺的情况下,仍辛苦坚守阵地,为透析患者提供服务,逆行并开辟透析患者生命之路;而酷医云现已覆盖全国近500家透析机构,我们深知民营透析机构的压力和辛苦。基于此情况,酷医云决定向广大民营透析机构/单位进行疫期致敬大回馈活动,为每一家民营透析机构赠送一份价值69元的精美礼品
35
-                </div>  
36
-            </div>
37
-            <div class="activeOne">
38
-                <div class="activeTipBox">
39
-                    <div class="activeTip"></div>
40
-                    <p>领取精美礼品满足条件</p>
41
-                </div>
42
-                <div class="activeTxt">
43
-                    <p>1.未使用酷医云系统的新用户机构,注册酷医云账号并完善账号信息</p>
44
-                    <p>2.注册医护必须为民营透析机构的医护</p>
45
-                    <p>3.每家机构有且仅有一位医护代表参与领取,先注册先得</p>
46
-                    <p class="litle">*以上解释权归酷医云所有,谢谢配合</p>
47
-                    <p class="big">价值69元精美礼品(三选一)</p>
48
-                    <img src="../../assets/images/goods_03.png" alt="">
49
-                    <img src="../../assets/images/goods_07.png" alt="">
50
-                    <img src="../../assets/images/goods_09.png" alt="">
51
-                    
52
-                </div>  
53
-            </div>
54
-            <div class="activeOne">
55
-                <div class="activeTipBox">
56
-                    <div class="activeTip"></div>
57
-                    <p>【酷医云老用户推荐引导新用户注册者也可领取精美礼品】</p>
58
-                </div>
59
-                <div class="activeTxt">
60
-                    <p>符合以下条件即可领取:</p>
61
-                    <p>1. 老用户推荐其他民营透析机构医护体验酷医云</p>
62
-                    <p>2. 推荐的医护为对方透析中心首个注册体验酷医云的用户</p>
63
-                    <p>3. 推荐者把推荐注册的聊天页面进行截图,并发给酷医云对接人或客服人员,客服微信号:kuyicloud</p>
64
-                    <p>4. 推荐的新用户和推荐者均可各自获得精美礼品一份,且双方必须在活动页面点击我要报名并填写收货信息,礼品即可发货</p>
65
-                </div>  
66
-            </div>
67
-            <div class="join" @click="toActiveForm">我 要 报 名</div>
68
-            <div class="joinImg" @click="toActiveForm"><img src="../../assets/images/apply.png" alt=""></div>
69
-        </div> -->
70
-        
71
         <iframe :src='url'></iframe>
3
         <iframe :src='url'></iframe>
72
 
4
 
73
     </div>
5
     </div>

+ 4 - 248
src/pages/home/index.vue View File

1
 <template>
1
 <template>
2
-  <!-- <div class="page_home">
3
-    <div class="top">
4
-      <div class="header">
5
-        <img src="../../assets/images/hospital.png" alt />
6
-        <van-dropdown-menu>
7
-          <van-dropdown-item v-model="value" :options="hospitals" />
8
-        </van-dropdown-menu>
9
-      </div>
10
-      <div class="search" @click="ToSearch()">
11
-        <el-input
12
-          placeholder=" 姓名 / 首拼 / 透析号"
13
-          prefix-icon="el-icon-search"
14
-          v-model="searchVal"
15
-        ></el-input>
16
-      </div>
17
-      <div class="banner">
18
-        <img src="../../assets/images/homebanner.jpg" alt />
19
-      </div>
20
-      <div class="myDesk">
21
-        <h2>我的工作台</h2>
22
-        <div class="list">
23
-          <ul class="all">
24
-            <li class="one">
25
-              <img src="../../assets/images/m09.png" alt />
26
-              <p @click="patientManagement()">病人管理</p>
27
-            </li>
28
-            <li class="one">
29
-              <img src="../../assets/images/m02.png" alt />
30
-              <p>透析记录</p>
31
-            </li>
32
-            <li class="one">
33
-              <img src="../../assets/images/m04.png" alt />
34
-              <p>质控分析</p>
35
-            </li>
36
-            <li class="one">
37
-              <img src="../../assets/images/m05.png" alt />
38
-              <p>院感管理</p>
39
-            </li>
40
-            <li class="one">
41
-              <img src="../../assets/images/m06.png" alt />
42
-              <p>微商城</p>
43
-            </li>
44
-            <li class="one">
45
-              <img src="../../assets/images/m07.png" alt />
46
-              <p>微官网</p>
47
-            </li>
48
-            <li class="one">
49
-              <img src="../../assets/images/m08.png" alt />
50
-              <p>医院二维码</p>
51
-            </li>
52
-            <li class="one">
53
-              <img src="../../assets/images/m03.png" alt />
54
-              <p>基础配置</p>
55
-            </li>
56
-          </ul>
57
-        </div>
58
-      </div>
59
-    </div>
60
-
61
-    <div class="tab">
62
-      <div class="btn">
63
-        <i class="iconfont icon-zhuye"></i>
64
-        <span>首页</span>
65
-      </div>
66
-      <div class="btn">
67
-        <i class="iconfont icon-wode"></i>
68
-        <span>我的</span>
69
-      </div>
70
-    </div>
71
 
2
 
72
-  </div>-->
73
   <div class="page_home">
3
   <div class="page_home">
74
     <div>
4
     <div>
75
       <router-view />
5
       <router-view />
82
             <div>首页</div>
12
             <div>首页</div>
83
           </van-tabbar-item>
13
           </van-tabbar-item>
84
         </router-link>
14
         </router-link>
85
-        <!-- <router-link to="/active">
86
-          <van-tabbar-item>
87
-            <i class="iconfont icon-yisheng iconOne"></i>
88
-            <div>致敬医护</div>
89
-          </van-tabbar-item>
90
-        </router-link> -->
91
-        <!--<router-link to="/service">-->
92
-          <!--<van-tabbar-item>-->
93
-            <!--<i class="iconfont icon-fuwu2 iconOne"></i>-->
94
-            <!--<div>服务</div>-->
95
-          <!--</van-tabbar-item>-->
96
-        <!--</router-link>-->
97
-       <!-- <router-link to="/active" replace>
98
-         <van-tabbar-item>
99
-           <i class="iconfont icon-shangcheng iconOne"></i>
100
-           <div>商城</div>
101
-         </van-tabbar-item>
102
-       </router-link> -->
103
         <router-link to="/newMy" replace>
15
         <router-link to="/newMy" replace>
104
           <van-tabbar-item>
16
           <van-tabbar-item>
105
             <i class="iconfont icon-wode iconOne"></i>
17
             <i class="iconfont icon-wode iconOne"></i>
135
     }
47
     }
136
   },
48
   },
137
   methods: {
49
   methods: {
138
-    // patientManagement() {
139
-    //   var id = this.$route.query.id;
140
-    //   this.$router.push("/patientmanagement?id=" + id);
141
-    // },
142
-    // ToSearch() {
143
-    //   this.$router.push("/search");
144
-    // }
145
     getToken(orgId,adminUserId){
50
     getToken(orgId,adminUserId){
146
       axios.get('/api/index/gettoken/'+ orgId + '/'+ adminUserId
51
       axios.get('/api/index/gettoken/'+ orgId + '/'+ adminUserId
147
         ).then((res) => {
52
         ).then((res) => {
148
-        console.log('res',res.data)
53
+        // console.log('res',res.data)
149
         
54
         
150
         if(res.data.code == 0){
55
         if(res.data.code == 0){
151
           let token = res.data.data.token
56
           let token = res.data.data.token
152
           localStorage.setItem("token",token)
57
           localStorage.setItem("token",token)
153
           let http = 'wss://socket.sgjyun.com?token=' 
58
           let http = 'wss://socket.sgjyun.com?token=' 
154
           // let http = 'ws://socket.szjkhd.com?token=' //测试
59
           // let http = 'ws://socket.szjkhd.com?token=' //测试
155
-          console.log(this.$store.state.user.websocket)
60
+          // console.log(this.$store.state.user.websocket)
156
           this.$store.state.user.websocket = new ReconnectingWebSocket(
61
           this.$store.state.user.websocket = new ReconnectingWebSocket(
157
             http + token
62
             http + token
158
           );
63
           );
161
             if (navigator.onLine == false) {
66
             if (navigator.onLine == false) {
162
               this.showWsErr = true;
67
               this.showWsErr = true;
163
               this.wsErrMsg = "网络已断开,请检查网络后重新打开页面";
68
               this.wsErrMsg = "网络已断开,请检查网络后重新打开页面";
164
-              console.log('navigator',navigator)
69
+              // console.log('navigator',navigator)
165
               let http = 'wss://socket.sgjyun.com?token=' 
70
               let http = 'wss://socket.sgjyun.com?token=' 
166
               // let http = 'ws://socket.szjkhd.com?token=' //测试
71
               // let http = 'ws://socket.szjkhd.com?token=' //测试
167
               let token = localStorage.getItem("token")
72
               let token = localStorage.getItem("token")
202
     } else if (currenttabbar === "newMy") {
107
     } else if (currenttabbar === "newMy") {
203
       this.active = 1;
108
       this.active = 1;
204
     }
109
     }
205
-    // else if (currenttabbar === "active") {
206
-    //   this.active = 1;
207
-    // }
110
+
208
   }
111
   }
209
 };
112
 };
210
 </script>
113
 </script>
248
       color: #1989fa;
151
       color: #1989fa;
249
     }
152
     }
250
   }
153
   }
251
-
252
-  // .header {
253
-  //   padding: 0 15px;
254
-  //   box-sizing: border-box;
255
-  //   height: 3.125rem;
256
-  //   width: 100%;
257
-  //   line-height: 3.125rem;
258
-  //   img {
259
-  //     float: left;
260
-  //     width: 1.375rem;
261
-  //     height: 1.375rem;
262
-  //     margin-top: 0.625rem;
263
-  //   }
264
-  //   .van-dropdown-menu {
265
-  //     width: 8.5rem;
266
-  //     height: 3.125rem;
267
-  //   }
268
-  //   .van-dropdown-menu__item {
269
-  //     flex: none;
270
-  //   }
271
-  //   .van-ellipsis {
272
-  //     width: 6.25rem;
273
-  //     height: 3.125rem;
274
-  //     line-height: 3.125rem;
275
-  //     font-size: 0.875rem;
276
-  //     white-space: nowrap;
277
-  //     text-overflow: ellipsis;
278
-  //     overflow: hidden;
279
-  //   }
280
-  // }
281
-  // .search {
282
-  //   width: 21.5625rem;
283
-  //   height: 2.125rem;
284
-  //   padding: 0 15px;
285
-  //   box-sizing: border-box;
286
-  //   .el-input__inner {
287
-  //     width: 21.5625rem;
288
-  //     height: 2.125rem;
289
-  //     border: none;
290
-  //     background: rgba(244, 244, 244, 1);
291
-  //     border-radius: 17px;
292
-  //     color: #999999;
293
-  //   }
294
-  //   .el-input__prefix {
295
-  //     margin-top: -0.125rem;
296
-  //     color: #999999;
297
-  //   }
298
-  // }
299
-  // .banner {
300
-  //   overflow: hidden;
301
-  //   margin-top: 1.25rem;
302
-  //   // width: 21.4375rem;
303
-  //   // height: 8.3125rem;
304
-  //   // border-radius: 10px;
305
-  //   width: 23.4375rem;
306
-  //   height: 8.3125rem;
307
-  //   // background: rgba(188, 188, 188, 0.1);
308
-  //   // opacity: 0.2;
309
-  //   img {
310
-  //     margin: 0 15px;
311
-  //     width: 21.4375rem;
312
-  //     height: 8.3125rem;
313
-  //     box-sizing: border-box;
314
-  //   }
315
-  // }
316
-  // .myDesk {
317
-  //   padding: 0 15px;
318
-  //   box-sizing: border-box;
319
-  //   padding-top: 1.5625rem;
320
-  //   width: 23.4375rem;
321
-  //   height: 17.0625rem;
322
-  //   // background: rgba(188, 188, 188, 0.1);
323
-  //   h2 {
324
-  //     height: 1.1875rem;
325
-  //     font-size: 1.25rem;
326
-  //     font-weight: 600;
327
-  //     color: rgba(0, 0, 0, 1);
328
-  //     line-height: 0.9375rem;
329
-  //   }
330
-  //   .list {
331
-  //     margin-top: 0.9375rem;
332
-  //     width: 21.4375rem;
333
-  //     height: 14rem;
334
-  //     background: rgba(255, 255, 255, 1);
335
-  //     border-radius: 10px;
336
-  //     box-shadow: 0px 3px 12px 0px rgba(188, 188, 188, 0.2);
337
-  //     display: flex;
338
-  //     align-items: center;
339
-  //     .all {
340
-  //       display: flex;
341
-  //       justify-content: space-around;
342
-  //       flex-wrap: wrap;
343
-  //     }
344
-  //     .one {
345
-  //       width: 25%;
346
-  //       display: flex;
347
-  //       flex-direction: column;
348
-  //       align-items: center;
349
-  //       justify-content: space-around;
350
-  //       height: 6.25rem;
351
-  //       img {
352
-  //         width: 2.8125rem;
353
-  //         height: 2.8125rem;
354
-  //       }
355
-  //       p {
356
-  //         margin-top: -0.625rem;
357
-  //         height: 0.8125rem;
358
-  //         font-size: 0.8125rem;
359
-  //         color: rgba(60, 60, 60, 1);
360
-  //         line-height: 0.9375rem;
361
-  //       }
362
-  //     }
363
-  //   }
364
-  // }
365
-  // .tab {
366
-  //   display: flex;
367
-  //   width: 23.4375rem;
368
-  //   height: 3.0625rem;
369
-  //   background: rgba(255, 255, 255, 1);
370
-  //   justify-content: space-around;
371
-  //   box-shadow: 3px 0px 12px 3px rgba(188, 188, 188, 0.2);
372
-
373
-  //   > div:last-child {
374
-  //     span {
375
-  //       color: #bfbfbf;
376
-  //     }
377
-  //   }
378
-  //   .btn {
379
-  //     display: flex;
380
-  //     flex-direction: column;
381
-  //     align-items: center;
382
-  //     align-self: center;
383
-  //     i {
384
-  //       font-size: 1.5rem;
385
-  //       color: rgba(79, 115, 254, 1);
386
-  //     }
387
-  //     .icon-wode {
388
-  //       color: #bfbfbf;
389
-  //     }
390
-
391
-  //     span {
392
-  //       font-size: 0.75rem;
393
-  //       color: rgba(79, 115, 254, 1);
394
-  //       margin-top: 0.25rem;
395
-  //     }
396
-  //   }
397
-  // }
398
 }
154
 }
399
 </style>
155
 </style>

+ 6 - 33
src/pages/home/login.vue View File

144
       this.LoginForm.tel = val.replace(/[^0-9]+/g, "");
144
       this.LoginForm.tel = val.replace(/[^0-9]+/g, "");
145
     },
145
     },
146
     watchNum() {
146
     watchNum() {
147
-      // if (
148
-      //   this.LoginForm.tel === "" ||
149
-      //   this.LoginForm.psd === "" ||
150
-      //   this.checked == false
151
-      // ) {
152
-      //   this.loginshow = false;
153
-      //   this.loginshowtwo = true;
154
-      // } else {
155
-      //   this.loginshow = true;
156
-      //   this.loginshowtwo = false;
157
-      // }
158
-      // if (this.LoginForm.psd.length < 6) {
159
-      //   this.loginshow = false;
160
-      //   this.loginshowtwo = true;
161
-      // }
162
-      // if (this.LoginForm.psd.length > 6) {
163
-      //   this.loginshow = true;
164
-      //   this.loginshowtwo = false;
165
-      // }
166
-      // if (this.LoginForm.tel.length < 11) {
167
-      //   this.loginshow = false;
168
-      //   this.loginshowtwo = true;
169
-      // }
170
       if(this.LoginForm.psd.length >= 6 && this.LoginForm.tel.length == 11 && this.checked == true){
147
       if(this.LoginForm.psd.length >= 6 && this.LoginForm.tel.length == 11 && this.checked == true){
171
         this.loginshow = true;
148
         this.loginshow = true;
172
         this.loginshowtwo = false;
149
         this.loginshowtwo = false;
181
       // const self = this;
158
       // const self = this;
182
       //判断复选框是否被勾选 勾选则调用配置cookie方法
159
       //判断复选框是否被勾选 勾选则调用配置cookie方法
183
       if (this.remember == true) {
160
       if (this.remember == true) {
184
-        console.log("checked == true");
161
+        // console.log("checked == true");
185
         //传入账号名,密码,和保存天数3个参数
162
         //传入账号名,密码,和保存天数3个参数
186
         this.setCookie(this.LoginForm.tel, this.LoginForm.psd, 7);
163
         this.setCookie(this.LoginForm.tel, this.LoginForm.psd, 7);
187
       } else {
164
       } else {
188
-        console.log("清空Cookie");
165
+        // console.log("清空Cookie");
189
         //清空Cookie
166
         //清空Cookie
190
         this.clearCookie();
167
         this.clearCookie();
191
       }
168
       }
196
           if (this.checked != true) {
173
           if (this.checked != true) {
197
             this.show = false
174
             this.show = false
198
             Toast("请同意隐私服务协议");
175
             Toast("请同意隐私服务协议");
199
-
200
             return;
176
             return;
201
           }
177
           }
202
 
178
 
219
             sessionStorage.setItem("admin_user_id",org.creator);
195
             sessionStorage.setItem("admin_user_id",org.creator);
220
             localStorage.setItem("token",token);
196
             localStorage.setItem("token",token);
221
 
197
 
222
-
223
             this.$store.dispatch("InitUserInfo", {
198
             this.$store.dispatch("InitUserInfo", {
224
               admin: admin,
199
               admin: admin,
225
               user: user,
200
               user: user,
298
         "userName" + "=" + c_name + ";path=/;expires=" + exdate.toGMTString();
273
         "userName" + "=" + c_name + ";path=/;expires=" + exdate.toGMTString();
299
       window.document.cookie =
274
       window.document.cookie =
300
         "userPwd" + "=" + c_pwd + ";path=/;expires=" + exdate.toGMTString();
275
         "userPwd" + "=" + c_pwd + ";path=/;expires=" + exdate.toGMTString();
301
-
302
-        console.log(window.document.cookie,'点击登录后设置cookie')
276
+        // console.log(window.document.cookie,'点击登录后设置cookie')
303
     },
277
     },
304
 
278
 
305
     // 获取cookie
279
     // 获取cookie
307
       this.$nextTick(() => {
281
       this.$nextTick(() => {
308
         if (this.LoginForm.psd != "") {
282
         if (this.LoginForm.psd != "") {
309
           this.remember = true;
283
           this.remember = true;
310
-
311
         }
284
         }
312
       });
285
       });
313
       if (document.cookie.length > 0) {
286
       if (document.cookie.length > 0) {
314
 
287
 
315
-        console.log(document.cookie,'document.cookie')
288
+        // console.log(document.cookie,'document.cookie')
316
         var arr = document.cookie.split("; "); //这里显示的格式需要切割一下自己可输出看下
289
         var arr = document.cookie.split("; "); //这里显示的格式需要切割一下自己可输出看下
317
         for (var i = 0; i < arr.length; i++) {
290
         for (var i = 0; i < arr.length; i++) {
318
           var arr2 = arr[i].split("="); //再次切割
291
           var arr2 = arr[i].split("="); //再次切割
335
       this.setCookie("", "", -1); //修改2值都为空,天数为负1天就好了
308
       this.setCookie("", "", -1); //修改2值都为空,天数为负1天就好了
336
     },
309
     },
337
     a(event){
310
     a(event){
338
-      console.log(123)
339
-      console.log(event)
311
+      // console.log(123)
312
+      // console.log(event)
340
     }
313
     }
341
   },
314
   },
342
   watch:{
315
   watch:{

+ 1 - 9
src/pages/home/register/register.vue View File

48
           </div>
48
           </div>
49
         </el-form-item>
49
         </el-form-item>
50
       </el-form>
50
       </el-form>
51
-      <!-- <el-input placeholder="请输入手机号码" prefix-icon="el-icon-mobile" v-model="phone"></el-input>
52
-
53
-      <div class="code">
54
-        <i class="iconfont icon-dunpai dunpai"></i>
55
-        <el-input v-model="code" placeholder="请输入验证码"></el-input>
56
-        <div class="getCode">获取验证码</div>
57
-      </div>
58
-      <el-input placeholder="请输入密码" prefix-icon="el-icon-lock" v-model="psd" show-password></el-input>-->
59
     </div>
51
     </div>
60
     <div
52
     <div
61
       class="login"
53
       class="login"
274
     },
266
     },
275
     // 不能输入中文和字母
267
     // 不能输入中文和字母
276
     change(val) {
268
     change(val) {
277
-      console.log("val", val);
269
+
278
       this.registerForm.phone = val.replace(/[^0-9]+/g, "");
270
       this.registerForm.phone = val.replace(/[^0-9]+/g, "");
279
     },
271
     },
280
     agree() {
272
     agree() {

+ 1 - 10
src/pages/home/verifyToken.vue View File

26
           var dict_config_list = data.dict_config_list;
26
           var dict_config_list = data.dict_config_list;
27
           var token = data.token;
27
           var token = data.token;
28
 
28
 
29
-
30
           var template_info = data.template_info;
29
           var template_info = data.template_info;
31
           var filed_list = data.filed_list;
30
           var filed_list = data.filed_list;
32
           sessionStorage.setItem("org_id",org.id);
31
           sessionStorage.setItem("org_id",org.id);
43
           });
42
           });
44
           this.$store.dispatch("SetConfigList", config_list);
43
           this.$store.dispatch("SetConfigList", config_list);
45
           this.$store.dispatch("SetDictConfigList", dict_config_list);
44
           this.$store.dispatch("SetDictConfigList", dict_config_list);
46
-          // if(org.id == 9504 || org.id == 3907 || org.id == 3877 || org.id == 10121 || org.id == 9914 || org.id == 9566 || org.id == 10138 || org.id == 10088 || org.id == 9538 || org.id ==9747){
47
-          //   this.$router.push({path: '/homeIndex'})
48
-            // location.replace("http://mobile.kuyicloud.com/index22.html#/homeIndex")
49
-          // }else{
50
-          //   location.replace("http://mobile.kuyicloud.com/#/homeIndex")
51
-          // }
52
-
53
          this.$router.replace("/homeIndex");
45
          this.$router.replace("/homeIndex");
54
         } else {
46
         } else {
55
           //未登录
47
           //未登录
64
     });
56
     });
65
   },methods:{
57
   },methods:{
66
     callJsFunction(cookieStr) {
58
     callJsFunction(cookieStr) {
67
-      console.log(cookieStr)
68
-
59
+      // console.log(cookieStr)
69
     }
60
     }
70
   },
61
   },
71
 };
62
 };

+ 1 - 14
src/pages/homeIndex/index.vue View File

293
       })
293
       })
294
     },
294
     },
295
     jump (url) {
295
     jump (url) {
296
-      // run().then(response => {
297
-      //   if (response.data.state === 1) {
298
-      //
299
-      //   } else {
300
-      //
301
-      //   }
302
-      // });
303
       if (url.length != 0) {
296
       if (url.length != 0) {
304
         window.location.href = url
297
         window.location.href = url
305
       }
298
       }
312
       }
305
       }
313
       if (app.open_status == 0) {
306
       if (app.open_status == 0) {
314
         Toast('近期发布')
307
         Toast('近期发布')
315
-
316
         return
308
         return
317
       }
309
       }
318
-      console.log(app.app_type)
319
       switch (app.app_type) {
310
       switch (app.app_type) {
320
         case 6:
311
         case 6:
321
           this.toPatients()
312
           this.toPatients()
341
 
332
 
342
         case 14:
333
         case 14:
343
           break
334
           break
344
-
345
         case 16:
335
         case 16:
346
           this.$router.push({path: '/busIndex'})
336
           this.$router.push({path: '/busIndex'})
347
           break
337
           break
371
     },
361
     },
372
     GetHomeData () {
362
     GetHomeData () {
373
       GetHomeData().then(response => {
363
       GetHomeData().then(response => {
374
-        console.log('登录后获取数据', response)
364
+
375
         if (response.data.state === 1) {
365
         if (response.data.state === 1) {
376
           this.isCreateOrg = response.data.data.isCreateOrg
366
           this.isCreateOrg = response.data.data.isCreateOrg
377
           this.isSubSuperAdmin = response.data.data.isSubSuperAdmin
367
           this.isSubSuperAdmin = response.data.data.isSubSuperAdmin
379
           this.text = '欢迎使用酷医云,' + response.data.data.username.user_name
369
           this.text = '欢迎使用酷医云,' + response.data.data.username.user_name
380
           this.text2 = '您的专属客户经理:' + response.data.data.information.name
370
           this.text2 = '您的专属客户经理:' + response.data.data.information.name
381
           this.phone = response.data.data.information.phone
371
           this.phone = response.data.data.information.phone
382
-          console.log(111, this.$store)
383
           if (this.isCreateOrg) {
372
           if (this.isCreateOrg) {
384
             this.orgs = response.data.data.orgs
373
             this.orgs = response.data.data.orgs
385
             this.apps = response.data.data.apps
374
             this.apps = response.data.data.apps
397
             this.value1 = this.$store.getters.user.org.id
386
             this.value1 = this.$store.getters.user.org.id
398
             this.show = false
387
             this.show = false
399
           } else {
388
           } else {
400
-            console.log(1)
401
             this.show = true
389
             this.show = true
402
-            console.log(2)
403
             this.apps = response.data.data.apps
390
             this.apps = response.data.data.apps
404
             this.banners = response.data.data.banners
391
             this.banners = response.data.data.banners
405
           }
392
           }

+ 0 - 2
src/pages/infor/components/all.vue View File

64
     },
64
     },
65
     methods:{
65
     methods:{
66
        getlist(){
66
        getlist(){
67
-          console.log("处方 s d d s d s d s d d d w s")
68
           var params = {
67
           var params = {
69
             limit:this.limit,
68
             limit:this.limit,
70
             page:this.page,
69
             page:this.page,
71
           }
70
           }
72
          getMobieInformationOne(params).then(response=>{
71
          getMobieInformationOne(params).then(response=>{
73
            if(response.data.state == 1){
72
            if(response.data.state == 1){
74
-             console.log("list------------",response.data.data.information)
75
              this.list = response.data.data.information
73
              this.list = response.data.data.information
76
              this.total = response.data.data.total
74
              this.total = response.data.data.total
77
              this.doclist = response.data.data.doclist
75
              this.doclist = response.data.data.doclist

+ 0 - 2
src/pages/infor/components/check.vue View File

64
     },
64
     },
65
     methods:{
65
     methods:{
66
        getlist(){
66
        getlist(){
67
-          console.log("处方 s d d s d s d s d d d w s")
68
           var params = {
67
           var params = {
69
             limit:this.limit,
68
             limit:this.limit,
70
             page:this.page,
69
             page:this.page,
71
           }
70
           }
72
          getMobieInformation(params).then(response=>{
71
          getMobieInformation(params).then(response=>{
73
            if(response.data.state == 1){
72
            if(response.data.state == 1){
74
-             console.log("list------------",response.data.data.information)
75
              this.list = response.data.data.information
73
              this.list = response.data.data.information
76
              this.total = response.data.data.total
74
              this.total = response.data.data.total
77
              this.doclist = response.data.data.doclist
75
              this.doclist = response.data.data.doclist

+ 14 - 16
src/pages/main/PrintIndex.vue View File

359
         v-bind:childResponse="childResponse"
359
         v-bind:childResponse="childResponse"
360
         v-if="org_template_info.template_id == 68"
360
         v-if="org_template_info.template_id == 68"
361
       ></DialysisPrintOrderSixtyeight>
361
       ></DialysisPrintOrderSixtyeight>
362
+      <DialysisPrintOrderSeventy
363
+        ref="childOne"
364
+        style="margin-top: 60px"
365
+        v-bind:childResponse="childResponse"
366
+        v-if="org_template_info.template_id == 70"
367
+      ></DialysisPrintOrderSeventy>
362
     </div>
368
     </div>
363
     <!--<side-bar :active_index="0" v-if="isShow == true"></side-bar>-->
369
     <!--<side-bar :active_index="0" v-if="isShow == true"></side-bar>-->
364
   </div>
370
   </div>
416
 import DialysisPrintOrderSixtyOne from "./template/DialysisPrintOrderSixtyOne"
422
 import DialysisPrintOrderSixtyOne from "./template/DialysisPrintOrderSixtyOne"
417
 import DialysisPrintOrderSixtyTwo from "./template/DialysisPrintOrderSixtyTwo"
423
 import DialysisPrintOrderSixtyTwo from "./template/DialysisPrintOrderSixtyTwo"
418
 import DialysisPrintOrderSixtyThree from "./template/DialysisPrintOrderSixtyThree"
424
 import DialysisPrintOrderSixtyThree from "./template/DialysisPrintOrderSixtyThree"
419
-import DialysisPrintOrdersixtyFive from './template/DialysisPrintOrdersixtyFive.vue'
420
-import DialysisPrintOrderSixtysix from "./template/DialysisPrintOrderSixtysix.vue"
421
-import DialysisPrintOrderSixtyseven from "./template/DialysisPrintOrdersixtyseven.vue"
422
-import DialysisPrintOrderSixtyeight from "./template/DialysisPrintOrdersixtyeight.vue"
425
+import DialysisPrintOrdersixtyFive from './template/DialysisPrintOrdersixtyFive'
426
+import DialysisPrintOrderSixtysix from "./template/DialysisPrintOrderSixtysix"
427
+import DialysisPrintOrderSixtyseven from "./template/DialysisPrintOrdersixtyseven"
428
+import DialysisPrintOrderSixtyeight from "./template/DialysisPrintOrdersixtyeight"
429
+import DialysisPrintOrderSeventy from './template/DialysisPrintOrderSeventy'
423
 export default {
430
 export default {
424
   name: "PrintIndex",
431
   name: "PrintIndex",
425
   components: {
432
   components: {
474
     DialysisPrintOrderFortySix,
481
     DialysisPrintOrderFortySix,
475
     DialysisPrintOrderFortySeven,
482
     DialysisPrintOrderFortySeven,
476
     DialysisPrintOrderFortyEight,
483
     DialysisPrintOrderFortyEight,
484
+    DialysisPrintOrderSeventy
477
   },
485
   },
478
   data() {
486
   data() {
479
     return {
487
     return {
568
       fetchAllAdminUsers().then((response) => {
576
       fetchAllAdminUsers().then((response) => {
569
         if (response.data.state == 1) {
577
         if (response.data.state == 1) {
570
           this.adminUser = response.data.data.users;
578
           this.adminUser = response.data.data.users;
571
-          console.log(this.adminUser);
572
           this.loading = false;
579
           this.loading = false;
573
         } else {
580
         } else {
574
           this.loading = false;
581
           this.loading = false;
583
       }
590
       }
584
       return "";
591
       return "";
585
     },
592
     },
586
-    // printThisPage() {
587
-    //   var xtdate = this.$route.query.xtdate;
588
-    //   this.$router.push(
589
-    //     "/Prints?xtdate=" + xtdate + "&xtno=" + this.$route.query.xtno
590
-    //   );
591
-    // },
593
+
592
     backAction() {
594
     backAction() {
593
       this.$router.back(-1);
595
       this.$router.back(-1);
594
     },
596
     },
613
       return name;
615
       return name;
614
     },
616
     },
615
     setAdminUserES(id) {
617
     setAdminUserES(id) {
616
-      console.log(id);
617
       if (id == 0) {
618
       if (id == 0) {
618
         return "";
619
         return "";
619
       }
620
       }
643
           this.$message.error("请求数据失败");
644
           this.$message.error("请求数据失败");
644
           return false;
645
           return false;
645
         }
646
         }
646
-
647
-        console.log(this.advices);
648
       });
647
       });
649
     },
648
     },
650
 
649
 
671
       }
670
       }
672
     },
671
     },
673
     getAdminUser(id) {
672
     getAdminUser(id) {
674
-      console.log(id);
675
       if (id == 0) {
673
       if (id == 0) {
676
         return "";
674
         return "";
677
       }
675
       }
685
       }
683
       }
686
     },
684
     },
687
     printlog(val) {
685
     printlog(val) {
688
-      console.log(typeof val + "Second");
686
+      // console.log(typeof val + "Second");
689
     },
687
     },
690
     refresh() {
688
     refresh() {
691
       this.loading = true;
689
       this.loading = true;

+ 3 - 28
src/pages/main/RecordPage.vue View File

111
            {{ total }}
111
            {{ total }}
112
         </span>
112
         </span>
113
       </div>
113
       </div>
114
-
115
       <div class="popup">
114
       <div class="popup">
116
         <van-popup
115
         <van-popup
117
           v-model:show="showRight"
116
           v-model:show="showRight"
118
           position="right"
117
           position="right"
119
           :style="{ width: '60%', height: '100%',right: '-30%' }">
118
           :style="{ width: '60%', height: '100%',right: '-30%' }">
120
-
121
           <div  v-if="drugStockConfig.is_open == 0 || drugStockConfig.is_open == 2">
119
           <div  v-if="drugStockConfig.is_open == 0 || drugStockConfig.is_open == 2">
122
             <div style="margin: 10px;border-bottom: 1px solid black;">
120
             <div style="margin: 10px;border-bottom: 1px solid black;">
123
               <span class="text">姓名</span>
121
               <span class="text">姓名</span>
129
                 <span class="text">{{item.count }}</span>
127
                 <span class="text">{{item.count }}</span>
130
               </div>
128
               </div>
131
             </div>
129
             </div>
132
-
133
           </div>
130
           </div>
134
-          <div  v-if="drugStockConfig.is_open == 1 ">
131
+          <div v-if="drugStockConfig.is_open == 1 ">
135
             <div style="margin: 10px;border-bottom: 1px solid black;">
132
             <div style="margin: 10px;border-bottom: 1px solid black;">
136
               <span class="text">姓名</span>
133
               <span class="text">姓名</span>
137
               <span class="text">条数</span>
134
               <span class="text">条数</span>
142
                 <span class="text">{{item.count }}</span>
139
                 <span class="text">{{item.count }}</span>
143
               </div>
140
               </div>
144
             </div>
141
             </div>
145
-
146
           </div>
142
           </div>
147
         </van-popup>
143
         </van-popup>
148
       </div>
144
       </div>
160
 import monitoring from '../monitoring/index'
156
 import monitoring from '../monitoring/index'
161
 import control from '../control/index.vue'
157
 import control from '../control/index.vue'
162
 import DialysisAdviceTable from '../advice/DialysisAdviceTable'
158
 import DialysisAdviceTable from '../advice/DialysisAdviceTable'
163
-import DialysisAdvice from '../advice/DialysiAdive.vue'
159
+import DialysisAdvice from '../advice/DialysiAdive'
164
 import beforeDialysis from './beforeDialysis/index'
160
 import beforeDialysis from './beforeDialysis/index'
165
 import calling from './calling/index'
161
 import calling from './calling/index'
166
 import schedule from './schedule/index'
162
 import schedule from './schedule/index'
405
       }
401
       }
406
     },
402
     },
407
     onClick (tabIndex) {
403
     onClick (tabIndex) {
408
-      // if(this.$store.getters.user.tab_index == 0){
409
-      //   this.$refs.waitingArea.removeEventListener()
410
-      // }
411
-      // if(tabIndex == 0){
412
-      //   this.$refs.waitingArea.addEventListener()
413
-      // }
414
-      // if(this.$store.getters.user.tab_index == 1){
415
-      //   this.$refs.dialysisArea.removeEventListener()
416
-      // }
417
-      // if(tabIndex == 1){
418
-      //   this.$refs.dialysisArea.addEventListener()
419
-      // }
420
 
404
 
421
       this.$store.getters.user.tab_index = tabIndex
405
       this.$store.getters.user.tab_index = tabIndex
422
       this.index = tabIndex
406
       this.index = tabIndex
435
       // this.$refs.search_field.blur();
419
       // this.$refs.search_field.blur();
436
       this.search_keyword = this.search_input
420
       this.search_keyword = this.search_input
437
       if (this.index == 0) {
421
       if (this.index == 0) {
438
-
439
         this.$refs.waitingArea.searchVal(this.search_keyword)
422
         this.$refs.waitingArea.searchVal(this.search_keyword)
440
       } else if (this.index == 1) {
423
       } else if (this.index == 1) {
441
-
442
         this.$refs.dialysisArea.searchVal(this.search_keyword)
424
         this.$refs.dialysisArea.searchVal(this.search_keyword)
443
       } else if (this.index == 2) {
425
       } else if (this.index == 2) {
444
         this.$refs.monitoring.searchWithKeyword(1, this.search_keyword)
426
         this.$refs.monitoring.searchWithKeyword(1, this.search_keyword)
445
-      } else if (this.index == 4) {
427
+      } else if (this.index == 5) {
446
         this.$refs.dialysisParameters.getKeyword(this.search_keyword)
428
         this.$refs.dialysisParameters.getKeyword(this.search_keyword)
447
       }
429
       }
448
     },
430
     },
464
       this.$router.push('/homeIndex')
446
       this.$router.push('/homeIndex')
465
     },
447
     },
466
     refresh () {
448
     refresh () {
467
-      console.log('刷新233232322323233223')
468
       this.load = true
449
       this.load = true
469
       let time = new Date()
450
       let time = new Date()
470
       this.$refs.dialysisArea.requestLatestDialysisScheduals(time)
451
       this.$refs.dialysisArea.requestLatestDialysisScheduals(time)
491
       }
472
       }
492
 
473
 
493
       if(this.projectConfig!=undefined&&this.projectConfig.is_open == 1){
474
       if(this.projectConfig!=undefined&&this.projectConfig.is_open == 1){
494
-        console.log("进来我哦我我",this.projectConfig.is_open)
495
         if(this.projectList!=null && this.projectList.length>0){
475
         if(this.projectList!=null && this.projectList.length>0){
496
           for(let i=0;i<this.projectList.length;i++){
476
           for(let i=0;i<this.projectList.length;i++){
497
             this.tableData.push(this.projectList[i])
477
             this.tableData.push(this.projectList[i])
540
 
520
 
541
     },
521
     },
542
     toExecutionPatent(row){
522
     toExecutionPatent(row){
543
-    console.log("rowwowoowow",row)
544
      var patient_name = ""
523
      var patient_name = ""
545
      patient_name = this.getPaitenName(row.patient_id)
524
      patient_name = this.getPaitenName(row.patient_id)
546
      this.$router.push('/details?patient_id='+row.patient_id+"&date="+row.advice_date+"&patient_name="+patient_name)
525
      this.$router.push('/details?patient_id='+row.patient_id+"&date="+row.advice_date+"&patient_name="+patient_name)
555
       }
534
       }
556
       return name
535
       return name
557
     }
536
     }
558
-
559
   },
537
   },
560
   created () {
538
   created () {
561
-
562
-
563
     // var index = getDialysisOrWaitSelectedConfig()
539
     // var index = getDialysisOrWaitSelectedConfig()
564
-    // console.log(index)
565
     // if (index != null) {
540
     // if (index != null) {
566
     this.index = this.$store.getters.user.tab_index
541
     this.index = this.$store.getters.user.tab_index
567
     // }
542
     // }

+ 7 - 14
src/pages/main/add_urgent_schedule.vue View File

104
         </van-row>
104
         </van-row>
105
         <van-row class="row">
105
         <van-row class="row">
106
           <van-col :span="24">
106
           <van-col :span="24">
107
-            <!-- <span class="title">&nbsp;</span>
108
-            <div class="field_panel">
109
-              <van-button type="info" size="normal" @click="submitAction">立即排班</van-button>
110
-            </div>-->
111
             <div class="nowScheduling" @click="submitAction">立即排班</div>
107
             <div class="nowScheduling" @click="submitAction">立即排班</div>
112
           </van-col>
108
           </van-col>
113
         </van-row>
109
         </van-row>
247
     let params = {
243
     let params = {
248
       type: this.schedule_type
244
       type: this.schedule_type
249
     }
245
     }
250
-    console.log(params)
246
+
251
     getUrgentScheduleInitData(params)
247
     getUrgentScheduleInitData(params)
252
       .then(rs => {
248
       .then(rs => {
253
         this.loading = false
249
         this.loading = false
254
-        // console.log(rs.data.data)
250
+
255
         if (rs.data.state == 1) {
251
         if (rs.data.state == 1) {
256
           this.origin_schedules = rs.data.data.schedules
252
           this.origin_schedules = rs.data.data.schedules
257
-          // console.log("数据源", this.origin_schedules);
253
+
258
           this.patients = rs.data.data.patients
254
           this.patients = rs.data.data.patients
259
-          console.log(this.patients)
255
+ 
260
           this.modes = rs.data.data.modes
256
           this.modes = rs.data.data.modes
261
           this.origin_device_numbers = rs.data.data.device_numbers
257
           this.origin_device_numbers = rs.data.data.device_numbers
262
 
258
 
295
             // { values: this.getDeviceNumberNames(this.current_devices) },
291
             // { values: this.getDeviceNumberNames(this.current_devices) },
296
             { values: this.current_devices }
292
             { values: this.current_devices }
297
           ]
293
           ]
298
-          console.log(this.zone_device_options)
299
         } else {
294
         } else {
300
           Toast.fail(rs.data.msg)
295
           Toast.fail(rs.data.msg)
301
         }
296
         }
307
   },
302
   },
308
   methods: {
303
   methods: {
309
     handleSelect (val) {
304
     handleSelect (val) {
305
+
310
       this.patient_name = val.name
306
       this.patient_name = val.name
311
       this.patient_id = val.id
307
       this.patient_id = val.id
312
     },
308
     },
316
         key = keyword
312
         key = keyword
317
       }
313
       }
318
       let searchArray = []
314
       let searchArray = []
315
+      let newArr=[]
319
       PostSearch(key).then(response => {
316
       PostSearch(key).then(response => {
320
         if (response.data.state == 1) {
317
         if (response.data.state == 1) {
321
           searchArray = response.data.data.patient
318
           searchArray = response.data.data.patient
345
       // this.$nextTick(() => {
342
       // this.$nextTick(() => {
346
       //   // this.$refs.schedule.setColumnIndex(2)
343
       //   // this.$refs.schedule.setColumnIndex(2)
347
       //   // .setIndexes(this.schedule_type)
344
       //   // .setIndexes(this.schedule_type)
348
-      //   console.log(this.$refs.schedule)
349
-      //   console.log(this.$refs.schedule.getColumnIndex)
350
-      //   console.log(this.$refs.schedule.getColumnValue)
351
       //
345
       //
352
       // })
346
       // })
353
     },
347
     },
378
       getUrgentScheduleInitData(params)
372
       getUrgentScheduleInitData(params)
379
         .then(rs => {
373
         .then(rs => {
380
           this.loading = false
374
           this.loading = false
381
-          // console.log(rs.data.data)
375
+
382
           if (rs.data.state == 1) {
376
           if (rs.data.state == 1) {
383
             this.zone_device_options = []
377
             this.zone_device_options = []
384
             this.origin_schedules = rs.data.data.schedules
378
             this.origin_schedules = rs.data.data.schedules
414
               // { values: this.getDeviceNumberNames(this.current_devices) },
408
               // { values: this.getDeviceNumberNames(this.current_devices) },
415
               { values: this.current_devices }
409
               { values: this.current_devices }
416
             ]
410
             ]
417
-            console.log(this.zone_device_options)
418
           } else {
411
           } else {
419
             Toast.fail(rs.data.msg)
412
             Toast.fail(rs.data.msg)
420
           }
413
           }

+ 0 - 33
src/pages/main/all/doctorAdvice.vue View File

266
       GetDoctorAdviceDetail(date, id).then(response => {
266
       GetDoctorAdviceDetail(date, id).then(response => {
267
         if (response.data.state === 1) {
267
         if (response.data.state === 1) {
268
           var doctorAdvicedetail = response.data.data.doctorAdvicedetail
268
           var doctorAdvicedetail = response.data.data.doctorAdvicedetail
269
-          console.log('doctorAdvicedetail', doctorAdvicedetail)
270
           this.patient_name = doctorAdvicedetail[0].name
269
           this.patient_name = doctorAdvicedetail[0].name
271
           let objarr = []
270
           let objarr = []
272
           for (let i = 0; i < doctorAdvicedetail.length; i++) {
271
           for (let i = 0; i < doctorAdvicedetail.length; i++) {
275
             }
274
             }
276
           }
275
           }
277
           this.childList = objarr
276
           this.childList = objarr
278
-          console.log('childList', this.childList)
279
           let dataInfo = {}
277
           let dataInfo = {}
280
           doctorAdvicedetail.forEach((item, index) => {
278
           doctorAdvicedetail.forEach((item, index) => {
281
             let { start_time } = item
279
             let { start_time } = item
290
           let list = Object.values(dataInfo) // list 转换成功的数据
288
           let list = Object.values(dataInfo) // list 转换成功的数据
291
           let arr = []
289
           let arr = []
292
 
290
 
293
-          // list.map(item => {
294
-          //   let arr2 = [];
295
-          //   if (item.child.length > 1) {
296
-          //     item.child.map(it => {
297
-          //       if (arr.indexOf(it.advice_date) == -1) {
298
-          //         arr.push(it.advice_date);
299
-          //       } else {
300
-          //         delete it["advice_date"];
301
-          //       }
302
-          //     });
303
-          //     for (var i = item.child.length - 1; i != -1; i--) {
304
-          //       let obj = {};
305
-          //       obj.checker = item.child[i].checker;
306
-          //       obj.execution_staff = item.child[i].execution_staff;
307
-          //       obj.user_name = item.child[i].advice_doctor;
308
-          //       if (
309
-          //         JSON.stringify(arr2).includes(JSON.stringify(obj)) == false
310
-          //       ) {
311
-          //         arr2.push(obj);
312
-          //       } else {
313
-          //         console.log("删除");
314
-          //         delete item.child[i]["checker"];
315
-          //         delete item.child[i]["execution_staff"];
316
-          //         delete item.child[i]["advice_doctor"];
317
-          //       }
318
-          //     }
319
-          //   }
320
-          // });
321
-
322
-          console.log('list是 ', list)
323
           this.doctorAdvicedetail = list
291
           this.doctorAdvicedetail = list
324
         }
292
         }
325
       })
293
       })
335
       getAllDoctor().then(response => {
303
       getAllDoctor().then(response => {
336
         if (response.data.state === 1) {
304
         if (response.data.state === 1) {
337
           var doctor = response.data.data.doctor
305
           var doctor = response.data.data.doctor
338
-          console.log('doctor', doctor)
339
           this.doctor = doctor
306
           this.doctor = doctor
340
         }
307
         }
341
       })
308
       })

+ 0 - 2
src/pages/main/all/dryWeight.vue View File

40
       getDryWeightDetail(id).then(response => {
40
       getDryWeightDetail(id).then(response => {
41
         if (response.data.state === 1) {
41
         if (response.data.state === 1) {
42
           var drydetail = response.data.data.drydetail
42
           var drydetail = response.data.data.drydetail
43
-          console.log("2222",drydetail)
44
           this.drydetail = drydetail
43
           this.drydetail = drydetail
45
         }
44
         }
46
       })
45
       })
62
     setHeight()
61
     setHeight()
63
     var id = this.$route.query.id
62
     var id = this.$route.query.id
64
     var patientid = this.$route.query.patientid
63
     var patientid = this.$route.query.patientid
65
-    console.log('为啥', patientid)
66
     this.patientid = patientid
64
     this.patientid = patientid
67
     this.getDryWeightDetail(id)
65
     this.getDryWeightDetail(id)
68
     this.date = this.$route.query.date
66
     this.date = this.$route.query.date

+ 0 - 2
src/pages/main/all/scheduling.vue View File

110
             schedulingDetail.schedule_type = '下午'
110
             schedulingDetail.schedule_type = '下午'
111
           }
111
           }
112
           this.schedulingDetail = schedulingDetail
112
           this.schedulingDetail = schedulingDetail
113
-          console.log('排班详情', schedulingDetail)
114
           var patient = response.data.data.patient
113
           var patient = response.data.data.patient
115
           this.name = patient.name
114
           this.name = patient.name
116
-          console.log('patient', patient)
117
         }
115
         }
118
       })
116
       })
119
     },
117
     },

+ 2 - 2
src/pages/main/beforeDialysis/allSummaryDialog.vue View File

146
       }
146
       }
147
 
147
 
148
       this.startTime = `${year}-${month}-${day}`
148
       this.startTime = `${year}-${month}-${day}`
149
-      console.log('this.startTime', this.startTime)
149
+      // console.log('this.startTime', this.startTime)
150
       this.start_time = `${year}-${month}-${day}`
150
       this.start_time = `${year}-${month}-${day}`
151
       this.startShow = false
151
       this.startShow = false
152
       this.getlist()
152
       this.getlist()
163
       }
163
       }
164
 
164
 
165
       this.endTime = `${year}-${month}-${day}`
165
       this.endTime = `${year}-${month}-${day}`
166
-      console.log('endTime', this.endTime)
166
+      // console.log('endTime', this.endTime)
167
       this.end_time = `${year}-${month}-${day}`
167
       this.end_time = `${year}-${month}-${day}`
168
       this.endShow = false
168
       this.endShow = false
169
       this.getlist()
169
       this.getlist()

+ 1 - 5
src/pages/main/beforeDialysis/components/allSummary.vue View File

383
             arr.push(...this.datalist)
383
             arr.push(...this.datalist)
384
             arr.push(...this.list)
384
             arr.push(...this.list)
385
             var good = this.unique(arr)
385
             var good = this.unique(arr)
386
-            //  console.log("第二页",good)
387
             this.list = good
386
             this.list = good
388
-
389
             this.isStop = true
387
             this.isStop = true
390
           }
388
           }
391
-          // this.$nextTick(() => {
392
-          //    this.$refs.tab.doLayout()
393
-          //   })
389
+
394
         }
390
         }
395
       })
391
       })
396
     },
392
     },

+ 0 - 0
src/pages/main/beforeDialysis/components/dialysisParameters.vue View File


Some files were not shown because too many files changed in this diff