28169 4 settimane fa
parent
commit
8b33b4b170

+ 74 - 0
src/api/fallassement.js Vedi File

@@ -143,3 +143,77 @@ export function getAllNurseList(params){
143 143
       data:data
144 144
     })
145 145
   }
146
+
147
+
148
+  export function getPatientFallaessmentListByIds(params){
149
+   
150
+    return request({
151
+      url:"/api/patient/getpatientfallaessmentlistbyids",
152
+      method:"get",
153
+      params:params
154
+    })
155
+  }
156
+
157
+
158
+  export function getPatientFallaessmentListOne(params){
159
+  
160
+    return request({
161
+      url:"/api/patient/getpatientfallaessmentlistone",
162
+      method:"get",
163
+      params:params
164
+    })
165
+  }
166
+
167
+  export function savePatientBraden(data){
168
+    
169
+    return request({
170
+      url:"/api/patient/savepatientbraden",
171
+      method:"post",
172
+      data:data,
173
+    })
174
+  }
175
+
176
+  export function getPatientBradenlist(params){
177
+    
178
+    return request({
179
+      url:"/api/patient/getpatientbradenlist",
180
+      method:"get",
181
+      params:params
182
+    })
183
+  }
184
+
185
+  export function getPatientBradenById(id,params){
186
+   
187
+    return request({
188
+      url:"/api/patient/getpatientbradenbyid?id="+id,
189
+      method:"get",
190
+      params:params
191
+    })
192
+  }
193
+
194
+  export function updatePatientBraden(data){
195
+   
196
+    return request({
197
+      url:"/api/patient/updatepatientbraden",
198
+      method:"post",
199
+      data:data,
200
+    })
201
+  }
202
+
203
+  export function deletePatientBraden(id,params){
204
+  
205
+    return request({
206
+      url:"/api/patient/deletepatientbraden?id="+id,
207
+      method:"Get",
208
+      params:params,
209
+    })
210
+  }
211
+
212
+  export function getBatchPatientBraden(ids,patinet_id,params){
213
+   
214
+    return request({
215
+      url:"/api/patient/getbatchpatientbraden?ids="+ids+"&patient_id="+patinet_id,
216
+      method:"get",
217
+      params:params,
218
+    })
219
+  }

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

@@ -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: '文书管理',

+ 5 - 5
src/xt_pages/user/evaluationtool/Fallassessment.vue Vedi File

@@ -358,7 +358,7 @@
358 358
                                 <td>
359 359
                                   <div class="xiaojige">
360 360
                                     <label>
361
-                                      <input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item.contentOne }}
361
+                                      <input type="checkbox" name="ball" value="volleyball" v-model="item.is_content_check_one"/>&nbsp;{{ item.contentOne }}
362 362
                                     </label><br>
363 363
 
364 364
                                   </div>
