Browse Source

新分支

28169 1 year ago
parent
commit
77cc2da591

+ 36 - 0
src/api/fallassement.js View File

70
       method:"get",
70
       method:"get",
71
       params:params
71
       params:params
72
     })
72
     })
73
+  }
74
+
75
+  export function getPedPatientFallAssessmentById(id,params){
76
+   
77
+    return request({
78
+      url:"/api/patient/getpedpatientfallassessmentbyid?id="+id,
79
+      method:"get",
80
+      params:params
81
+    })
82
+  }
83
+
84
+  export function deletePedPatientFallassment(id,params){
85
+   
86
+    return request({
87
+      url:"/api/patient/deletepedpatientfallassment?id="+id,
88
+      method:"Get",
89
+      params:params
90
+    })
91
+  }
92
+
93
+  export function savePatientPressuresore(data){
94
+   
95
+    return request({
96
+      url:"/api/patient/savepatientpressuresore",
97
+      method:"post",
98
+      data:data,
99
+    })
100
+  }
101
+
102
+  export function savePatientHpressuresore(data){
103
+   
104
+    return request({
105
+      url:"/api/patient/savepatienthpressuresore",
106
+      method:"post",
107
+      data:data,
108
+    })
73
   }
109
   }

+ 5 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_seventythree.vue View File

1170
                                   v-if=" record.dialysis_order && monitor_record.operate_time == 
1170
                                   v-if=" record.dialysis_order && monitor_record.operate_time == 
1171
                                     record.dialysis_order.start_time
1171
                                     record.dialysis_order.start_time
1172
                                   "
1172
                                   "
1173
-                                  >【开始透析】引血100ml/min</template
1173
+                                  >【开始透析】引血 {{ record.dialysis_order.blood_drawing }} ml/min</template
1174
                                 >
1174
                                 >
1175
                                 {{ monitor_record.end }}
1175
                                 {{ monitor_record.end }}
1176
-                                 &nbsp;{{ monitor_record.dispose}}
1176
+                                 &nbsp;
1177
                                 &nbsp;
1177
                                 &nbsp;
1178
                               </span>
1178
                               </span>
1179
                             </div>
1179
                             </div>
1991
             for(let j=0;j<this.records[i].monitor_records.length;j++){
1991
             for(let j=0;j<this.records[i].monitor_records.length;j++){
1992
               this.records[i].monitor_records[j].end = ""
1992
               this.records[i].monitor_records[j].end = ""
1993
               if (this.records[i].dialysis_order &&this.records[i].monitor_records[j].operate_time ==  this.records[i].dialysis_order.end_time) {
1993
               if (this.records[i].dialysis_order &&this.records[i].monitor_records[j].operate_time ==  this.records[i].dialysis_order.end_time) {
1994
-              this.records[i].monitor_records[j].end = "【结束透析】回血100ml/min";
1994
+              this.records[i].monitor_records[j].end = "【结束透析】回血"+this.records[i].dialysis_order.blood_drawing +"ml/min"
1995
               tempmonitorflag = false;
1995
               tempmonitorflag = false;
1996
             }
1996
             }
1997
             if(this.org_id!=10515 ){
1997
             if(this.org_id!=10515 ){
1998
               if (tempmonitorflag && j == this.records[i].monitor_records.length - 1) {
1998
               if (tempmonitorflag && j == this.records[i].monitor_records.length - 1) {
1999
-              this.records[i].monitor_records[j].end = "【结束透析】回血100ml/min";
1999
+              this.records[i].monitor_records[j].end = "【结束透析】回血"+this.records[i].dialysis_order.blood_drawing +"ml/min"
2000
              }
2000
              }
2001
              if(this.records[i].monitor_records[this.records[i].monitor_records.length - 1].end == ""){
2001
              if(this.records[i].monitor_records[this.records[i].monitor_records.length - 1].end == ""){
2002
-               this.records[i].monitor_records[this.records[i].monitor_records.length - 1].end = "【结束透析】回血100ml/min"
2002
+               this.records[i].monitor_records[this.records[i].monitor_records.length - 1].end = "【结束透析】回血"+this.records[i].dialysis_order.blood_drawing +"ml/min"
2003
              }
2003
              }
2004
             }
2004
             }
2005
 
2005
 

+ 15 - 10
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue View File

717
              this.infoDialogVisible = false
717
              this.infoDialogVisible = false
718
            }
718
            }
719
         })
719
         })
720
-      }
720
+      },
721
+      changeRaido(val){
722
+        console.log("val---",val)
723
+        console.log("lastt",this.lastTreat)
724
+        if(val ==1){
725
+          if(this.lastTreat!=null){
726
+            this.receiveTreatmentAsses.admission_number = this.lastTreat.admission_number
727
+          }
728
+        }else{
729
+          if(this.lastTreat!=null){
730
+            this.receiveTreatmentAsses.admission_number = ""
731
+          }
732
+        }
733
+    }
721
   },
734
   },
