|
@@ -6,7 +6,7 @@
|
6
|
6
|
:before-close="_close"
|
7
|
7
|
class="detailDialog"
|
8
|
8
|
>
|
9
|
|
- <div style="position: absolute;right:20px;">
|
|
9
|
+ <div style="position: absolute;right:20px;z-index:99">
|
10
|
10
|
<el-button v-if="activeName == 'first'" @click="open(1)" type="primary">打印</el-button>
|
11
|
11
|
<el-button v-if="activeName == 'second'" @click="open(2)" type="primary">打印</el-button>
|
12
|
12
|
</div>
|
|
@@ -25,31 +25,29 @@
|
25
|
25
|
<div class="RP">
|
26
|
26
|
Rp
|
27
|
27
|
</div>
|
28
|
|
- <new-prescription-table ref="prescription_tables"
|
29
|
|
- :prescription="curPrescriptions"></new-prescription-table>
|
|
28
|
+ <new-prescription-table ref="prescription_tables" :prescription="curPrescriptions"></new-prescription-table>
|
30
|
29
|
</el-tabs>
|
31
|
30
|
|
32
|
31
|
</el-tab-pane>
|
33
|
32
|
<el-tab-pane label="病历详情" name="second">
|
34
|
|
- <div class="detailMain">
|
35
|
|
- <span style="width:240px;">处方号:{{order.prescription_number}}</span>
|
36
|
|
- <span style="width:200px;">医生:{{order.doctor}}</span>
|
37
|
|
- <span style="width:200px;">科室:{{order.departments}}</span>
|
38
|
|
- <span style="width:200px;">创建时间: {{getTimes(order.ctime,"{y}-{m}-{d} {h}:{i}")}}</span>
|
39
|
|
- </div>
|
40
|
33
|
<div class="commonCell">
|
41
|
|
- <p>基本信息</p>
|
|
34
|
+ <p style="color:#409EFF;">基本信息</p>
|
42
|
35
|
<div class="detailMain">
|
43
|
|
- <span style="width:240px;">疾病名称:{{case_history.diagnostic}}</span>
|
44
|
|
- <span style="width:200px;">症状:{{case_history.diagnostic}}</span>
|
45
|
|
- <span style="width:200px;">发病日期:{{getTimes(case_history.sick_date,"{y}-{m}-{d}")}}</span>
|
46
|
|
- <span style="width:200px;" v-if="case_history.is_infect== 1">是否传染:是</span>
|
47
|
|
- <span style="width:200px;" v-if="case_history.is_infect != 1">是否传染:否</span>
|
|
36
|
+ <span style="width:260px;">处方号:{{order.prescription_number}}</span>
|
|
37
|
+ <span style="width:180px;">姓名:{{order.patient.name}}</span>
|
|
38
|
+ <span style="width:240px;">证件号:{{order.patient.id_card_no}}</span>
|
|
39
|
+ <span style="width:180px;">联系电话:{{order.patient.phone}}</span>
|
|
40
|
+ <span style="width:260px;">医生:{{order.doctor}}</span>
|
|
41
|
+ <span style="width:180px;">科室:{{order.departments}}</span>
|
|
42
|
+ <span style="width:240px;">创建时间: {{getTimes(order.ctime,"{y}-{m}-{d} {h}:{i}")}}</span>
|
|
43
|
+ <!-- <span style="width:180px;">疾病名称:{{case_history.diagnostic}}</span>
|
|
44
|
+ <span style="width:180px;">症状:{{case_history.diagnostic}}</span> -->
|
|
45
|
+
|
48
|
46
|
|
49
|
47
|
</div>
|
50
|
48
|
</div>
|
51
|
49
|
<div class="commonCell">
|
52
|
|
- <p>体格信息</p>
|
|
50
|
+ <p style="color:#409EFF;">体格信息</p>
|
53
|
51
|
<div class="detailMain">
|
54
|
52
|
<span style="width:140px;">体温:{{case_history.temperature}}℃</span>
|
55
|
53
|
<span style="width:140px;">呼吸:{{case_history.breathing}} 次/分</span>
|
|
@@ -58,6 +56,14 @@
|
58
|
56
|
<span style="width:200px;">血压:{{case_history.sbp}}~{{case_history.dbp}} mmHg</span>
|
59
|
57
|
</div>
|
60
|
58
|
</div>
|
|
59
|
+ <div class="commonCell">
|
|
60
|
+ <p style="color:#409EFF;">病历信息</p>
|
|
61
|
+ <div class="detailMain">
|
|
62
|
+ <span style="width:260px;" v-if="case_history.is_infect== 1">是否传染:是</span>
|
|
63
|
+ <span style="width:260px;" v-if="case_history.is_infect != 1">是否传染:否</span>
|
|
64
|
+ <span style="width:180px;">发病日期:{{getTimes(case_history.sick_date,"{y}-{m}-{d}")}}</span>
|
|
65
|
+ </div>
|
|
66
|
+ </div>
|
61
|
67
|
<div class="commonCell">
|
62
|
68
|
<p>主诉</p>
|
63
|
69
|
<div>{{case_history.chief_conplaint}}</div>
|
|
@@ -76,7 +82,7 @@
|
76
|
82
|
</div>
|
77
|
83
|
<div class="commonCell">
|
78
|
84
|
<p>过敏史</p>
|
79
|
|
- <div>{{order.sick_history}}</div>
|
|
85
|
+ <div>{{case_history.past_history}}</div>
|
80
|
86
|
</div>
|
81
|
87
|
<div class="commonCell">
|
82
|
88
|
<p>既往史</p>
|
|
@@ -106,6 +112,8 @@
|
106
|
112
|
import { getHisPrescriptionInfo } from '@/api/his/his'
|
107
|
113
|
import NewPrescriptionTable from './newPrescriptionTable'
|
108
|
114
|
import { uParseTime } from '@/utils/tools'
|
|
115
|
+ import { getAllDoctorList } from "@/api/project/project"
|
|
116
|
+import moment from 'moment';
|
109
|
117
|
|
110
|
118
|
export default {
|
111
|
119
|
components: { NewPrescriptionTable },
|
|
@@ -138,14 +146,18 @@
|
138
|
146
|
search_input: '',
|
139
|
147
|
case_history:{},
|
140
|
148
|
order:{},
|
|
149
|
+ doctorList:[],
|
|
150
|
+ departmentList:[]
|
141
|
151
|
}
|
142
|
152
|
},
|
143
|
153
|
methods: {
|
144
|
154
|
open(index){
|
145
|
155
|
if(index == 1){
|
146
|
156
|
|
|
157
|
+ // /outpatientDoctorStation/print?record=2020-12-11&prescription_id=157&ids=157,159&patient_id=1064
|
147
|
158
|
}else if(index == 2){
|
148
|
|
-
|
|
159
|
+ var record_date = this.format(this.case_history.sick_date)
|
|
160
|
+ this.$router.push("/outpatientDoctorStation/recordPrint?record="+record_date+"&patient_id="+this.case_history.patient_id)
|
149
|
161
|
}
|
150
|
162
|
},
|
151
|
163
|
getTimes(time,temp) {
|
|
@@ -202,7 +214,9 @@
|
202
|
214
|
this.patientInfo = response.data.data.order.patient
|
203
|
215
|
this.hisPatientInfo = response.data.data.order.his_patient
|
204
|
216
|
this.case_history = response.data.data.order.case_history
|
|
217
|
+ console.log("历史详情",this.case_history)
|
205
|
218
|
this.order = response.data.data.order
|
|
219
|
+ console.log('this.order',this.order)
|
206
|
220
|
|
207
|
221
|
|
208
|
222
|
this.prescriptions = []
|
|
@@ -270,6 +284,36 @@
|
270
|
284
|
// this.clear()
|
271
|
285
|
this.visible = false
|
272
|
286
|
},
|
|
287
|
+ getAllDoctorList(){
|
|
288
|
+ getAllDoctorList().then(response=>{
|
|
289
|
+ if(response.data.state == 1){
|
|
290
|
+ var doctor = response.data.data.doctor
|
|
291
|
+ this.doctorList = doctor
|
|
292
|
+ var department = response.data.data.department
|
|
293
|
+ console.log("department",department)
|
|
294
|
+ this.departmentList = department
|
|
295
|
+ }
|
|
296
|
+ })
|
|
297
|
+ },
|
|
298
|
+ getDepartMent(id){
|
|
299
|
+ var name = ""
|
|
300
|
+ for(let i=0;i<this.departmentList.length;i++){
|
|
301
|
+ if(id == this.departmentList[i].id){
|
|
302
|
+ name = this.departmentList[i].name
|
|
303
|
+ }
|
|
304
|
+ }
|
|
305
|
+ return name
|
|
306
|
+ },
|
|
307
|
+
|
|
308
|
+ format(time){
|
|
309
|
+ moment.locale()
|
|
310
|
+ var times = time*1000
|
|
311
|
+ times = moment(times).format('YYYY-MM-DD')
|
|
312
|
+ return times
|
|
313
|
+ }
|
|
314
|
+ },
|
|
315
|
+ created(){
|
|
316
|
+ this.getAllDoctorList()
|
273
|
317
|
}
|
274
|
318
|
}
|
275
|
319
|
</script>
|
|
@@ -283,6 +327,7 @@
|
283
|
327
|
}
|
284
|
328
|
|
285
|
329
|
.detailMain {
|
|
330
|
+ flex: 1;
|
286
|
331
|
span {
|
287
|
332
|
display: inline-block;
|
288
|
333
|
}
|