|
@@ -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,8 +25,7 @@
|
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>
|
|
@@ -34,7 +33,7 @@
|
34
|
33
|
<div class="detailMain">
|
35
|
34
|
<span style="width:240px;">处方号:{{order.prescription_number}}</span>
|
36
|
35
|
<span style="width:200px;">医生:{{order.doctor}}</span>
|
37
|
|
- <span style="width:200px;">科室:{{order.departments}}</span>
|
|
36
|
+ <span style="width:200px;">科室:{{getDepartMent(order.departments)}}</span>
|
38
|
37
|
<span style="width:200px;">创建时间: {{getTimes(order.ctime,"{y}-{m}-{d} {h}:{i}")}}</span>
|
39
|
38
|
</div>
|
40
|
39
|
<div class="commonCell">
|
|
@@ -76,7 +75,7 @@
|
76
|
75
|
</div>
|
77
|
76
|
<div class="commonCell">
|
78
|
77
|
<p>过敏史</p>
|
79
|
|
- <div>{{order.sick_history}}</div>
|
|
78
|
+ <div>{{case_history.past_history}}</div>
|
80
|
79
|
</div>
|
81
|
80
|
<div class="commonCell">
|
82
|
81
|
<p>既往史</p>
|
|
@@ -106,6 +105,8 @@
|
106
|
105
|
import { getHisPrescriptionInfo } from '@/api/his/his'
|
107
|
106
|
import NewPrescriptionTable from './newPrescriptionTable'
|
108
|
107
|
import { uParseTime } from '@/utils/tools'
|
|
108
|
+ import { getAllDoctorList } from "@/api/project/project"
|
|
109
|
+import moment from 'moment';
|
109
|
110
|
|
110
|
111
|
export default {
|
111
|
112
|
components: { NewPrescriptionTable },
|
|
@@ -138,14 +139,18 @@
|
138
|
139
|
search_input: '',
|
139
|
140
|
case_history:{},
|
140
|
141
|
order:{},
|
|
142
|
+ doctorList:[],
|
|
143
|
+ departmentList:[]
|
141
|
144
|
}
|
142
|
145
|
},
|
143
|
146
|
methods: {
|
144
|
147
|
open(index){
|
145
|
148
|
if(index == 1){
|
146
|
149
|
|
|
150
|
+ // /outpatientDoctorStation/print?record=2020-12-11&prescription_id=157&ids=157,159&patient_id=1064
|
147
|
151
|
}else if(index == 2){
|
148
|
|
-
|
|
152
|
+ var record_date = this.format(this.case_history.sick_date)
|
|
153
|
+ this.$router.push("/outpatientDoctorStation/recordPrint?record="+record_date+"&patient_id="+this.case_history.patient_id)
|
149
|
154
|
}
|
150
|
155
|
},
|
151
|
156
|
getTimes(time,temp) {
|
|
@@ -202,6 +207,7 @@
|
202
|
207
|
this.patientInfo = response.data.data.order.patient
|
203
|
208
|
this.hisPatientInfo = response.data.data.order.his_patient
|
204
|
209
|
this.case_history = response.data.data.order.case_history
|
|
210
|
+ console.log("历史详情",this.case_history)
|
205
|
211
|
this.order = response.data.data.order
|
206
|
212
|
|
207
|
213
|
|
|
@@ -270,6 +276,36 @@
|
270
|
276
|
// this.clear()
|
271
|
277
|
this.visible = false
|
272
|
278
|
},
|
|
279
|
+ getAllDoctorList(){
|
|
280
|
+ getAllDoctorList().then(response=>{
|
|
281
|
+ if(response.data.state == 1){
|
|
282
|
+ var doctor = response.data.data.doctor
|
|
283
|
+ this.doctorList = doctor
|
|
284
|
+ var department = response.data.data.department
|
|
285
|
+ console.log("department",department)
|
|
286
|
+ this.departmentList = department
|
|
287
|
+ }
|
|
288
|
+ })
|
|
289
|
+ },
|
|
290
|
+ getDepartMent(id){
|
|
291
|
+ var name = ""
|
|
292
|
+ for(let i=0;i<this.departmentList.length;i++){
|
|
293
|
+ if(id == this.departmentList[i].id){
|
|
294
|
+ name = this.departmentList[i].name
|
|
295
|
+ }
|
|
296
|
+ }
|
|
297
|
+ return name
|
|
298
|
+ },
|
|
299
|
+
|
|
300
|
+ format(time){
|
|
301
|
+ moment.locale()
|
|
302
|
+ var times = time*1000
|
|
303
|
+ times = moment(times).format('YYYY-MM-DD')
|
|
304
|
+ return times
|
|
305
|
+ }
|
|
306
|
+ },
|
|
307
|
+ created(){
|
|
308
|
+ this.getAllDoctorList()
|
273
|
309
|
}
|
274
|
310
|
}
|
275
|
311
|
</script>
|