722
   props: {
735
   props: {
723
     receiver_treatment_access: {
736
     receiver_treatment_access: {
777
     this.intake_arr = getDataConfig("hemodialysis", "intake");
790
     this.intake_arr = getDataConfig("hemodialysis", "intake");
778
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
791
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
779
   },
792
   },
780
-  methods:{
781
-    changeRaido(val){
782
-      if(val ==1){
783
-        this.receiveTreatmentAsses.admission_number = this.lastTreat.admission_number
784
-      }else{
785
-        this.receiveTreatmentAsses.admission_number = this.lastTreat.admission_number
786
-      }
787
-    }
788
-  }
793
+ 
789
 };
794
 };
790
 </script>
795
 </script>
791
 
796
 

+ 1 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

2528
          console.log("开始啊",admins)
2528
          console.log("开始啊",admins)
2529
          this.dialysisPrescription.admin_user_id = this.$store.getters.xt_user.user.id
2529
          this.dialysisPrescription.admin_user_id = this.$store.getters.xt_user.user.id
2530
        }else{
2530
        }else{
2531
-          this.dialysisPrescription.admin_user_id = prescription.admin_user_id
2531
+          this.dialysisPrescription.admin_user_id = prescription.admin_user_id?this.$store.getters.xt_user.user.id:0
2532
        }
2532
        }
2533
 
2533
 
2534
        this.adminRoles = []
2534
        this.adminRoles = []
2537
             this.adminRoles.push(admins[i])
2537
             this.adminRoles.push(admins[i])
2538
           }
2538
           }
2539
         }
2539
         }
2540
-        console.log("admin_user_+id2332323223332", this.$store.getters.xt_user.user.id)
2541
       },
2540
       },
2542
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2541
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2543
         console.log("pres",pre)
2542
         console.log("pres",pre)

+ 24 - 8
src/xt_pages/dialysis/hisLongSignPrint.vue View File

55
             start_time:"",
55
             start_time:"",
56
             end_time:"",
56
             end_time:"",
57
             print_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
57
             print_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
58
-
59
             zone_selected: 0,
58
             zone_selected: 0,
60
             scheduleMap:[],
59
             scheduleMap:[],
61
             time:'',
60
             time:'',
195
           }
194
           }
196
         }
195
         }
197
        
196
        
198
-        this.list = list
197
+       
199
         this.total = response.data.data.total
198
         this.total = response.data.data.total
200
         var adviceList = response.data.data.adviceList
199
         var adviceList = response.data.data.adviceList
201
         this.adviceList = adviceList
200
         this.adviceList = adviceList
202
 
201
 
203
-        for(let i=0;i<list.length;i++){
204
-          for(let j=0;j<adviceList.length;j++){
205
-            if(list[i].patient_id == adviceList[j].patient_id){
206
-                list[i].his_advice_list.push(adviceList[j])
207
-            }
208
-          }
202
+        var longHisAdviceList = response.data.data.longHisAdviceList
203
+        
204
+        if(this.org_id!=10571 && this.org_id!=0){
205
+            for(let i=0;i<list.length;i++){
206
+                for(let j=0;j<adviceList.length;j++){
207
+                    if(list[i].patient_id == adviceList[j].patient_id){
208
+                        list[i].his_advice_list.push(adviceList[j])
209
+                    }
210
+                }
211
+             }
209
         }
212
         }
213
+
214
+        if(this.org_id ==10571 || this.org_id == 0){
215
+            for(let i=0;i<list.length;i++){
216
+                for(let j=0;j<longHisAdviceList.length;j++){
217
+                    if(list[i].patient_id == longHisAdviceList[j].patient_id){
218
+                        list[i].his_advice_list.push(longHisAdviceList[j])
219
+                    }
220
+                }
221
+             }
222
+        }
223
+       
224
+
225
+        this.list = list
210
       
226
       
211
         var druglist = response.data.data.drugList
227
         var druglist = response.data.data.drugList
212
         this.drugList =druglist
228
         this.drugList =druglist

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderFiftySeven.vue View File

512
           </th>
512
           </th>
513
 
513
 
514
           <th style="width: 80px; font-weight: normal">
514
           <th style="width: 80px; font-weight: normal">
515
-            <p style="height: 20px; line-height: 20px">SpO₂</p>
516
-            <p style="height: 20px; line-height: 20px">%</p>
515
+            <p style="height: 20px; line-height: 20px">肝素余量</p>
516
+            <!-- <p style="height: 20px; line-height: 20px">%</p> -->
517
           </th>
517
           </th>
518
           <th style="width: 333px; font-weight: normal">
518
           <th style="width: 333px; font-weight: normal">
519
             <p style="height: 20px; line-height: 20px">
519
             <p style="height: 20px; line-height: 20px">

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSeventythree.vue View File

1084
                                   monitor.operate_time ==
1084
                                   monitor.operate_time ==
1085
                                     dialysisOrder.start_time)
1085
                                     dialysisOrder.start_time)
1086
                                 "
1086
                                 "
1087
-                                >【开始透析】引血100ml/min
1087
+                                >【开始透析】引血{{ dialysisOrder.blood_drawing }} ml/min
1088
                                 </template>
1088
                                 </template>
1089
 
1089
 