@@ -581,9 +581,9 @@
581 581
       handleCheckedCitiesChange(e){
582 582
         console.log("eeeeeeeee",e)
583 583
         var ball = e.target.value
584
-        console.log("ball------------",ball)
584
+      
585 585
         var jiequ =(ball.split('(')[1].split('分')[0]) * 1
586
-        console.log("jiequ-----------",jiequ)
586
+      
587 587
         if(e.target.checked==true){
588 588
           this.tumble_Totalpoints=this.tumble_Totalpoints + jiequ
589 589
           return this.tumble_Totalpoints
@@ -606,8 +606,8 @@
606 606
         this.centerDialogVisibleOne = true
607 607
       },
608 608
       saveCenterDialogVisibleOne(){
609
-        var obj = {is_content_check_one:false,content:"",is_status:2}
610
-        obj.content = this.contentOne
609
+        var obj = {is_content_check_one:false,contentOne:"",is_status:2}
610
+        obj.contentOne = this.contentOne
611 611
         this.listOne.push(obj)
612 612
         this.centerDialogVisibleOne= false
613 613
       },

+ 188 - 47
src/xt_pages/user/evaluationtool/pressuresore.vue Vedi File

@@ -162,6 +162,14 @@
162 162
                   <tbody>
163 163
                     <tr>
164 164
                       <td rowspan="6" style="position: relative;vertical-align: top;">
165
+                        <div class="jiange">
166
+                          <label><input name="ball" type="checkbox" v-model="first_check"/>&nbsp;挂床头警示标识</label></br>
167
+                          <label><input name="ball" type="checkbox" v-model="two_check"/>&nbsp;保护受压皮肤,使用减压用具(气垫床/压疮床)</label></br>
168
+                          <label><input name="ball" type="checkbox" v-model="three_check"/>&nbsp;定时翻身,移动避免拖拉</label></br>
169
+                          <label><input name="ball" type="checkbox" v-model="four_check"/>&nbsp;加强营养</label></br>
170
+                          <label><input name="ball" type="checkbox" v-model="five_check"/>&nbsp;保持被衣物清洁舒适</label></br>
171
+                          <label><input name="ball" type="checkbox" v-model="six_check"/>&nbsp;其他</label></br>
172
+                        </div>
165 173
                         <div class="jiange" v-for="item in hulicuoshi" >
166 174
                           <label><input name="ball" type="checkbox" v-model="item.is_check" @click="huli_check(item)" />&nbsp;{{ item.label }}</label>
167 175
                         </div>
@@ -228,10 +236,10 @@
228 236
                   <td class="start">
229 237
                     <el-select v-model="duty" placeholder="请选择" style="width:120px;">
230 238
                         <el-option
231
-                          v-for="item in dutyoptions"
232
-                          :key="item.id"
233
-                          :label="item.label"
234
-                          :value="item.id"
239
+                          v-for="item in nurseList"
240
+                          :key="item.admin_user_id"
241
+                          :label="item.user_name"
242
+                          :value="item.admin_user_id"
235 243
                           >
236 244
                         </el-option>
237 245
                     </el-select>
@@ -261,11 +269,10 @@
261 269
             <div class="zhuangui">
262 270
               <span>转归:</span>
263 271
               <div style="display: inline-block;position: relative;top: 0px;">
264
-                <!-- <el-checkbox-group v-model="checkList">
265
-                  <el-checkbox v-for="item in zhuangui" :label="item.value" :key="item.id" :value="item.id"></el-checkbox>
266
-                </el-checkbox-group> -->
267
-                <span v-for="item in zhuangui" style="display: inline-block;margin-right: 10px;">
268
-                  <label><input type="checkbox" v-model="item.is_check" @click="zhuangcheck(item)" />{{ item.value }}</label>
272
+                <span style="display: inline-block;margin-right: 10px;">
273
+                  <label><input type="checkbox" v-model="first_lapeso"/>出院</label>
274
+                  <label><input type="checkbox" v-model="two_lapeso" />死亡</label>
275
+                  <label><input type="checkbox" v-model="three_lapeso"/>其他</label>
269 276
                 </span>
270 277
               </div>
271 278
             </div>
@@ -289,14 +296,7 @@
289 296
               <div class="zhuangui">
290 297
                 <p style="display: inline-block; margin-right: 30px;">
291 298
                     护士长签字:
292
-                    <el-select v-model="nurse" placeholder="请选择" style="width: 120px;">
293
-                        <el-option
294
-                        v-for="item in nurse_options"
295
-                        :key="item.value"
296
-                        :label="item.label"
297
-                        :value="item.value">
298
-                        </el-option>
299
-                    </el-select>
299
+                    <el-input v-model="nurse" style="width:120px;"></el-input>
300 300
                 </p>
301 301
                 <p style="display: inline-block;">
302 302
                     日期:
@@ -347,7 +347,7 @@
347 347
 <script>
348 348
 import PatientSidebar from '../components/PatientSidebar'
349 349
 import { uParseTime } from '@/utils/tools'
350
-import {getAllNurseList,savePatientHpressuresore } from '@/api/fallassement'
350
+import {getAllNurseList,savePatientBraden } from '@/api/fallassement'
351 351
 export default {
352 352
    components:{
353 353
     PatientSidebar
@@ -371,7 +371,7 @@ export default {
371 371
       date:this.getTime(new Date()),
372 372
       huli_value:'',
373 373
       family_date:this.getTime(new Date()),
374
-      dutyoptions:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
374
+      dutyoptions:[],
375 375
       duty:'',
376 376
       family_member:'',
377 377
       appraiser:'',
@@ -380,12 +380,19 @@ export default {
380 380
       nurse_options:[],
381 381
       nurse_date:this.getTime(new Date()),
382 382
       hulicheckarr:[],//护理措施选中
383
-      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:5,label:'保持被衣物清洁舒适',hulicheck:0,is_check:false},{id:6,label:'其他',hulicheck:0,is_check:false}],
383
+      hulicuoshi:[],
386 384
       nurseList:[],
387 385
       zhuang_show:'',
388 386
       Patient_info:{name:'',dialysis_no:''},
387
+      first_check:false,
388
+      two_check:false,
389
+      three_check:false,
390
+      four_check:false,
391
+      five_check:false,
392
+      six_check:false,
393
+      first_lapeso:"",
394
+      two_lapeso:"",
395
+      three_lapeso:"",
389 396
     }
390 397
    },
391 398
    methods:{
@@ -428,8 +435,8 @@ export default {
428 435
     yachaunghistory(){
429 436
       this.$router.push({
430 437
         path: '/patients/Pressure_history',
431
-        query:{patient_id:this.patientID,
432
-              Patient_info:this.Patient_info}
438
+        query:{patient_id:this.patientID
439
+        }
433 440
       })
434 441
     },
435 442
     // 转归
@@ -468,34 +475,168 @@ export default {
468 475
     },
469 476
     // 确认
470 477
     Pressuresore(){
471
-      const data = {}
472
-      var list = []
473
-      data['date'] = this.date
474
-      data['ganzhi'] = this.ganzhi
475
-      data['shidu'] = this.shidu
476
-      data['huodong'] = this.huodong
477
-      data['yidong'] = this.yidong
478
-      data['yingyang'] = this.yingyang
479
-      data['mocha'] = this.mocha
480
-      data['mark'] = this.mark
481
-      data['duty'] = this.duty
482
-      data['jiashu'] = this.family_member
483
-      data['jiashu_date'] = this.family_date
484
-      data['appraiser'] = this.appraiser
485
-      data['pingg_date'] = this.appraiser_date
486
-      data['nurse'] = this.nurse
487
-      data['nurse_date'] = this.nurse_date
488
-      data['zhuang_show'] = this.zhuang_show
489
-      data['hulicuoshi'] = this.hulicheckarr
490
-      list.push(data)
478
+      
479
+       var is_first_lapeso= 2
480
+       if(this.first_lapeso == true){
481
+           is_first_lapeso =1
482
+       }
483
+       if(this.first_lapeso == false){
484
+           is_first_lapeso =2
485
+       }
486
+
487
+       var is_two_lapeso= 2
488
+       if(this.two_lapeso == true){
489
+          is_two_lapeso =1
490
+       }
491
+       if(this.two_lapeso == false){
492
+          is_two_lapeso =2
493
+       }
494
+
495
+       var is_three_lapeso = 2
496
+       if(this.three_lapeso == true){
497
+          is_three_lapeso =1
498
+       }
499
+       if(this.three_lapeso == false){
500
+         is_three_lapeso =2
501
+       }
502
+
503
+
504
+       var is_first_check =2
505
+
506
+       if(this.first_check == true){
507
+          is_first_check = 1
508
+       }else{
509
+        is_first_check =2
510
+       }
511
+
512
+       var is_two_check =2
513
+       if(this.two_check == true){
514
+          is_two_check = 1
515
+       }else{
516
+          is_two_check =2
517
+       }
518
+
519
+       var is_three_check =2
520
+       if(this.three_check == true){
521
+          is_three_check = 1
522
+       }else{
523
+         is_three_check =2
524
+       }
525
+
526
+       var is_four_check =2
527
+       if(this.four_check == true){
528
+          is_four_check = 1
529
+       }else{
530
+         is_four_check =2
531
+       }
532
+
533
+       var is_five_check =2
534
+       if(this.five_check == true){
535
+          is_five_check = 1
536
+       }else{
537
+         is_first_check =2
538
+       }
539
+
540
+       var is_six_check =2
541
+       if(this.six_check == true){
542
+          is_six_check = 1
543
+       }else{
544
+         is_six_check =2
545
+       }
546
+
547
+      if(this.hulicuoshi!=null && this.hulicuoshi.length>0){
548
+         for(let i=0;i<this.hulicuoshi.length;i++){
549
+           this.hulicuoshi[i].is_check_status=2
550
+           if(this.hulicuoshi[i].is_check == true){
551
+            this.hulicuoshi[i].is_check_status=1
552
+           }
553
+           if(this.hulicuoshi[i].is_check == false){
554
+            this.hulicuoshi[i].is_check_status=2
555
+           }
556
+         }
557
+      } 
558
+
559
+      if(this.ganzhi>0){
560
+        this.ganzhi = parseInt(this.ganzhi)
561
+      }else{
562
+        this.ganzhi =0
563
+      }
564
+
565
+      if(this.shidu>0){
566
+        this.shidu = parseInt(this.shidu)
567
+      }else{
568
+        this.shidu =0
569
+      }
570
+
571
+      if(this.huodong>0){
572
+        this.huodong = parseInt(this.huodong)
573
+      }else{
574
+        this.huodong =0
575
+      }
576
+
577
+      if(this.yidong>0){
578
+        this.yidong = parseInt(this.yidong)
579
+      }else{
580
+        this.yidong =0
581
+      }
582
+
583
+      if(this.yingyang>0){
584
+        this.yingyang = parseInt(this.yingyang)
585
+      }else{
586
+        this.yingyang =0
587
+      }
588
+
589
+
590
+      if(this.mocha>0){
591
+        this.mocha = parseInt(this.mocha)
592
+      }else{
593
+        this.mocha =0
594
+      }
595
+      var obj = {}
596
+      var newArr =[]
597
+      console.log("护理措施",this.hulicuoshi)
598
+      if(this.hulicuoshi!=null && this.hulicuoshi.length>0){
599
+        for(let i=0;i<this.hulicuoshi.length;i++){
600
+           obj.hulicheck = this.hulicuoshi[i].is_check
601
+           obj.is_check = this.hulicuoshi[i].is_check
602
+           obj.is_check_status = this.hulicuoshi[i].is_check_status
603
+           obj.label = this.hulicuoshi[i].label
604
+           newArr.push(obj)
605
+        }
606
+      }
607
+      console.log("hhahha",this.hulicuoshi)
608
+      var strarr = JSON.stringify(this.hulicuoshi)
491 609
       var params={
492 610
         patient_id:this.patientID,
493 611
         record_date:this.date,
494
-        is_type:1,
495
-        list:list,
612
+        list:newArr,
613
+        first_pingfen:this.ganzhi,
614
+        two_pingfen:this.shidu,
615
+        three_pingfen:this.huodong,
616
+        four_pingfen:this.yidong,
617
+        five_pingfen:this.yingyang,
618
+        six_pingfen:this.mocha,
619
+        total:this.mark,
620
+        admin_user_id:this.duty,
621
+        famaliy_sign:this.family_member,
622
+        first_lapeso:is_first_lapeso,
623
+        two_lapeso:is_two_lapeso,
624
+        three_lapeso:is_three_lapeso,
625
+        ping_sign:this.appraiser,
626
+        ping_date:this.appraiser_date,
627
+        leader_sign:this.nurse,
628
+        leader_date:this.nurse_date,
629
+        list:strarr,
630
+        first_check:is_first_check,
631
+        two_check:is_two_check,
632
+        three_check:is_three_check,
633
+        four_check:is_four_check,
634
+        five_check:is_five_check,
635
+        six_check:is_six_check
496 636
       }
497 637
       console.log('params----',params);
498
-      savePatientHpressuresore(params).then(response=>{
638
+     
639
+      savePatientBraden(params).then(response=>{
499 640
         if(response.data.state == 1){
500 641
           const save = response.data.data.pedFallssessment
501 642
           console.log('pedFallssessment',save);

+ 476 - 234
src/xt_pages/user/history/Pressure_history.vue Vedi File

@@ -30,61 +30,50 @@
30 30
             width="55"
31 31
             align="center">
32 32
           </el-table-column>
33
-          <el-table-column
34
-            prop="time"
35
-            label="评估日期"
36
-            width=""
37
-            align="center">
33
+          <el-table-column prop="time" label="评估日期" width="" align="center">
34
+             <template slot-scope="scope">
35
+              {{ getTime(scope.row.record_date) }}
36
+             </template>
38 37
           </el-table-column>
39
-          <el-table-column
40
-            prop="ganzhi"
41
-            label="感知"
42
-            width=""
43
-            align="center">
38
+          <el-table-column prop="ganzhi"  label="感知" width="" align="center">
39
+            <template slot-scope="scope">
40
+              {{ scope.row.first_pingfen }}
41
+             </template>
44 42
           </el-table-column>
45
-          <el-table-column
46
-            prop="shidu"
47
-            label="潮湿"
48
-            width=""
49
-            align="center">
43
+          <el-table-column prop="shidu" label="潮湿" width="" align="center">
44
+            <template slot-scope="scope">
45
+              {{ scope.row.two_pingfen }}
46
+             </template>
50 47
           </el-table-column>
51
-          <el-table-column
52
-            prop="huodong"
53
-            label="活动能力"
54
-            width=""
55
-            align="center">
56
-
48
+          <el-table-column prop="huodong" label="活动能力" width="" align="center">
49
+            <template slot-scope="scope">
50
+              {{ scope.row.three_pingfen }}
51
+             </template>
57 52
           </el-table-column>
58
-          <el-table-column
59
-            prop="yidong"
60
-            label="移动能力"
61
-            width=""
62
-            align="center">
53
+          <el-table-column prop="yidong" label="移动能力" width=""  align="center">
54
+            <template slot-scope="scope">
55
+              {{ scope.row.four_pingfen }}
56
+             </template>
63 57
           </el-table-column>
64
-          <el-table-column
65
-            prop="yingyang"
66
-            label="营养"
67
-            width=""
68
-            align="center">
58
+          <el-table-column prop="yingyang" label="营养" width="" align="center">
59
+            <template slot-scope="scope">
60
+              {{ scope.row.five_pingfen }}
61
+             </template>
69 62
           </el-table-column>
70
-          <el-table-column
71
-            prop="mocha"
72
-            label="摩擦力与剪切力"
73
-            width=""
74
-            align="center">
75
-
63
+          <el-table-column prop="mocha" label="摩擦力与剪切力" width="" align="center">
64
+            <template slot-scope="scope">
65
+              {{ scope.row.six_pingfen }}
66
+             </template>
76 67
           </el-table-column>
77
-          <el-table-column
78
-            prop="mark"
79
-            label="总分"
80
-            width=""
81
-            align="center">
68
+          <el-table-column prop="mark" label="总分"  width="" align="center">
69
+            <template slot-scope="scope">
70
+              {{ scope.row.total }}
71
+             </template>
82 72
           </el-table-column>
83
-          <el-table-column
84
-            prop="evaluate"
85
-            label="评分护士"
86
-            width=""
87
-            align="center">
73
+          <el-table-column prop="evaluate" label="评分护士" width="" align="center">
74
+            <template slot-scope="scope">
75
+              {{ getAdminName(scope.row.admin_user_id) }}
76
+             </template>
88 77
           </el-table-column>
89 78
           <el-table-column
90 79
             prop="address"
@@ -98,6 +87,16 @@
98 87
             </template>
99 88
           </el-table-column>
100 89
         </el-table>
90
+        <el-pagination
91
+          @size-change="handleSizeChange"
92
+          @current-change="handleCurrentChange"
93
+          :page-sizes="[10, 20, 50, 100]"
94
+          :page-size="10"
95
+          background
96
+          style="margin-top:20px;float: right"
97
+          layout="total, sizes, prev, pager, next, jumper"
98
+          :total="total"
99
+      ></el-pagination>
101 100
       </div>
102 101
     </div>
103 102
 
@@ -117,8 +116,8 @@
117 116
             <div style="width:100%;margin-top: 20px;">
118 117
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
119 118
               <div style="margin-top: 20px;font-size: 16px;">
120
-                <span>患者姓名:{{Patient_info.name}}</span>&nbsp;&nbsp;
121
-                <span>透析号:{{Patient_info.dialysis_no}}</span>&nbsp;&nbsp;
119
+                <span>患者姓名:{{patients.name}}</span>&nbsp;&nbsp;
120
+                <span>透析号:{{patients.dialysis_no}}</span>&nbsp;&nbsp;
122 121
                 <span>打印时间:{{dayin}}</span>
123 122
               </div>
124 123
               <table class="tables" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
@@ -133,16 +132,16 @@
133 132
                   <td style="width:100px">总分</td>
134 133
                   <td style="width:100px">评估护士</td>
135 134
                 </tr>
136
-                <tr v-for="item in multipleSelection" >
137
-                  <td>{{item.time}}</td>
138
-                  <td>{{item.ganzhi}}</td>
139
-                  <td>{{item.shidu}}</td>
140
-                  <td>{{item.huodong}}</td>
141
-                  <td>{{item.yidong}}</td>
142
-                  <td>{{item.yingyang}}</td>
143
-                  <td>{{item.mocha}}</td>
144
-                  <td>{{item.mark}}</td>
145
-                  <td>{{item.evaluate}}</td>
135
+                <tr v-for="(item,index) in tablePrint" :key="index">
136
+                  <td>{{getTime(item.record_date)}}</td>
137
+                  <td>{{item.first_pingfen}}</td>
138
+                  <td>{{item.two_pingfen}}</td>
139
+                  <td>{{item.three_pingfen}}</td>
140
+                  <td>{{item.four_pingfen}}</td>
141
+                  <td>{{item.five_pingfen}}</td>
142
+                  <td>{{item.six_pingfen}}</td>
143
+                  <td>{{item.total}}</td>
144
+                  <td>{{getAdminName(item.admin_user_id)}}</td>
146 145
                 </tr>
147 146
               </table>
148 147
             </div>
@@ -166,15 +165,15 @@
166 165
         </div>
167 166
 
168 167
         <div id="mingxi" >
169
-          <div class="diedao_content" style="page-break-after: always;" v-for="items in multipleSelection">
170
-            <div style="width:100%;margin-top: 20px;">
168
+          <div class="diedao_content" style="page-break-after: always;"  v-for="(items,i) in tablePrint" :key="i">
169
+            <div style="width:100%;margin-top: 20px;" >
171 170
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
172 171
               <div style="margin-top: 20px;font-size: 16px;">
173
-                <span>患者姓名:{{Patient_info.name}}</span>&nbsp;&nbsp;
174
-                <span>透析号:{{Patient_info.dialysis_no}}</span>&nbsp;&nbsp;
175
-                <span>评估日期:{{items.time}}</span>&nbsp;&nbsp;
176
-                <span>责任护士:{{items.evaluate}}</span>&nbsp;&nbsp;
177
-                <span>评分:{{items.mark}}</span>
172
+                <span>患者姓名:{{patients.name}}</span>&nbsp;&nbsp;
173
+                <span>透析号:{{patients.dialysis_no}}</span>&nbsp;&nbsp;
174
+                <span>评估日期:{{getTime(items.record_date)}}</span>&nbsp;&nbsp;
175
+                <span>责任护士:{{getAdminName(items.admin_user_id)}}</span>&nbsp;&nbsp;
176
+                <span>评分:{{items.total}}</span>
178 177
               </div>
179 178
               <table class="tables" id="table" border="1" style="width: 100%;border-collapse: collapse;">
180 179
                 <thead>
@@ -208,7 +207,7 @@
208 207
                     <td>
209 208
                       没有改变<br>对其讲话有反应,机体没有对疼痛或不适的感觉确失
210 209
                     </td>
211
-                    <td>{{items.ganzhi}}</td>
210
+                    <td>{{items.first_pingfen}}</td>
212 211
                   </tr>
213 212
                   <tr class="bg_color start">
214 213
                     <td class="start">
@@ -227,7 +226,7 @@
227 226
                     <td>
228 227
                       很少潮湿<br>皮肤通常是干的,只是按照常规换床单即可
229 228
                     </td>
230
-                    <td>{{items.shidu}}</td>
229
+                    <td>{{items.two_pingfen}}</td>
231 230
                   </tr>
232 231
                   <tr class="start">
233 232
                     <td>
@@ -246,7 +245,7 @@
246 245
                     <td>
247 246
                       经常步行<br>每天至少2次室外行走,白天醒着的时候至少每2h行走一次
248 247
                     </td>
249
-                    <td>{{items.huodong}}</td>
248
+                    <td>{{items.three_pingfen}}</td>
250 249
                   </tr>
251 250
                   <tr class="bg_color start">
252 251
                     <td>
@@ -265,7 +264,7 @@
265 264
                     <td>
266 265
                       不受限<br>能经常独立地改变躯体或四肢的位置,但变动幅度不大
267 266
                     </td>
268
-                    <td>{{items.yidong}}</td>
267
+                    <td>{{items.four_pingfen}}</td>
269 268
                   </tr>
270 269
                   <tr class="start">
271 270
                     <td>
@@ -287,7 +286,7 @@
287 286
                     <td>
288 287
                       营养摄入良好<br>每餐能摄入绝大部分食物从来不拒绝食物,通常吃4份或更多的肉和乳制品,两餐间偶尔进食。不需要其他补充食物
289 288
                     </td>
290
-                    <td>{{items.yingyang}}</td>
289
+                    <td>{{items.five_pingfen}}</td>
291 290
                   </tr>
292 291
                   <tr class="bg_color start">
293 292
                     <td>
@@ -306,52 +305,53 @@
306 305
                       能独立在床上或椅子上移动,并且有足够的肌肉力量在移动时完全抬空躯体。在床上和椅子上总是保持良好的位置
307 306
                     </td>
308 307
                     <td></td>
309
-                    <td>{{items.mocha}}</td>
308
+                    <td>{{items.six_pingfen}}</td>
310 309
                   </tr>
311 310
                 </tbody>
312 311
               </table>
313 312
             </div>
314
-            <div style="font-size: 16px;margin-bottom:20px">护理措施:{{gethuli(items.hulicuoshi)}}</div>
313
+            <div style="font-size: 16px;margin-bottom:20px">护理措施:{{items.text}}{{items.text_one}}</div>
315 314
             <p style="margin: 10px 0;">说明:总分23分,15~18分为低危;13~14分为中危;10~12分为高危;≤9分为极高危</p>
316 315
             <div style="margin-bottom: 20px;">
317 316
               <p>患者知情同意书:我对住院期间发生导管脱落的风险及预防措施已知晓,并给予配合。</p>
318 317
               <div class="zhuangui">
319 318
                   <p style="display: inline-block; margin-right: 70px;">
320 319
                     患者/家属签字:
321
-                    <span style="display: inline-block; border-bottom: 1px solid black;width: 50px;">{{items.jiashu}}</span>
320
+                    <span style="display: inline-block; border-bottom: 1px solid black;width: 50px;">{{items.famaliy_sign}}</span>
322 321
                   </p>
323 322
                   <p style="display: inline-block;">
324 323
                     日期:
325
-                    <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{items.jiashu_date}}</span>
324
+                    <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{getTime(items.record_date)}}</span>
326 325
                   </p>
327 326
               </div>
328 327
               <div class="zhuangui">
329 328
                 <span>转归:</span>
330 329
                 <div style="display: inline-block;position: relative;top: 0px;">
331
-                  <div class="jiange" v-for="item in zhuangui" style="display: inline-block;margin-right: 10px;">
332
-                    <label><input type="checkbox" :checked="item.id ==items.zhuang_show ? true: false" @click="zhuangcheck(item)" />&nbsp;{{item.value}}</label>
330
+                  <div class="jiange" style="display: inline-block;margin-right: 10px;">
331
+                    <label><input type="checkbox" v-model="items.first_lapeso == 1"/>出院</label>
332
+                    <label><input type="checkbox" v-model="items.two_lapeso == 1" />死亡</label>
333
+                    <label><input type="checkbox" v-model="items.three_lapeso ==1"/>其他</label>
333 334
                   </div>
334 335
                 </div>
335 336
               </div>
336 337
               <div class="zhuangui">
337 338
                   <p style="display: inline-block; margin-right: 30px;">
338 339
                       评估人签字:
339
-                      <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{items.appraiser}}</span>
340
+                      <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{items.ping_sign}}</span>
340 341
                   </p>
341 342
                   <p style="display: inline-block;">
342 343
                       日期:
343
-                      <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{items.pingg_date}}</span>
344
+                      <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{getTime(items.ping_date)}}</span>
344 345
                   </p>
345 346
               </div>
346 347
               <div class="content_top">
347 348
                 <div class="zhuangui">
348 349
                   <p style="display: inline-block; margin-right: 30px;">
349
-                      护士长签字:
350
-                      <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{items.nurse}}</span>
350
+                      护士长签字:{{items.leader_sign}}
351 351
                   </p>
352 352
                   <p style="display: inline-block;">
353 353
                       日期:
354
-                      <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{items.nurse_date}}</span>
354
+                      <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{getTime(items.leader_date)}}</span>
355 355
                   </p>
