|
@@ -55,13 +55,13 @@
|
55
|
55
|
<p>
|
56
|
56
|
医师:
|
57
|
57
|
<span
|
58
|
|
- style="width: 100px; display: inline-block"
|
|
58
|
+ style="display: inline-block"
|
59
|
59
|
v-if="item.creator == ''"
|
60
|
60
|
>
|
61
|
61
|
{{ item.doctor }}
|
62
|
62
|
</span>
|
63
|
63
|
<span
|
64
|
|
- style="width: 100px; display: inline-block"
|
|
64
|
+ style="display: inline-block"
|
65
|
65
|
v-else-if="doc_name != ''"
|
66
|
66
|
>
|
67
|
67
|
{{ doc_name }}
|
|
@@ -71,7 +71,7 @@
|
71
|
71
|
:src="setAdminUserES(item.creator,item.doctor)"
|
72
|
72
|
alt=""
|
73
|
73
|
srcset=""
|
74
|
|
- v-else
|
|
74
|
+
|
75
|
75
|
/>
|
76
|
76
|
</p>
|
77
|
77
|
<p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
|
|
@@ -125,9 +125,29 @@ export default {
|
125
|
125
|
projectList:[],
|
126
|
126
|
orgname:"",
|
127
|
127
|
diagnoses:[],
|
|
128
|
+ operatorMaps: {},
|
|
129
|
+ operators: [],
|
|
130
|
+ doctorList_1: [],
|
128
|
131
|
}
|
129
|
132
|
},
|
130
|
133
|
methods:{
|
|
134
|
+ // 电子签名
|
|
135
|
+ setAdminUserES(id,name) {
|
|
136
|
+ console.log(id)
|
|
137
|
+ console.log(name)
|
|
138
|
+ console.log(this.operatorMaps)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+ if (id == 0) {
|
|
142
|
+ return "";
|
|
143
|
+ }
|
|
144
|
+ if (id in this.operatorMaps) {
|
|
145
|
+ return this.operatorMaps[id].url;
|
|
146
|
+ } else {
|
|
147
|
+ this.doc_name = name
|
|
148
|
+ return "";
|
|
149
|
+ }
|
|
150
|
+ },
|
131
|
151
|
getAge(patient){
|
132
|
152
|
var thisLen = patient.id_card_no.length
|
133
|
153
|
var birth = ''
|
|
@@ -191,6 +211,18 @@ export default {
|
191
|
211
|
this.advicePrint = advicePrint
|
192
|
212
|
this.prescriptions = advicePrint
|
193
|
213
|
console.log("处方222222",this.prescriptions)
|
|
214
|
+ this.doctorList_1 = response.data.data.eles;
|
|
215
|
+ console.log(this.doctorList_1, "医生列表");
|
|
216
|
+ if (this.doctorList_1.length > 0) {
|
|
217
|
+ var operatorsLen = this.doctorList_1.length;
|
|
218
|
+ for (var index = 0; index < operatorsLen; index++) {
|
|
219
|
+ this.$set(
|
|
220
|
+ this.operatorMaps,
|
|
221
|
+ this.doctorList_1[index].creator,
|
|
222
|
+ this.doctorList_1[index]
|
|
223
|
+ );
|
|
224
|
+ }
|
|
225
|
+ }
|
194
|
226
|
var hisPatient = response.data.data.hisPatient
|
195
|
227
|
console.log("hisPatient",hisPatient)
|
196
|
228
|
this.hisPatient = hisPatient
|