1090
-                              {{ monitor.end }}  &nbsp;{{ monitor.dispose}}
1090
+                              {{ monitor.end }}  &nbsp;
1091
                               &nbsp;
1091
                               &nbsp;
1092
                             </span>
1092
                             </span>
1093
                           </div>
1093
                           </div>
2638
               (this.dialysisOrder &&
2638
               (this.dialysisOrder &&
2639
               monitor.operate_time == this.dialysisOrder.end_time)&&(this.org_id!=10414)
2639
               monitor.operate_time == this.dialysisOrder.end_time)&&(this.org_id!=10414)
2640
             ) {
2640
             ) {
2641
-              this.monitors[index].end = "【结束透析】回血100ml/min";
2641
+              this.monitors[index].end = "【结束透析】"+"回血"+this.dialysisOrder.blood_drawing +"ml/min";
2642
               tempmonitorflag = false;
2642
               tempmonitorflag = false;
2643
             }
2643
             }
2644
             if ((tempmonitorflag && index == this.monitors.length - 1)&&(this.org_id!=10414)) {
2644
             if ((tempmonitorflag && index == this.monitors.length - 1)&&(this.org_id!=10414)) {
2645
-              this.monitors[index].end = "【结束透析】回血100ml/min";
2645
+              this.monitors[index].end = "【结束透析】"+"回血"+this.dialysisOrder.blood_drawing +"ml/min";
2646
             }
2646
             }
2647
           }
2647
           }
2648
         }
2648
         }

+ 5 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue View File

137
         <div class="row">
137
         <div class="row">
138
           血管通路 
138
           血管通路 
139
           <div class="inline_block under_line" style="width:92%;text-align: left;">
139
           <div class="inline_block under_line" style="width:92%;text-align: left;">
140
-            <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="内瘘"></label-box>
140
+            {{ predialysis.blood_access_part_opera_name?predialysis.blood_access_part_opera_name:"/" }}
141
+            <!-- <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="内瘘"></label-box>
141
             (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : false" showValue="左"></label-box>
142
             (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : false" showValue="左"></label-box>
142
                 <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="右"></label-box>)
143
                 <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="右"></label-box>)
143
             &nbsp;
144
             &nbsp;
151
             &nbsp;
152
             &nbsp;
152
             <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-股')>-1?true:predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-股')>-1?true:false" showValue="股"></label-box>
153
             <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-股')>-1?true:predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-股')>-1?true:false" showValue="股"></label-box>
153
             &nbsp;
154
             &nbsp;
155
+           
154
             <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉-左')>-1?true:predialysis.blood_access_part_opera_name.indexOf('股静脉-右')>-1?true:false" showValue="股静脉"></label-box>
156
             <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉-左')>-1?true:predialysis.blood_access_part_opera_name.indexOf('股静脉-右')>-1?true:false" showValue="股静脉"></label-box>
155
             (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉-左') > -1 ? true : false" showValue="左"></label-box>
157
             (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉-左') > -1 ? true : false" showValue="左"></label-box>
156
                 <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉-右') > -1 ? true : false" showValue="右"></label-box>)
158
                 <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉-右') > -1 ? true : false" showValue="右"></label-box>)
157
             &nbsp;
159
             &nbsp;
160
+            <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-股')>-1?true:predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-股')>-1?true:false" showValue="股"></label-box>
161
+            &nbsp; -->
158
           </div>
162
           </div>
159
         </div>
163
         </div>
160
         <div class="row">
164
         <div class="row">

+ 4 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue View File

72
           <div style="flex: 1;">
72
           <div style="flex: 1;">
73
             置换方式
73
             置换方式
74
             <span class="under-line" style="display: inline-block;width: 50%;" v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12">
74
             <span class="under-line" style="display: inline-block;width: 50%;" v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12">
75
-              {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "/" }}
75
+              <!-- {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "/" }} -->
76
+              {{
77
+                getDisplaceLiquiPart(prescription.displace_liqui_part)
78
+             }}
76
             </span>
79
             </span>
77
             <span class="under-line" style="display: inline-block;width: 50%;" v-else>
80
             <span class="under-line" style="display: inline-block;width: 50%;" v-else>
78
               /
81
               /

+ 55 - 8
src/xt_pages/qcd/patientControlAnalysis.vue View File

76
           <p class="chartTitle">统计表</p>
76
           <p class="chartTitle">统计表</p>
77
         </div>
77
         </div>
78
         <div>
78
         <div>
79
+          <el-button type="primary" size="small" style="margin-bottom: 10px;" @click="toExportList">导出</el-button>
79
           <el-table :data="tableData" v-loading="isLoadingTwo" border style="width: 100%"
80
           <el-table :data="tableData" v-loading="isLoadingTwo" border style="width: 100%"
80
                     :row-style="{ color: '#303133' }"
81
                     :row-style="{ color: '#303133' }"
81
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
82
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
105
                     v-if="scope.row.data[modeItem.item_name].range_type == 1 && scope.row.data[modeItem.item_name].inspect_value !=''&& (parseInt(scope.row.data[modeItem.item_name].inspect_value) > parseInt(scope.row.data[modeItem.item_name].range_max))">
