|
@@ -1,343 +1,347 @@
|
1
|
1
|
<template>
|
2
|
|
- <div id='prescriptionPrint'>
|
3
|
|
- <div id='prescription-print' class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
|
4
|
|
-
|
5
|
|
- <div style="display:flex;justify-content: space-between;font-weight:bold;align-items:center;">
|
6
|
|
- <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
|
7
|
|
- <span>费别</span>
|
8
|
|
- <span>自费</span>
|
9
|
|
- <span>公费</span>
|
10
|
|
- <span>保险</span>
|
11
|
|
- <span>其他</span>
|
|
2
|
+ <div id='prescriptionPrint'>
|
|
3
|
+ <div id='prescription-print' class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
|
|
4
|
+
|
|
5
|
+ <div style="display:flex;justify-content: space-between;font-weight:bold;align-items:center;">
|
|
6
|
+ <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
|
|
7
|
+ <span>费别</span>
|
|
8
|
+ <span>自费</span>
|
|
9
|
+ <span>公费</span>
|
|
10
|
+ <span>保险</span>
|
|
11
|
+ <span>其他</span>
|
|
12
|
+ </div>
|
|
13
|
+ <div>就诊日期:{{getTime(item.ctime,'{y}-{m}-{d}')}}</div>
|
12
|
14
|
</div>
|
13
|
|
- <div>就诊日期:{{getTime(item.ctime,"{y}-{m}-{d}")}}</div>
|
14
|
|
- </div>
|
15
|
15
|
|
16
|
|
- <div class="printTitle">{{orgname}}</div>
|
17
|
|
- <div class="printTitle">处方、治疗单</div>
|
|
16
|
+ <div class="printTitle">{{orgname}}</div>
|
|
17
|
+ <div class="printTitle">处方、治疗单</div>
|
18
|
18
|
|
19
|
|
- <div class="infoTitle">
|
20
|
|
- <div>门诊编号:</div>
|
21
|
|
- <div>电脑号:</div>
|
22
|
|
- </div>
|
|
19
|
+ <div class="infoTitle">
|
|
20
|
+ <div>门诊编号:</div>
|
|
21
|
+ <div>电脑号:</div>
|
|
22
|
+ </div>
|
23
|
23
|
|
24
|
|
- <div class="infoMain">
|
25
|
|
- <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
|
26
|
|
- <div style="margin-bottom: 10px;width:25%">性别:
|
27
|
|
- <span v-if="item.patient.gender == 1">男</span>
|
28
|
|
- <span v-if="item.patient.gender == 2">女</span>
|
|
24
|
+ <div class="infoMain">
|
|
25
|
+ <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
|
|
26
|
+ <div style="margin-bottom: 10px;width:25%">性别:
|
|
27
|
+ <span v-if="item.patient.gender == 1">男</span>
|
|
28
|
+ <span v-if="item.patient.gender == 2">女</span>
|
|
29
|
+ </div>
|
|
30
|
+ <div style="margin-bottom: 10px;width:25%">年龄:
|
|
31
|
+ <span>{{item.patient.age}}</span>
|
|
32
|
+ </div>
|
|
33
|
+ <div style="margin-bottom: 10px;width:25%">参保类型:{{hisPatient.social_type?hisPatient.social_type:''}}
|
|
34
|
+ </div>
|
|
35
|
+ <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
|
|
36
|
+ <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
|
|
37
|
+ <div style="width:100%;">诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
|
29
|
38
|
</div>
|
30
|
|
- <div style="margin-bottom: 10px;width:25%">年龄:
|
31
|
|
- <span>{{item.patient.age}}</span>
|
|
39
|
+
|
|
40
|
+ <div class="prescriptionBox">
|
|
41
|
+ <table style="width:100%;text-align:center;line-height:25px;">
|
|
42
|
+ <tr>
|
|
43
|
+ <td>序号</td>
|
|
44
|
+ <td>项目名称</td>
|
|
45
|
+ <td>数量</td>
|
|
46
|
+ <td>单位</td>
|
|
47
|
+ <td>单价</td>
|
|
48
|
+ <td>部位</td>
|
|
49
|
+ <td>备注</td>
|
|
50
|
+ <td>天数</td>
|
|
51
|
+ </tr>
|
|
52
|
+ <tr v-for="(it,index) in item.project" :key="index">
|
|
53
|
+ <td>{{index+1}}</td>
|
|
54
|
+ <td>{{it.type == 2 ?getProjectName(it.project_id):it.good_info.good_name}}</td>
|
|
55
|
+ <td>{{it.single_dose}}</td>
|
|
56
|
+ <td>{{getUnit(it.unit)}}</td>
|
|
57
|
+ <td>{{it.price}}</td>
|
|
58
|
+ <td></td>
|
|
59
|
+ <td>{{it.remark}}</td>
|
|
60
|
+ <td>{{it.day}}</td>
|
|
61
|
+
|
|
62
|
+ </tr>
|
|
63
|
+
|
|
64
|
+ <tr v-for="(it,index) in item.advices" :key="index">
|
|
65
|
+ <td>{{index+1}}</td>
|
|
66
|
+ <td>{{it.advice_name?it.advice_name:''}}</td>
|
|
67
|
+ <td>{{it.single_dose?it.single_dose:''}}</td>
|
|
68
|
+ <td>{{it.single_dose_unit?it.single_dose_unit:''}}</td>
|
|
69
|
+ <td>{{it.price}}</td>
|
|
70
|
+ <td></td>
|
|
71
|
+ <td>{{it.remark}}</td>
|
|
72
|
+ <td>{{it.day}}</td>
|
|
73
|
+
|
|
74
|
+ </tr>
|
|
75
|
+ </table>
|
|
76
|
+ </div>
|
|
77
|
+
|
|
78
|
+ <div class="infoTitle">
|
|
79
|
+ <div>开单医生:{{item.doctor?item.doctor:''}}</div>
|
|
80
|
+ <div>签章:</div>
|
32
|
81
|
</div>
|
33
|
|
- <div style="margin-bottom: 10px;width:25%">参保类型:{{hisPatient.social_type?hisPatient.social_type:''}}</div>
|
34
|
|
- <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
|
35
|
|
- <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
|
36
|
|
- <div style="width:100%;">诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
|
37
|
|
- </div>
|
38
|
82
|
|
39
|
|
- <div class="prescriptionBox">
|
40
|
|
- <table style="width:100%;text-align:center;line-height:25px;">
|
|
83
|
+ <div class="actionBar">
|
|
84
|
+ <div>执行医生:{{item.doctor?item.doctor:''}}</div>
|
|
85
|
+ <div>费用:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}元</div>
|
|
86
|
+ </div>
|
|
87
|
+
|
|
88
|
+ <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
|
41
|
89
|
<tr>
|
42
|
|
- <td>序号</td>
|
43
|
|
- <td>项目名称</td>
|
44
|
|
- <td>数量</td>
|
45
|
|
- <td>单位</td>
|
46
|
|
- <td>单价</td>
|
47
|
|
- <td>部位</td>
|
48
|
|
- <td>备注</td>
|
49
|
|
- <td>天数</td>
|
|
90
|
+ <td style="width:16%;">治疗时间</td>
|
|
91
|
+ <td style="width:16%;"></td>
|
|
92
|
+ <td style="width:16%;"></td>
|
|
93
|
+ <td style="width:16%;"></td>
|
|
94
|
+ <td style="width:16%;"></td>
|
|
95
|
+ <td style="width:16%;"></td>
|
50
|
96
|
</tr>
|
51
|
|
- <tr v-for="(it,index) in item.project" :key="index">
|
52
|
|
- <td>{{index+1}}</td>
|
53
|
|
- <td>{{it.type == 2 ?getProjectName(it.project_id):it.good_info.good_name}}</td>
|
54
|
|
- <td>{{it.single_dose}}</td>
|
55
|
|
- <td>{{getUnit(it.unit)}}</td>
|
56
|
|
- <td>{{it.price}}</td>
|
57
|
|
- <td></td>
|
58
|
|
- <td>{{it.remark}}</td>
|
59
|
|
- <td>{{it.day}}</td>
|
60
|
|
-
|
|
97
|
+ <tr>
|
|
98
|
+ <td style="width:16%;">医生签字</td>
|
|
99
|
+ <td style="width:16%;"></td>
|
|
100
|
+ <td style="width:16%;"></td>
|
|
101
|
+ <td style="width:16%;"></td>
|
|
102
|
+ <td style="width:16%;"></td>
|
|
103
|
+ <td style="width:16%;"></td>
|
61
|
104
|
</tr>
|
62
|
|
-
|
63
|
|
- <tr v-for="(it,index) in item.advices" :key="index">
|
64
|
|
- <td>{{index+1}}</td>
|
65
|
|
- <td>{{it.advice_name?it.advice_name:''}}</td>
|
66
|
|
- <td>{{it.single_dose?it.single_dose:''}}</td>
|
67
|
|
- <td>{{it.single_dose_unit?it.single_dose_unit:''}}</td>
|
68
|
|
- <td>{{it.price}}</td>
|
69
|
|
- <td></td>
|
70
|
|
- <td>{{it.remark}}</td>
|
71
|
|
- <td>{{it.day}}</td>
|
72
|
|
-
|
|
105
|
+ <tr>
|
|
106
|
+ <td style="width:16px;">患者签字</td>
|
|
107
|
+ <td style="width:16px;"></td>
|
|
108
|
+ <td style="width:16px;"></td>
|
|
109
|
+ <td style="width:16px;"></td>
|
|
110
|
+ <td style="width:16px;"></td>
|
|
111
|
+ <td style="width:16px;"></td>
|
73
|
112
|
</tr>
|
74
|
113
|
</table>
|
75
|
114
|
</div>
|
76
|
115
|
|
77
|
|
- <div class="infoTitle">
|
78
|
|
- <div>开单医生:{{item.doctor?item.doctor:""}}</div>
|
79
|
|
- <div>签章:</div>
|
80
|
|
- </div>
|
81
|
116
|
|
82
|
|
- <div class="actionBar">
|
83
|
|
- <div>执行医生:{{item.doctor?item.doctor:""}}</div>
|
84
|
|
- <div>费用:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}元</div>
|
85
|
|
- </div>
|
|
117
|
+ <!-- <div id='prescriptionPrint'>
|
86
|
118
|
|
87
|
|
- <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
|
88
|
|
- <tr>
|
89
|
|
- <td style="width:16%;">治疗时间</td>
|
90
|
|
- <td style="width:16%;"></td>
|
91
|
|
- <td style="width:16%;"></td>
|
92
|
|
- <td style="width:16%;"></td>
|
93
|
|
- <td style="width:16%;"></td>
|
94
|
|
- <td style="width:16%;"></td>
|
95
|
|
- </tr>
|
96
|
|
- <tr>
|
97
|
|
- <td style="width:16%;">医生签字</td>
|
98
|
|
- <td style="width:16%;"></td>
|
99
|
|
- <td style="width:16%;"></td>
|
100
|
|
- <td style="width:16%;"></td>
|
101
|
|
- <td style="width:16%;"></td>
|
102
|
|
- <td style="width:16%;"></td>
|
103
|
|
- </tr>
|
104
|
|
- <tr>
|
105
|
|
- <td style="width:16px;">患者签字</td>
|
106
|
|
- <td style="width:16px;"></td>
|
107
|
|
- <td style="width:16px;"></td>
|
108
|
|
- <td style="width:16px;"></td>
|
109
|
|
- <td style="width:16px;"></td>
|
110
|
|
- <td style="width:16px;"></td>
|
111
|
|
- </tr>
|
112
|
|
- </table>
|
113
|
|
- </div>
|
114
|
|
-
|
115
|
|
-
|
116
|
|
- <!-- <div id='prescriptionPrint'>
|
117
|
|
-
|
118
|
|
- <div v-for="(item,index) in advicePrint" :key="index">
|
119
|
|
- <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
|
120
|
|
- <div style="display:flex;justify-content: space-between;font-weight:bold;">
|
121
|
|
- <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
|
122
|
|
- <span>费别</span>
|
123
|
|
- <span>自费</span>
|
124
|
|
- <span>公费</span>
|
125
|
|
- <span>保险</span>
|
126
|
|
- <span>其他</span>
|
|
119
|
+ <div v-for="(item,index) in advicePrint" :key="index">
|
|
120
|
+ <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
|
|
121
|
+ <div style="display:flex;justify-content: space-between;font-weight:bold;">
|
|
122
|
+ <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
|
|
123
|
+ <span>费别</span>
|
|
124
|
+ <span>自费</span>
|
|
125
|
+ <span>公费</span>
|
|
126
|
+ <span>保险</span>
|
|
127
|
+ <span>其他</span>
|
|
128
|
+ </div>
|
|
129
|
+ <div>就诊日期:{{getTime(item.ctime)}}</div>
|
127
|
130
|
</div>
|
128
|
|
- <div>就诊日期:{{getTime(item.ctime)}}</div>
|
129
|
|
- </div>
|
130
|
131
|
|
131
|
|
- <div class="printTitle">血液透析中心</div>
|
|
132
|
+ <div class="printTitle">血液透析中心</div>
|
132
|
133
|
|
133
|
|
- <div class="printTitle">处方、治疗单</div>
|
|
134
|
+ <div class="printTitle">处方、治疗单</div>
|
134
|
135
|
|
135
|
|
- <div class="infoTitle">
|
136
|
|
- <div>门诊编号:</div>
|
137
|
|
- <div>电脑号:</div>
|
138
|
|
- </div>
|
139
|
|
-
|
140
|
|
- <div class="infoMain">
|
141
|
|
- <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
|
142
|
|
- <div style="margin-bottom: 10px;width:25%">性别:
|
143
|
|
- <span v-if="item.patient.gender == 1">男</span>
|
144
|
|
- <span v-if="item.patient.gender == 2">女</span>
|
|
136
|
+ <div class="infoTitle">
|
|
137
|
+ <div>门诊编号:</div>
|
|
138
|
+ <div>电脑号:</div>
|
145
|
139
|
</div>
|
146
|
|
- <div style="margin-bottom: 10px;width:25%">年龄:
|
147
|
|
- <span>{{item.patient.age}}</span>
|
|
140
|
+
|
|
141
|
+ <div class="infoMain">
|
|
142
|
+ <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
|
|
143
|
+ <div style="margin-bottom: 10px;width:25%">性别:
|
|
144
|
+ <span v-if="item.patient.gender == 1">男</span>
|
|
145
|
+ <span v-if="item.patient.gender == 2">女</span>
|
|
146
|
+ </div>
|
|
147
|
+ <div style="margin-bottom: 10px;width:25%">年龄:
|
|
148
|
+ <span>{{item.patient.age}}</span>
|
|
149
|
+ </div>
|
|
150
|
+ <div style="margin-bottom: 10px;width:25%">参保类型:</div>
|
|
151
|
+ <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
|
|
152
|
+ <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
|
|
153
|
+ <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
|
148
|
154
|
</div>
|
149
|
|
- <div style="margin-bottom: 10px;width:25%">参保类型:</div>
|
150
|
|
- <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
|
151
|
|
- <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
|
152
|
|
- <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
|
153
|
|
- </div>
|
154
|
155
|
|
155
|
|
- <div class="prescriptionBox">
|
156
|
|
- <table style="width:100%;text-align:center;line-height:25px;">
|
|
156
|
+ <div class="prescriptionBox">
|
|
157
|
+ <table style="width:100%;text-align:center;line-height:25px;">
|
|
158
|
+ <tr>
|
|
159
|
+ <td>序号</td>
|
|
160
|
+ <td>项目名称</td>
|
|
161
|
+ <td>数量</td>
|
|
162
|
+ <td>单位</td>
|
|
163
|
+ <td>单价</td>
|
|
164
|
+ <td>部位</td>
|
|
165
|
+ <td>备注</td>
|
|
166
|
+ <td>天数</td>
|
|
167
|
+ </tr>
|
|
168
|
+ <tr v-for="(it,index) in item.project" :key="index">
|
|
169
|
+ <td>{{index+1}}</td>
|
|
170
|
+ <td>{{getProjectName(it.project_id)}}</td>
|
|
171
|
+ <td>{{it.single_dose}}</td>
|
|
172
|
+ <td>{{getUnit(it.unit)}}</td>
|
|
173
|
+ <td>{{it.price}}</td>
|
|
174
|
+ <td></td>
|
|
175
|
+ <td>{{it.remark}}</td>
|
|
176
|
+ <td>{{it.day}}</td>
|
|
177
|
+
|
|
178
|
+ </tr>
|
|
179
|
+ </table>
|
|
180
|
+ </div>
|
|
181
|
+ <div class="infoTitle">
|
|
182
|
+ <div>开单医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
|
|
183
|
+ <div>签章:</div>
|
|
184
|
+ </div>
|
|
185
|
+ <div class="actionBar">
|
|
186
|
+ <div>执行医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
|
|
187
|
+ <div>费用:</div>
|
|
188
|
+ </div>
|
|
189
|
+ <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
|
157
|
190
|
<tr>
|
158
|
|
- <td>序号</td>
|
159
|
|
- <td>项目名称</td>
|
160
|
|
- <td>数量</td>
|
161
|
|
- <td>单位</td>
|
162
|
|
- <td>单价</td>
|
163
|
|
- <td>部位</td>
|
164
|
|
- <td>备注</td>
|
165
|
|
- <td>天数</td>
|
|
191
|
+ <td style="width:16%;">治疗时间</td>
|
|
192
|
+ <td style="width:16%;"></td>
|
|
193
|
+ <td style="width:16%;"></td>
|
|
194
|
+ <td style="width:16%;"></td>
|
|
195
|
+ <td style="width:16%;"></td>
|
|
196
|
+ <td style="width:16%;"></td>
|
166
|
197
|
</tr>
|
167
|
|
- <tr v-for="(it,index) in item.project" :key="index">
|
168
|
|
- <td>{{index+1}}</td>
|
169
|
|
- <td>{{getProjectName(it.project_id)}}</td>
|
170
|
|
- <td>{{it.single_dose}}</td>
|
171
|
|
- <td>{{getUnit(it.unit)}}</td>
|
172
|
|
- <td>{{it.price}}</td>
|
173
|
|
- <td></td>
|
174
|
|
- <td>{{it.remark}}</td>
|
175
|
|
- <td>{{it.day}}</td>
|
176
|
|
-
|
|
198
|
+ <tr>
|
|
199
|
+ <td style="width:16%;">医生签字</td>
|
|
200
|
+ <td style="width:16%;"></td>
|
|
201
|
+ <td style="width:16%;"></td>
|
|
202
|
+ <td style="width:16%;"></td>
|
|
203
|
+ <td style="width:16%;"></td>
|
|
204
|
+ <td style="width:16%;"></td>
|
|
205
|
+ </tr>
|
|
206
|
+ <tr>
|
|
207
|
+ <td style="width:16px;">患者签字</td>
|
|
208
|
+ <td style="width:16px;"></td>
|
|
209
|
+ <td style="width:16px;"></td>
|
|
210
|
+ <td style="width:16px;"></td>
|
|
211
|
+ <td style="width:16px;"></td>
|
|
212
|
+ <td style="width:16px;"></td>
|
177
|
213
|
</tr>
|
178
|
214
|
</table>
|
179
|
215
|
</div>
|
180
|
|
- <div class="infoTitle">
|
181
|
|
- <div>开单医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
|
182
|
|
- <div>签章:</div>
|
183
|
|
- </div>
|
184
|
|
- <div class="actionBar">
|
185
|
|
- <div>执行医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
|
186
|
|
- <div>费用:</div>
|
187
|
|
- </div>
|
188
|
|
- <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
|
189
|
|
- <tr>
|
190
|
|
- <td style="width:16%;">治疗时间</td>
|
191
|
|
- <td style="width:16%;"></td>
|
192
|
|
- <td style="width:16%;"></td>
|
193
|
|
- <td style="width:16%;"></td>
|
194
|
|
- <td style="width:16%;"></td>
|
195
|
|
- <td style="width:16%;"></td>
|
196
|
|
- </tr>
|
197
|
|
- <tr>
|
198
|
|
- <td style="width:16%;">医生签字</td>
|
199
|
|
- <td style="width:16%;"></td>
|
200
|
|
- <td style="width:16%;"></td>
|
201
|
|
- <td style="width:16%;"></td>
|
202
|
|
- <td style="width:16%;"></td>
|
203
|
|
- <td style="width:16%;"></td>
|
204
|
|
- </tr>
|
205
|
|
- <tr>
|
206
|
|
- <td style="width:16px;">患者签字</td>
|
207
|
|
- <td style="width:16px;"></td>
|
208
|
|
- <td style="width:16px;"></td>
|
209
|
|
- <td style="width:16px;"></td>
|
210
|
|
- <td style="width:16px;"></td>
|
211
|
|
- <td style="width:16px;"></td>
|
212
|
|
- </tr>
|
213
|
|
- </table>
|
214
|
|
- </div>
|
215
|
216
|
|
216
|
|
- </div>
|
|
217
|
+ </div>
|
217
|
218
|
|
218
|
|
- </div> -->
|
219
|
|
- </div>
|
|
219
|
+ </div> -->
|
|
220
|
+ </div>
|
220
|
221
|
</template>
|
221
|
222
|
<script>
|
222
|
|
-import { jsGetAge, uParseTime } from '@/utils/tools'
|
223
|
|
-import {getAllDoctorList,getPrescriptionPrint} from "@/api/project/project"
|
224
|
|
-import {getInitData} from "@/api/his/his"
|
225
|
|
-export default {
|
226
|
|
- props:{
|
227
|
|
- patient_id:Number,
|
228
|
|
- record_date:String,
|
229
|
|
- prescription_id:Number,
|
230
|
|
- ids:String
|
|
223
|
+ import { jsGetAge, uParseTime } from '@/utils/tools'
|
|
224
|
+ import { getAllDoctorList, getPrescriptionPrint } from '@/api/project/project'
|
|
225
|
+ import { getInitData } from '@/api/his/his'
|
|
226
|
+
|
|
227
|
+ export default {
|
|
228
|
+ props: {
|
|
229
|
+ patient_id: Number,
|
|
230
|
+ record_date: String,
|
|
231
|
+ prescription_id: Number,
|
|
232
|
+ ids: String
|
231
|
233
|
},
|
232
|
|
- data(){
|
|
234
|
+ data() {
|
233
|
235
|
return {
|
234
|
|
- doctorList:[],
|
235
|
|
- advicePrint:{},
|
236
|
|
- patient:{},
|
237
|
|
- tableData:[],
|
238
|
|
- prescriptionInfo:[],
|
239
|
|
- projectList:[],
|
240
|
|
- prescriptions:[],
|
|
236
|
+ doctorList: [],
|
|
237
|
+ advicePrint: {},
|
|
238
|
+ patient: {},
|
|
239
|
+ tableData: [],
|
|
240
|
+ prescriptionInfo: [],
|
|
241
|
+ projectList: [],
|
|
242
|
+ prescriptions: [],
|
241
|
243
|
settlement:
|
242
|
|
- [
|
243
|
|
- {value: 1,label: '医保'},
|
244
|
|
- {value: 2,label: '自费'},
|
245
|
|
- {value: 3,label:'公费'},
|
246
|
|
- {value: 4,label:'农保'},
|
247
|
|
- {value: 5,label:'会员'},
|
248
|
|
- {value: 6,label:'职工'},
|
249
|
|
- {value: 7,label:'合同'}
|
250
|
|
- ],
|
251
|
|
- hisPatient:{},
|
252
|
|
- diagnoses:[]
|
|
244
|
+ [
|
|
245
|
+ { value: 1, label: '医保' },
|
|
246
|
+ { value: 2, label: '自费' },
|
|
247
|
+ { value: 3, label: '公费' },
|
|
248
|
+ { value: 4, label: '农保' },
|
|
249
|
+ { value: 5, label: '会员' },
|
|
250
|
+ { value: 6, label: '职工' },
|
|
251
|
+ { value: 7, label: '合同' },
|
|
252
|
+ { value: 8, label: '医保自费' }
|
|
253
|
+
|
|
254
|
+ ],
|
|
255
|
+ hisPatient: {},
|
|
256
|
+ diagnoses: []
|
253
|
257
|
}
|
254
|
258
|
},
|
255
|
|
- methods:{
|
256
|
|
- printThisPage() {
|
257
|
|
- var ptime = Math.round(new Date().getTime() / 1000);
|
258
|
|
- this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
259
|
|
-
|
260
|
|
- const style =
|
261
|
|
- '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 1px;padding:0 10px;}.infoTitle p{width: 200px;}.otherInfo{display: flex;margin-top:10px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle p{width: 200px;}}';
|
262
|
|
- printJS({
|
263
|
|
- printable: "prescription-print",
|
264
|
|
- type: "html",
|
265
|
|
- style: style,
|
266
|
|
- scanStyles: false
|
267
|
|
- });
|
268
|
|
- },
|
269
|
|
- getAllDoctorList(){
|
270
|
|
- getAllDoctorList().then(response=>{
|
271
|
|
- if(response.data.state == 1){
|
272
|
|
- var doctor = response.data.data.doctor
|
273
|
|
-
|
274
|
|
- this.doctorList = doctor
|
275
|
|
- }
|
276
|
|
- })
|
277
|
|
- },
|
278
|
|
-
|
279
|
|
- getDoctor(id){
|
280
|
|
- var name = ""
|
281
|
|
- for(let i=0;i<this.doctorList.length;i++){
|
282
|
|
- if(id == this.doctorList[i].admin_user_id){
|
283
|
|
- name = this.doctorList[i].user_name
|
|
259
|
+ methods: {
|
|
260
|
+ printThisPage() {
|
|
261
|
+ var ptime = Math.round(new Date().getTime() / 1000)
|
|
262
|
+ this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
|
|
263
|
+
|
|
264
|
+ const style =
|
|
265
|
+ '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 1px;padding:0 10px;}.infoTitle p{width: 200px;}.otherInfo{display: flex;margin-top:10px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle p{width: 200px;}}'
|
|
266
|
+ printJS({
|
|
267
|
+ printable: 'prescription-print',
|
|
268
|
+ type: 'html',
|
|
269
|
+ style: style,
|
|
270
|
+ scanStyles: false
|
|
271
|
+ })
|
|
272
|
+ },
|
|
273
|
+ getAllDoctorList() {
|
|
274
|
+ getAllDoctorList().then(response => {
|
|
275
|
+ if (response.data.state == 1) {
|
|
276
|
+ var doctor = response.data.data.doctor
|
|
277
|
+
|
|
278
|
+ this.doctorList = doctor
|
|
279
|
+ }
|
|
280
|
+ })
|
|
281
|
+ },
|
|
282
|
+
|
|
283
|
+ getDoctor(id) {
|
|
284
|
+ var name = ''
|
|
285
|
+ for (let i = 0; i < this.doctorList.length; i++) {
|
|
286
|
+ if (id == this.doctorList[i].admin_user_id) {
|
|
287
|
+ name = this.doctorList[i].user_name
|
284
|
288
|
}
|
285
|
289
|
}
|
286
|
290
|
return name
|
287
|
291
|
},
|
288
|
292
|
getTime(value, temp) {
|
289
|
293
|
if (value != undefined) {
|
290
|
|
- return uParseTime(value, temp)
|
|
294
|
+ return uParseTime(value, temp)
|
291
|
295
|
}
|
292
|
296
|
return ''
|
293
|
|
- },
|
294
|
|
- getPrescriptionPrint(){
|
295
|
|
- var params = {
|
296
|
|
- patient_id:this.patient_id,
|
297
|
|
- record_date:this.record_date,
|
298
|
|
- prescription_id:this.prescription_id,
|
299
|
|
- ids:this.ids,
|
|
297
|
+ },
|
|
298
|
+ getPrescriptionPrint() {
|
|
299
|
+ var params = {
|
|
300
|
+ patient_id: this.patient_id,
|
|
301
|
+ record_date: this.record_date,
|
|
302
|
+ prescription_id: this.prescription_id,
|
|
303
|
+ ids: this.ids
|
300
|
304
|
}
|
301
|
|
- console.log("999999",params)
|
302
|
|
- getPrescriptionPrint(params).then(response=>{
|
303
|
|
- if(response.data.state == 1){
|
304
|
|
- var advicePrint = response.data.data.advicePrint
|
305
|
|
- console.log("adviceprint",advicePrint)
|
|
305
|
+ console.log('999999', params)
|
|
306
|
+ getPrescriptionPrint(params).then(response => {
|
|
307
|
+ if (response.data.state == 1) {
|
|
308
|
+ var advicePrint = response.data.data.advicePrint
|
|
309
|
+ console.log('adviceprint', advicePrint)
|
306
|
310
|
this.advicePrint = advicePrint
|
307
|
311
|
this.prescriptions = advicePrint
|
308
|
|
- var projectlist = response.data.data.projectlist
|
309
|
|
- console.log("所有项目列表",projectlist)
|
|
312
|
+ var projectlist = response.data.data.projectlist
|
|
313
|
+ console.log('所有项目列表', projectlist)
|
310
|
314
|
this.projectList = projectlist
|
311
|
315
|
this.hisPatient = response.data.data.hisPatient
|
312
|
316
|
|
313
|
317
|
}
|
314
|
|
- })
|
315
|
|
- },
|
316
|
|
- getProjectName(id){
|
317
|
|
- var project_name = ""
|
318
|
|
- for(let i=0;i<this.projectList.length;i++){
|
319
|
|
- if(id == this.projectList[i].id){
|
320
|
|
- project_name = this.projectList[i].project_name
|
321
|
|
- }
|
|
318
|
+ })
|
|
319
|
+ },
|
|
320
|
+ getProjectName(id) {
|
|
321
|
+ var project_name = ''
|
|
322
|
+ for (let i = 0; i < this.projectList.length; i++) {
|
|
323
|
+ if (id == this.projectList[i].id) {
|
|
324
|
+ project_name = this.projectList[i].project_name
|
|
325
|
+ }
|
322
|
326
|
}
|
323
|
327
|
return project_name
|
324
|
|
- },
|
325
|
|
- getUnit(id){
|
326
|
|
- var unit=""
|
327
|
|
- for(let i=0;i<this.projectList.length;i++){
|
328
|
|
- if(id == this.projectList[i].id){
|
329
|
|
- unit = this.projectList[i].unit
|
330
|
|
- }
|
|
328
|
+ },
|
|
329
|
+ getUnit(id) {
|
|
330
|
+ var unit = ''
|
|
331
|
+ for (let i = 0; i < this.projectList.length; i++) {
|
|
332
|
+ if (id == this.projectList[i].id) {
|
|
333
|
+ unit = this.projectList[i].unit
|
|
334
|
+ }
|
331
|
335
|
}
|
332
|
336
|
return unit
|
333
|
|
- },
|
|
337
|
+ },
|
334
|
338
|
|
335
|
|
- getTotalOne(id) {
|
|
339
|
+ getTotalOne(id) {
|
336
|
340
|
|
337
|
341
|
var total = 0
|
338
|
342
|
var addtotal = 0
|
339
|
343
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
340
|
|
- if(id == this.prescriptions[i].id){
|
|
344
|
+ if (id == this.prescriptions[i].id) {
|
341
|
345
|
if (this.prescriptions[i].project != null) {
|
342
|
346
|
for (let a = 0; a < this.prescriptions[i].project.length; a++) {
|
343
|
347
|
total = total + this.prescriptions[i].project[a].price * this.prescriptions[i].project[a].count
|
|
@@ -349,13 +353,13 @@ export default {
|
349
|
353
|
addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
|
350
|
354
|
}
|
351
|
355
|
}
|
352
|
|
- addtotal = Math.floor(addtotal * 100) / 100
|
353
|
|
- }
|
|
356
|
+ addtotal = Math.floor(addtotal * 100) / 100
|
|
357
|
+ }
|
354
|
358
|
|
355
|
|
- }
|
|
359
|
+ }
|
356
|
360
|
|
357
|
|
- for (let i = 0; i < this.prescriptions.length; i++) {
|
358
|
|
- if(id == this.prescriptions[i].id){
|
|
361
|
+ for (let i = 0; i < this.prescriptions.length; i++) {
|
|
362
|
+ if (id == this.prescriptions[i].id) {
|
359
|
363
|
if (this.prescriptions[i].advices != null) {
|
360
|
364
|
for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
|
361
|
365
|
total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
|
|
@@ -367,118 +371,132 @@ export default {
|
367
|
371
|
addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
|
368
|
372
|
}
|
369
|
373
|
}
|
370
|
|
- addtotal = Math.floor(addtotal * 100) / 100
|
|
374
|
+ addtotal = Math.floor(addtotal * 100) / 100
|
|
375
|
+ }
|
371
|
376
|
}
|
372
|
|
- }
|
373
|
377
|
|
374
|
378
|
return total + addtotal
|
375
|
379
|
},
|
376
|
|
- getInitData(){
|
377
|
|
- getInitData().then(response=>{
|
378
|
|
- if(response.data.state == 1){
|
|
380
|
+ getInitData() {
|
|
381
|
+ getInitData().then(response => {
|
|
382
|
+ if (response.data.state == 1) {
|
379
|
383
|
this.diagnoses = response.data.data.diagnose
|
380
|
|
- console.log("争端",this.diagnoses)
|
|
384
|
+ console.log('争端', this.diagnoses)
|
381
|
385
|
}
|
382
|
|
- })
|
383
|
|
- },
|
384
|
|
- getDiagnosis(id){
|
385
|
|
- var name = ""
|
386
|
|
- for(let i=0;i<this.diagnoses.length;i++){
|
387
|
|
- if(id == this.diagnoses[i].id){
|
388
|
|
- name = this.diagnoses[i].class_name
|
|
386
|
+ })
|
|
387
|
+ },
|
|
388
|
+ getDiagnosis(id) {
|
|
389
|
+ var name = ''
|
|
390
|
+ for (let i = 0; i < this.diagnoses.length; i++) {
|
|
391
|
+ if (id == this.diagnoses[i].id) {
|
|
392
|
+ name = this.diagnoses[i].class_name
|
389
|
393
|
}
|
390
|
394
|
}
|
391
|
395
|
return name
|
392
|
|
- }
|
393
|
|
- },
|
394
|
|
- created(){
|
|
396
|
+ }
|
|
397
|
+ },
|
|
398
|
+ created() {
|
395
|
399
|
this.getInitData()
|
396
|
400
|
this.getAllDoctorList()
|
397
|
401
|
this.getPrescriptionPrint()
|
398
|
402
|
var xtuser = this.$store.getters.xt_user
|
399
|
403
|
this.orgname = xtuser.org.org_name
|
400
|
404
|
|
401
|
|
- },
|
402
|
|
- watch:{
|
403
|
|
- patient_id:function(val){
|
404
|
|
- console.log("101000010101010",this.patient_id,this.record_date,this.prescription_id)
|
405
|
|
- // this.getPrescriptionPrint()
|
406
|
|
- },
|
407
|
|
- ids:function(val){
|
408
|
|
- this.ids = val
|
409
|
|
- console.log('this.idsids',this.ids)
|
410
|
|
- this.getPrescriptionPrint()
|
411
|
|
- }
|
412
|
|
- }
|
413
|
|
-}
|
|
405
|
+ },
|
|
406
|
+ watch: {
|
|
407
|
+ patient_id: function(val) {
|
|
408
|
+ console.log('101000010101010', this.patient_id, this.record_date, this.prescription_id)
|
|
409
|
+ // this.getPrescriptionPrint()
|
|
410
|
+ },
|
|
411
|
+ ids: function(val) {
|
|
412
|
+ this.ids = val
|
|
413
|
+ console.log('this.idsids', this.ids)
|
|
414
|
+ this.getPrescriptionPrint()
|
|
415
|
+ }
|
|
416
|
+ }
|
|
417
|
+ }
|
414
|
418
|
</script>
|
415
|
419
|
|
416
|
420
|
|
417
|
421
|
<style lang="scss" scoped>
|
418
|
|
-.prescription-print{
|
419
|
|
- -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
|
420
|
|
- -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
421
|
|
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
422
|
|
- margin-bottom: 20px;
|
423
|
|
- padding:20px 10px;
|
424
|
|
-}
|
425
|
|
-.prescription-print{
|
426
|
|
- font-size: 14px;
|
427
|
|
-}
|
428
|
|
-.printTitle{
|
429
|
|
- font-size: 18px;
|
430
|
|
- text-align: center;
|
431
|
|
- font-weight: bold;
|
432
|
|
- margin-top: 10px;
|
433
|
|
-}
|
434
|
|
-.infoTitle{
|
435
|
|
- display: flex;
|
436
|
|
- border-bottom: 2px solid #000;
|
437
|
|
- margin-top:10px;
|
438
|
|
- line-height: 24px;
|
439
|
|
- padding:0 10px;
|
440
|
|
-}
|
441
|
|
-.infoTitle div{
|
442
|
|
- width: 300px;
|
443
|
|
-}
|
444
|
|
-.infoMain{
|
445
|
|
- display: flex;
|
446
|
|
- flex-wrap: wrap;
|
447
|
|
- border-bottom: 2px solid #000;
|
448
|
|
- padding:0 10px;
|
449
|
|
-}
|
450
|
|
-.infoMain div{
|
451
|
|
- width: 50%;
|
452
|
|
- line-height: 24px;
|
453
|
|
-}
|
454
|
|
-.prescriptionBox{
|
455
|
|
- padding:0 10px;
|
456
|
|
- min-height:600px;
|
457
|
|
-}
|
458
|
|
-.Rp{
|
459
|
|
- font-size: 22px;
|
460
|
|
- font-weight: bold;
|
461
|
|
-}
|
462
|
|
-.drugsBox{
|
463
|
|
- padding-left: 40px;
|
464
|
|
- margin-bottom: 10px;
|
465
|
|
-}
|
466
|
|
-.drugsBox p{
|
467
|
|
- line-height: 30px;
|
468
|
|
-}
|
469
|
|
-.drugsOne{
|
470
|
|
- line-height: 24px;
|
471
|
|
-}
|
472
|
|
-.drugsOne span{
|
473
|
|
- margin-right: 20px;
|
474
|
|
-}
|
475
|
|
-.actionBar{
|
476
|
|
- display: flex;
|
477
|
|
- justify-content: space-between;
|
478
|
|
- line-height: 24px;
|
479
|
|
- padding:0 10px;
|
480
|
|
-}
|
481
|
|
-.actionBar div{
|
482
|
|
- width:150px;
|
483
|
|
-}
|
|
422
|
+ .prescription-print {
|
|
423
|
+ -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
|
|
424
|
+ -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
|
425
|
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
|
426
|
+ margin-bottom: 20px;
|
|
427
|
+ padding: 20px 10px;
|
|
428
|
+ }
|
|
429
|
+
|
|
430
|
+ .prescription-print {
|
|
431
|
+ font-size: 14px;
|
|
432
|
+ }
|
|
433
|
+
|
|
434
|
+ .printTitle {
|
|
435
|
+ font-size: 18px;
|
|
436
|
+ text-align: center;
|
|
437
|
+ font-weight: bold;
|
|
438
|
+ margin-top: 10px;
|
|
439
|
+ }
|
|
440
|
+
|
|
441
|
+ .infoTitle {
|
|
442
|
+ display: flex;
|
|
443
|
+ border-bottom: 2px solid #000;
|
|
444
|
+ margin-top: 10px;
|
|
445
|
+ line-height: 24px;
|
|
446
|
+ padding: 0 10px;
|
|
447
|
+ }
|
|
448
|
+
|
|
449
|
+ .infoTitle div {
|
|
450
|
+ width: 300px;
|
|
451
|
+ }
|
|
452
|
+
|
|
453
|
+ .infoMain {
|
|
454
|
+ display: flex;
|
|
455
|
+ flex-wrap: wrap;
|
|
456
|
+ border-bottom: 2px solid #000;
|
|
457
|
+ padding: 0 10px;
|
|
458
|
+ }
|
|
459
|
+
|
|
460
|
+ .infoMain div {
|
|
461
|
+ width: 50%;
|
|
462
|
+ line-height: 24px;
|
|
463
|
+ }
|
|
464
|
+
|
|
465
|
+ .prescriptionBox {
|
|
466
|
+ padding: 0 10px;
|
|
467
|
+ min-height: 600px;
|
|
468
|
+ }
|
|
469
|
+
|
|
470
|
+ .Rp {
|
|
471
|
+ font-size: 22px;
|
|
472
|
+ font-weight: bold;
|
|
473
|
+ }
|
|
474
|
+
|
|
475
|
+ .drugsBox {
|
|
476
|
+ padding-left: 40px;
|
|
477
|
+ margin-bottom: 10px;
|
|
478
|
+ }
|
|
479
|
+
|
|
480
|
+ .drugsBox p {
|
|
481
|
+ line-height: 30px;
|
|
482
|
+ }
|
|
483
|
+
|
|
484
|
+ .drugsOne {
|
|
485
|
+ line-height: 24px;
|
|
486
|
+ }
|
|
487
|
+
|
|
488
|
+ .drugsOne span {
|
|
489
|
+ margin-right: 20px;
|
|
490
|
+ }
|
|
491
|
+
|
|
492
|
+ .actionBar {
|
|
493
|
+ display: flex;
|
|
494
|
+ justify-content: space-between;
|
|
495
|
+ line-height: 24px;
|
|
496
|
+ padding: 0 10px;
|
|
497
|
+ }
|
|
498
|
+
|
|
499
|
+ .actionBar div {
|
|
500
|
+ width: 150px;
|
|
501
|
+ }
|
484
|
502
|
</style>
|