|
@@ -289,7 +289,9 @@
|
289
|
289
|
<template v-if="index==yi&&item.advices.length>5">
|
290
|
290
|
<div style="margin: 20px 0px;">
|
291
|
291
|
<div style="border-bottom: 2px solid #000; width: 100%;margin-right: 30px;padding: 0 10px;line-height: 24px;" >
|
292
|
|
- <p style="text-align: right;">医师:{{ item.doctor ? item.doctor : "" }}</p>
|
|
292
|
+ <p style="text-align: right;">医师:{{ getAdminUser(item.creator)}}</p>
|
|
293
|
+ <!-- <span v-if="setAdminUserES(item.creator)==''" ></span>{{ item.doctor ? item.doctor : "" }} -->
|
|
294
|
+ <!-- <img style="height:30px;" :src="setAdminUserES(item.creator)" alt srcset /> -->
|
293
|
295
|
</div>
|
294
|
296
|
|
295
|
297
|
<div class="actionBar" >
|
|
@@ -404,7 +406,10 @@
|
404
|
406
|
<p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
|
405
|
407
|
</div> -->
|
406
|
408
|
<div style="border-bottom: 2px solid #000; width: 100%;margin-right: 30px;padding: 0 10px;line-height: 24px;" >
|
407
|
|
- <p style="text-align: right;">医师:{{ item.doctor ? item.doctor : "" }}</p>
|
|
409
|
+ <!-- <p style="text-align: right;">医师:{{ item.doctor ? item.doctor : "" }}</p> -->
|
|
410
|
+ <p style="text-align: right;">医师:{{ getAdminUser(item.creator)}}</p>
|
|
411
|
+ <!-- <span ></span> -->
|
|
412
|
+ <!-- <img style="height:30px;" :src="setAdminUserES(item.creator)" alt srcset /> -->
|
408
|
413
|
</div>
|
409
|
414
|
<!-- <div style="display: flex;justify-content: space-around;border-bottom: 2px solid #000;">
|
410
|
415
|
<p style="width:300px;">大额处方患者意见:
|
|
@@ -488,26 +493,49 @@ export default{
|
488
|
493
|
operatorMaps: {},
|
489
|
494
|
operators: [],
|
490
|
495
|
doctorList_1: [],
|
|
496
|
+ adminUser:[],
|
491
|
497
|
};
|
492
|
498
|
},
|
493
|
499
|
methods: {
|
494
|
500
|
// 电子签名
|
495
|
|
- setAdminUserES(id,name) {
|
496
|
|
- console.log(id)
|
497
|
|
- console.log(name)
|
498
|
|
- console.log(this.operatorMaps)
|
499
|
|
-
|
500
|
|
-
|
|
501
|
+ // setAdminUserES(id,name) {
|
|
502
|
+ // console.log(id)
|
|
503
|
+ // console.log(name)
|
|
504
|
+ // console.log(this.operatorMaps)
|
|
505
|
+ // if (id == 0) {
|
|
506
|
+ // return "";
|
|
507
|
+ // }
|
|
508
|
+ // if (id in this.operatorMaps) {
|
|
509
|
+ // return this.operatorMaps[id].url;
|
|
510
|
+ // } else {
|
|
511
|
+ // this.doc_name = name
|
|
512
|
+ // return "";
|
|
513
|
+ // }
|
|
514
|
+ // },
|
|
515
|
+ setAdminUserES(id) {
|
|
516
|
+ console.log('5555555555',this.operatorMaps);
|
501
|
517
|
if (id == 0) {
|
502
|
518
|
return "";
|
503
|
519
|
}
|
504
|
520
|
if (id in this.operatorMaps) {
|
505
|
521
|
return this.operatorMaps[id].url;
|
506
|
522
|
} else {
|
507
|
|
- this.doc_name = name
|
508
|
523
|
return "";
|
509
|
524
|
}
|
510
|
525
|
},
|
|
526
|
+ getAdminUser(id) {
|
|
527
|
+ if (id == 0) {
|
|
528
|
+ return "";
|
|
529
|
+ }
|
|
530
|
+ if (id == undefined) {
|
|
531
|
+ return "";
|
|
532
|
+ }
|
|
533
|
+ for (let i = 0; i < this.adminUser.length; i++) {
|
|
534
|
+ if (this.adminUser[i].admin_user_id == id) {
|
|
535
|
+ return this.adminUser[i].user_name;
|
|
536
|
+ }
|
|
537
|
+ }
|
|
538
|
+ },
|
511
|
539
|
getAge(patient) {
|
512
|
540
|
if(patient.id_card_no == "TWN001836483"){
|
513
|
541
|
return patient.age
|
|
@@ -556,6 +584,7 @@ export default{
|
556
|
584
|
}
|
557
|
585
|
return "";
|
558
|
586
|
},
|
|
587
|
+ //数据源
|
559
|
588
|
getPrescriptionPrint() {
|
560
|
589
|
var params = {
|
561
|
590
|
patient_id: this.patient_id,
|
|
@@ -571,7 +600,7 @@ export default{
|
571
|
600
|
console.log("response.data.data", response.data.data);
|
572
|
601
|
this.advicePrint = advicePrint;
|
573
|
602
|
this.prescriptions = advicePrint;
|
574
|
|
-
|
|
603
|
+ this.adminUser = response.data.data.roles
|
575
|
604
|
this.doctorList_1 = response.data.data.eles;
|
576
|
605
|
for(let i=0;i<this.advicePrint.length;i++){
|
577
|
606
|
const arr = new Array()
|
|
@@ -586,10 +615,6 @@ export default{
|
586
|
615
|
}
|
587
|
616
|
}
|
588
|
617
|
|
589
|
|
- // this.advicePrint[i]['advices'][0]['arr'] = arr
|
590
|
|
- // this.advicePrint[i]["arr"] = arr
|
591
|
|
- // console.log('55555',arr);
|
592
|
|
- // console.log('ttttt',arr);
|
593
|
618
|
for(let x in arr){
|
594
|
619
|
for(let j in this.advicePrint[i].advices){
|
595
|
620
|
if(arr[x][0].groupno==this.advicePrint[i].advices[j].groupno){
|