Browse Source

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

28169 1 year ago
parent
commit
7bdbb54721

File diff suppressed because it is too large
+ 0 - 113
.idea/shelf/Uncommitted_changes_before_Update_at_2023_5_30_16_44_[Changes]/shelved.patch


+ 11 - 0
src/api/his/his.js View File

@@ -818,6 +818,17 @@ export function getPrintLable(params){
818 818
 }
819 819
 
820 820
 
821
+export function getMonthHisPatient(params){
822
+  return request({
823
+    url:"/api/monthhispatient",
824
+    method:"get",
825
+    params:params
826
+  })
827
+}
828
+
829
+
830
+
831
+
821 832
 
822 833
 
823 834
 

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

@@ -755,7 +755,7 @@ export function getPatientDialysisInfor(params){
755 755
 
756 756
 export function getContextScheduleList(params){
757 757
   return request({
758
-    url:"/api/patient/getcontextschedulelist",
758
+    url:"/api/patient/getcontextschedulelistone",
759 759
     method:"get",
760 760
     params:params
761 761
   })

+ 20 - 3
src/xt_pages/Dialysisanalysis/albumin/albuminall.vue View File

@@ -55,6 +55,10 @@
55 55
       <el-table
56 56
         :data="tableData"
57 57
         border
58
+        :header-cell-style="{
59
+          backgroundColor: 'rgb(245, 247, 250)',
60
+          color: '#606266'
61
+        }"
58 62
         style="width: 100%;">
59 63
         <el-table-column
60 64
           prop="name"
@@ -431,12 +435,25 @@ export default {
431 435
               {
432 436
                 type: 'pie',
433 437
                 label: {
434
-                  show: true,
435
-                  formatter: '{b} : {d}% ({c})'
438
+                  normal : {
439
+                    formatter: '{b}:{c}: ({d}%)',
440
+                    textStyle : {
441
+                        fontWeight : 'normal',
442
+                        fontSize : 15,
443
+                        color : "black"
444
+                    }
445
+                  }
436 446
                   // b代表名称,c代表对应值,d代表百分比"{b} : {d}% ({c})"
437 447
                 },
438 448
                 radius: '65%', //饼图半径
439
-                data: this.pieData
449
+                data: this.pieData,
450
+                itemStyle : {
451
+                  emphasis: {
452
+                      shadowBlur: 10,
453
+                      shadowOffsetX: 0,
454
+                      shadowColor: 'rgba(0, 0, 0, 0.5)'
455
+                  }
456
+                }
440 457
               }
441 458
             ]
442 459
           }

+ 20 - 3
src/xt_pages/Dialysisanalysis/bloodPhosphorus/phosphorusall.vue View File

@@ -55,6 +55,10 @@
55 55
       <el-table
56 56
         :data="tableData"
57 57
         border
58
+        :header-cell-style="{
59
+          backgroundColor: 'rgb(245, 247, 250)',
60
+          color: '#606266'
61
+        }"
58 62
         style="width: 100%;">
59 63
         <el-table-column
60 64
           prop="name"
@@ -510,12 +514,25 @@ export default {
510 514
               {
511 515
                 type: 'pie',
512 516
                 label: {
513
-                  show: true,
514
-                  formatter: '{b} : {d}% ({c})'
517
+                  normal : {
518
+                    formatter: '{b}:{c}: ({d}%)',
519
+                    textStyle : {
520
+                        fontWeight : 'normal',
521
+                        fontSize : 15,
522
+                        color : "black"
523
+                    }
524
+                  }
515 525
                   // b代表名称,c代表对应值,d代表百分比"{b} : {d}% ({c})"
516 526
                 },
517 527
                 radius: '65%', //饼图半径
518
-                data: this.pieData
528
+                data: this.pieData,
529
+                itemStyle : {
530
+                  emphasis: {
531
+                      shadowBlur: 10,
532
+                      shadowOffsetX: 0,
533
+                      shadowColor: 'rgba(0, 0, 0, 0.5)'
534
+                  }
535
+                }
519 536
               }
520 537
             ]
521 538
           }

+ 20 - 3
src/xt_pages/Dialysisanalysis/bloodPotassium/potassiumall.vue View File

@@ -55,6 +55,10 @@
55 55
       <el-table
56 56
         :data="tableData"
57 57
         border
58
+        :header-cell-style="{
59
+          backgroundColor: 'rgb(245, 247, 250)',
60
+          color: '#606266'
61
+        }"
58 62
         style="width: 100%;">
59 63
         <el-table-column
60 64
           prop="name"
@@ -429,12 +433,25 @@ export default {
429 433
               {
430 434
                 type: 'pie',
431 435
                 label: {
432
-                  show: true,
433
-                  formatter: '{b} : {d}% ({c})'
436
+                  normal : {
437
+                    formatter: '{b}:{c}: ({d}%)',
438
+                    textStyle : {
439
+                        fontWeight : 'normal',
440
+                        fontSize : 15,
441
+                        color : "black"
442
+                    }
443
+                  }
434 444
                   // b代表名称,c代表对应值,d代表百分比"{b} : {d}% ({c})"
435 445
                 },
436 446
                 radius: '65%', //饼图半径
437
-                data: this.pieData
447
+                data: this.pieData,
448
+                itemStyle : {
449
+                  emphasis: {
450
+                      shadowBlur: 10,
451
+                      shadowOffsetX: 0,
452
+                      shadowColor: 'rgba(0, 0, 0, 0.5)'
453
+                  }
454
+                }
438 455
               }
439 456
             ]
440 457
           }

+ 21 - 4
src/xt_pages/Dialysisanalysis/calcium/calciumall.vue View File

@@ -55,6 +55,10 @@
55 55
       <el-table
56 56
         :data="tableData"
57 57
         border
58
+        :header-cell-style="{
59
+          backgroundColor: 'rgb(245, 247, 250)',
60
+          color: '#606266'
61
+        }"
58 62
         style="width: 100%;">
59 63
         <el-table-column
60 64
           prop="name"
@@ -361,7 +365,7 @@ export default {
361 365
         start_date: this.start_time,
362 366
         end_date: this.end_time,
363 367
         project_id: 4,
364
-        item_id: 289
368
+        item_id: 54
365 369
       }
366 370
       this.pieData = []
367 371
       this.tableData = []
@@ -433,12 +437,25 @@ export default {
433 437
               {
434 438
                 type: 'pie',
435 439
                 label: {
436
-                  show: true,
437
-                  formatter: '{b} : {d}% ({c})'
440
+                  normal : {
441
+                    formatter: '{b}:{c}: ({d}%)',
442
+                    textStyle : {
443
+                        fontWeight : 'normal',
444
+                        fontSize : 15,
445
+                        color : "black"
446
+                    }
447
+                  }
438 448
                   // b代表名称,c代表对应值,d代表百分比"{b} : {d}% ({c})"
439 449
                 },
440 450
                 radius: '65%', //饼图半径
441
-                data: this.pieData
451
+                data: this.pieData,
452
+                itemStyle : {
453
+                  emphasis: {
454
+                      shadowBlur: 10,
455
+                      shadowOffsetX: 0,
456
+                      shadowColor: 'rgba(0, 0, 0, 0.5)'
457
+                  }
458
+                }
442 459
               }
443 460
             ]
444 461
           }

+ 1 - 1
src/xt_pages/Dialysisanalysis/calcium/calciumalone.vue View File

@@ -611,7 +611,7 @@ export default {
611 611
     this.query.end_time = year + '-' + month + '-' + day
612 612
     this.query.start_time = year + '-' + last_month + '-' + day
613 613
     this.query.project_id = 4
614
-    this.query.item_id = 289
614
+    this.query.item_id = 54
615 615
     this.getCurrentOrgPatients()
616 616
 
617 617
     // this.GetPersonQCStatistisData()

+ 20 - 3
src/xt_pages/Dialysisanalysis/hemoglobin/hemoglobinall.vue View File

@@ -55,6 +55,10 @@
55 55
       <el-table
56 56
         :data="tableData"
57 57
         border
58
+        :header-cell-style="{
59
+          backgroundColor: 'rgb(245, 247, 250)',
60
+          color: '#606266'
61
+        }"
58 62
         style="width: 100%;">
59 63
         <el-table-column
60 64
           prop="name"
