|
@@ -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>
|