106
                     v-if="scope.row.data[modeItem.item_name].range_type == 1 && scope.row.data[modeItem.item_name].inspect_value !=''&& (parseInt(scope.row.data[modeItem.item_name].inspect_value) > parseInt(scope.row.data[modeItem.item_name].range_max))">
106
                 <span>{{ scope.row.data[modeItem.item_name].inspect_value }}</span><span
107
                 <span>{{ scope.row.data[modeItem.item_name].inspect_value }}</span><span
107
                     style="color:#F56C6C;margin-left:5px;">↑</span>
108
                     style="color:#F56C6C;margin-left:5px;">↑</span>
108
-              </span>
109
+               </span>
109
                 <span
110
                 <span
110
                     v-if="scope.row.data[modeItem.item_name].range_type == 1 && scope.row.data[modeItem.item_name].inspect_value !=''&& (parseInt(scope.row.data[modeItem.item_name].inspect_value) >= parseInt(scope.row.data[modeItem.item_name].range_min))&& (parseInt(scope.row.data[modeItem.item_name].inspect_value) <= parseInt(scope.row.data[modeItem.item_name].range_max)) ">{{ scope.row.data[modeItem.item_name].inspect_value }}</span>
111
                     v-if="scope.row.data[modeItem.item_name].range_type == 1 && scope.row.data[modeItem.item_name].inspect_value !=''&& (parseInt(scope.row.data[modeItem.item_name].inspect_value) >= parseInt(scope.row.data[modeItem.item_name].range_min))&& (parseInt(scope.row.data[modeItem.item_name].inspect_value) <= parseInt(scope.row.data[modeItem.item_name].range_max)) ">{{ scope.row.data[modeItem.item_name].inspect_value }}</span>
111
                 <span
112
                 <span
137
               @size-change="handleSizeChange"
138
               @size-change="handleSizeChange"
138
               @current-change="handleCurrentChange"
139
               @current-change="handleCurrentChange"
139
               :current-page="listQuery.page"
140
               :current-page="listQuery.page"
140
-              :page-sizes="[10, 20, 50, 100]"
141
+              :page-sizes="[10, 20, 50, 100,200,300,400,500,600]"
141
               :page-size="10"
142
               :page-size="10"
142
               background
143
               background
143
               style="margin-top:20px;"
144
               style="margin-top:20px;"
586
           }
587
           }
587
           console.log(newArr)
588
           console.log(newArr)
588
 
589
 
589
-          console.log("newArr")
590
-
591
-
592
-
593
           let dataInfo = {}
590
           let dataInfo = {}
594
           newArr.forEach((item, index) => {
591
           newArr.forEach((item, index) => {
595
             let { patient_id } = item
592
             let { patient_id } = item
644
           })
641
           })
645
 
642
 
646
 
643
 
647
-
644
+          console.log("arrthree",arrthree)
648
           var dd = {}
645
           var dd = {}
649
           for (const index in arrthree) {
646
           for (const index in arrthree) {
650
             if (!(arrthree[index].patient_id in dd)) {
647
             if (!(arrthree[index].patient_id in dd)) {
655
 
652
 
656
             }
653
             }
657
           }
654
           }
655
+          console.log("dad00000000000000",dd)
658
 
656
 
659
           let dataInfotwo = {}
657
           let dataInfotwo = {}
660
           newArr.forEach((item, index) => {
658
           newArr.forEach((item, index) => {
795
       this.listQuery.search = val.name
793
       this.listQuery.search = val.name
796
       this.patient_id = val.id
794
       this.patient_id = val.id
797
       this.onSearch()
795
       this.onSearch()
798
-    }
796
+    },
797
+    toExportList(){
798
+      import("@/vendor/Export2Excel").then((excel) => {
799
+       
800
+         var arr =["序号","姓名","透析号"]
801
+          if(this.normData!=null && this.normData.length>0){
802
+            for(let i=0;i<this.normData.length;i++){
803
+               arr.push(this.normData[i].item_name)
804
+            }
805
+          }
806
+         
807
+         if(this.tableData!=null && this.normData!=null && this.tableData.length>0&&this.normData.length>0){
808
+           
809
+          var newArr =[]
810
+         
811
+          for(let i=0;i<this.tableData.length;i++){
812
+            var obj = {index:0,name:"",patient_id:0,dialysis_no:"",item_name:""}
813
+            for(let j=0;j<this.normData.length;j++){
814
+               obj.index = i+1
815
+               obj.patient_id = this.tableData[i].patient_id
816
+               obj.name = this.tableData[i].name
817
+               obj.dialysis_no = this.tableData[i].dialysis_no
818
+               obj[this.normData[j].item_name] = this.tableData[i].data[this.normData[j].item_name].inspect_value
819
+            }
820
+            newArr.push(obj)
821
+          }
822
+         }
823
+        console.log("患者质控达标统计",newArr) 
824
+        const tHeader = arr
825
+         var newList = ["index","name","dialysis_no"]
826
+         if(this.normData!=null && this.normData.length>0){
827
+            for(let i=0;i<this.normData.length;i++){
828
+              newList.push(this.normData[i].item_name)
829
+            }
830
+          }
831
+          var filterVal = []
832
+          filterVal = newList
833
+
834
+          const data = this.formatJson(filterVal, newArr);
835
+          excel.export_json_to_excel({
836
+            header: tHeader,
837
+            data,
838
+            filename: "患者质控达标统计",
839
+          });
840
+          this.downloadLoading = false;
841
+        });
842
+    },
843
+    formatJson(filterVal, jsonData) {
844
+      return jsonData.map((v) => filterVal.map((j) => v[j]));
845
+    },
799
   },
846
   },