@@ -510,12 +514,25 @@ export default {
510 514
               {
511 515
                 type: 'pie',
512 516
                 label: {
513
-                  show: true,
514
-                  formatter: '{b} : {d}% ({c})'
517
+                  normal : {
518
+                    formatter: '{b}:{c}: ({d}%)',
519
+                    textStyle : {
520
+                        fontWeight : 'normal',
521
+                        fontSize : 15,
522
+                        color : "black"
523
+                    }
524
+                  }
515 525
                   // b代表名称,c代表对应值,d代表百分比"{b} : {d}% ({c})"
516 526
                 },
517 527
                 radius: '65%', //饼图半径
518
-                data: this.pieData
528
+                data: this.pieData,
529
+                itemStyle : {
530
+                  emphasis: {
531
+                      shadowBlur: 10,
532
+                      shadowOffsetX: 0,
533
+                      shadowColor: 'rgba(0, 0, 0, 0.5)'
534
+                  }
535
+                }
519 536
               }
520 537
             ]
521 538
           }

+ 20 - 4
src/xt_pages/Dialysisanalysis/otherIndicators/otherall.vue View File

@@ -73,6 +73,10 @@
73 73
             :data="tableData"
74 74
             :show-summary = true
75 75
             border
76
+            :header-cell-style="{
77
+              backgroundColor: 'rgb(245, 247, 250)',
78
+              color: '#606266'
79
+            }"
76 80
             style="width: 100%;">
77 81
                 <el-table-column
78 82
                     prop="date"
@@ -82,7 +86,6 @@
82 86
                 </el-table-column>
83 87
                 <el-table-column
84 88
                     prop="name"
85
-
86 89
                     label="人数"
87 90
                     >
88 91
                 </el-table-column>
@@ -181,12 +184,25 @@ export default{
181 184
           {
182 185
             type: "pie",
183 186
             label: {
184
-              show: true,
185
-              formatter:"{b} : {d}% ({c})"
187
+              normal : {
188
+                formatter: '{b}:{c}: ({d}%)',
189
+                textStyle : {
190
+                    fontWeight : 'normal',
191
+                    fontSize : 15,
192
+                    color : "black"
193
+                }
194
+              }
186 195
               // b代表名称,c代表对应值,d代表百分比"{b} : {d}% ({c})"
187 196
             },
188 197
             radius: "65%", //饼图半径
189
-            data: this.pieData
198
+            data: this.pieData,
199
+            itemStyle : {
200
+              emphasis: {
201
+                  shadowBlur: 10,
202
+                  shadowOffsetX: 0,
203
+                  shadowColor: 'rgba(0, 0, 0, 0.5)'
204
+              }
205
+            }
190 206
           }
191 207
         ]
192 208
       };

+ 21 - 3
src/xt_pages/Dialysisanalysis/platelets/plateletsall.vue View File

@@ -55,6 +55,10 @@
55 55
       <el-table
56 56
         :data="tableData"
57 57
         border
58
+        :header-cell-style="{
59
+          backgroundColor: 'rgb(245, 247, 250)',
60
+          color: '#606266'
61
+        }"
58 62
         style="width: 100%;">
59 63
         <el-table-column
60 64
           prop="name"
@@ -65,6 +69,7 @@
65 69
         </el-table-column>
66 70
         <el-table-column
67 71
           prop="count"
72
+          align="center"
68 73
           label="人数"
69 74
         >
70 75
         </el-table-column>
@@ -429,12 +434,25 @@ export default {
429 434
               {
430 435
                 type: 'pie',
431 436
                 label: {
432
-                  show: true,
433
-                  formatter: '{b} : {d}% ({c})'
437
+                  normal : {
438
+                    formatter: '{b}:{c}: ({d}%)',
439
+                    textStyle : {
440
+                        fontWeight : 'normal',
441
+                        fontSize : 15,
442
+                        color : "black"
443
+                    }
444
+                  }
434 445
                   // b代表名称,c代表对应值,d代表百分比"{b} : {d}% ({c})"
435 446
                 },
436 447
                 radius: '65%', //饼图半径
437
-                data: this.pieData
448
+                data: this.pieData,
449
+                itemStyle : {
450
+                  emphasis: {
451
+                      shadowBlur: 10,
452
+                      shadowOffsetX: 0,
453
+                      shadowColor: 'rgba(0, 0, 0, 0.5)'
454
+                  }
455
+                }
438 456
               }
439 457
             ]
440 458
           }

+ 23 - 3
src/xt_pages/Dialysisanalysis/qualitycontrol/totalSstatistics.vue View File

@@ -55,6 +55,10 @@
55 55
       <el-table
56 56
         :data="tableData"
57 57
         border
58
+        :header-cell-style="{
59
+          backgroundColor: 'rgb(245, 247, 250)',
60
+          color: '#606266'
61
+        }"
58 62
         style="width: 100%;">
59 63
         <el-table-column
60 64
           prop="name"
@@ -64,6 +68,7 @@
64 68
         </el-table-column>
65 69
         <el-table-column
66 70
           prop="count"
71
+          align="center"
67 72
           label="人数"
68 73
         >
69 74
         </el-table-column>
@@ -428,12 +433,25 @@ export default {
428 433
               {
429 434
                 type: 'pie',
430 435
                 label: {
431
-                  show: true,
432
-                  formatter: '{b} : {d}% ({c})'
436
+                  normal : {
437
+                    formatter: '{b}:{c}: ({d}%)',
438
+                    textStyle : {
439
+                        fontWeight : 'normal',
440
+                        fontSize : 15,
441
+                        color : "black"
442
+                    }
443
+                  }
433 444
                   // b代表名称,c代表对应值,d代表百分比"{b} : {d}% ({c})"
434 445
                 },
435 446
                 radius: '65%', //饼图半径
436
-                data: this.pieData
447
+                data: this.pieData,
448
+                itemStyle : {
449
+                  emphasis: {
450
+                      shadowBlur: 10,
451
+                      shadowOffsetX: 0,
452
+                      shadowColor: 'rgba(0, 0, 0, 0.5)'
453
+                  }
454
+                }
437 455
               }
438 456
             ]
439 457
           }
@@ -669,5 +687,7 @@ export default {
669 687
   display: flex;
670 688
   justify-content: space-around;
671 689
   color: #1e5feb;
690
+  
672 691
 }
692
+
673 693
 </style>

+ 0 - 3
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue View File

@@ -569,9 +569,6 @@ export default {
569 569
 
570 570
       }
571 571
   
572
-
573
-    
574
-     
575 572
      
576 573
      var doc_str = ""
577 574
       console.log("医嘱2333333333333",this.predialysis_evaluation)

+ 27 - 6
src/xt_pages/dialysis/dialysisFlow.vue View File

@@ -143,7 +143,9 @@
143 143
           :label="item.name"
144 144
         >
145 145
           <template slot-scope="scope">
146
-            <span>{{getModeFinish(scope.row.dialysis_finish,item.id)}}</span>
146
+            <span :class="edtf(scope.row.dialysis_finish,item.id) ? 'lv' : 'hong' ">
147
+              {{getModeFinish(scope.row.dialysis_finish,item.id)}}
148
+            </span>
147 149
           </template>
148 150
 
149 151
         </el-table-column>
@@ -317,8 +319,6 @@
317 319
                 </span>
318 320
            </template>
319 321
          </el-table-column> -->
320
-  
321
-
322 322
         </el-table>
323 323
   
324 324
         <el-pagination
@@ -473,7 +473,7 @@
473 473
         complicationList: [],
474 474
         template_id:0,
475 475
         org_id:0,
476
-  
476
+        names:'',
477 477
       };
478 478
     },
479 479
     created() {
@@ -778,14 +778,27 @@
778 778
       var name = "×"
779 779
        if(val!=null){
780 780
          for(let i=0;i<val.length;i++){
781
+        
781 782
             if(val[i].module == id){
782 783
                name = "√"
783 784
             }
784 785
          }
785 786
        }
787
+     
786 788
        return name
787
-     }
788
-      
789
+     },
790
+      edtf(val,id){
791
+        var name
792
+        if(val!=null){
793
+         for(let i=0;i<val.length;i++){
794
+          
795
+            if(val[i].module == id){
796
+               name = "√"
797
+            }
798
+         }
799
+       }
800
+       return name
801
+      }
789 802
       
790 803
     },
791 804
     components: {
@@ -883,6 +896,14 @@
883 896
     width: 20px;
884 897
     height: 20px;
885 898
   }
899
+  .hong{
900
+    color: red;
901
+    font-size: 18px;
902
+  }
903
+  .lv{
904
+    color: rgb(26, 240, 115);
905
+    font-size: 18px;
906
+  }
886 907
   </style>
887 908
   <style scoped>
