28169 il y a 1 mois
Parent
révision
86e13a4ce9

+ 28 - 1
src/api/fallassement.js Voir le fichier

@@ -100,10 +100,37 @@ export function getAllNurseList(params){
100 100
   }
101 101
 
102 102
   export function savePatientHpressuresore(data){
103
-   
103
+    
104 104
     return request({
105 105
       url:"/api/patient/savepatienthpressuresore",
106 106
       method:"post",
107 107
       data:data,
108 108
     })
109
+  }
110
+
111
+  export function getPatientBedlist(params){
112
+
113
+    return request({
114
+      url:"/api/patient/getpatientbedlist",
115
+      method:"get",
116
+      params:params,
117
+    })
118
+  }
119
+
120
+  export function getPatientBedById(id,params){
121
+   
122
+    return request({
123
+      url:"/api/patient/getpatientbedbyid?id="+id,
124
+      method:"get",
125
+      params:params,
126
+    })
127
+  }
128
+
129
+  export function updateBedPatientList(data){
130
+
131
+    return request({
132
+      url:"/api/patient/updatebedpatientlist",
133
+      method:"post",
134
+      data:data
135
+    })
109 136
   }

+ 62 - 62
src/xt_pages/user/components/PatientSidebar.vue Voir le fichier

@@ -204,68 +204,68 @@ export default {
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 270
           name: '6',
271 271
           label: '文书管理',

+ 84 - 35
src/xt_pages/user/evaluationtool/OHpressuresore.vue Voir le fichier

@@ -278,7 +278,7 @@
278 278
 import PatientSidebar from '../components/PatientSidebar.vue'
279 279
 import print from 'print-js'
280 280
 import { uParseTime } from '@/utils/tools'
281
-import {getAllNurseList,savePatientHpressuresore} from '@/api/fallassement'
281
+import {getAllNurseList,savePatientHpressuresore,getPatientBedlist,getPedPatientFallAssessmentById,deletePedPatientFallassment,updateBedPatientList} from '@/api/fallassement'
282 282
 export default {
283 283
   components:{
284 284
     PatientSidebar
@@ -322,6 +322,10 @@ export default {
322 322
       dayintime:this.getTime(new Date()),//打印
323 323
       // oh_pinggr:[],
324 324
       nurseList:[],
325
+      limit:10,
326
+      page:1,
327
+      total:0,
328
+      id:0,
325 329
     }
326 330
   },
327 331
   methods:{
@@ -420,41 +424,32 @@ export default {
420 424
         this.add_show=true
421 425
         this.zsgy_open=1
422 426
         this.cancel_num=1
427
+        const data = {}
428
+        var list =[]
429
+        data['patient_id'] =  this.patientID
430
+        data['tiwei'] = this.tiwei_num
431
+        data['bingli'] = this.bingli_num
432
+        data['edema'] = this.edema_num
433
+        data['guanjie'] = this.gaunjie_num
434
+        data['oh_huli'] = this.oh_huli
435
+        data['record_date'] = this.oh_date
436
+        data['oh_appraiser'] = this.oh_appraiser
437
+        data['total'] = this.Totalpoints
438
+        list.push(data)
423 439
         var params={
424
-          patientID:this.patientID,
425
-          tiwei:this.tiwei_num,
426
-          bingli:this.bingli_num,
427
-          edema:this.edema_num,
428
-          guanjie:this.gaunjie_num,
429
-          oh_huli:this.oh_huli,
430
-          oh_date:this.oh_date,
431
-          oh_appraiser:this.oh_appraiser,
432
-          Totalpoints:this.Totalpoints
440
+          patient_id:this.patientID,
441
+          record_date:this.oh_date,
442
+          is_type:2,
443
+          list:list,
433 444
         }
434
-        console.log('params-----',params);
435
-      // savePatientHpressuresore(params).then(response=>{
445
+     
446
+      // console.log("data",data)
447
+      savePatientHpressuresore(params).then(response=>{
448
+         if(response.data.state ==1){
436 449
 
437
-      // })
438
-        // const arr={
439
-        //   id:'002',
440
-        //   date:this.oh_date,
441
-        //   mark:this.Totalpoints,
442
-        //   evaluate:this.oh_appraiser
443
-        // }
444
-        // console.log('rrrrr',arr,params);
445
-        // this.history_OH.push(arr)
446
-        // const lenOH= this.history_OH
447
-        // var nameoh=''
448
-        // for(let i=0;i<lenOH.length;i++){
449
-        //   lenOH[i].mark= this.Totalpoints
450
-        //   for(let y=0;y<this.oh_pinggr.length;y++){
451
-        //     if(this.oh_appraiser==this.oh_pinggr[y].id){
452
-        //       nameoh=this.oh_pinggr[y].label
453
-        //     }
454
-        //   }
455
-        //   lenOH[i].evaluate= nameoh
456
-        // }
457
-        // return this.cancel_num
450
+         }
451
+      })
452
+        // console.log('params-----',params);
458 453
       }
459 454
     },
460 455
     //编辑
@@ -463,10 +458,19 @@ export default {
463 458
       this.zsgy_open=0
464 459
       this.baocun_open=1
465 460
       this.cancel_num=1
461
+      getPedPatientFallAssessmentById(this.id).then(response=>{
462
+        if(response.data.state ==1){
463
+
464
+        }
465
+      })
466 466
     },
467 467
     // 选择需要删除的记录
468 468
     dele_click(row, column, event){
469 469
       this.dele_id=row.id
470
+      //row.id 为 选中当前行的id
471
+      deletePedPatientFallassment(row.id).then(response=>{
472
+
473
+      })
470 474
     },
471 475
     //删除
472 476
     dele_OH(){
@@ -556,14 +560,59 @@ export default {
556 560
           this.nurseList =nurseList
557 561
         }
558 562
     })
559
-  },
563
+   },
564
+   getlist(){
565
+      var params = {
566
+        patient_id:this.patientID,
567
+        limit:this.limit,
568
+        page:this.page,
569
+      }
570
+    getPatientBedlist(params).then(response=>{
571
+       if(response.data.state ==1){
572
+         var list = response.data.data.list
573
+         var total = response.data.data.total
574
+       }
575
+    })
576
+   },
577
+   updateBedPatientList(){
578
+    const data = {}
579
+    var list =[]
580
+    data['patient_id'] =  this.patientID
581
+    data['tiwei'] = this.tiwei_num
582
+    data['bingli'] = this.bingli_num
583
+    data['edema'] = this.edema_num
584
+    data['guanjie'] = this.gaunjie_num
585
+    data['oh_huli'] = this.oh_huli
586
+    data['record_date'] = this.oh_date
587
+    data['oh_appraiser'] = this.oh_appraiser
588
+    data['total'] = this.Totalpoints
589
+    list.push(data)
590
+    var params={
591
+      patient_id:this.patientID,
592
+      record_date:this.oh_date,
593
+      is_type:2,
594
+      list:list,
595
+      id:this.id,//选中当前行的id
596
+    }
597
+    updateBedPatientList(params).then(response=>{
598
+      if(response.data.state ==1){
599
+        var pedFallssessment =  response.data.data.pedFallssessment
600
+        this.$message.success("保存成功")
601
+      }
602
+    })
603
+   }
604
+
560 605
   },
561 606
   computed:{
562 607
     Totalpoints(){
563 608
       return this.gaunjie_num*1 + this.edema_num*1 + this.bingli_num*1 + this.tiwei_num*1
564 609
     }
565 610
   },
566
- 
611
+ created(){
612
+  const id = this.$route.params && this.$route.params.id
613
+  this.patientID = parseInt(id)
614
+  this.getlist()
615
+ }
567 616
 }
568 617
 </script>
569 618
 <style lang="scss" scoped>