800
   created() {
847
   created() {
801
     var nowDate = new Date()
848
     var nowDate = new Date()

+ 3 - 0
src/xt_pages/stock/query/purchaseNewStockQuery.vue View File

298
               if(this.org_id == 10265){
298
               if(this.org_id == 10265){
299
                 list[i].overStock = list[i].GoodEndFlowInfo.over_count
299
                 list[i].overStock = list[i].GoodEndFlowInfo.over_count
300
               }else{
300
               }else{
301
+                console.log("期初",list[i].stockIn)
302
+                console.log("增加",list[i].stockAdd)
303
+                console.log("出库",list[i].outStock)
301
                 if((list[i].stockIn + list[i].stockAdd - list[i].outStock)>0 ){
304
                 if((list[i].stockIn + list[i].stockAdd - list[i].outStock)>0 ){
302
                   list[i].overStock = list[i].stockIn + list[i].stockAdd - list[i].outStock
305
                   list[i].overStock = list[i].stockIn + list[i].stockAdd - list[i].outStock
303
                 }else{
306
                 }else{

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

204
             },
204
             },
205
           ]
205
           ]
206
         },
206
         },
207
-        {
208
-          name: '5',
209
-          label: '评估工具',
210
-          children: [
211
-            {
212
-              name: '5-1',
213
-              label: '跌倒评估'
214
-            },
215
-            {
216
-              name: '5-2',
217
-              label: '小儿跌倒风险评估'
218
-            },
219
-            {
220
-              name: '5-3',
221
-              label: '压疮风险评估'
222
-            },
223
-            {
224
-              name: '5-4',
225
-              label: 'OH压疮评估'
226
-            },
227
-            {
228
-              name: '5-5',
229
-              label: '日常生活能力评估'
230
-            },
231
-            {
232
-              name: '5-6',
233
-              label: '导管脱落风险评估'
234
-            },
235
-            {
236
-              name: '5-7',
237
-              label: 'RASS及疼痛评估'
238
-            },
239
-            {
240
-              name: '5-8',
241
-              label: '营养状况评估'
242
-            },
243
-            {
244
-              name: '5-9',
245
-              label: '约束告知单'
246
-            },
247
-            {
248
-              name: '5-10',
249
-              label: '心理评估'
250
-            },
251
-            {
252
-              name: '5-11',
253
-              label: '瘙痒评估'
254
-            },
255
-            {
256
-              name: '5-12',
257
-              label: '血液透析患者评估'
258
-            },
259
-            {
260
-              name: '5-13',
261
-              label: 'Glasgow昏迷评分量表'
262
-            },
263
-            {
264
-              name: '5-14',
265
-              label: '肌力评估表'
266
-            },
267
-           ]
268
-         },
207
+        // {
208
+        //   name: '5',
209
+        //   label: '评估工具',
210
+        //   children: [
211
+        //     {
212
+        //       name: '5-1',
213
+        //       label: '跌倒评估'
214
+        //     },
215
+        //     {
216
+        //       name: '5-2',
217
+        //       label: '小儿跌倒风险评估'
218
+        //     },
219
+        //     {
220
+        //       name: '5-3',
221
+        //       label: '压疮风险评估'
222
+        //     },
223
+        //     {
224
+        //       name: '5-4',
225
+        //       label: 'OH压疮评估'
226
+        //     },
227
+        //     {
228
+        //       name: '5-5',
229
+        //       label: '日常生活能力评估'
230
+        //     },
231
+        //     {
232
+        //       name: '5-6',
233
+        //       label: '导管脱落风险评估'
234
+        //     },
235
+        //     {
236
+        //       name: '5-7',
237
+        //       label: 'RASS及疼痛评估'
238
+        //     },
239
+        //     {
240
+        //       name: '5-8',
241
+        //       label: '营养状况评估'
242
+        //     },
243
+        //     {
244
+        //       name: '5-9',
245
+        //       label: '约束告知单'
246
+        //     },
247
+        //     {
248
+        //       name: '5-10',
249
+        //       label: '心理评估'
250
+        //     },
251
+        //     {
252
+        //       name: '5-11',
253
+        //       label: '瘙痒评估'
254
+        //     },
255
+        //     {
256
+        //       name: '5-12',
257
+        //       label: '血液透析患者评估'
258
+        //     },
259
+        //     {
260
+        //       name: '5-13',
261
+        //       label: 'Glasgow昏迷评分量表'
262
+        //     },
263
+        //     {
264
+        //       name: '5-14',
265
+        //       label: '肌力评估表'
266
+        //     },
267
+        //    ]
268
+        //  },
269
         {
269
         {
270
           name: '6',
270
           name: '6',
271
           label: '文书管理',
271
           label: '文书管理',

+ 1 - 4
src/xt_pages/user/evaluationtool/Fallassessment.vue View File

518
     data() {
518
     data() {
519
       return {
519
       return {
520
         patient_id:0,
520
         patient_id:0,
521
-        postdata:{
522
         ping_date:'',
521
         ping_date:'',
523
         Nurse:'',
522
         Nurse:'',
524
         input:'',
523
         input:'',
543
         content:"",
542
         content:"",
544
         contentOne:"",
543
         contentOne:"",
545
         listOne:[],
544
         listOne:[],
546
-
547
         is_check:false,
545
         is_check:false,
548
         is_check_one:false,
546
         is_check_one:false,
549
         is_check_two:false,
547
         is_check_two:false,
564
         is_check_seventeen:false,
562
         is_check_seventeen:false,
565
         is_check_eighteen:false,
563
         is_check_eighteen:false,
566
         is_check_nineteen:false,
564
         is_check_nineteen:false,
567
-
568
         nurseList:[],
565
         nurseList:[],
569
         admin_user_id:"",
566
         admin_user_id:"",
570
         record_date:"",
567
         record_date:"",
571
-        }
568
+        
572
       }
569
       }
573
 
570
 
574
     },
571
     },

+ 38 - 23
src/xt_pages/user/evaluationtool/OHpressuresore.vue View File

278
 import PatientSidebar from '../components/PatientSidebar.vue'
278
 import PatientSidebar from '../components/PatientSidebar.vue'
279
 import print from 'print-js'
279
 import print from 'print-js'
280
 import { uParseTime } from '@/utils/tools'
280
 import { uParseTime } from '@/utils/tools'
281
+import {getAllNurseList,savePatientHpressuresore} from '@/api/fallassement'
281
 export default {
282
 export default {
282
   components:{
283
   components:{
283
     PatientSidebar
284
     PatientSidebar
318
       oh_huli:'',//护理措施
319
       oh_huli:'',//护理措施
319
       oh_date:this.getTime(new Date()),
320
       oh_date:this.getTime(new Date()),
320
       oh_appraiser:null,
321
       oh_appraiser:null,
321
-      dayintime:this.getTime(new Date())//打印
322
+      dayintime:this.getTime(new Date()),//打印
322
       // oh_pinggr:[],
323
       // oh_pinggr:[],
324
+      nurseList:[],
323
     }
325
     }
324
   },
326
   },
325
   methods:{
327
   methods:{
429
           oh_appraiser:this.oh_appraiser,
431
           oh_appraiser:this.oh_appraiser,
430
           Totalpoints:this.Totalpoints
432
           Totalpoints:this.Totalpoints
431
         }
433
         }
432
-        const arr={
433
-          id:'002',
434
-          date:this.oh_date,
435
-          mark:this.Totalpoints,
436
-          evaluate:this.oh_appraiser
437
-        }
438
-        console.log('rrrrr',arr,params);
439
-        this.history_OH.push(arr)
440
-        const lenOH= this.history_OH
441
-        var nameoh=''
442
-        for(let i=0;i<lenOH.length;i++){
443
-          lenOH[i].mark= this.Totalpoints
444
-          for(let y=0;y<this.oh_pinggr.length;y++){
445
-            if(this.oh_appraiser==this.oh_pinggr[y].id){
446
-              nameoh=this.oh_pinggr[y].label
447
-            }
448
-          }
449
-          lenOH[i].evaluate= nameoh
450
-        }
451
-        return this.cancel_num
434
+      savePatientHpressuresore(params).then(response=>{
435
+
436
+      })
437
+        // const arr={
438
+        //   id:'002',
439
+        //   date:this.oh_date,
440
+        //   mark:this.Totalpoints,
441
+        //   evaluate:this.oh_appraiser
442
+        // }
443
+        // console.log('rrrrr',arr,params);
444
+        // this.history_OH.push(arr)
445
+        // const lenOH= this.history_OH
446
+        // var nameoh=''
447
+        // for(let i=0;i<lenOH.length;i++){
448
+        //   lenOH[i].mark= this.Totalpoints
449
+        //   for(let y=0;y<this.oh_pinggr.length;y++){
450
+        //     if(this.oh_appraiser==this.oh_pinggr[y].id){
451
+        //       nameoh=this.oh_pinggr[y].label
452
+        //     }
453
+        //   }
454
+        //   lenOH[i].evaluate= nameoh
455
+        // }
456
+        // return this.cancel_num
452
       }
457
       }