888 909
    /* 合并表格线样式 */

+ 284 - 168
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -992,7 +992,8 @@ import {
992 992
   Refund,
993 993
   refundNumber,
994 994
   register,
995
-  upload
995
+  upload,
996
+  getMonthHisPatient,
996 997
 } from '@/api/his/his'
997 998
 import RegisterDialog from './components/registerDialog'
998 999
 import treatPrint from './treatPrint'
@@ -2185,8 +2186,10 @@ export default {
2185 2186
           this.cal_two = two_count
2186 2187
           this.cal_three = one_count + two_count
2187 2188
           this.current_index = 0
2188
-          this.$refs.tab.setCurrentRow(this.patientTableData[0])
2189
-          this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order_number, this.patientTableData[0].his_patient_id, this.patientTableData[0].order_id)
2189
+          if(this.patientTableData.length > 0) {
2190
+            this.$refs.tab.setCurrentRow(this.patientTableData[0])
2191
+          }
2192
+          // this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order_number, this.patientTableData[0].his_patient_id, this.patientTableData[0].order_id)
2190 2193
         }
2191 2194
       })
2192 2195
 
@@ -2404,8 +2407,10 @@ export default {
2404 2407
           this.cal_two = two_count
2405 2408
           this.cal_three = one_count + two_count
2406 2409
           this.current_index = 0
2407
-          this.$refs.tab.setCurrentRow(this.patientTableData[0])
2408
-          this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order_number, this.patientTableData[0].his_patient_id, this.patientTableData[0].order_id)
2410
+          if(this.patientTableData.length > 0){
2411
+            this.$refs.tab.setCurrentRow(this.patientTableData[0])
2412
+          }
2413
+          // this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order_number, this.patientTableData[0].his_patient_id, this.patientTableData[0].order_id)
2409 2414
         }
2410 2415
       })
2411 2416
 