356 356
                 </div>
357 357
               </div>
@@ -365,7 +365,7 @@
365 365
     </el-dialog>
366 366
     <!-- 编辑 -->
367 367
     <el-dialog
368
-      title="提示"
368
+      title="编辑"
369 369
       :visible.sync="editor_dialogVisible"
370 370
       width="67%"
371 371
       >
@@ -522,6 +522,12 @@
522 522
                   <tbody>
523 523
                     <tr>
524 524
                       <td rowspan="6" style="position: relative;vertical-align: top;">
525
+                        <label><input name="ball" type="checkbox" v-model="first_check"/>&nbsp;挂床头警示标识</label></br>
526
+                        <label><input name="ball" type="checkbox" v-model="two_check"/>&nbsp;保护受压皮肤,使用减压用具(气垫床/压疮床)</label></br>
527
+                        <label><input name="ball" type="checkbox" v-model="three_check"/>&nbsp;定时翻身,移动避免拖拉</label></br>
528
+                        <label><input name="ball" type="checkbox" v-model="four_check"/>&nbsp;加强营养</label></br>
529
+                        <label><input name="ball" type="checkbox" v-model="five_check"/>&nbsp;保持被衣物清洁舒适</label></br>
530
+                        <label><input name="ball" type="checkbox" v-model="six_check"/>&nbsp;其他</label></br>
525 531
                         <div class="jiange" v-for="item in hulicuoshi" >
526 532
                           <label><input name="ball" type="checkbox" v-model="item.is_check" @click="huli_check(item)" value="football" />&nbsp;{{ item.label }}</label>
527 533
                         </div>
@@ -588,9 +594,9 @@
588 594
                     <el-select v-model="duty" placeholder="请选择" style="width:120px;">
589 595
                         <el-option
590 596
                           v-for="item in dutyoptions"
591
-                          :key="item.id"
592
-                          :label="item.label"
593
-                          :value="item.id"
597
+                          :key="item.admin_user_id"
598
+                          :label="item.user_name"
599
+                          :value="item.admin_user_id"
594 600
                           >
595 601
                         </el-option>
596 602
                     </el-select>
@@ -620,8 +626,10 @@
620 626
           <div class="zhuangui">
621 627
             <span>转归:</span>
622 628
             <div style="display: inline-block;position: relative;top: 0px;">
623
-              <span v-for="item in zhuangui" style="display: inline-block;margin-right: 10px;">
624
-                <label><input type="checkbox" v-model="item.is_check" @click="zhuangcheck(item)" />{{ item.value }}</label>
629
+              <span style="display: inline-block;margin-right: 10px;">
630
+                <label><input type="checkbox" v-model="first_lapeso"/>出院</label>
631
+                <label><input type="checkbox" v-model="two_lapeso" />死亡</label>
632
+                <label><input type="checkbox" v-model="three_lapeso"/>其他</label>
625 633
               </span>
626 634
             </div>
627 635
           </div>
@@ -704,8 +712,8 @@
704 712
 <script>
705 713
 import print from 'print-js'
706 714
 import { uParseTime } from '@/utils/tools'