453
     },
458
     },
454
     //编辑
459
     //编辑
541
           return this.oh_pinggr[i].label
546
           return this.oh_pinggr[i].label
542
         }
547
         }
543
       }
548
       }
544
-    }
549
+    },
550
+    getAllNurseList(){
551
+     getAllNurseList().then(response=>{
552
+        if(response.data.state ==1){
553
+          var nurseList  = response.data.data.nurseList
554
+
555
+          this.nurseList =nurseList
556
+        }
557
+    })
558
+  },
545
   },
559
   },
546
   computed:{
560
   computed:{
547
     Totalpoints(){
561
     Totalpoints(){
548
       return this.gaunjie_num*1 + this.edema_num*1 + this.bingli_num*1 + this.tiwei_num*1
562
       return this.gaunjie_num*1 + this.edema_num*1 + this.bingli_num*1 + this.tiwei_num*1
549
     }
563
     }
550
-  }
564
+  },
565
+ 
551
 }
566
 }
552
 </script>
567
 </script>
553
 <style lang="scss" scoped>
568
 <style lang="scss" scoped>

+ 22 - 2
src/xt_pages/user/evaluationtool/pressuresore.vue View File

348
 <script>
348
 <script>
349
 import PatientSidebar from '../components/PatientSidebar'
349
 import PatientSidebar from '../components/PatientSidebar'
