|
@@ -1,41 +1,48 @@
|
1
|
1
|
<template>
|
2
|
|
- <div id='prescription-print' class="prescription-print">
|
|
2
|
+ <div>
|
|
3
|
+ <div id='prescription-print' class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
|
3
|
4
|
<div class="printTitle">血液透析中心处方笺</div>
|
4
|
5
|
<div class="infoTitle">
|
5
|
|
- <p>姓名:{{patient.name?patient.name:""}}</p>
|
|
6
|
+ <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
|
6
|
7
|
<p>性别:
|
7
|
|
- <span v-if="patient.gender == 1">男</span>
|
8
|
|
- <span v-if="patient.gender == 2">女</span>
|
|
8
|
+ <span v-if="item.patient.gender == 1">男</span>
|
|
9
|
+ <span v-if="item.patient.gender == 2">女</span>
|
9
|
10
|
</p>
|
10
|
|
- <p>年龄:{{patient.age?patient.age:""}}岁</p>
|
|
11
|
+ <p>年龄:{{item.patient.age?item.patient.age:""}}岁</p>
|
11
|
12
|
</div>
|
12
|
13
|
<div class="infoMain">
|
13
|
|
- <div style="margin-bottom: 10px;">门诊号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
|
14
|
|
- <div style="margin-bottom: 10px;">科室:{{getDepart(this.hisPatient.departments?this.hisPatient.departments:"")}}</div>
|
15
|
|
- <div style="margin-bottom: 10px;">医保卡号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
|
16
|
|
- <div style="margin-bottom: 10px;">电话:{{patient.phone}}</div>
|
17
|
|
- <div>地址:{{patient.home_address}}</div>
|
18
|
|
- <div style="display:flex;width:50%;">临床诊断:{{patient.diagnose}}</div>
|
|
14
|
+ <div style="margin-bottom: 10px;">门诊号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
|
|
15
|
+ <div style="margin-bottom: 10px;">科室:{{getDepart(item.hisPatient.departments?item.hisPatient.departments:"")}}</div>
|
|
16
|
+ <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
|
|
17
|
+ <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
|
|
18
|
+ <div>地址:{{item.patient.home_address}}</div>
|
|
19
|
+ <div style="display:flex;width:50%;">临床诊断:{{item.patient.diagnose}}</div>
|
19
|
20
|
</div>
|
20
|
21
|
<div class="prescriptionBox">
|
21
|
22
|
<div class="Rp">Rp:</div>
|
22
|
|
- <div class="drugsBox" v-for="(item,index) in advicePrint" :key="index">
|
23
|
|
- <div class="drugsOne">{{item.advice_name?item.advice_name:""}} {{item.single_dose}}{{item.single_dose_unit}} × {{item.prescribing_number}}{{item.prescribing_number_unit}}</div>
|
24
|
|
- <div style="margin-left:100px;"><span>用法:{{item.single_dose}}{{item.single_dose_unit}}</span> <span>{{item.execution_frequency}}</span> <span>{{item.advice_desc}}</span></div>
|
|
23
|
+ <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
|
|
24
|
+ <div class="drugsOne">{{it.advice_name?it.advice_name:""}} {{it.single_dose}}{{it.single_dose_unit}} × {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
|
|
25
|
+ <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span> <span>{{it.execution_frequency}}</span> <span>{{it.advice_desc}}</span></div>
|
25
|
26
|
</div>
|
26
|
27
|
</div>
|
27
|
28
|
<div class="doctorBox">
|
28
|
|
- <p>医师:{{getDoctor(advicePrint[0].advice_doctor)?getDoctor(advicePrint[0].advice_doctor):""}}</p>
|
29
|
|
- <p>日期:{{getTime(advicePrint[0].advice_date)?getTime(advicePrint[0].advice_date):""}}</p>
|
|
29
|
+ <p>医师:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
|
|
30
|
+ <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
|
30
|
31
|
</div>
|
31
|
32
|
<div class="actionBar">
|
32
|
|
- <p>审核:{{getDoctor(advicePrint[0].advice_doctor)?getDoctor(advicePrint[0].advice_doctor):""}}</p>
|
33
|
|
- <p>配对:{{getDoctor(advicePrint[0].advice_doctor)?getDoctor(advicePrint[0].advice_doctor):""}}</p>
|
34
|
|
- <p>核对:{{getDoctor(advicePrint[0].checker)?getDoctor(advicePrint[0].checker):""}}</p>
|
35
|
|
- <p>发药:{{getDoctor(advicePrint[0].execution_staff)?getDoctor(advicePrint[0].execution_staff):""}}</p>
|
36
|
|
- <p>药费:{{advicePrint[0].price?advicePrint[0].price:""}}</p>
|
|
33
|
+ <p>审核:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
|
|
34
|
+ <p>配对:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
|
|
35
|
+ <p>核对:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
|
|
36
|
+ <p>发药:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
|
|
37
|
+ <p>药费:</p>
|
37
|
38
|
</div>
|
38
|
39
|
</div>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+</div>
|
|
44
|
+
|
|
45
|
+
|
39
|
46
|
</template>
|
40
|
47
|
<script>
|
41
|
48
|
import { jsGetAge, uParseTime } from '@/utils/tools'
|
|
@@ -92,29 +99,30 @@ export default {
|
92
|
99
|
// prescription_id:this.prescription_id,
|
93
|
100
|
patient_id:this.$route.query.patient_id,
|
94
|
101
|
record_date:this.$route.query.record,
|
95
|
|
- prescription_id:this.$route.query.prescription_id
|
|
102
|
+ prescription_id:this.$route.query.prescription_id,
|
|
103
|
+ ids:this.$route.query.ids
|
96
|
104
|
}
|
97
|
105
|
console.log("params---",params)
|
98
|
106
|
getPrescriptionPrint(params).then(response=>{
|
99
|
107
|
if(response.data.state == 1){
|
100
|
108
|
var advicePrint = response.data.data.advicePrint
|
101
|
|
- console.log("adviceprint",advicePrint)
|
|
109
|
+ console.log("adviceprint9999",advicePrint)
|
102
|
110
|
this.advicePrint = advicePrint
|
103
|
|
- var patient = response.data.data.patient
|
104
|
|
- console.log("patient",patient)
|
105
|
|
- this.patient = patient
|
106
|
|
- var doctorPorject = response.data.data.doctorPorject
|
|
111
|
+ // var patient = response.data.data.patient
|
|
112
|
+ // console.log("patient",patient)
|
|
113
|
+ // this.patient = patient
|
|
114
|
+ // var doctorPorject = response.data.data.doctorPorject
|
107
|
115
|
|
108
|
|
- var arr = doctorPorject.project
|
109
|
|
- console.log("我的中谷歌",arr)
|
110
|
|
- for(let i=0;i<arr.length;i++){
|
111
|
|
- console.log("arr",arr[i].project_name)
|
112
|
|
- }
|
113
|
|
- this.tableData = arr
|
114
|
|
- console.log("3333",this.tableData)
|
115
|
|
- var prescriptioninfo = response.data.data.prescriptionInfo
|
116
|
|
- console.log("prescriptioninfo",prescriptioninfo)
|
117
|
|
- this.prescriptionInfo = prescriptioninfo
|
|
116
|
+ // var arr = doctorPorject.project
|
|
117
|
+ // console.log("我的中谷歌",arr)
|
|
118
|
+ // for(let i=0;i<arr.length;i++){
|
|
119
|
+ // console.log("arr",arr[i].project_name)
|
|
120
|
+ // }
|
|
121
|
+ // this.tableData = arr
|
|
122
|
+ // console.log("3333",this.tableData)
|
|
123
|
+ // var prescriptioninfo = response.data.data.prescriptionInfo
|
|
124
|
+ // console.log("prescriptioninfo",prescriptioninfo)
|
|
125
|
+ // this.prescriptionInfo = prescriptioninfo
|
118
|
126
|
}
|
119
|
127
|
})
|
120
|
128
|
},
|
|
@@ -153,6 +161,8 @@ export default {
|
153
|
161
|
this.getInitData()
|
154
|
162
|
this.getPrescriptionPrint()
|
155
|
163
|
this.getHisPatientDetail()
|
|
164
|
+
|
|
165
|
+
|
156
|
166
|
},
|
157
|
167
|
// watch:{
|
158
|
168
|
// patient_id:function(val){
|