707
-import {getAllNurseList,savePatientHpressuresore,getPatientBedlist,getPedPatientFallAssessmentById,
708
-  deletePedPatientFallassment,updateBedPatientList} from '@/api/fallassement'
715
+import {getAllNurseList,savePatientHpressuresore,getPatientBedlist,
716
+  deletePedPatientFallassment,updatePatientBraden,getPatientBradenlist,getPatientBradenById,deletePatientBraden,getBatchPatientBraden} from '@/api/fallassement'
709 717
 export default{
710 718
   data(){
711 719
     return{
@@ -733,7 +741,7 @@ export default{
733 741
       date:this.getTime(new Date()),
734 742
       huli_value:'',
735 743
       family_date:this.getTime(new Date()),
736
-      dutyoptions:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
744
+      dutyoptions:[],
737 745
       duty:'',
738 746
       family_member:'',
739 747
       appraiser:'',
@@ -750,33 +758,112 @@ export default{
750 758
       zhuang_show:'',//转归
751 759
       press_zong:0,
752 760
       row_id:0,
761
+      roleList:[],
753 762
       dayin:this.getTime2(new Date()),
754
-      hulicuoshi:[{id:1,label:'挂床头警示标识',hulicheck:0,is_check:false},{id:2,label:'保护受压皮肤,使用减压用具(气垫床/压疮床)',hulicheck:0,is_check:false},
755
-      {id:3,label:'定时翻身,移动避免拖拉',hulicheck:0,is_check:false},{id:4,label:'加强营养',hulicheck:0,is_check:false},
756
-      {id:5,label:'保持被衣物清洁舒适',hulicheck:0,is_check:false},{id:6,label:'其他',hulicheck:0,is_check:false}],
763
+      hulicuoshi:[],
764
+      total:0,
765
+      first_lapeso:"",
766
+      two_lapeso:"",
767
+      three_lapeso:"",
768
+      first_check:"",
769
+      two_check:"",
770
+      three_check:"",
771
+      four_check:"",
772
+      five_check:"",
773
+      six_check:"",
774
+      id:0,
775
+      ids:[],
776
+      tablePrint:[],
777
+      patients:{}
757 778
     }
758 779
   },
759 780
   created(){
760
-    this.patient_id = this.$route.query.patient_id
761
-    this.Patient_info = this.$route.query.Patient_info
781
+    const id = this.$route.query.patient_id
782
+    console.log("id",id)
783
+    this.patientID = parseInt(id)
784
+    
762 785
     this.getlist()
763 786
   },
764 787
   methods:{
788
+    getAdminName(admin_user_id){
789
+      var user_name =""
790
+      for(let i=0;i<this.roleList.length;i++){
791
+        if(admin_user_id == this.roleList[i].admin_user_id){
792
+          user_name = this.roleList[i].user_name
793
+        } 
794
+      }
795
+      return user_name
796
+    },
797
+    handleSizeChange(limit){
798
+      this.limit = limit
799
+      this.getlist()
800
+    },
801
+    handleCurrentChange(page){
802
+      this.page = page;
803
+      this.getlist();
804
+    },
765 805
     // 返回
766 806
     fanhui(){
767 807
       window.history.go(-1);
768 808
     },
769 809
     // 选中条数
770 810
     handleSelectionChange(val) {
811
+      console.log("val23323232",val)
771 812
       this.multipleSelection = val;
772
-      console.log('val',val);
813
+      if(val!=null && val.length>0){
814
+        for(let i=0;i<val.length;i++){
815
+          this.ids.push(val[i].id)
816
+        }
817
+      }
773 818
     },
774 819
     // 评分弹窗
775 820
     open_pingfen(){
776 821
       if(this.multipleSelection.length==0){
777 822
         this.$message('至少选择一条数据')
778 823
       }else{
779
-        this.dialogVisible=true
824
+        var ids =this.ids.join(",")
825
+        var patient_id = this.patientID
826
+        getBatchPatientBraden(ids,patient_id).then(response=>{
827
+           if(response.data.state ==1){
828
+             var list = response.data.data.list
829
+            
830
+            if(list!=null && list.length >0){
831
+               for(let i=0;i<list.length;i++){
832
+                  var arr = JSON.parse(list[i].content)
833
+                  list[i].text_one= ""
834
+                  for(let j=0;j<arr.length;j++){
835
+                    list[i].text_one +=arr[j].label+","
836
+                  }
837
+                  list[i].text = ""
838
+                 
839
+                  if(list[i].first_check == 1){
840
+                     list[i].text = "挂床头警示标识"+","
841
+                  }
842
+                  if(list[i].two_check == 1){
843
+                     list[i].text =   list[i].text+"保护受压皮肤,使用减压用具(气垫床/压疮床)"+","
844
+                  }
845
+                  if(list[i].three_check == 1){
846
+                     list[i].text =  list[i].text+"定时翻身,移动避免拖拉"+","
847
+                  }
848
+                  if(list[i].three_check == 1){
849
+                     list[i].text = list[i].text+ "加强营养"+","
850
+                  }
851
+                  if(list[i].five_check == 1){
852
+                     list[i].text =  list[i].text+"保持被衣物清洁舒适"+","
853
+                  }
854
+                  if(list[i].six_check == 1){
855
+                     list[i].text = list[i].text+ "其他"
856
+                  }
857
+
858
+               }
859
+            }
860
+            console.log("list0000000",list)
861
+            this.tablePrint = list
862
+            this.patients = response.data.data.patients
863
+            this.dialogVisible=true
864
+           }
865
+        })
866
+        
780 867
       }
781 868
     },
782 869
     // 明细弹窗
@@ -784,79 +871,145 @@ export default{
784 871
       if(this.multipleSelection.length==0){
785 872
         this.$message('至少选择一条数据')
786 873
       }else{
787
-        this.mingxi_dialogVisible=true
874
+        var ids =this.ids.join(",")
875
+        var patient_id = this.patientID
876
+        getBatchPatientBraden(ids,patient_id).then(response=>{
877
+           if(response.data.state ==1){
878
+             var list = response.data.data.list
879
+            
880
+            if(list!=null && list.length >0){
881
+               for(let i=0;i<list.length;i++){
882
+                  var arr = JSON.parse(list[i].content)
883
+                  list[i].text_one= ""
884
+                  for(let j=0;j<arr.length;j++){
885
+                    list[i].text_one +=arr[j].label+","
886
+                  }
887
+                  list[i].text = ""
888
+                 
889
+                  if(list[i].first_check == 1){
890
+                     list[i].text = "挂床头警示标识"+","
891
+                  }
892
+                  if(list[i].two_check == 1){
893
+                     list[i].text =   list[i].text+"保护受压皮肤,使用减压用具(气垫床/压疮床)"+","
894
+                  }
895
+                  if(list[i].three_check == 1){
896
+                     list[i].text =  list[i].text+"定时翻身,移动避免拖拉"+","
897
+                  }
898
+                  if(list[i].three_check == 1){
899
+                     list[i].text = list[i].text+ "加强营养"+","
900
+                  }
901
+                  if(list[i].five_check == 1){
902
+                     list[i].text =  list[i].text+"保持被衣物清洁舒适"+","
903
+                  }
904
+                  if(list[i].six_check == 1){
905
+                     list[i].text = list[i].text+ "其他"
906
+                  }
907
+
908
+               }
909
+            }
910
+            console.log("list0000000",list)
911
+            this.tablePrint = list
912
+            this.patients = response.data.data.patients
913
+            this.mingxi_dialogVisible=true
914
+           }
915
+        })
916
+       
788 917
       }
789 918
     },
790 919
     // 编辑弹窗
791 920
     open_editor(row){
792 921
       this.row_id = row.id
793
-      this.editor_dialogVisible =true
794
-      getPedPatientFallAssessmentById(row.id).then(response =>{
922
+      getPatientBradenById(row.id).then(response =>{
795 923
         if(response.data.state == 1){
796
-          const press = response.data.data.fallassessment
924
+          var braden = response.data.data.braden
925
+          console.log("braden",braden)
926
+          this.dutyoptions = response.data.data.nurseList
927
+          if(braden.first_check == 1){
928
+             this.first_check =true
929
+          }else{
930
+            this.first_check = false
931
+          }
797 932
 
798
-          for(let i in this.hulicuoshi){
799
-            this.hulicuoshi[i].is_check = false
800
-            this.hulicuoshi[i].hulicheck = 0
801
-            this.hulicheckarr.length=0
933
+          if(braden.two_check == 1){
934
+             this.two_check =true
935
+          }else{
936
+            this.two_check = false
802 937
           }
803
-          if(press.text !=''){
804
-            const text = JSON.parse(press.text)
805
-            this.date = text.date
806
-            this.ganzhi = text.ganzhi
807
-            this.shidu = text.shidu
808
-            this.huodong = text.huodong
809
-            this.yidong = text.yidong
810
-            this.yingyang = text.yingyang
811
-            this.mocha = text.mocha
812
-            this.mark = text.mark
813
-            this.duty = text.duty
814
-            // this.duty = this.getoptions(text.duty)
815
-            this.family_member = text.jiashu
816
-            this.family_date = text.jiashu_date
817
-            this.appraiser = text.appraiser
818
-            this.appraiser_date = text.pingg_date
819
-            this.nurse = text.nurse
820
-            this.nurse_date = text.nurse_date
821
-            for(let i in this.hulicuoshi){
822
-              for(let j in text.hulicuoshi){
823
-                if(this.hulicuoshi[i].id == text.hulicuoshi[j]){
824
-                  this.hulicuoshi[i].is_check = true
825
-                  this.hulicuoshi[i].hulicheck = 1
826
-                  this.hulicheckarr.push(text.hulicuoshi[j])
827
-                }
828
-              }
829
-            }
830
-            this.zhuang_show = text.zhuang_show
831
-            for(let i in this.zhuangui){
832
-              if(this.zhuang_show == this.zhuangui[i].id){
833
-                this.zhuangui[i].is_check =true
834
-                this.zhuangui[i].check = 1
835
-              }else{
836
-                this.zhuangui[i].is_check =false
837
-                this.zhuangui[i].check = 0
838
-              }
839
-            }
840
-            // this.hulicheckarr = text.hulicuoshi
938
+
939
+          if(braden.three_check == 1){
940
+             this.three_check =true
941
+          }else{
942
+            this.three_check = false
943
+          }
944
+          if(braden.four_check == 1){
945
+             this.four_check =true
946
+          }else{
947
+            this.four_check = false
948
+          }
949
+          if(braden.five_check == 1){
950
+             this.five_check =true
951
+          }else{
952
+            this.five_check = false
953
+          }
954
+          if(braden.six_check == 1){
955
+             this.six_check =true
956
+          }else{
957
+            this.six_check = false
958
+          }
959
+          if(braden&&braden.content!=undefined){
960
+            var arr = JSON.parse(braden.content)
961
+            this.hulicuoshi = arr
962
+          }
963
+          this.id = braden.id
964
+          this.ganzhi =braden.first_pingfen
965
+          this.shidu = braden.two_pingfen
966
+          this.huodong = braden.three_pingfen
967
+          this.yidong = braden.four_pingfen
968
+          this.yingyang = braden.five_pingfen
969
+          this.mocha = braden.six_pingfen
970
+          this.mark = braden.total
971
+          this.family_member = braden.famaliy_sign
972
+          this.duty = braden.admin_user_id
973
+          this.nurse = braden.leader_sign
974
+          this.date = this.getTime(braden.record_date)
975
+          this.nurse_date = this.getTime(braden.leader_date)
976
+          this.appraiser_date =this.getTime(braden.ping_date) 
977
+          this.appraiser = braden.ping_sign
978
+          if(braden.first_lapeso == 1){
979
+             this.first_lapeso = true
980
+          }else{
981
+            this.first_lapeso =false
982
+          }
983
+          if(braden.two_lapeso == 1){
984
+             this.two_lapeso = true
985
+          }else{
986
+            this.two_lapeso =false
987
+          }
988
+          if(braden.three_lapeso == 1){
989
+             this.three_lapeso = true
990
+          }else{
991
+            this.three_lapeso =false
841 992
           }
993
+          console.log("this.first_lapeso",this.first_lapeso)
994
+          console.log("this.two_lapeso",this.two_lapeso)
995
+          console.log("this.three_lapeso",this.three_lapeso)
996
+          this.editor_dialogVisible =true
842 997
         }
843 998
       })
844 999
     },
845 1000
     // 删除弹窗
846 1001
     open_delete(row){
1002
+      this.id = row.id 
847 1003
       this.row=row.id
848 1004
       this.delete_centerDialogVisible=true
849 1005
     },
850 1006
     // 确认删除
851 1007
     delete_press(){
852
-      deletePedPatientFallassment(this.row).then(response =>{
1008
+      deletePatientBraden(this.id).then(response =>{
853 1009
         if(response.data.state == 1){
854
-          for(let i=0;i<this.tableData.length;i++){
855
-            if(this.row==this.tableData[i].id){
856
-              this.tableData.splice(i,1)
857
-            }
858
-          }
1010
+          var msg = response.data.data.msg
859 1011
           this.$message({message:'删除成功',type:'success'})
1012
+          this.getlist()
860 1013
         }
861 1014
       })
862 1015
       this.delete_centerDialogVisible=false
@@ -933,67 +1086,176 @@ export default{
933 1086
     },
934 1087
     // 确认
935 1088
     Pressuresore(){
936
-      const data = {}
937
-      var list = []
938
-      data['date'] = this.date
939
-      data['ganzhi'] = this.ganzhi
940
-      data['shidu'] = this.shidu
941
-      data['huodong'] = this.huodong
942
-      data['yidong'] = this.yidong
943
-      data['yingyang'] = this.yingyang
944
-      data['mocha'] = this.mocha
945
-      data['mark'] = this.mark
946
-      data['duty'] = this.duty
947
-      data['jiashu'] = this.family_member
948
-      data['jiashu_date'] = this.family_date
949
-      data['appraiser'] = this.appraiser
950
-      data['pingg_date'] = this.appraiser_date
951
-      data['nurse'] = this.nurse
952
-      data['nurse_date'] = this.nurse_date
953
-      data['zhuang_show'] = this.zhuang_show
954
-      data['hulicuoshi'] = this.hulicheckarr
955
-      list.push(data)
1089
+      var is_first_lapeso= 2
1090
+       if(this.first_lapeso == true){
1091
+           is_first_lapeso =1
1092
+       }
1093
+       if(this.first_lapeso == false){
1094
+           is_first_lapeso =2
1095
+       }
1096
+
1097
+       var is_two_lapeso= 2
1098
+       if(this.two_lapeso == true){
1099
+          is_two_lapeso =1
1100
+       }
1101
+       if(this.two_lapeso == false){
1102
+          is_two_lapeso =2
1103
+       }
1104
+
1105
+       var is_three_lapeso = 2
1106
+       if(this.three_lapeso == true){
1107
+          is_three_lapeso =1
1108
+       }
1109
+       if(this.three_lapeso == false){
1110
+         is_three_lapeso =2
1111
+       }
1112
+
1113
+
1114
+       var is_first_check =2
1115
+
1116
+       if(this.first_check == true){
1117
+          is_first_check = 1
1118
+       }else{
1119
+        is_first_check =2
1120
+       }
1121
+
1122
+       var is_two_check =2
1123
+       if(this.two_check == true){
1124
+          is_two_check = 1
1125
+       }else{
1126
+          is_two_check =2
1127
+       }
1128
+
1129
+       var is_three_check =2
1130
+       if(this.three_check == true){
1131
+          is_three_check = 1
1132
+       }else{
1133
+         is_three_check =2
1134
+       }
1135
+
1136
+       var is_four_check =2
1137
+       if(this.four_check == true){
1138
+          is_four_check = 1
1139
+       }else{
1140
+         is_four_check =2
1141
+       }
1142
+
1143
+       var is_five_check =2
1144
+       if(this.five_check == true){
1145
+          is_five_check = 1
1146
+       }else{
1147
+         is_first_check =2
1148
+       }
1149
+
1150
+       var is_six_check =2
1151
+       if(this.six_check == true){
1152
+          is_six_check = 1
1153
+       }else{
1154
+         is_six_check =2
1155
+       }
1156
+
1157
+      if(this.hulicuoshi!=null && this.hulicuoshi.length>0){
1158
+         for(let i=0;i<this.hulicuoshi.length;i++){
1159
+           this.hulicuoshi[i].is_check_status=2
1160
+           if(this.hulicuoshi[i].is_check == true){
1161
+            this.hulicuoshi[i].is_check_status=1
1162
+           }
1163
+           if(this.hulicuoshi[i].is_check == false){
1164
+            this.hulicuoshi[i].is_check_status=2
1165
+           }
1166
+         }
1167
+      } 
1168
+
1169
+      if(this.ganzhi>0){
1170
+        this.ganzhi = parseInt(this.ganzhi)
1171
+      }else{
1172
+        this.ganzhi =0
1173
+      }
1174
+
1175
+      if(this.shidu>0){
1176
+        this.shidu = parseInt(this.shidu)
1177
+      }else{
1178
+        this.shidu =0
1179
+      }
1180
+
1181
+      if(this.huodong>0){
1182
+        this.huodong = parseInt(this.huodong)
1183
+      }else{
1184
+        this.huodong =0
1185
+      }
1186
+
1187
+      if(this.yidong>0){
1188
+        this.yidong = parseInt(this.yidong)
1189
+      }else{
1190
+        this.yidong =0
1191
+      }
1192
+
1193
+      if(this.yingyang>0){
1194
+        this.yingyang = parseInt(this.yingyang)
1195
+      }else{
1196
+        this.yingyang =0
1197
+      }
1198
+
1199
+
1200
+      if(this.mocha>0){
1201
+        this.mocha = parseInt(this.mocha)
1202
+      }else{
1203
+        this.mocha =0
1204
+      }
1205
+      var obj = {}
1206
+      var newArr =[]
1207
+      console.log("护理措施",this.hulicuoshi)
1208
+      if(this.hulicuoshi!=null && this.hulicuoshi.length>0){
1209
+        for(let i=0;i<this.hulicuoshi.length;i++){
1210
+           obj.hulicheck = this.hulicuoshi[i].is_check
1211
+           obj.is_check = this.hulicuoshi[i].is_check
1212
+           obj.is_check_status = this.hulicuoshi[i].is_check_status
1213
+           obj.label = this.hulicuoshi[i].label
1214
+           newArr.push(obj)
1215
+        }
1216
+      }
1217
+      console.log("hhahha",this.hulicuoshi)
1218
+      var strarr = JSON.stringify(this.hulicuoshi)
956 1219
       var params={
1220
+        id:this.id,
957 1221
         patient_id:this.patientID,
958 1222
         record_date:this.date,
959
-        is_type:1,
960
-        list:list,
961
-        id:this.row_id
1223
+        list:newArr,
1224
+        first_pingfen:this.ganzhi,
1225
+        two_pingfen:this.shidu,
1226
+        three_pingfen:this.huodong,
1227
+        four_pingfen:this.yidong,
1228
+        five_pingfen:this.yingyang,
1229
+        six_pingfen:this.mocha,
1230
+        total:this.mark,
1231
+        admin_user_id:this.duty,
1232
+        famaliy_sign:this.family_member,
1233
+        first_lapeso:is_first_lapeso,
1234
+        two_lapeso:is_two_lapeso,
1235
+        three_lapeso:is_three_lapeso,
1236
+        ping_sign:this.appraiser,
1237
+        ping_date:this.appraiser_date,
1238
+        leader_sign:this.nurse,
1239
+        leader_date:this.nurse_date,
1240
+        list:strarr,
1241
+        first_check:is_first_check,
1242
+        two_check:is_two_check,
1243
+        three_check:is_three_check,
1244
+        four_check:is_four_check,
1245
+        five_check:is_five_check,
1246
+        six_check:is_six_check
962 1247
       }
963
-      updateBedPatientList(params).then(response =>{
1248
+      console.log('params----',params);
1249
+      updatePatientBraden(params).then(response =>{
964 1250
         if(response.data.state ==1){
965
-          const press = response.data.data.pedFallssessment
966
-          console.log('press',press);
967
-          const text = JSON.parse(press.text)
968
-          for(let i in this.tableData){
969
-            if(press.id == this.tableData[i].id){
970
-                this.tableData[i].id = press.id,
971
-                this.tableData[i].time = text.date,
972
-                this.tableData[i].ganzhi = text.ganzhi,
973
-                this.tableData[i].shidu = text.shidu,
974
-                this.tableData[i].huodong = text.huodong,
975
-                this.tableData[i].yidong = text.yidong,
976
-                this.tableData[i].yingyang = text.yingyang,
977
-                this.tableData[i].mocha = text.mocha,
978
-                this.tableData[i].mark = text.mark,
979
-                this.tableData[i].evaluate = this.getoptions(text.duty),
980
-                this.tableData[i].jiashu = text.jiashu,
981
-                this.tableData[i].jiashu_date = text.jiashu_date,
982
-                this.tableData[i].appraiser = text.appraiser,
983
-                this.tableData[i].pingg_date = text.pingg_date,
984
-                this.tableData[i].nurse = text.nurse,
985
-                this.tableData[i].nurse_date = text.nurse_date,
986
-                this.tableData[i].zhuang_show = text.zhuang_show,
987
-                this.tableData[i].hulicuoshi = text.hulicuoshi
988
-            }
989
-          }
990 1251
 
1252
+         this.editor_dialogVisible = false
1253
+         var xtPatientBraden =  response.data.data.xtPatientBraden
1254
+         this.$message({message:'修改成功',type:'success'})
1255
+         this.getlist()
1256
+ 
991 1257
         }
992 1258
       })
993
-      this.$message({message:'修改成功',type:'success'})
994
-      this.editor_dialogVisible=false,
995
-      console.log('33333',params);
996
-      return this.tableData
997 1259
     },
998 1260
     // 转换时间
999 1261
     getTime(val) {
@@ -1021,41 +1283,21 @@ export default{
1021 1283
       var params = {
1022 1284
         patient_id:this.patient_id,
1023 1285
         limit:this.limit,
1024
-        is_type:1,
1025 1286
         page:this.page,
1026 1287
       }
1027
-      getPatientBedlist(params).then(response =>{
1288
+      getPatientBradenlist(params).then(response =>{
1028 1289
         if(response.data.state ==1){
1029
-          const list = response.data.data.list
1030
-          list.forEach(item => {
1031
-            if(item.text !=''){
1032
-              const text =JSON.parse(item.text)
1033
-              console.log('text',text);
1034
-              const arr ={ 
1035
-                id:item.id,
1036
-                time:text.date,
1037
-                ganzhi:text.ganzhi,
1038
-                shidu:text.shidu,
1039
-                huodong:text.huodong,
1040
-                yidong:text.yidong,
1041
-                yingyang:text.yingyang,
1042
-                mocha:text.mocha,
1043
-                mark:text.mark,
1044
-                evaluate:this.getoptions(text.duty),
1045
-                jiashu:text.jiashu,
1046
-                jiashu_date:text.jiashu_date,
1047
-                appraiser:text.appraiser,
1048
-                pingg_date:text.pingg_date,
1049
-                nurse:text.nurse,
1050
-                nurse_date:text.nurse_date,
1051
-                zhuang_show:text.zhuang_show,
1052
-                hulicuoshi:text.hulicuoshi
1053
-              }
1054
-              this.tableData.push(arr)
1055
-            }
1056
-          });
1057
-          console.log('11111',list);
1290
+          var list = response.data.data.list
1291
+         
1292
+         
1293
+          console.log("list--------",list)
1294
+          this.tableData = list
1295
+          var total =  response.data.data.total
1296
+          this.total = total
1297
+          this.roleList =  response.data.data.nurseList
1058 1298
         }
1299
+         
1300
+        
1059 1301
       })
1060 1302
     },
1061 1303
     // 评估人

+ 388 - 116
src/xt_pages/user/history/tumble_history.vue Vedi File

@@ -87,13 +87,13 @@
87 87
         </div>
88 88
 
89 89
         <div id="pingfeng" >
90
-          <div class="diedao_content" style="">
90
+          <div class="diedao_content" style=""  v-for="(item,index) in multipleSelection" :key="index">
91 91
             <div style="width:100%;margin-top: 20px;">
92 92
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
93 93
               <div style="margin-top: 20px;font-size: 16px;">
94
-                <span>患者姓名:</span>
95
-                <span>透析号:</span>
96
-                <span>打印时间:</span>
94
+                <span>患者姓名:{{ patients.name }}</span>
95
+                <span>透析号:{{ patients.dialysis_no }}</span>
96
+                <span>打印时间:{{time_now}}</span>
97 97
               </div>
98 98
               <table class="tables" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
99 99
                 <tr>
@@ -102,11 +102,11 @@
102 102
                   <td style="">护理措施</td>
103 103
                   <td style="width:150px">评估护士</td>
104 104
                 </tr>
105
-                <tr v-for="item in multipleSelection" >
106
-                  <td>{{item.time}}</td>
107
-                  <td>{{item.mark}}</td>
108
-                  <td>{{item.measures}}</td>
109
-                  <td>{{item.evaluate}}</td>
105
+                <tr>
106
+                  <td>{{getTime(item.record_date)}}</td>
107
+                  <td>{{item.total}}</td>
108
+                  <td>{{item.content}}</td>
109
+                  <td>{{getAdminName(item.admin_user_id)}}</td>
110 110
                 </tr>
111 111
               </table>
112 112
             </div>
@@ -130,15 +130,16 @@
130 130
         </div>
131 131
 
132 132
         <div id="mingxi" >
133
-          <div class="diedao_content" style="">
133
+          <div class="diedao_content" style="" v-for="(item,index) in printList" :key="index">
134 134
             <div style="width:100%;margin-top: 20px;">
135 135
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
136 136
               <div style="margin-top: 20px;font-size: 16px;">
137
-                <span>患者姓名:</span>
138
-                <span>透析号:</span>
139
-                <span>评估日期:</span>
140
-                <span>评估护士:</span>
141
-                <span>总分:</span>
137
+                <span>患者姓名:{{ patients.name }}</span>
138
+                <span>透析号:{{ patients.dialysis_no }}</span>
139
+                <span>评估日期:{{getTime(item.record_date)}}</span>
140
+                <span>评估护士:{{getAdminName(item.admin_user_id)}}</span>
141
+                <span>总分: {{item.total}}
142
+                </span>
142 143
               </div>
143 144
               <table class="tables" border style="width: 100%;border-collapse: collapse;font-size: 16px;">
144 145
                 <thead>
@@ -233,8 +234,8 @@
233 234
                   </tr>
234 235
                 </tbody>
235 236
               </table>
236
-              <p><span>健康宣教:</span> </p>
237
-              <p> <span>护理措施:</span></p>
237
+              <p><span>健康宣教:{{ item.contentOne }} </span> </p>
238
+              <p> <span>护理措施:{{ item.content }}</span></p>
238 239
               <p>
239 240
                 <span>预防效果:</span>
240 241
                 <span v-for="item in xiaoguo" class="rightjiange">
@@ -243,13 +244,13 @@
243 244
               </p>
244 245
               <p>
245 246
                 <span>透析间期跌倒事件:</span>
246
-                <span class="rightjiange">日期:</span>
247
+                <span class="rightjiange">日期:{{ getTime(item.ping_date) }}</span>
247 248
                 <span v-for="item in touxidiedao" class="rightjiange">
248
-                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp{{ item }}</label>
249
+                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp</label>
249 250
                 </span>
250 251
               </p>
251 252
               <p>
252
-                打印时间:
253
+                打印时间:{{ time_now }}
253 254
               </p>
254 255
             </div>
255 256
           </div>
@@ -558,7 +559,7 @@
558 559
                                 <td>
559 560
                                   <div class="xiaojige">
560 561
                                     <label>
561
-                                      <input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item.content }}
562
+                                      <input type="checkbox" name="ball" value="volleyball"  v-model="item.is_content_check_one"/>&nbsp;{{ item.content }}
562 563
                                     </label><br>
563 564
                                    
564 565
                                   </div>
@@ -749,8 +750,9 @@
749 750
   </div>
750 751
 </template>
751 752
 <script>
753
+const moment = require('moment')
752 754
 import print from 'print-js'
753
-import {getPatientFallsessmentList,getPatientFallssessmentById,DeletePatientFallassessment,updatePatientFallassment}  from '@/api/fallassement'
755
+import {getPatientFallsessmentList,getPatientFallssessmentById,DeletePatientFallassessment,updatePatientFallassment,getPatientFallaessmentListByIds,getPatientFallaessmentListOne}  from '@/api/fallassement'
754 756
 import { uParseTime } from "@/utils/tools";
755 757
 export default{
756 758
   data(){
@@ -772,16 +774,16 @@ export default{
772 774
       checkList:[],
773 775
       centerDialogVisible:false,
774 776
       textarea2:'',
775
-      nianlin:[{id:0,age_check:false,content:"≥65岁(1分)",is_status:2},{id:0,age_check:false,content:"<65(0分)",is_status:2}],
776
-      jiwang:[{id:0,jiwang_check:false,content:"有跌倒史(2分)",is_status:2},{id:0,jiwang_check:false,content:"有坠床史(2分)",is_status:2} ,{id:0,jiwang_check:false,content:"晕厥(2分)",is_status:2},{id:0,jiwang_check:false,content:"低血压(2分)",is_status:2}],
777
-      yishizt:[{id:0,yishizt_check:false,content:"烦躁(4分)",is_status:2},{id:0,yishizt_check:false,content:"谵妄(3分)",is_status:2}, {id:0,yishizt_check:false,content:"嗜睡(2分)",is_status:2},{id:0,yishizt_check:false,content:"模糊(2分)",is_status:2},{id:0,yishizt_check:false,content:"痴呆(2分)",is_status:2},{id:0,yishizt_check:false,content:"昏迷(1分)",is_status:2}],
778
-      ganguan:[{id:0,ganguan_check:false,content:"头晕(4分)",is_status:2},{id:0,ganguan_check:false,content:"视觉障碍(2分)",is_status:2},{id:0,ganguan_check:false,content:"听力障碍(2分)",is_status:2}],
779
-      shentizk:[{id:0,shentizk_check:false,content:"借助器械(3分)",is_status:2},{id:0,shentizk_check:false,content:"肢体残缺(3分)",is_status:2},{id:0,shentizk_check:false,content:"偏瘫(3分)",is_status:2},{id:0,shentizk_check:false,content:"肌肉震颤麻痹(2分)",is_status:2},{id:0,shentizk_check:false,content:"截瘫(3分)",is_status:2},{id:0,shentizk_check:false,content:"乏力(1分)",is_status:2},{id:0,shentizk_check:false,content:"关节僵硬、变形、疼痛(3分)",is_status:2},{id:0,shentizk_check:false,content:"失眠(1分)",is_status:2}],
780
-      syyaowu:[{id:0,syyaowu_check:false,content:"镇静安眠药(2分)",is_status:2},{id:0,syyaowu_check:false,content:"降压药(1分)",is_status:2},{id:0,syyaowu_check:false,content:"降糖药(1分)",is_status:2},{id:0,syyaowu_check:false,content:"其他高危药物(1分)",is_status:2}],
781
-      paixie:[{id:0,paixie_check:false,content:"便秘(2分)",is_status:2},{id:0,paixie_check:false,content:"腹泻(1分)",is_status:2},{id:0,paixie_check:false,content:"尿频(1分)",is_status:2}],
782
-      zilinl:[{id:0,zilinl_check:false,content:"无(4分)",is_status:2},{id:0,zilinl_check:false,content:"部分(3分)",is_status:2}],
783
-      xiaoguo:[{id:0,xiaoguo_check:false,content:"未发生跌倒",is_status:2},{id:0,xiaoguo_check:false,content:"发生跌倒",is_status:2},{id:0,xiaoguo_check:false,content:"发生坠床",is_status:2}],
784
-      touxidiedao:[{id:0,touxidiedao_check:false,content:"发生跌倒",is_status:2},{id:0,touxidiedao_check:false,content:"发生坠床",is_status:2}],
777
+      nianlin:[{id:1,age_check:false,content:"≥65岁(1分)",is_status:2},{id:2,age_check:false,content:"<65(0分)",is_status:2}],
778
+      jiwang:[{id:1,jiwang_check:false,content:"有跌倒史(2分)",is_status:2},{id:2,jiwang_check:false,content:"有坠床史(2分)",is_status:2} ,{id:3,jiwang_check:false,content:"晕厥(2分)",is_status:2},{id:4,jiwang_check:false,content:"低血压(2分)",is_status:2}],
779
+      yishizt:[{id:1,yishizt_check:false,content:"烦躁(4分)",is_status:2},{id:2,yishizt_check:false,content:"谵妄(3分)",is_status:2}, {id:3,yishizt_check:false,content:"嗜睡(2分)",is_status:2},{id:4,yishizt_check:false,content:"模糊(2分)",is_status:2},{id:5,yishizt_check:false,content:"痴呆(2分)",is_status:2},{id:6,yishizt_check:false,content:"昏迷(1分)",is_status:2}],
780
+      ganguan:[{id:1,ganguan_check:false,content:"头晕(4分)",is_status:2},{id:2,ganguan_check:false,content:"视觉障碍(2分)",is_status:2},{id:3,ganguan_check:false,content:"听力障碍(2分)",is_status:2}],
781
+      shentizk:[{id:1,shentizk_check:false,content:"借助器械(3分)",is_status:2},{id:2,shentizk_check:false,content:"肢体残缺(3分)",is_status:2},{id:3,shentizk_check:false,content:"偏瘫(3分)",is_status:2},{id:4,shentizk_check:false,content:"肌肉震颤麻痹(2分)",is_status:2},{id:5,shentizk_check:false,content:"截瘫(3分)",is_status:2},{id:6,shentizk_check:false,content:"乏力(1分)",is_status:2},{id:7,shentizk_check:false,content:"关节僵硬、变形、疼痛(3分)",is_status:2},{id:8,shentizk_check:false,content:"失眠(1分)",is_status:2}],
782
+      syyaowu:[{id:1,syyaowu_check:false,content:"镇静安眠药(2分)",is_status:2},{id:2,syyaowu_check:false,content:"降压药(1分)",is_status:2},{id:3,syyaowu_check:false,content:"降糖药(1分)",is_status:2},{id:4,syyaowu_check:false,content:"其他高危药物(1分)",is_status:2}],
783
+      paixie:[{id:1,paixie_check:false,content:"便秘(2分)",is_status:2},{id:2,paixie_check:false,content:"腹泻(1分)",is_status:2},{id:3,paixie_check:false,content:"尿频(1分)",is_status:2}],
784
+      zilinl:[{id:1,zilinl_check:false,content:"无(4分)",is_status:2},{id:2,zilinl_check:false,content:"部分(3分)",is_status:2}],
785
+      xiaoguo:[{id:1,xiaoguo_check:false,content:"未发生跌倒",is_status:2},{id:2,xiaoguo_check:false,content:"发生跌倒",is_status:2},{id:3,xiaoguo_check:false,content:"发生坠床",is_status:2}],
786
+      touxidiedao:[{id:1,touxidiedao_check:false,content:"发生跌倒",is_status:2},{id:2,touxidiedao_check:false,content:"发生坠床",is_status:2}],
785 787
       page:1,
786 788
       limit:10,
787 789
       total:0,
@@ -817,7 +819,10 @@ export default{
817 819
       id:0,
818 820
       index:0,
819 821
       fallassesment_id:0,
820
-      ids:[]
822
+      ids:[],
823
+      patients:{},
824
+      time_now:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
825
+      printList:[]
821 826
     }
822 827
   },
823 828
   methods:{
@@ -837,26 +842,283 @@ export default{
837 842
         
838 843
         if(this.ids.length==0){
839 844
           this.$message('请选择需要打印的记录')
845
+          return
840 846
         }
841 847
          var params = {
842 848
           ids:this.ids.join(","),
849
+          patient_id:this.$route.query.patient_id,
843 850
          }
844 851
          console.log("params----",params)
845
-        getPatientFallaessmentList(params).then(response=>{
846
-
852
+        getPatientFallaessmentListByIds(params).then(response=>{
853
+          if(response.data.state ==1){
854
+            var list = response.data.data.list
855
+            this.patients = response.data.data.patients
856
+            for(let i=0;i<list.length;i++){
857
+            list[i].content =""
858
+            if(list[i].is_check_eight ==1){
859
+              list[i].content = "在病人床头悬挂'防跌倒'、'防坠床'警示牌"
860
+            }
861
+            if(list[i].is_check_night == 1){
862
+              list[i].content =  list[i].content + "呼叫器及用物放置病人易取处,教会使用呼叫器"
863
+            }
864
+            if(list[i].is_check_ten == 1){
865
+              list[i].content =  list[i].content + "及时给予便器,床上(边)大小便"
866
+            }
867
+            if(list[i].is_check_eleven == 1){
868
+              list[i].content =  list[i].content + "使用床档"
869
+            }
870
+            if(list[i].is_check_twelve == 1){
871
+              list[i].content =  list[i].content + "使用约束带"
872
+            }
873
+            if(list[i].is_check_thirteen == 1){
874
+              list[i].content =  list[i].content + "使用助行器"
875
+            }
876
+            if(list[i].is_check_fourteen == 1){
877
+              list[i].content =  list[i].content + "需要时协助病人上、下床"
878
+            }
879
+            if(list[i].is_check_fourteen == 1){
880
+              list[i].content =  list[i].content + "协助病人如厕"
881
+            }
882
+            if(list[i].is_check_sixteen == 1){
883
+              list[i].content =  list[i].content + "避免地面积水、湿滑"
884
+            }
885
+            if(list[i].is_check_seventeen == 1){
886
+              list[i].content =  list[i].content + "消除床旁及通道障碍"
887
+            }
888
+            if(list[i].is_check_eighteen == 1){
889
+              list[i].content =  list[i].content + "病床调至合适高度"
890
+            }
891
+            if(list[i].is_check_nineteen == 1){
892
+              list[i].content =  list[i].content + "及时锁上病床及轮椅的轮轴"
893
+            }
894
+           }
895
+            console.log("list=-====",list)
896
+            this.multipleSelection =list
897
+            this.dialogVisible = true
898
+          }
847 899
        })
848 900
       }
849
-    
850
-      if(this.multipleSelection.length==0){
851
-        this.$message('请选择需要打印的记录')
852
-      }else{
853
-        if(ids==1){
854
-          this.dialogVisible=true
855
-        }else{
856
-          this.mingxi_dialogVisible=true
901
+      if(ids ==2){
902
+        if(this.ids.length==0){
903
+          this.$message('请选择需要打印的记录')
904
+          return
857 905
         }
906
+         var params = {
907
+          ids:this.ids.join(","),
908
+          patient_id:this.$route.query.patient_id,
909
+         }
910
+         console.log("params----",params)
911
+         getPatientFallaessmentListOne(params).then(response=>{
912
+          if(response.data.state ==1){
913
+            var list = response.data.data.list
914
+            this.patients = response.data.data.patients
915
+            for(let i=0;i<list.length;i++){
916
+              list[i].content =""
917
+              list[i].contentOne = ""
918
+              
919
+              if(list[i].is_check == 1){
920
+                list[i].contentOne= "告知病人及家属病人有跌倒的危险"
921
+              } 
858 922
 
859
-      }
923
+              if(list[i].is_check_one == 1){
924
+                list[i].contentOne= list[i].contentOne + "告知家属24小时陪伴,尤其在患者活动锻炼时,应有人陪伴,若离开请与值班护士联系"
925
+              } 
926
+
927
+              if(list[i].is_check_two == 1){
928
+                list[i].contentOne= list[i].contentOne + "告知病人及家属病人关于药物作用的注意事项"
929
+              } 
930
+
931
+              if(list[i].is_check_three == 1){
932
+                list[i].contentOne= list[i].contentOne + "穿合适的裤子,以免绊倒;穿防滑鞋"
933
+              } 
934
+
935
+              if(list[i].is_check_five == 1){
936
+                list[i].contentOne= list[i].contentOne + "如出现双眼发黑、下肢无力、行走不稳和不能移动时,立即原地坐/蹲下或靠墙,呼叫他人帮助"
937
+              } 
938
+
939
+              if(list[i].is_check_six == 1){
940
+                list[i].contentOne= list[i].contentOne + "指导病人使用病房及卫生间扶手"
941
+              } 
942
+
943
+              if(list[i].is_check_seven == 1){
944
+                list[i].contentOne= list[i].contentOne + "其他有关告知"
945
+              } 
946
+
947
+              if(list[i].is_check_four == 1){
948
+                list[i].contentOne= list[i].contentOne + " 告知患者改变体位欲活动时应遵循“三步曲”,即平卧30秒→双腿下垂30秒→行走,避免突然改变体位,引起体位性低血压,特别是夜间"
949
+              } 
950
+
951
+              if(list[i].is_check_eight ==1){
952
+                list[i].content = "在病人床头悬挂'防跌倒'、'防坠床'警示牌"
953
+              }
954
+              if(list[i].is_check_night == 1){
955
+                list[i].content =  list[i].content + "呼叫器及用物放置病人易取处,教会使用呼叫器"
956
+              }
957
+              if(list[i].is_check_ten == 1){
958
+                list[i].content =  list[i].content + "及时给予便器,床上(边)大小便"
959
+              }
960
+              if(list[i].is_check_eleven == 1){
961
+                list[i].content =  list[i].content + "使用床档"
962
+              }
963
+              if(list[i].is_check_twelve == 1){
964
+                list[i].content =  list[i].content + "使用约束带"
965
+              }
966
+              if(list[i].is_check_thirteen == 1){
967
+                list[i].content =  list[i].content + "使用助行器"
968
+              }
969
+              if(list[i].is_check_fourteen == 1){
970
+                list[i].content =  list[i].content + "需要时协助病人上、下床"
971
+              }
972
+              if(list[i].is_check_fourteen == 1){
973
+                list[i].content =  list[i].content + "协助病人如厕"
974
+              }
975
+              if(list[i].is_check_sixteen == 1){
976
+                list[i].content =  list[i].content + "避免地面积水、湿滑"
977
+              }
978
+              if(list[i].is_check_seventeen == 1){
979
+                list[i].content =  list[i].content + "消除床旁及通道障碍"
980
+              }
981
+              if(list[i].is_check_eighteen == 1){
982
+                list[i].content =  list[i].content + "病床调至合适高度"
983
+              }
984
+              if(list[i].is_check_nineteen == 1){
985
+                list[i].content =  list[i].content + "及时锁上病床及轮椅的轮轴"
986
+              }
987
+
988
+              if(list[i].PatientFallassessmentAge!=null && list[i].PatientFallassessmentAge.length>0){
989
+                  this.nianlin = []
990
+                   var obj = {id:0,age_check:false,content:"",is_status:0}
991
+                  for(let j=0;j<list[i].PatientFallassessmentAge.length;j++){
992
+                     obj.content = list[i].PatientFallassessmentAge[j].content
993
+                     if(list[i].PatientFallassessmentAge[j].is_status ==1){
994
+                        obj.age_check = true
995
+                     }else{
996
+                        obj.age_check = false
997
+                     }
998
+                     this.nianlin.push(obj)
999
+                  }
1000
+              } 
1001
+
1002
+              if(list[i].XtPatientFallassessmentHistory!=null && list[i].XtPatientFallassessmentHistory.length>0){
1003
+                  this.jiwang = []
1004
+                   var obj = {id:0,age_check:false,content:"",is_status:0}
1005
+                  for(let j=0;j<list[i].XtPatientFallassessmentHistory.length;j++){
1006
+                     obj.content = list[i].XtPatientFallassessmentHistory[j].content
1007
+                     if(list[i].XtPatientFallassessmentHistory[j].is_status ==1){
1008
+                        obj.jiwang_check = true
1009
+                     }else{
1010
+                        obj.jiwang_check = false
1011
+                     }
1012
+                     this.jiwang.push(obj)
1013
+                  }
1014
+              } 
1015
+
1016
+              if(list[i].XtPatientFallassessmentRealize!=null && list[i].XtPatientFallassessmentRealize.length>0){
1017
+                  this.yishizt = []
1018
+                   var obj = {id:0,yishizt_check:false,content:"",is_status:0}
1019
+                  for(let j=0;j<list[i].XtPatientFallassessmentRealize.length;j++){
1020
+                     obj.content = list[i].XtPatientFallassessmentRealize[j].content
1021
+                     if(list[i].XtPatientFallassessmentRealize[j].is_status ==1){
1022
+                        obj.yishizt_check = true
1023
+                     }else{
1024
+                        obj.yishizt_check = false
1025
+                     }
1026
+                     this.yishizt.push(obj)
1027
+                  }
1028
+              } 
1029
+
1030
+              if(list[i].XtPatientFallassessmentOrgan!=null && list[i].XtPatientFallassessmentOrgan.length>0){
1031
+                  this.ganguan = []
1032
+                   var obj = {id:0,ganguan_check:false,content:"",is_status:0}
1033
+                  for(let j=0;j<list[i].XtPatientFallassessmentOrgan.length;j++){
1034
+                     obj.content = list[i].XtPatientFallassessmentOrgan[j].content
1035
+                     if(list[i].XtPatientFallassessmentOrgan[j].is_status ==1){
1036
+                        obj.ganguan_check = true
1037
+                     }else{
1038
+                        obj.ganguan_check = false
1039
+                     }
1040
+                     this.ganguan.push(obj)
1041
+                  }
1042
+              } 
1043
+
1044
+              if(list[i].XtPatientFallassessmentBody!=null && list[i].XtPatientFallassessmentBody.length>0){
1045
+                  this.shentizk = []
1046
+                   var obj = {id:0,shentizk_check:false,content:"",is_status:0}
1047
+                  for(let j=0;j<list[i].XtPatientFallassessmentBody.length;j++){
1048
+                     obj.content = list[i].XtPatientFallassessmentBody[j].content
1049
+                     if(list[i].XtPatientFallassessmentBody[j].is_status ==1){
1050
+                        obj.shentizk_check = true
1051
+                     }else{
1052
+                        obj.shentizk_check = false
1053
+                     }
1054
+                     this.shentizk.push(obj)
1055
+                  }
1056
+              } 
1057
+
1058
+              if(list[i].XtPatientFallassessmentMedical!=null && list[i].XtPatientFallassessmentMedical.length>0){
1059
+                  this.syyaowu = []
1060
+                   var obj = {id:0,syyaowu_check:false,content:"",is_status:0}
1061
+                  for(let j=0;j<list[i].XtPatientFallassessmentMedical.length;j++){
1062
+                     obj.content = list[i].XtPatientFallassessmentMedical[j].content
1063
+                     if(list[i].XtPatientFallassessmentMedical[j].is_status ==1){
1064
+                        obj.syyaowu_check = true
1065
+                     }else{
1066
+                        obj.syyaowu_check = false
1067
+                     }
1068
+                     this.syyaowu.push(obj)
1069
+                  }
1070
+              } 
1071
+
1072
+              if(list[i].XtPatientFallassessmentExcrete!=null && list[i].XtPatientFallassessmentExcrete.length>0){
1073
+                  this.paixie = []
1074
+                   var obj = {id:0,paixie_check:false,content:"",is_status:0}
1075
+                  for(let j=0;j<list[i].XtPatientFallassessmentExcrete.length;j++){
1076
+                     obj.content = list[i].XtPatientFallassessmentExcrete[j].content
1077
+                     if(list[i].XtPatientFallassessmentExcrete[j].is_status ==1){
1078
+                        obj.paixie_check = true
1079
+                     }else{
1080
+                        obj.paixie_check = false
1081
+                     }
1082
+                     this.paixie_check.push(obj)
1083
+                  }
1084
+              } 
1085
+
1086
+              if(list[i].XtPatientFallassessmentCare!=null && list[i].XtPatientFallassessmentCare.length>0){
1087
+                  this.zilinl = []
1088
+                   var obj = {id:0,zilinl_check:false,content:"",is_status:0}
1089
+                  for(let j=0;j<list[i].XtPatientFallassessmentCare.length;j++){
1090
+                     obj.content = list[i].XtPatientFallassessmentCare[j].content
1091
+                     if(list[i].XtPatientFallassessmentCare[j].is_status ==1){
1092
+                        obj.zilinl_check = true
1093
+                     }else{
1094
+                        obj.zilinl_check = false
1095
+                     }
1096
+                     this.zilinl.push(obj)
1097
+                  }
1098
+              } 
1099
+
1100
+              if(list[i].XtPatientFallassessmentPrevent!=null && list[i].XtPatientFallassessmentPrevent.length>0){
1101
+                  this.xiaoguo = []
1102
+                   var obj = {id:0,xiaoguo_check:false,content:"",is_status:0}
1103
+                  for(let j=0;j<list[i].XtPatientFallassessmentPrevent.length;j++){
1104
+                     obj.content = list[i].XtPatientFallassessmentPrevent[j].content
1105
+                     if(list[i].XtPatientFallassessmentPrevent[j].is_status ==1){
1106
+                        obj.xiaoguo_check = true
1107
+                     }else{
1108
+                        obj.xiaoguo_check = false
1109
+                     }
1110
+                     this.xiaoguo.push(obj)
1111
+                  }
1112
+              } 
1113
+           }
1114
+            console.log("nianlin-----",this.nianlin)
1115
+            console.log("list=-====",list)
1116
+            this.printList =list
1117
+            this.mingxi_dialogVisible = true
1118
+          }
1119
+        })
1120
+      
1121
+     }
860 1122
     },
861 1123
     print_pingfen(ids){
862 1124
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
@@ -1213,39 +1475,7 @@ export default{
1213 1475
                  }
1214 1476
               }
1215 1477
 
1216
-              if(patientFallsessment.PatientFallassessmentAdd!=null && patientFallsessment.PatientFallassessmentAdd.length>0){
1217
-                 for(let i=0;i<patientFallsessment.PatientFallassessmentAdd.length;i++){
1218
-                    for(let j=0;j<this.list.length;j++){
1219
-                      this.list[j].id =patientFallsessment.PatientFallassessmentAdd[i].id
1220
-                      if(patientFallsessment.PatientFallassessmentAdd[i].content == this.list[j].content){
1221
-                        if(patientFallsessment.PatientFallassessmentAdd[i].is_check_status == 2){
1222
-                          this.is_touxidiedao[j].is_content_check = false
1223
-                        }
1224
-                        if(patientFallsessment.PatientFallassessmentAdd[i].is_check_status == 1){
1225
-                          this.is_touxidiedao[j].is_content_check = true
1226
-                        }
1227
-                      }
1228
-                   }
1229
-                 }
1230
-              }
1231
-
1232
-              if(patientFallsessment.PatientFallassessmentAddCopy!=null && patientFallsessment.PatientFallassessmentAddCopy.length>0){
1233
-                for(let i=0;i<patientFallsessment.PatientFallassessmentAddCopy.length;i++){
1234
-                   for(let j=0;j<this.listOne.length;j++){
1235
-                      this.listOne[j].id =patientFallsessment.PatientFallassessmentAddCopy[i].id
1236
-                      if(patientFallsessment.PatientFallassessmentAddCopy[i].content == this.listOne[j].content){
1237
-                        if(patientFallsessment.PatientFallassessmentAddCopy[i].is_check_status == 2){
1238
-                          this.is_touxidiedao[j].is_content_check_one = false
1239
-                        }
1240
-                        if(patientFallsessment.PatientFallassessmentAddCopy[i].is_check_status == 1){
1241
-                          this.is_touxidiedao[j].is_content_check_one = true
1242
-                        }
1243
-                      }
1244
-                   }
1245
-                }
1246
-              }
1247
-
1248
-
1478
+       
1249 1479
               if(patientFallsessment.XtPatientFallassessmentPrevent!=null && patientFallsessment.XtPatientFallassessmentPrevent.length>0){
1250 1480
                 for(let i=0;i<patientFallsessment.XtPatientFallassessmentPrevent.length;i++){
1251 1481
                    for(let j=0;j<this.xiaoguo.length;j++){
@@ -1261,6 +1491,42 @@ export default{
1261 1491
                    }
1262 1492
                 }
1263 1493
               }
1494
+
1495
+          
1496
+              if(patientFallsessment.PatientFallassessmentAdd!=null&&patientFallsessment.PatientFallassessmentAdd.length>0){
1497
+                  var obj = {id:0,is_content_check:false,content:"",is_status:2}
1498
+                  for(let i=0;i<patientFallsessment.PatientFallassessmentAdd.length;i++){
1499
+                     obj.content = patientFallsessment.PatientFallassessmentAdd[i].content
1500
+                     obj.id = patientFallsessment.PatientFallassessmentAdd[i].id
1501
+                     if(patientFallsessment.PatientFallassessmentAdd[i].is_check_status==1){
1502
+                          obj.is_content_check = true
1503
+                          obj.is_status=1
1504
+                     }else{
1505
+                        obj.is_content_check = false
1506
+                        obj.is_status=2
1507
+                     }
1508
+                     this.list.push(obj)
1509
+                  }
1510
+                  
1511
+              }
1512
+
1513
+              if(patientFallsessment.PatientFallassessmentAddCopy!=null&&patientFallsessment.PatientFallassessmentAddCopy.length>0){
1514
+                  
1515
+                 var obj = {id:0,is_content_check_one:false,content:"",is_status:2}
1516
+                  for(let i=0;i<patientFallsessment.PatientFallassessmentAddCopy.length;i++){
1517
+                     obj.content = patientFallsessment.PatientFallassessmentAddCopy[i].content
1518
+                     obj.id = patientFallsessment.PatientFallassessmentAddCopy[i].id
1519
+                     if(patientFallsessment.PatientFallassessmentAddCopy[i].is_check_status==1){
1520
+                          obj.is_content_check_one = true
1521
+                          obj.is_status=1
1522
+                     }else{
1523
+                          obj.is_content_check_one = false
1524
+                          obj.is_status=2
1525
+                     }
1526
+                     this.listOne.push(obj)
1527
+                  }
1528
+                 
1529
+              }
1264 1530
              
1265 1531
              
1266 1532
 
@@ -1336,47 +1602,53 @@ export default{
1336 1602
       getPatientFallsessmentList(params).then(response=>{
1337 1603
          if(response.data.state ==1){
1338 1604
            var list =  response.data.data.list
1339
-           console.log("list=========",list)
1340
-          
1341
-           for(let i=0;i<list.length;i++){
1342
-            list[i].content =""
1343
-            if(list[i].is_check_eight ==1){
1344
-              list[i].content = "在病人床头悬挂'防跌倒'、'防坠床'警示牌"
1345
-            }
1346
-            if(list[i].is_check_night == 1){
1347
-              list[i].content =  list[i].content + "呼叫器及用物放置病人易取处,教会使用呼叫器"
1348
-            }
1349
-            if(list[i].is_check_ten == 1){
1350
-              list[i].content =  list[i].content + "及时给予便器,床上(边)大小便"
1351
-            }
1352
-            if(list[i].is_check_eleven == 1){
1353
-              list[i].content =  list[i].content + "使用床档"
1354
-            }
1355
-            if(list[i].is_check_twelve == 1){
1356
-              list[i].content =  list[i].content + "使用约束带"
1357
-            }
1358
-            if(list[i].is_check_thirteen == 1){
1359
-              list[i].content =  list[i].content + "使用助行器"
1360
-            }
1361
-            if(list[i].is_check_fourteen == 1){
1362
-              list[i].content =  list[i].content + "需要时协助病人上、下床"
1363
-            }
1364
-            if(list[i].is_check_fourteen == 1){
1365
-              list[i].content =  list[i].content + "协助病人如厕"
1366
-            }
1367
-            if(list[i].is_check_sixteen == 1){
1368
-              list[i].content =  list[i].content + "避免地面积水、湿滑"
1369
-            }
1370
-            if(list[i].is_check_seventeen == 1){
1371
-              list[i].content =  list[i].content + "消除床旁及通道障碍"
1372
-            }
1373
-            if(list[i].is_check_eighteen == 1){
1374
-              list[i].content =  list[i].content + "病床调至合适高度"
1375
-            }
1376
-            if(list[i].is_check_nineteen == 1){
1377
-              list[i].content =  list[i].content + "及时锁上病床及轮椅的轮轴"
1605
+           
1606
+           if(list!=null && list.length >0){
1607
+            for(let i=0;i<list.length;i++){
1608
+              list[i].content =""
1609
+              if(list[i].is_check_eight ==1){
1610
+                list[i].content = "在病人床头悬挂'防跌倒'、'防坠床'警示牌"
1611
+              }
1612
+              if(list[i].is_check_night == 1){
1613
+                list[i].content =  list[i].content + "呼叫器及用物放置病人易取处,教会使用呼叫器"
1614
+              }
1615
+              if(list[i].is_check_ten == 1){
1616
+                list[i].content =  list[i].content + "及时给予便器,床上(边)大小便"
1617
+              }
1618
+              if(list[i].is_check_eleven == 1){
1619
+                list[i].content =  list[i].content + "使用床档"
1620
+              }
1621
+              if(list[i].is_check_twelve == 1){
1622
+                list[i].content =  list[i].content + "使用约束带"
1623
+              }
1624
+              if(list[i].is_check_thirteen == 1){
1625
+                list[i].content =  list[i].content + "使用助行器"
1626
+              }
1627
+              if(list[i].is_check_fourteen == 1){
1628
+                list[i].content =  list[i].content + "需要时协助病人上、下床"
1629
+              }
1630
+              if(list[i].is_check_fourteen == 1){
1631
+                list[i].content =  list[i].content + "协助病人如厕"
1632
+              }
1633
+              if(list[i].is_check_sixteen == 1){
1634
+                list[i].content =  list[i].content + "避免地面积水、湿滑"
1635
+              }
1636
+              if(list[i].is_check_seventeen == 1){
1637
+                list[i].content =  list[i].content + "消除床旁及通道障碍"
1638
+              }
1639
+              if(list[i].is_check_eighteen == 1){
1640
+                list[i].content =  list[i].content + "病床调至合适高度"
1641
+              }
1642
+              if(list[i].is_check_nineteen == 1){
1643
+                list[i].content =  list[i].content + "及时锁上病床及轮椅的轮轴"
1644
+              }
1645
+
1646
+            
1378 1647
             }
1648
+
1649
+             
1379 1650
            }
1651
+        
1380 1652
           
1381 1653
           
1382 1654
            this.tableData =  list

+ 1 - 1
src/xt_pages/user/patients.vue Vedi File

@@ -352,7 +352,7 @@
352 352
       
353 353
   
354 354
         <el-button type="primary" size="small" style="float:right" @click="toExport">导出</el-button>
355
-        <el-button type="primary" size="small" style="float:right" @click="toExportOne">导出2</el-button>
355
+        <!-- <el-button type="primary" size="small" style="float:right" @click="toExportOne">导出2</el-button> -->
356 356
       </div>
357 357
       <div  class="cell clearfix">
358 358