350
 import { uParseTime } from '@/utils/tools'
350
 import { uParseTime } from '@/utils/tools'
351
+import {getAllNurseList,savePatientPressuresore } from '@/api/fallassement'
351
 export default {
352
 export default {
352
    components:{
353
    components:{
353
     PatientSidebar
354
     PatientSidebar
382
       hulicheckarr:[],
383
       hulicheckarr:[],
383
       hulicuoshi:[{id:1,label:'挂床头警示标识',hulicheck:0,is_check:false},{id:2,label:'保护受压皮肤,使用减压用具(气垫床/压疮床)',hulicheck:0,is_check:false},
384
       hulicuoshi:[{id:1,label:'挂床头警示标识',hulicheck:0,is_check:false},{id:2,label:'保护受压皮肤,使用减压用具(气垫床/压疮床)',hulicheck:0,is_check:false},
384
       {id:3,label:'定时翻身,移动避免拖拉',hulicheck:0,is_check:false},{id:4,label:'加强营养',hulicheck:0,is_check:false},
385
       {id:3,label:'定时翻身,移动避免拖拉',hulicheck:0,is_check:false},{id:4,label:'加强营养',hulicheck:0,is_check:false},
385
-      {id:5,label:'保持被衣物清洁舒适',hulicheck:0,is_check:false},{id:6,label:'其他',hulicheck:0,is_check:false}]
386
+      {id:5,label:'保持被衣物清洁舒适',hulicheck:0,is_check:false},{id:6,label:'其他',hulicheck:0,is_check:false}],
387
+      nurseList:[]
386
     }
388
     }
387
    },
389
    },
388
    methods:{
390
    methods:{
421
         return uParseTime(val, '{y}-{m}-{d}')
423
         return uParseTime(val, '{y}-{m}-{d}')
422
         }
424
         }
423
     },
425
     },
426
+    getAllNurseList(){
427
+        getAllNurseList().then(response=>{
428
+           if(response.data.state ==1){
429
+             var nurseList  = response.data.data.nurseList
430
+
431
+             this.nurseList =nurseList
432
+           }
433
+        })
434
+    },
424
     // 确认
435
     // 确认
425
     Pressuresore(){
436
     Pressuresore(){
426
       var params={
437
       var params={
442
         nurse_options:this.nurse_options,
453
         nurse_options:this.nurse_options,
443
         nurse_date:this.nurse_date,
454
         nurse_date:this.nurse_date,
444
         patientID:this.patientID,
455
         patientID:this.patientID,
445
-        checkList:this.checkList
456
+        checkList:this.checkList,
457
+        hulicuoshi:this.hulicuoshi,
446
       }
458
       }
447
       console.log('params----',params);
459
       console.log('params----',params);
460
+      savePatientPressuresore.then(response=>{
461
+        if(response.data.state == 1){
462
+
463
+        }
464
+      })
448
     }
465
     }
449
    },
466
    },
450
    computed:{
467
    computed:{
451
     mark(){
468
     mark(){
452
       return this.ganzhi*1 + this.shidu*1 + this.huodong*1 + this.yidong*1 + this.mocha*1 + this.yingyang*1
469
       return this.ganzhi*1 + this.shidu*1 + this.huodong*1 + this.yidong*1 + this.mocha*1 + this.yingyang*1
453
     }
470
     }
471
+   },
472
+   created(){
473
+     this.getAllNurseList()
454
    }
474
    }
455
 }
475
 }
456
 </script>
476
 </script>

+ 20 - 4
src/xt_pages/user/history/Children_history.vue View File

342
       <span>是否删除该记录</span>
342
       <span>是否删除该记录</span>
343
       <span slot="footer" class="dialog-footer">
343
       <span slot="footer" class="dialog-footer">
344
         <el-button @click="delete_centerDialogVisible=false">取 消</el-button>
344
         <el-button @click="delete_centerDialogVisible=false">取 消</el-button>
345
-        <el-button type="primary" @click="delete_childer">确 定</el-button>
345
+        <el-button type="primary" @click="deletePedPatientFallassment">确 定</el-button>
346
       </span>
346
       </span>
347
     </el-dialog>
347
     </el-dialog>
348
   </div>