@@ -2415,6 +2420,8 @@ export default {
2415 2420
       if (this.activeName == 'first') {
2416 2421
         this.getPatientList()
2417 2422
       } else if (this.activeName == 'second') {
2423
+        this.getMonthHISPatientList()
2424
+
2418 2425
         const params = {
2419 2426
           'record_date': this.record_date,
2420 2427
           'patient_id': this.patientInfo.id,
@@ -4024,228 +4031,235 @@ export default {
4024 4031
       })
4025 4032
     },
4026 4033
     changeRadio(id) {
4027
-      let temp_id = id
4028
-      this.radio = id
4029
-      let params = {
4030
-        'record_date': this.record_date
4031
-      }
4032
-      getChargeHisPatientList(params).then(response => {
4033
-        if (response.data.state == 0) {
4034
-          this.$message.error(response.data.msg)
4035
-          return false
4036
-        } else {
4037
-          this.patientTableData = []
4038
-          this.all_table_data = []
4039
-          this.hisPatientDatas = []
4040
-
4041
-          let one_count = 0
4042
-          let two_count = 0
4043
-          let three_count = 0
4044
-          for (let i = 0; i < response.data.data.list.length; i++) {
4045
-            if (response.data.data.list[i].his_patient.length == 0) { //没挂号
4046
-              if (response.data.data.list[i].prescription.length > 0) {
4047
-                let obj = {
4048
-                  id: response.data.data.list[i].id,
4049
-                  name: response.data.data.list[i].name,
4050
-                  number: '',
4051
-                  order_status: 0,
4052
-                  order_number: '',
4053
-                  his_patient_id: 0,
4054
-                  prescription: response.data.data.list[i].prescription
4055
-                }
4056
-
4057
-                this.all_table_data.push(obj)
4058
-              }
4059
-
4060
-            } else { //挂号
4061
-              if (response.data.data.list[i].his_patient.length == 1) {
4062
-                if (response.data.data.list[i].his_patient[0].orders.length > 0) {
4063
-                  for (let b = 0; b < response.data.data.list[i].his_patient[0].orders.length; b++) {
4064
-                    let obj = {
4065
-                      id: response.data.data.list[i].id,
4066
-                      name: response.data.data.list[i].name,
4067
-                      number: response.data.data.list[i].his_patient[0].number,
4068
-                      order_status: response.data.data.list[i].his_patient[0].orders[b].order_status,
4069
-                      his_patient_id: response.data.data.list[i].his_patient[0].id,
4070
-                      order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4071
-                      order_id: response.data.data.list[i].his_patient[0].orders[b].id,
4072
-                      prescription: response.data.data.list[i].prescription
4073
-
4074
-                    }
4075
-                    this.all_table_data.push(obj)
4076
-
4077
-                  }
4078
-                } else {
4034
+      if(this.activeName == 'first') {
4035
+        let temp_id = id
4036
+        this.radio = id
4037
+        let params = {
4038
+          'record_date': this.record_date
4039
+        }
4040
+        getChargeHisPatientList(params).then(response => {
4041
+          if (response.data.state == 0) {
4042
+            this.$message.error(response.data.msg)
4043
+            return false
4044
+          } else {
4045
+            this.patientTableData = []
4046
+            this.all_table_data = []
4047
+            this.hisPatientDatas = []
4048
+
4049
+            let one_count = 0
4050
+            let two_count = 0
4051
+            let three_count = 0
4052
+            for (let i = 0; i < response.data.data.list.length; i++) {
4053
+              if (response.data.data.list[i].his_patient.length == 0) { //没挂号
4054
+                if (response.data.data.list[i].prescription.length > 0) {
4079 4055
                   let obj = {
4080 4056
                     id: response.data.data.list[i].id,
4081 4057
                     name: response.data.data.list[i].name,
4082
-                    number: response.data.data.list[i].his_patient[0].number,
4058
+                    number: '',
4083 4059
                     order_status: 0,
4084
-                    his_patient_id: response.data.data.list[i].his_patient[0].id,
4085 4060
                     order_number: '',
4086
-                    order_id: 0,
4061
+                    his_patient_id: 0,
4087 4062
                     prescription: response.data.data.list[i].prescription
4088
-
4089 4063
                   }
4090
-                  this.all_table_data.push(obj)
4091 4064
 
4065
+                  this.all_table_data.push(obj)
4092 4066
                 }
4093
-              }
4094 4067
 
4095
-              if (response.data.data.list[i].his_patient.length > 1) {
4096
-                for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
4097
-                  if (response.data.data.list[i].his_patient[b].orders.length == 0) {
4068
+              } else { //挂号
4069
+                if (response.data.data.list[i].his_patient.length == 1) {
4070
+                  if (response.data.data.list[i].his_patient[0].orders.length > 0) {
4071
+                    for (let b = 0; b < response.data.data.list[i].his_patient[0].orders.length; b++) {
4072
+                      let obj = {
4073
+                        id: response.data.data.list[i].id,
4074
+                        name: response.data.data.list[i].name,
4075
+                        number: response.data.data.list[i].his_patient[0].number,
4076
+                        order_status: response.data.data.list[i].his_patient[0].orders[b].order_status,
4077
+                        his_patient_id: response.data.data.list[i].his_patient[0].id,
4078
+                        order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4079
+                        order_id: response.data.data.list[i].his_patient[0].orders[b].id,
4080
+                        prescription: response.data.data.list[i].prescription
4081
+
4082
+                      }
4083
+                      this.all_table_data.push(obj)
4084
+
4085
+                    }
4086
+                  } else {
4098 4087
                     let obj = {
4099 4088
                       id: response.data.data.list[i].id,
4100 4089
                       name: response.data.data.list[i].name,
4101
-                      number: response.data.data.list[i].his_patient[b].number,
4090
+                      number: response.data.data.list[i].his_patient[0].number,
4102 4091
                       order_status: 0,
4103
-                      his_patient_id: response.data.data.list[i].his_patient[b].id,
4092
+                      his_patient_id: response.data.data.list[i].his_patient[0].id,
4104 4093
                       order_number: '',
4105 4094
                       order_id: 0,
4106 4095
                       prescription: response.data.data.list[i].prescription
4096
+
4107 4097
                     }
4108 4098
                     this.all_table_data.push(obj)
4109
-                  } else {
4110 4099
 
4111
-                    for (let c = 0; c < response.data.data.list[i].his_patient[b].orders.length; c++) {
4100
+                  }
4101
+                }
4102
+
4103
+                if (response.data.data.list[i].his_patient.length > 1) {
4104
+                  for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
4105
+                    if (response.data.data.list[i].his_patient[b].orders.length == 0) {
4112 4106
                       let obj = {
4113 4107
                         id: response.data.data.list[i].id,
4114 4108
                         name: response.data.data.list[i].name,
4115 4109
                         number: response.data.data.list[i].his_patient[b].number,
4116
-                        order_status: response.data.data.list[i].his_patient[b].orders[c].order_status,
4110
+                        order_status: 0,
4117 4111
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
4118
-                        order_number: response.data.data.list[i].his_patient[b].orders[c].number,
4119
-                        order_id: response.data.data.list[i].his_patient[b].orders[c].id,
4112
+                        order_number: '',
4113
+                        order_id: 0,
4120 4114
                         prescription: response.data.data.list[i].prescription
4121
-
4122 4115
                       }
4123 4116
                       this.all_table_data.push(obj)
4117
+                    } else {
4118
+
4119
+                      for (let c = 0; c < response.data.data.list[i].his_patient[b].orders.length; c++) {
4120
+                        let obj = {
4121
+                          id: response.data.data.list[i].id,
4122
+                          name: response.data.data.list[i].name,
4123
+                          number: response.data.data.list[i].his_patient[b].number,
4124
+                          order_status: response.data.data.list[i].his_patient[b].orders[c].order_status,
4125
+                          his_patient_id: response.data.data.list[i].his_patient[b].id,
4126
+                          order_number: response.data.data.list[i].his_patient[b].orders[c].number,
4127
+                          order_id: response.data.data.list[i].his_patient[b].orders[c].id,
4128
+                          prescription: response.data.data.list[i].prescription
4129
+
4130
+                        }
4131
+                        this.all_table_data.push(obj)
4132
+                      }
4133
+
4124 4134
                     }
4125 4135
 
4126 4136
                   }
4127
-
4128 4137
                 }
4129 4138
               }
4130 4139
             }
4131
-          }
4132
-          for (let i = 0; i < this.all_table_data.length; i++) {
4133
-            if (this.all_table_data[i].his_patient_id > 0) {
4134
-              this.hisPatientDatas.push(this.all_table_data[i])
4140
+            for (let i = 0; i < this.all_table_data.length; i++) {
4141
+              if (this.all_table_data[i].his_patient_id > 0) {
4142
+                this.hisPatientDatas.push(this.all_table_data[i])
4143
+              }
4135 4144
             }
4136
-          }
4137 4145
 
4138
-          let unChargePatient = []
4139
-          for (let i = 0; i < this.all_table_data.length; i++) {
4140
-            let isHasUnCharge = false
4141
-            for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
4142
-              if (this.all_table_data[i].order_status != 2 && this.all_table_data[i].order_status != 3) {
4143
-                isHasUnCharge = true
4144
-              } else {
4145
-                if (this.all_table_data[i].his_patient_id > 0) {
4146
-                  if (this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id) {
4147
-                    isHasUnCharge = true
4146
+            let unChargePatient = []
4147
+            for (let i = 0; i < this.all_table_data.length; i++) {
4148
+              let isHasUnCharge = false
4149
+              for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
4150
+                if (this.all_table_data[i].order_status != 2 && this.all_table_data[i].order_status != 3) {
4151
+                  isHasUnCharge = true
4152
+                } else {
4153
+                  if (this.all_table_data[i].his_patient_id > 0) {
4154
+                    if (this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id) {
4155
+                      isHasUnCharge = true
4156
+                    }
4148 4157
                   }
4158
+
4149 4159
                 }
4160
+              }
4161
+              if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 && this.all_table_data[i].order_status != 3) {
4162
+                isHasUnCharge = true
4150 4163
 
4151 4164
               }
4152
-            }
4153
-            if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 && this.all_table_data[i].order_status != 3) {
4154
-              isHasUnCharge = true
4155 4165
 
4156
-            }
4166
+              if (isHasUnCharge) {
4167
+                unChargePatient.push(this.all_table_data[i])
4168
+              }
4157 4169
 
4158
-            if (isHasUnCharge) {
4159
-              unChargePatient.push(this.all_table_data[i])
4160 4170
             }
4161 4171
 
4162
-          }
4172
+            unChargePatient = this.unique_four(unChargePatient)
4163 4173
 
4164
-          unChargePatient = this.unique_four(unChargePatient)
4174
+            one_count = one_count + unChargePatient.length
4165 4175
 
4166
-          one_count = one_count + unChargePatient.length
4176
+            let ChargePatient = []
4177
+            for (let i = 0; i < this.all_table_data.length; i++) {
4178
+              if (this.all_table_data[i].order_status == 2) {
4179
+                ChargePatient.push(this.all_table_data[i])
4180
+              }
4167 4181
 
4168
-          let ChargePatient = []
4169
-          for (let i = 0; i < this.all_table_data.length; i++) {
4170
-            if (this.all_table_data[i].order_status == 2) {
4171
-              ChargePatient.push(this.all_table_data[i])
4172 4182
             }
4173 4183
 
4174
-          }
4184
+            two_count = two_count + ChargePatient.length
4175 4185
 
4176
-          two_count = two_count + ChargePatient.length
4177
-
4178
-          if (this.radio == 1) {
4179
-            this.all_table_data = this.unique_four(this.all_table_data)
4180
-          }
4186
+            if (this.radio == 1) {
4187
+              this.all_table_data = this.unique_four(this.all_table_data)
4188
+            }
4181 4189
 
4182
-          console.log(this.all_table_data)
4190
+            console.log(this.all_table_data)
4183 4191
 
4184
-          switch (this.radio) {
4185
-            case 1:
4186
-              this.patientTableData = []
4187
-              for (let i = 0; i < this.all_table_data.length; i++) {
4188
-                let isHasUnCharge = false
4189
-                for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
4190
-                  console.log('!111111111')
4191
-                  console.log(this.all_table_data[i].order_status)
4192
-                  if (this.all_table_data[i].order_status != 2 && this.all_table_data[i].order_status != 3) {
4193
-                    console.log('!22222222222')
4192
+            switch (this.radio) {
4193
+              case 1:
4194
+                this.patientTableData = []
4195
+                for (let i = 0; i < this.all_table_data.length; i++) {
4196
+                  let isHasUnCharge = false
4197
+                  for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
4198
+                    console.log('!111111111')
4199
+                    console.log(this.all_table_data[i].order_status)
4200
+                    if (this.all_table_data[i].order_status != 2 && this.all_table_data[i].order_status != 3) {
4201
+                      console.log('!22222222222')
4194 4202
 
4195
-                    isHasUnCharge = true
4196
-                  } else {
4197
-                    if (this.all_table_data[i].his_patient_id > 0) {
4198
-                      console.log('!4444444444444')
4203
+                      isHasUnCharge = true
4204
+                    } else {
4205
+                      if (this.all_table_data[i].his_patient_id > 0) {
4206
+                        console.log('!4444444444444')
4199 4207
 
4200
-                      if (this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id) {
4201
-                        isHasUnCharge = true
4202
-                        console.log('!33333333333')
4208
+                        if (this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id) {
4209
+                          isHasUnCharge = true
4210
+                          console.log('!33333333333')
4203 4211
 
4212
+                        }
4204 4213
                       }
4214
+
4205 4215
                     }
4206 4216
 
4207 4217
                   }
4218
+                  if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 && this.all_table_data[i].order_status != 3) {
4219
+                    console.log('11111111')
4208 4220
 
4221
+                    isHasUnCharge = true
4222
+                  }
4223
+                  if (isHasUnCharge) {
4224
+                    this.patientTableData.push(this.all_table_data[i])
4225
+                  }
4209 4226
                 }
4210
-                if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 && this.all_table_data[i].order_status != 3) {
4211
-                  console.log('11111111')
4212
-
4213
-                  isHasUnCharge = true
4214
-                }
4215
-                if (isHasUnCharge) {
4216
-                  this.patientTableData.push(this.all_table_data[i])
4217
-                }
4218
-              }
4219
-              this.all_patient = this.patientTableData
4220
-              break
4221
-            case 2:
4222
-              this.patientTableData = []
4223
-              for (let i = 0; i < this.all_table_data.length; i++) {
4224
-                if (this.all_table_data[i].order_status == 2) {
4225
-                  this.patientTableData.push(this.all_table_data[i])
4227
+                this.all_patient = this.patientTableData
4228
+                break
4229
+              case 2:
4230
+                this.patientTableData = []
4231
+                for (let i = 0; i < this.all_table_data.length; i++) {
4232
+                  if (this.all_table_data[i].order_status == 2) {
4233
+                    this.patientTableData.push(this.all_table_data[i])
4234
+                  }
4226 4235
                 }
4227
-              }
4228
-              this.all_patient = this.patientTableData
4229
-              break
4230
-            case 4:
4231
-              this.patientTableData = []
4232
-              this.patientTableData = this.all_table_data
4233
-              this.all_patient = this.patientTableData
4234
-              break
4235
-          }
4236
+                this.all_patient = this.patientTableData
4237
+                break
4238
+              case 4:
4239
+                this.patientTableData = []
4240
+                this.patientTableData = this.all_table_data
4241
+                this.all_patient = this.patientTableData
4242
+                break
4243
+            }
4236 4244
 
4237
-          this.cal_one = one_count
4238
-          this.cal_two = two_count
4239
-          this.cal_three = one_count + two_count
4240
-          this.current_index = 0
4245
+            this.cal_one = one_count
4246
+            this.cal_two = two_count
4247
+            this.cal_three = one_count + two_count
4248
+            this.current_index = 0
4241 4249
 
4242
-          this.$refs.tab.setCurrentRow(this.patientTableData[0])
4243
-          // this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order_number, this.patientTableData[0].his_patient_id, this.patientTableData[0].order_id)
4250
+            if(this.patientTableData.length > 0) {
4251
+              this.$refs.tab.setCurrentRow(this.patientTableData[0])
4252
+            }
4253
+            // this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order_number, this.patientTableData[0].his_patient_id, this.patientTableData[0].order_id)
4244 4254
 
4245
-        }
4255
+          }
4246 4256
 
4247
-      })
4257
+        })
4258
+      }else{
4259
+        this.radio = id
4260
+        this.getMonthHISPatientList()
4248 4261
 
4262
+      }
4249 4263
     },
4250 4264
     formatDecimal(num, decimal) {
4251 4265
       num = num.toString()
@@ -4479,10 +4493,109 @@ export default {
4479 4493
           this.cal_three = one_count + two_count
4480 4494
           this.current_index = 0
4481 4495
           this.$refs.tab.setCurrentRow(this.patientTableData[0])
4482
-          this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order_number, this.patientTableData[0].his_patient_id, this.patientTableData[0].order_id)
4496
+          // this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order_number, this.patientTableData[0].his_patient_id, this.patientTableData[0].order_id)
4497
+        }
4498
+      })
4499
+    },
4500
+    getMonthHISPatientList() {
4501
+      let params = {
4502
+        'record_date': this.record_date,
4503
+        'type': this.radio
4504
+      }
4505
+      getMonthHisPatient(params).then(response => {
4506
+        if (response.data.state == 0) {
4507
+          this.$message.error(response.data.msg)
4508
+          return false
4509
+        } else {
4510
+          this.patientTableData = []
4511
+          this.all_table_data = []
4512
+          this.hisPatientDatas = []
4513
+
4514
+          if (response.data.data.list == null){
4515
+            response.data.data.list = []
4516
+          }
4517
+
4518
+          if (response.data.data.chargePatients == null){
4519
+            response.data.data.chargePatients = []
4520
+          }
4521
+          let one_count = 0
4522
+          let two_count = 0
4523
+
4524
+          for (let i = 0; i < response.data.data.list.length; i++) {
4525
+              if (response.data.data.list[i].his_patient.length > 0) {
4526
+                  let obj = {
4527
+                    id: response.data.data.list[i].id,
4528
+                    name: response.data.data.list[i].name,
4529
+                    number: response.data.data.list[i].his_patient[0].number,
4530
+                    order_status: 0,
4531
+                    his_patient_id: response.data.data.list[i].his_patient[0].id,
4532
+                    order_number: '',
4533
+                    order_id: 0,
4534
+                    prescription: response.data.data.list[i].prescription
4535
+                  }
4536
+                  this.all_table_data.push(obj)
4537
+              }
4538
+
4539
+          }
4540
+
4541
+          let unChargePatient = []
4542
+          for (let i = 0; i < this.all_table_data.length; i++) {
4543
+              unChargePatient.push(this.all_table_data[i])
4544
+          }
4545
+          unChargePatient = this.unique_four(unChargePatient)
4546
+          one_count = one_count + unChargePatient.length
4547
+
4548
+          let ChargePatient = []
4549
+          for (let i = 0; i < response.data.data.chargePatients.length; i++) {
4550
+            let obj = {
4551
+              id: response.data.data.chargePatients[i].patient_id,
4552
+              name: response.data.data.chargePatients[i].patient.name,
4553
+              number: response.data.data.chargePatients[i].mdtrt_id,
4554
+              order_status: 2,
4555
+              his_patient_id: 0,
4556
+              order_number: response.data.data.chargePatients[i].number,
4557
+              order_id: response.data.data.chargePatients[i].id,
4558
+            }
4559
+              ChargePatient.push(obj)
4560
+            }
4561
+          two_count = two_count + ChargePatient.length
4562
+
4563
+          if (this.radio == 1) {
4564
+            this.all_table_data = this.unique_four(this.all_table_data)
4565
+          }else{
4566
+            this.all_table_data = ChargePatient
4567
+          }
4568
+
4569
+
4570
+          switch (this.radio) {
4571
+            case 1:
4572
+              this.patientTableData = []
4573
+              for (let i = 0; i < this.all_table_data.length; i++) {
4574
+                  this.patientTableData.push(this.all_table_data[i])
4575
+              }
4576
+              this.all_patient = this.patientTableData
4577
+              break
4578
+            case 2:
4579
+              this.patientTableData = []
4580
+              for (let i = 0; i < ChargePatient.length; i++) {
4581
+                  this.patientTableData.push(ChargePatient[i])
4582
+              }
4583
+              break
4584
+          }
4585
+          console.log("111122222")
4586
+          console.log(this.patientTableData)
4587
+
4588
+          this.cal_one = one_count
4589
+          this.cal_two = two_count
4590
+          this.current_index = 0
4591
+          if(this.patientTableData.length > 0){
4592
+           this.$refs.tab.setCurrentRow(this.patientTableData[0])
4593
+          }
4594
+          // this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order_number, this.patientTableData[0].his_patient_id, this.patientTableData[0].order_id)
4483 4595
         }
4484 4596
       })
4485 4597
     },
4598
+
4486 4599
     setMonthPrescription(month_prescriptions) {
4487 4600
       let big_prescriptions = []
4488 4601
       for (let i = 0; i < this.unique_three(month_prescriptions).length; i++) {
@@ -4818,14 +4931,17 @@ export default {
4818 4931
       this.month_prescriptions = []
4819 4932
       this.big_prescriptions = []
4820 4933
       this.big_month_prescriptions = []
4821
-
4822
-      this.getPatientInformation(val.id, val.order_number, val.his_patient_id, val.order_id)
4823
-      this.patient_id = val.id
4824
-
4825
-      for (let i = 0; i < this.patientTableData.length; i++) {
4826
-        if (this.patientTableData[i].his_patient_id == val.his_patient_id) {
4827
-          this.current_index = i
4934
+      if(val != null) {
4935
+        this.getPatientInformation(val.id, val.order_number, val.his_patient_id, val.order_id)
4936
+        this.patient_id = val.id
4937
+        for (let i = 0; i < this.patientTableData.length; i++) {
4938
+          if (this.patientTableData[i].his_patient_id == val.his_patient_id) {
4939
+            this.current_index = i
4940
+          }
4828 4941
         }
4942
+      }else{
4943
+        this.loading = false
4944
+
4829 4945
       }
4830 4946
     },
4831 4947
     // 获取患者的基本信息

+ 19 - 13
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

@@ -256,20 +256,26 @@ export default{
256 256
       }
257 257
     },
258 258
     getAge(patient) {
259
-      var thisLen = patient.id_card_no.length;
260
-      var birth = "";
261
-      if (thisLen == 15) {
262
-        birth = "19" + patient.id_card_no.substr(6, 6);
263
-      } else {
264
-        birth = patient.id_card_no.substr(6, 8);
259
+      if(patient.id_card_no == "TWN001836483"){
260
+        return patient.age
261
+      }else{
262
+        var thisLen = patient.id_card_no.length;
263
+        var birth = "";
264
+        if (thisLen == 15) {
265
+          birth = "19" + patient.id_card_no.substr(6, 6);
266
+        } else {
267
+          birth = patient.id_card_no.substr(6, 8);
268
+        }
269
+        var births =
270
+          birth.substr(0, 4) +
271
+          "-" +
272
+          birth.substr(4, 2) +
273
+          "-" +
274
+          birth.substr(6, 2);
275
+        return jsGetAge(births, "-");
276
+
265 277
       }
266
-      var births =
267
-        birth.substr(0, 4) +
268
-        "-" +
269
-        birth.substr(4, 2) +
270
-        "-" +
271
-        birth.substr(6, 2);
272
-      return jsGetAge(births, "-");
278
+
273 279
     },
274 280
 
275 281
     getAllDoctorList() {

+ 100 - 99
src/xt_pages/user/components/PatientSidebar.vue View File

@@ -203,68 +203,68 @@ export default {
203 203
             },
204 204
           ]
205 205
         },
206
-        {
207
-          name: '5',
208
-          label: '评估工具',
209
-          children: [
210
-            {
211
-              name: '5-1',
212
-              label: '跌倒评估'
213
-            },
214
-            {
215
-              name: '5-2',
216
-              label: '小儿跌倒风险评估'
217
-            },
218
-            {
219
-              name: '5-3',
220
-              label: '压疮风险评估'
221
-            },
222
-            {
223
-              name: '5-4',
224
-              label: 'OH压疮评估'
225
-            },
226
-            {
227
-              name: '5-5',
228
-              label: '日常生活能力评估'
229
-            },
230
-            {
231
-              name: '5-6',
232
-              label: '导管脱离风险评估'
233
-            },
234
-            {
235
-              name: '5-7',
236
-              label: 'RASS及疼痛评估'
237
-            },
238
-            {
239
-              name: '5-8',
240
-              label: '营养状况评估'
241
-            },
242
-            {
243
-              name: '5-9',
244
-              label: '约束告知单'
245
-            },
246
-            {
247
-              name: '5-10',
248
-              label: '心理评估'
249
-            },
250
-            {
251
-              name: '5-11',
252
-              label: '瘙痒评估'
253
-            },
254
-            {
255
-              name: '5-12',
256
-              label: '血液透析患者评估'
257
-            },
258
-            {
259
-              name: '5-13',
260
-              label: 'Glasgow昏迷评分量表'
261
-            },
262
-            {
263
-              name: '5-14',
264
-              label: '肌力评估表'
265
-            },
266
-          ]
267
-        },
206
+        // {
207
+        //   name: '5',
208
+        //   label: '评估工具',
209
+        //   children: [
210
+        //     {
211
+        //       name: '5-1',
212
+        //       label: '跌倒评估'
213
+        //     },
214
+        //     {
215
+        //       name: '5-2',
216
+        //       label: '小儿跌倒风险评估'
217
+        //     },
218
+        //     {
219
+        //       name: '5-3',
220
+        //       label: '压疮风险评估'
221
+        //     },
222
+        //     {
223
+        //       name: '5-4',
224
+        //       label: 'OH压疮评估'
225
+        //     },
226
+        //     {
227
+        //       name: '5-5',
228
+        //       label: '日常生活能力评估'
229
+        //     },
230
+        //     {
231
+        //       name: '5-6',
232
+        //       label: '导管脱离风险评估'
233
+        //     },
234
+        //     {
235
+        //       name: '5-7',
236
+        //       label: 'RASS及疼痛评估'
237
+        //     },
238
+        //     {
239
+        //       name: '5-8',
240
+        //       label: '营养状况评估'
241
+        //     },
242
+        //     {
243
+        //       name: '5-9',
244
+        //       label: '约束告知单'
245
+        //     },
246
+        //     {
247
+        //       name: '5-10',
248
+        //       label: '心理评估'
249
+        //     },
250
+        //     {
251
+        //       name: '5-11',
252
+        //       label: '瘙痒评估'
253
+        //     },
254
+        //     {
255
+        //       name: '5-12',
256
+        //       label: '血液透析患者评估'
257
+        //     },
258
+        //     {
259
+        //       name: '5-13',
260
+        //       label: 'Glasgow昏迷评分量表'
261
+        //     },
262
+        //     {
263
+        //       name: '5-14',
264
+        //       label: '肌力评估表'
265
+        //     },
266
+        //   ]
267
+        // },
268 268
       ],
269 269
       name:""
270 270
     }
@@ -326,44 +326,45 @@ export default {
326 326
         this.$router.push({path:'/patients/inspection_check?id='+this.id})
327 327
       } else if(name == '4-3'){
328 328
         this.$router.push({path:'/patients/ktv?id='+this.id})
329
-      } else if (name == '5-1') {
330
-        this.$router.push({
331
-          path: '/patients/patient/'+ this.id +'/Fallassessment'
332
-        })
333
-      } else if (name == '5-2') {
334
-        this.$router.push({
335
-          path: '/patients/patient/' + this.id + '/pediatricFallAssessment'
336
-        })
337
-      } else if (name == '5-3') {
338
-        this.$router.push({
339
-          path: '/patients/patient/' + this.id + '/pressuresore'
340
-        })
341
-      } else if (name == '5-4') {
342
-        this.$router.push({
343
-          path: '/patients/patient/' + this.id + '/OHpressuresore'
344
-        })
345
-      } else if (name == '5-5'){
346
-        this.$router.push({path:'/patients/patient/'+this.id+'/dailyLife'})
347
-      } else if (name == '5-6'){
348
-        this.$router.push({path:'/patients/patient/'+this.id+'/Cathetershedding'})
349
-      } else if (name == '5-7'){
350
-        this.$router.push({path:'/patients/patient/'+this.id+'/RassAssessment'})
351
-      } else if(name == '5-8'){
352
-        this.$router.push({path:'/patients/patient/'+this.id+'/nourishmentAssessment'})
353
-      } else if(name == '5-9'){
354
-        this.$router.push({path:'/patients/patient/'+this.id+'/Constraintnotification'})
355
-      } else if(name == '5-10'){
356
-        this.$router.push({ path: '/patients/patient/' + this.id+'/mindAssessment'})
357
-      } else if(name == '5-11'){
358
-        this.$router.push({path:'/patients/patient/' + this.id+'/pruritusAssessment'})
359
-
360
-      } else if(name == '5-12'){
361
-        this.$router.push({path:'/patients/patient/' + this.id+'/hemodialysis'})
362
-      } else if(name == '5-13'){
363
-        this.$router.push({path:'/patients/patient/' + this.id+'/Glasgow'})
364
-      } else if(name == '5-14'){
365
-        this.$router.push({path:'/patients/patient/' + this.id+'/Muscleforce'})
366 329
       } 
330
+      // else if (name == '5-1') {
331
+      //   this.$router.push({
332
+      //     path: '/patients/patient/'+ this.id +'/Fallassessment'
333
+      //   })
334
+      // } else if (name == '5-2') {
335
+      //   this.$router.push({
336
+      //     path: '/patients/patient/' + this.id + '/pediatricFallAssessment'
337
+      //   })
338
+      // } else if (name == '5-3') {
339
+      //   this.$router.push({
340
+      //     path: '/patients/patient/' + this.id + '/pressuresore'
341
+      //   })
342
+      // } else if (name == '5-4') {
343
+      //   this.$router.push({
344
+      //     path: '/patients/patient/' + this.id + '/OHpressuresore'
345
+      //   })
346
+      // } else if (name == '5-5'){
347
+      //   this.$router.push({path:'/patients/patient/'+this.id+'/dailyLife'})
348
+      // } else if (name == '5-6'){
349
+      //   this.$router.push({path:'/patients/patient/'+this.id+'/Cathetershedding'})
350
+      // } else if (name == '5-7'){
351
+      //   this.$router.push({path:'/patients/patient/'+this.id+'/RassAssessment'})
352
+      // } else if(name == '5-8'){
353
+      //   this.$router.push({path:'/patients/patient/'+this.id+'/nourishmentAssessment'})
354
+      // } else if(name == '5-9'){
355
+      //   this.$router.push({path:'/patients/patient/'+this.id+'/Constraintnotification'})
356
+      // } else if(name == '5-10'){
357
+      //   this.$router.push({ path: '/patients/patient/' + this.id+'/mindAssessment'})
358
+      // } else if(name == '5-11'){
359
+      //   this.$router.push({path:'/patients/patient/' + this.id+'/pruritusAssessment'})
360
+
361
+      // } else if(name == '5-12'){
362
+      //   this.$router.push({path:'/patients/patient/' + this.id+'/hemodialysis'})
363
+      // } else if(name == '5-13'){
364
+      //   this.$router.push({path:'/patients/patient/' + this.id+'/Glasgow'})
365
+      // } else if(name == '5-14'){
366
+      //   this.$router.push({path:'/patients/patient/' + this.id+'/Muscleforce'})
367
+      // } 
367 368
     },
368 369
     changePatient(value) {
369 370
       console.log(value)

+ 240 - 41
src/xt_pages/user/evaluationtool/Fallassessment.vue View File

@@ -30,66 +30,84 @@
30 30
                     <tr class="bg_color">
31 31
                       <td class="start">年龄</td>
32 32
                       <td>
33
-                        <el-checkbox-group v-model="checkList">
34
-                          <el-checkbox label="≥65岁(1分)"></el-checkbox>
35
-                          <el-checkbox label="<5(1分)"></el-checkbox>
36
-                        </el-checkbox-group>
33
+                        <div class="jiange">
34
+                          <span v-for="item in nianlin" class="rightjiange">
35
+                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp{{ item }}</label>
36
+                          </span>
37
+                        </div>
38
+                          
37 39
                       </td>
38 40
                     </tr>
39 41
                     <tr>
40 42
                       <td class="start">既往史</td>
41 43
                       <td>
42
-                        <el-checkbox-group v-model="checkList">
43
-                          <el-checkbox v-for="item in jiwnag" :label="item" :key="item"></el-checkbox>
44
-                        </el-checkbox-group>
44
+                        <div class="jiange">
45
+                          <span v-for="item in jiwnag" class="rightjiange">
46
+                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp{{ item }}</label>
47
+                          </span>
48
+                        </div>
45 49
                       </td>
46 50
                     </tr>
47 51
                     <tr class="bg_color">
48 52
                       <td class="start">意识状态</td>
49 53
                       <td>
50
-                        <el-checkbox-group v-model="checkList">
51
-                          <el-checkbox v-for="item in yishizt" :label="item" :key="item"></el-checkbox>
52
-                        </el-checkbox-group>
54
+                        <div class="jiange">
55
+                          <span v-for="item in yishizt" class="rightjiange">
56
+                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp{{ item }}</label>
57
+                          </span>
58
+                        </div>
53 59
                       </td>
54 60
                     </tr>
55 61
                     <tr>
56 62
                       <td class="start">感官</td>
57 63
                       <td>
58
-                        <el-checkbox-group v-model="checkList">
59
-                          <el-checkbox v-for="item in ganguan" :label="item" :key="item"></el-checkbox>
60
-                        </el-checkbox-group>
64
+                        <div class="jiange">
65
+                          <span v-for="item in ganguan" class="rightjiange">
66
+                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp{{ item }}</label>
67
+                          </span>
68
+                        </div>
61 69
                       </td>
62 70
                     </tr>
63 71
                     <tr class="bg_color">
64 72
                       <td class="start">身体状况</td>
65 73
                       <td>
66
-                        <el-checkbox-group v-model="checkList">
67
-                          <el-checkbox v-for="item in shentizk" :label="item" :key="item"></el-checkbox>
68
-                        </el-checkbox-group>
74
+                        <div class="jiange">
75
+                          <span v-for="item in shentizk" class="rightjiange">
76
+                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp{{ item }}</label>
77
+                          </span>
78
+                        </div>
69 79
                       </td>
70 80
                     </tr>
71 81
                     <tr>
72 82
                       <td class="start">使用药物</td>
73 83
                       <td>
74
-                        <el-checkbox-group v-model="checkList">
75
-                          <el-checkbox v-for="item in syyaowu" :label="item" :key="item"></el-checkbox>
76
-                        </el-checkbox-group>
84
+                        <div class="jiange">
85
+                          <span v-for="item in syyaowu" class="rightjiange">
86
+                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp{{ item }}</label>
87
+                          </span>
88
+                        </div>
77 89
                       </td>
78 90
                     </tr>
79 91
                     <tr class="bg_color">
80 92
                       <td class="start">排泄</td>
81 93
                       <td>
82
-                        <el-checkbox-group v-model="checkList">
83
-                          <el-checkbox v-for="item in paixie" :label="item" :key="item"></el-checkbox>
84
-                        </el-checkbox-group>
94
+                        <div class="jiange">
95
+                          <span v-for="item in paixie" class="rightjiange">
96
+                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp{{ item }}</label>
97
+                          </span>
98
+                        </div>
99
+                        
85 100
                       </td>
86 101
                     </tr>
87 102
                     <tr>
88 103
                       <td class="start">自理能力</td>
89 104
                       <td>
90
-                        <el-checkbox-group v-model="checkList">
91
-                          <el-checkbox v-for="item in zilinl" :label="item" :key="item"></el-checkbox>
92
-                        </el-checkbox-group>
105
+                        <div class="jiange">
106
+                          <span v-for="item in zilinl" class="rightjiange">
107
+                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp{{ item }}</label>
108
+                          </span>
109
+                        </div>
110
+                        
93 111
                       </td>
94 112
                     </tr>
95 113
                   </tbody>
@@ -111,9 +129,11 @@
111 129
                     <tr>
112 130
                       <td class="start">预防效果</td>
113 131
                       <td>
114
-                        <el-checkbox-group v-model="checkList">
115
-                          <el-checkbox v-for="item in xiaoguo" :label="item" :key="item"></el-checkbox>
116
-                        </el-checkbox-group>
132
+                        <div class="jiange">
133
+                          <span v-for="item in xiaoguo" class="rightjiange">
134
+                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp{{ item }}</label>
135
+                          </span>
136
+                        </div>
117 137
                       </td>
118 138
                     </tr>
119 139
                   </tbody>
@@ -153,15 +173,148 @@
153 173
                 <table class="table" border style="width: 100%;">
154 174
                   <thead>
155 175
                     <tr>
156
-                      <th>健康宣教</th>
157
-                      <th>护理措施</th>
176
+                      <th style="width: 50%;">健康宣教</th>
177
+                      <th style="width: 50%;">护理措施</th>
158 178
                     </tr>
159 179
                   </thead>
160
-                  <tbody>
161
-                    <tr>
162
-                      <td></td>
163
-                    </tr>
164
-                  </tbody>
180
+                  <tr>
181
+                    <td colspan="2" style="height: 40px;">
182
+                      <div style="width: 100%;height: 343px; overflow: auto;border: none;">
183
+                        <table class="table table2" border style="width: 100%;">
184
+                          <tr>
185
+                            <td>
186
+                              <div class="xiaojige">
187
+                                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;告知病人及家属病人有跌倒的危险</label>
188
+                              </div>
189
+                            </td>
190
+                            <td>
191
+                              <div class="xiaojige">
192
+                                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;在病人床头悬挂"防跌倒"、"防坠床"警示牌</label>
193
+                              </div>
194
+                            </td>
195
+                          </tr>
196
+                          <tr class="bg_color">
197
+                            <td>
198
+                              <div class="xiaojige">
199
+                                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
200
+                                    告知家属24小时陪伴,尤其在患者活动锻炼时,应有人陪伴,若离开请与值班护士联系</label>
201
+                              </div>
202
+                            </td>
203
+                            <td>
204
+                              <div class="xiaojige">
205
+                                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;呼叫器及用物放置病人易取处,教会使用呼叫器</label>
206
+                              </div>
207
+                            </td>
208
+                          </tr>
209
+                          <tr>
210
+                            <td>
211
+                              <div class="xiaojige">
212
+                                <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
213
+                                  告知病人及家属病人关于药物作用的注意事项
214
+                                </label>
215
+                              </div>
216
+                            </td>
217
+                            <td>
218
+                              <div class="xiaojige">
219
+                                <label><input type="checkbox" name="ball" value="volleyball" />
220
+                                  &nbsp;及时给予便器,床上(边)大小便
221
+                                </label>
222
+                              </div>
223
+                            </td>
224
+                          </tr>
225
+                          <tr class="bg_color">
226
+                            <td>
227
+                              <div class="xiaojige">
228
+                                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
229
+                                    穿合适的裤子,以免绊倒;穿防滑鞋</label>
230
+                              </div>
231
+                            </td>
232
+                            <td>
233
+                              <div class="xiaojige">
234
+                                <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;使用床档 </label>
235
+                                <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;使用约束带 </label>
236
+                                <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;使用助行器 </label>
237
+                              </div>
238
+                            </td>
239
+                          </tr>
240
+                          <tr>
241
+                            <td>
242
+                              <div class="xiaojige">
243
+                                <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
244
+                                  告知患者改变体位欲活动时应遵循“三步曲”,即平卧30秒→双腿下垂30秒→行走,避免突然改变体位,
245
+                                  引起体位性低血压,特别是夜间
246
+                                </label>
247
+                              </div>
248
+                            </td>
249
+                            <td>
250
+                              <div class="xiaojige">
251
+                                <label>
252
+                                  <input type="checkbox" name="ball" value="volleyball" />&nbsp;需要时协助病人上、下床  
253
+                                </label>
254
+                                <label>
255
+                                  <input type="checkbox" name="ball" value="volleyball" />&nbsp;协助病人如厕
256
+                                </label>
257
+                              </div>
258
+                            </td>
259
+                          </tr>
260
+                          <tr class="bg_color">
261
+                            <td>
262
+                              <div class="xiaojige">
263
+                                <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
264
+                                  如出现双眼发黑、下肢无力、行走不稳和不能移动时,立即原地坐/蹲下或靠墙,呼叫他人帮助
265
+                                </label>
266
+                              </div>
267
+                            </td>
268
+                            <td>
269
+                              <div class="xiaojige">
270
+                                <label>
271
+                                  <input type="checkbox" name="ball" value="volleyball" />&nbsp;避免地面积水、湿滑  
272
+                                </label>
273
+                                <label>
274
+                                  <input type="checkbox" name="ball" value="volleyball" />&nbsp;消除床旁及通道障碍
275
+                                </label>
276
+                              </div>
277
+                            </td>
278
+                          </tr>
279
+                          <tr>
280
+                            <td>
281
+                              <div class="xiaojige">
282
+                                <label>
283
+                                  <input type="checkbox" name="ball" value="volleyball" />&nbsp;指导病人使用病房及卫生间扶手
284
+                                </label><br>
285
+                                <label>
286
+                                  <input type="checkbox" name="ball" value="volleyball" />&nbsp;其他有关告知
287
+                                </label>
288
+                              </div>
289
+                            </td>
290
+                            <td>
291
+                              <div class="xiaojige">
292
+                                <label>
293
+                                  <input type="checkbox" name="ball" value="volleyball" />&nbsp;病床调至合适高度
294
+                                </label>
295
+                                <label>
296
+                                  <input type="checkbox" name="ball" value="volleyball" />&nbsp;及时锁上病床及轮椅的轮轴
297
+                                </label>
298
+                              </div>
299
+                            </td>
300
+                          </tr>
301
+                        </table>
302
+                      </div>
303
+                    </td> 
304
+                  </tr>        
305
+                  <tr>
306
+                    <td style="">
307
+                      <div class="jian">
308
+                        <el-button type="text" @click="add">+添加</el-button>
309
+                      </div>
310
+                      
311
+                    </td>
312
+                    <td style="">
313
+                      <div class="jian">
314
+                        <el-button type="text" @click="add">+添加</el-button>
315
+                      </div>
316
+                    </td>
317
+                  </tr>       
165 318
                 </table>
166 319
               </div>
167 320
 
@@ -184,10 +337,12 @@
184 337
                           <span>日期:</span>
185 338
                           <el-input v-model="input" style="width: 120px;"></el-input>
186 339
                         </div>
187
-                        <div style="display: inline-block;">
188
-                          <el-checkbox-group v-model="checkList">
189
-                            <el-checkbox v-for="item in touxidiedao" :label="item" :key="item"></el-checkbox>
190
-                          </el-checkbox-group>
340
+                        <div class="jiange" style="display: inline-block;">
341
+                          
342
+                          <span v-for="item in touxidiedao" class="rightjiange">
343
+                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp{{ item }}</label>
344
+                          </span>
345
+                       
191 346
                         </div>
192 347
                       </td>
193 348
                     </tr>
@@ -208,6 +363,25 @@
208 363
 
209 364
         </div>
210 365
       </div> 
366
+      <!-- 添加弹窗页面 -->
367
+      <el-dialog
368
+        title="添加"
369
+        :visible.sync="centerDialogVisible"
370
+        width="30%"
371
+        center>
372
+        <span>
373
+          <el-input
374
+            type="textarea"
375
+            :autosize="{ minRows: 4, maxRows: 6}"
376
+            placeholder="请输入需要添加的内容.."
377
+            v-model="textarea2">
378
+          </el-input>
379
+        </span>
380
+        <span slot="footer" class="dialog-footer">
381
+          <el-button @click="centerDialogVisible = false">取 消</el-button>
382
+          <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button>
383
+        </span>
384
+      </el-dialog>
211 385
     </div>
212 386
   </template>
213 387
 
@@ -228,6 +402,7 @@
228 402
           input:'',
229 403
           options:[],
230 404
           checkList:[],
405
+          nianlin:['≥65岁(1分)','<5(1分)'],
231 406
           jiwnag:['有跌倒史(2分)','有坠床史(2分)','晕厥(2分)','低血压(2分)'],
232 407
           yishizt:['烦躁(4分)','谵妄(3分)','嗜睡(2分)','模糊(2分)','痴呆(2分)','昏迷(1分)'],
233 408
           ganguan:['头晕(4分)','视觉障碍(2分)','听力障碍(2分)'],
@@ -237,6 +412,9 @@
237 412
           zilinl:['无(4分)','部分(3分)'],
238 413
           xiaoguo:['未发生跌倒','发生跌倒','发生坠床'],
239 414
           touxidiedao:['发生跌倒','发生坠床'],
415
+
416
+          centerDialogVisible:false,
417
+          textarea2:'',
240 418
         }
241 419
         
242 420
       },
@@ -245,6 +423,9 @@
245 423
 
246 424
       },
247 425
       methods: {
426
+        add(){
427
+          this.centerDialogVisible =true
428
+        }
248 429
       }
249 430
     }
250 431
   </script>
@@ -281,7 +462,13 @@
281 462
         }
282 463
         .jiange{
283 464
             margin-left: 20px;
284
-            color: black;
465
+            // color: black;
466
+        }
467
+        .xiaojige{
468
+          margin-left: 10px;
469
+        }
470
+        .rightjiange{
471
+          margin-right: 40px;
285 472
         }
286 473
         input{
287 474
             -webkit-appearance: checkbox;
@@ -297,7 +484,19 @@
297 484
       color: #0077ff9f;
298 485
       // background-color: '#409eff';
299 486
     }
300
-    
487
+    ::-webkit-scrollbar {
488
+        width: 5px;
489
+    }
490
+    ::-webkit-scrollbar-track {
491
+        /*background black*/
492
+        border-radius: 5px;
493
+        background-color: white;
494
+    }
495
+    .table2 tr td{
496
+      width: 50%;
497
+      height: 40px;
498
+      padding: 5px;
499
+    }
301 500
 
302 501
   </style>
303 502
   

+ 14 - 12
src/xt_pages/user/inspection.vue View File

@@ -168,18 +168,20 @@
168 168
               <template v-for="(item, index) in items">
169 169
                 <el-col :span="7" :key="index">
170 170
                   <div style=" margin: 5px;">
171
-                    <el-row>
172
-                      <el-col :span="8" style="width: 100%;height: 100%;" >
173
-                        <div @click="imgClicks(item.value)">
174
-                          <el-tooltip
175
-                            class="item"
176
-                            effect="dark"
177
-                            :hide-after="2000"
178
-                            content="点击查看大图"
179
-                            placement="top-start"
180
-                            >
181
-                              <img :src="item.value" alt="">
182
-                            </el-tooltip>
171
+                    <el-row :gutter="20">
172
+                      <el-col :span="8" style="width: 100%;height: 150px;">
173
+                        <div style="width: 100%;height: 150px;" >
174
+                          <div @click="imgClicks(item.value)">
175
+                            <el-tooltip
176
+                              class="item"
177
+                              effect="dark"
178
+                              :hide-after="2000"
179
+                              content="点击查看大图"
180
+                              placement="top-start"
181
+                              >
182
+                                <img style="width: 300px;height: 150px;" :src="item.value" alt="">
183
+                              </el-tooltip>
184
+                          </div>
183 185
                         </div>
184 186
                       </el-col>
185 187
                     </el-row>

+ 2 - 3
src/xt_pages/workforce/scheduleTablePrint.vue View File

@@ -225,11 +225,10 @@
225 225
                     </span>
226 226
                 </td>
227 227
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周二'">
228
-                    <span v-if="item.Tue_M.patient_id">
229
-                        
228
+                    <p v-if="item.Tue_M.patient_id">
230 229
                         <span>{{ item.Tue_M.patient }}</span>
231 230
                         <span>{{ item.Tue_M.mode_name }}</span>
232
-                    </span>
231
+                    </p>
233 232
                 </td>
234 233
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周二'">
235 234
                     <span v-if="item.Tue_A.patient_id ">