348
   </div>
350
 <script>
350
 <script>
351
 import print from 'print-js'
351
 import print from 'print-js'
352
 import { uParseTime } from '@/utils/tools'
352
 import { uParseTime } from '@/utils/tools'
353
-import {  getPedDiatricFallAssessmentList } from '@/api/fallassement'
353
+import {  getPedDiatricFallAssessmentList,getPedPatientFallAssessmentById,deletePedPatientFallassment } from '@/api/fallassement'
354
 export default{
354
 export default{
355
   data(){
355
   data(){
356
     return{
356
     return{
402
       page:1,
402
       page:1,
403
       limit:10,
403
       limit:10,
404
       total:0,
404
       total:0,
405
+      id:0,
405
     }
406
     }
406
   },
407
   },
407
   methods:{
408
   methods:{
434
       }
435
       }
435
     },
436
     },
436
     open_editor(row){
437
     open_editor(row){
437
-      this.editor_dialogVisible =true
438
+      getPedPatientFallAssessmentById(row.id).then(response=>{
439
+        if(response.data.state ==1){
440
+          this.editor_dialogVisible =true
441
+          var fallassessment = response.data.data.fallassessment
442
+        }
443
+      })
444
+     
445
+      
438
     },
446
     },
439
     deletes(row){
447
     deletes(row){
440
-      this.row=row.id
448
+      this.id =row.id
441
       this.delete_centerDialogVisible = true
449
       this.delete_centerDialogVisible = true
442
     },
450
     },
443
     delete_childer(){
451
     delete_childer(){
614
           this.total = total
622
           this.total = total
615
          }
623
          }
616
       })
624
       })
625
+    },
626
+    deletePedPatientFallassment(){
627
+      deletePedPatientFallassment(this.id).then(response=>{
628
+         if(response.data.state==1){
629
+           var msg = response.data.data.msg
630
+           this.$message.success("保存成功!")
631
+         }
632
+      })
617
     }
633
     }
618
   },
634
   },
619
   computed:{
635
   computed:{

+ 22 - 2
src/xt_pages/user/history/tumble_history.vue View File

17
         <el-table
17
         <el-table
18
           ref="multipleTable"
18
           ref="multipleTable"
19
           :data="tableData"
19
           :data="tableData"
20
+          @selection-change="handleSelectionChange"
20
           border
21
           border
21
           tooltip-effect="dark"
22
           tooltip-effect="dark"
22
           :header-cell-style="{
23
           :header-cell-style="{
816
       id:0,
817
       id:0,
817
       index:0,
818
       index:0,
818
       fallassesment_id:0,
819
       fallassesment_id:0,
820
+      ids:[]
819
     }
821
     }
820
   },
822
   },
821
   methods:{
823
   methods:{
823
       window.history.go(-1);
825
       window.history.go(-1);
824
     },
826
     },
825
     handleSelectionChange(val) {
827
     handleSelectionChange(val) {
826
-      this.multipleSelection=val;
827
-      console.log('0000',this.multipleSelection);
828
+      if(val!=null && val.length>0){
829
+        for(let i=0;i<val.length;i++){
830
+          this.ids.push(val[i].id)
831
+        }
832
+      }
828
     },
833
     },
829
     open_pingfen(ids){
834
     open_pingfen(ids){
835
+      console.log("this.multipleSelection", this.ids)
836
+      if(ids ==1){
837
+        
838
+        if(this.ids.length==0){
839
+          this.$message('请选择需要打印的记录')
840
+        }
841
+         var params = {
842
+          ids:this.ids.join(","),
843
+         }
844
+         console.log("params----",params)
845
+        getPatientFallaessmentList(params).then(response=>{
846
+
847
+       })
848
+      }
849
+    
830
       if(this.multipleSelection.length==0){
850
       if(this.multipleSelection.length==0){
831
         this.$message('请选择需要打印的记录')
851
         this.$message('请选择需要打印的记录')
832
       }else{
852
       }else{

+ 9 - 1
src/xt_pages/user/templateSummary.vue View File

1833
           this.startYear = val+"-" + "31"
1833
           this.startYear = val+"-" + "31"
1834
         }else if(val == "2021-12"){
1834
         }else if(val == "2021-12"){
1835
           this.startYear = val+"-" + "31"
1835
           this.startYear = val+"-" + "31"
1836
+        }else if(val == "2024-02"){
1837
+          this.startYear = val+"-" + "29"
1836
         }else{
1838
         }else{
1837
           this.startYear = val+"-" + "30"
1839
           this.startYear = val+"-" + "30"
1838
         }
1840
         }
1839
 
1841
 
1840
-        this.lastYear = val+"-"+"01"
1842
+        if(val == "2024-02"){
1843
+          this.lastYear = val+"-"+"01"
1844
+        }else{
1845
+          this.lastYear = val+"-"+"01"
1846
+        }
1847
+
1848
+       
1841
         this.getInspectionMajor()
1849
         this.getInspectionMajor()
1842
       },
1850
       },
1843
       selectSummary(val){
1851
       selectSummary(val){

+ 13 - 13
src/xt_permission.js View File

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