|
@@ -1,9 +1,9 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div id="prescriptionPrint" class="prescription-print">
|
3
|
3
|
<div
|
4
|
|
- v-for="(i, index) in printData"
|
5
|
|
- :key="index"
|
6
|
|
- style="
|
|
4
|
+ v-for="(i, index) in printData"
|
|
5
|
+ :key="index"
|
|
6
|
+ style="
|
7
|
7
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
|
8
|
8
|
0 0 40px rgba(0, 0, 0, 0.06) inset;
|
9
|
9
|
"
|
|
@@ -11,17 +11,18 @@
|
11
|
11
|
<!-- <img style="width:100%;height:80px" v-if="org_id == 10138" src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt="">-->
|
12
|
12
|
<!--/* <img style="width:100%;height:80px" v-if="org_id == 10278" src="https://kuyi.shengws.com/bailinbeier.png" alt="">*/-->
|
13
|
13
|
<div
|
14
|
|
- id="prescription-print"
|
15
|
|
- class="prescription-print"
|
16
|
|
- style="page-break-after: always"
|
17
|
|
- v-for="(item, index) in i.prescriptions"
|
18
|
|
- :key="index"
|
|
14
|
+ id="prescription-print"
|
|
15
|
+ class="prescription-print"
|
|
16
|
+ style="page-break-after: always"
|
|
17
|
+ v-for="(item, index) in i.prescriptions"
|
|
18
|
+ v-if="getTeam(i.prescriptions).length > 0"
|
|
19
|
+ :key="index"
|
19
|
20
|
>
|
20
|
21
|
<div class="printTitle">检验申请单</div>
|
21
|
22
|
|
22
|
23
|
<div style="border: 1px solid #000">
|
23
|
24
|
<div
|
24
|
|
- style="
|
|
25
|
+ style="
|
25
|
26
|
display: flex;
|
26
|
27
|
justify-content: space-between;
|
27
|
28
|
border-bottom: 1px solid #000;
|
|
@@ -33,22 +34,22 @@
|
33
|
34
|
<div>
|
34
|
35
|
结算方式:{{
|
35
|
36
|
i.his_patient.id != 0
|
36
|
|
- ? i.his_patient.balance_accounts_type == 1
|
37
|
|
- ? "医保"
|
38
|
|
- : "自费"
|
39
|
|
- : ""
|
|
37
|
+ ? i.his_patient.balance_accounts_type == 1
|
|
38
|
+ ? '医保'
|
|
39
|
+ : '自费'
|
|
40
|
+ : ''
|
40
|
41
|
}}
|
41
|
42
|
</div>
|
42
|
43
|
<div
|
43
|
|
- v-for="item in getSingleTeam(i.prescriptions)"
|
44
|
|
- :key="item"
|
45
|
|
- style="margin-bottom: 10px"
|
|
44
|
+ v-for="item in getSingleTeam(i.prescriptions)"
|
|
45
|
+ :key="item"
|
|
46
|
+ style="margin-bottom: 10px"
|
46
|
47
|
>
|
47
|
48
|
金额:{{ item }}
|
48
|
49
|
</div>
|
49
|
50
|
</div>
|
50
|
51
|
<div
|
51
|
|
- style="
|
|
52
|
+ style="
|
52
|
53
|
display: flex;
|
53
|
54
|
justify-content: space-between;
|
54
|
55
|
border-bottom: 1px solid #000;
|
|
@@ -70,7 +71,7 @@
|
70
|
71
|
<span v-if="i.gender == 2">女</span>
|
71
|
72
|
</span>
|
72
|
73
|
</div>
|
73
|
|
- <div>年龄:{{ i.age ? i.age : "" }}岁</div>
|
|
74
|
+ <div>年龄:{{ i.age ? i.age : '' }}岁</div>
|
74
|
75
|
</div>
|
75
|
76
|
<!-- <div style="margin-bottom:20px;padding:10px 10px 0;">病史摘要:{{history.history_of_present_illness?history.history_of_present_illness:''}}</div> -->
|
76
|
77
|
<!-- <div style="margin-bottom:20px;padding:0 10px;">体格检查:
|
|
@@ -86,16 +87,16 @@
|
86
|
87
|
<div>检验项目:</div>
|
87
|
88
|
<div>
|
88
|
89
|
<div
|
89
|
|
- v-for="item in getTeam(i.prescriptions)"
|
90
|
|
- :key="item.id"
|
91
|
|
- style="margin-bottom: 10px"
|
|
90
|
+ v-for="item in getTeam(i.prescriptions)"
|
|
91
|
+ :key="item.id"
|
|
92
|
+ style="margin-bottom: 10px"
|
92
|
93
|
>
|
93
|
94
|
{{ item.team.project_team }}
|
94
|
95
|
</div>
|
95
|
96
|
</div>
|
96
|
97
|
</div>
|
97
|
98
|
<div
|
98
|
|
- style="
|
|
99
|
+ style="
|
99
|
100
|
display: flex;
|
100
|
101
|
justify-content: space-between;
|
101
|
102
|
border-top: 1px solid #000;
|
|
@@ -103,14 +104,14 @@
|
103
|
104
|
padding: 0 10px;
|
104
|
105
|
"
|
105
|
106
|
>
|
106
|
|
- <div>开单医生:{{ i.info.doctor ? i.info.doctor : "" }}</div>
|
|
107
|
+ <div>开单医生:{{ i.info.doctor ? i.info.doctor : '' }}</div>
|
107
|
108
|
<div>
|
108
|
109
|
开单日期:
|
109
|
110
|
{{
|
110
|
|
- getTime(i.info.ctime) ? getTime(i.info.ctime).split(" ")[0] : ""
|
|
111
|
+ getTime(i.info.ctime) ? getTime(i.info.ctime).split(' ')[0] : ''
|
111
|
112
|
}}
|
112
|
113
|
</div>
|
113
|
|
- <div>医生签字:{{ i.info.doctor ? i.info.doctor : "" }}</div>
|
|
114
|
+ <div>医生签字:{{ i.info.doctor ? i.info.doctor : '' }}</div>
|
114
|
115
|
</div>
|
115
|
116
|
</div>
|
116
|
117
|
<!-- <img style="width:100%;" v-if="org_id == 10138" src="https://kuyi.shengws.com/bailin/blend.jpg" alt="">-->
|
|
@@ -120,12 +121,13 @@
|
120
|
121
|
</div>
|
121
|
122
|
</template>
|
122
|
123
|
<script>
|
123
|
|
-import { jsGetAge, uParseTime } from "@/utils/tools";
|
124
|
|
-import { getAllDoctorList } from "@/api/project/project";
|
125
|
|
-import { getInitData } from "@/api/his/his";
|
|
124
|
+import { uParseTime } from '@/utils/tools'
|
|
125
|
+import { getAllDoctorList } from '@/api/project/project'
|
|
126
|
+import { getInitData } from '@/api/his/his'
|
|
127
|
+
|
126
|
128
|
export default {
|
127
|
129
|
props: {
|
128
|
|
- printData: Array,
|
|
130
|
+ printData: Array
|
129
|
131
|
},
|
130
|
132
|
data() {
|
131
|
133
|
return {
|
|
@@ -138,150 +140,149 @@ export default {
|
138
|
140
|
department: [],
|
139
|
141
|
prescriptions: [],
|
140
|
142
|
projectList: [],
|
141
|
|
- orgname: "",
|
|
143
|
+ orgname: '',
|
142
|
144
|
diagnoses: [],
|
143
|
145
|
pageArr: [],
|
144
|
146
|
faber: {},
|
145
|
147
|
total: 0,
|
146
|
148
|
projectPrint: [],
|
147
|
|
- time: "",
|
148
|
|
- doctor: "",
|
149
|
|
- org_id: "",
|
|
149
|
+ time: '',
|
|
150
|
+ doctor: '',
|
|
151
|
+ org_id: '',
|
150
|
152
|
singleProjectPrint: [],
|
151
|
|
- total_copy: [],
|
152
|
|
- };
|
|
153
|
+ total_copy: []
|
|
154
|
+ }
|
153
|
155
|
},
|
154
|
156
|
|
155
|
157
|
methods: {
|
156
|
158
|
getAllDoctorList() {
|
157
|
159
|
getAllDoctorList().then((response) => {
|
158
|
160
|
if (response.data.state == 1) {
|
159
|
|
- var doctor = response.data.data.doctor;
|
|
161
|
+ var doctor = response.data.data.doctor
|
160
|
162
|
|
161
|
|
- this.doctorList = doctor;
|
|
163
|
+ this.doctorList = doctor
|
162
|
164
|
}
|
163
|
|
- });
|
|
165
|
+ })
|
164
|
166
|
},
|
165
|
167
|
getDoctor(id) {
|
166
|
|
- var name = "";
|
|
168
|
+ var name = ''
|
167
|
169
|
for (let i = 0; i < this.doctorList.length; i++) {
|
168
|
170
|
if (id == this.doctorList[i].admin_user_id) {
|
169
|
|
- name = this.doctorList[i].user_name;
|
|
171
|
+ name = this.doctorList[i].user_name
|
170
|
172
|
}
|
171
|
173
|
}
|
172
|
|
- return name;
|
|
174
|
+ return name
|
173
|
175
|
},
|
174
|
176
|
getTime(value, temp) {
|
175
|
177
|
if (value != undefined) {
|
176
|
|
- return uParseTime(value, temp);
|
|
178
|
+ return uParseTime(value, temp)
|
177
|
179
|
}
|
178
|
|
- return "";
|
|
180
|
+ return ''
|
179
|
181
|
},
|
180
|
182
|
|
181
|
183
|
getTeam(prescriptions, isUpdate = false) {
|
182
|
|
- let projectPrint = [];
|
|
184
|
+ let projectPrint = []
|
183
|
185
|
prescriptions.forEach((item) => {
|
184
|
186
|
// !此为修改前的处理方法,因考虑到可能有逻辑错误的存在故注释,若后续需求以这个为准可放开此条!
|
|
187
|
+ if (item.project.length > 0) {
|
|
188
|
+ item.project.map((it) => {
|
|
189
|
+ if (it.type == 2) {
|
|
190
|
+ if (it.project.cost_classify == 3) {
|
|
191
|
+ projectPrint.push(it)
|
|
192
|
+ }
|
|
193
|
+ }
|
|
194
|
+ })
|
|
195
|
+ }
|
185
|
196
|
// if (item.project.length > 0) {
|
186
|
197
|
// item.project.map((it) => {
|
187
|
|
- // if (it.type == 2) {
|
188
|
|
- // if (it.project.cost_classify == 3) {
|
189
|
|
- // projectPrint.push(it);
|
190
|
|
- // }
|
191
|
|
- // }
|
|
198
|
+ // projectPrint.push(it);
|
192
|
199
|
// });
|
193
|
200
|
// }
|
194
|
|
-
|
195
|
|
- if (item.project.length > 0) {
|
196
|
|
- item.project.map((it) => {
|
197
|
|
- projectPrint.push(it);
|
198
|
|
- });
|
199
|
|
- }
|
200
|
|
- });
|
201
|
|
-
|
202
|
|
- let data = [];
|
|
201
|
+ })
|
|
202
|
+ let data = []
|
203
|
203
|
projectPrint.map((item) => {
|
204
|
204
|
// console.log(item, "999");
|
205
|
205
|
if (item.team.id == 0) {
|
206
|
|
- data.push(item);
|
|
206
|
+ data.push(item)
|
207
|
207
|
} else {
|
208
|
|
- let status = data.some((it) => it.team.id == item.team.id);
|
|
208
|
+ let status = data.some((it) => it.team.id == item.team.id)
|
209
|
209
|
if (!status) {
|
210
|
|
- data.push(item);
|
|
210
|
+ data.push(item)
|
211
|
211
|
}
|
212
|
212
|
}
|
213
|
|
- });
|
|
213
|
+ })
|
214
|
214
|
if (isUpdate) {
|
215
|
|
- this.projectPrint = data;
|
|
215
|
+ this.projectPrint = data
|
216
|
216
|
}
|
217
|
|
- return data;
|
|
217
|
+ return data
|
218
|
218
|
},
|
219
|
219
|
|
220
|
220
|
// 计算金额(单独从上面的方法割开来,防止进入死循环)
|
221
|
221
|
getSingleTeam(prescriptions) {
|
222
|
|
- let projectPrint = [];
|
223
|
|
- let total = 0;
|
|
222
|
+ let projectPrint = []
|
|
223
|
+ let total = 0
|
224
|
224
|
prescriptions.map((item) => {
|
225
|
225
|
if (item.project.length > 0) {
|
226
|
226
|
item.project.map((it) => {
|
227
|
227
|
if (it.type == 2) {
|
228
|
228
|
if (it.project.cost_classify == 3) {
|
229
|
|
- projectPrint.push(it);
|
230
|
|
- total += it.project.price * parseInt(it.count);
|
|
229
|
+ projectPrint.push(it)
|
|
230
|
+ total += it.project.price * parseInt(it.count)
|
231
|
231
|
}
|
232
|
232
|
}
|
233
|
|
- });
|
|
233
|
+ })
|
234
|
234
|
}
|
235
|
|
- });
|
236
|
|
- let total_copy = [];
|
237
|
|
- total_copy.push(total.toFixed(2));
|
238
|
|
- return total_copy;
|
|
235
|
+ })
|
|
236
|
+ let total_copy = []
|
|
237
|
+ total_copy.push(total.toFixed(2))
|
|
238
|
+ console.log(total_copy)
|
|
239
|
+ return total_copy
|
239
|
240
|
},
|
240
|
241
|
|
241
|
242
|
getInitData() {
|
242
|
243
|
getInitData().then((response) => {
|
243
|
244
|
if (response.data.state == 1) {
|
244
|
|
- this.department = response.data.data.department;
|
245
|
|
- this.diagnoses = response.data.data.diagnose.sort(this.compare("id"));
|
|
245
|
+ this.department = response.data.data.department
|
|
246
|
+ this.diagnoses = response.data.data.diagnose.sort(this.compare('id'))
|
246
|
247
|
}
|
247
|
|
- });
|
|
248
|
+ })
|
248
|
249
|
},
|
249
|
250
|
getDepart(id) {
|
250
|
|
- var name = "";
|
|
251
|
+ var name = ''
|
251
|
252
|
for (let i = 0; i < this.department.length; i++) {
|
252
|
253
|
if (id == this.department[i].id) {
|
253
|
|
- name = this.department[i].name;
|
|
254
|
+ name = this.department[i].name
|
254
|
255
|
}
|
255
|
256
|
}
|
256
|
|
- return name;
|
|
257
|
+ return name
|
257
|
258
|
},
|
258
|
259
|
getTotalOne(id) {
|
259
|
|
- var total = 0;
|
260
|
|
- var addtotal = 0;
|
|
260
|
+ var total = 0
|
|
261
|
+ var addtotal = 0
|
261
|
262
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
262
|
263
|
if (id == this.prescriptions[i].id) {
|
263
|
264
|
if (this.prescriptions[i].project != null) {
|
264
|
265
|
for (let a = 0; a < this.prescriptions[i].project.length; a++) {
|
265
|
266
|
total =
|
266
|
|
- total +
|
267
|
|
- this.prescriptions[i].project[a].price *
|
268
|
|
- this.prescriptions[i].project[a].count;
|
|
267
|
+ total +
|
|
268
|
+ this.prescriptions[i].project[a].price *
|
|
269
|
+ this.prescriptions[i].project[a].count
|
269
|
270
|
}
|
270
|
271
|
}
|
271
|
272
|
|
272
|
273
|
if (this.prescriptions[i].additionalcharge != null) {
|
273
|
274
|
for (
|
274
|
|
- let a = 0;
|
275
|
|
- a < this.prescriptions[i].additionalcharge.length;
|
276
|
|
- a++
|
|
275
|
+ let a = 0;
|
|
276
|
+ a < this.prescriptions[i].additionalcharge.length;
|
|
277
|
+ a++
|
277
|
278
|
) {
|
278
|
279
|
addtotal =
|
279
|
|
- addtotal +
|
280
|
|
- this.prescriptions[i].additionalcharge[a].price *
|
281
|
|
- this.prescriptions[i].additionalcharge[a].count;
|
|
280
|
+ addtotal +
|
|
281
|
+ this.prescriptions[i].additionalcharge[a].price *
|
|
282
|
+ this.prescriptions[i].additionalcharge[a].count
|
282
|
283
|
}
|
283
|
284
|
}
|
284
|
|
- addtotal = Math.floor(addtotal * 100) / 100;
|
|
285
|
+ addtotal = Math.floor(addtotal * 100) / 100
|
285
|
286
|
}
|
286
|
287
|
}
|
287
|
288
|
|
|
@@ -290,180 +291,180 @@ export default {
|
290
|
291
|
if (this.prescriptions[i].advices != null) {
|
291
|
292
|
for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
|
292
|
293
|
total =
|
293
|
|
- total +
|
294
|
|
- this.prescriptions[i].advices[a].price *
|
295
|
|
- this.prescriptions[i].advices[a].prescribing_number;
|
|
294
|
+ total +
|
|
295
|
+ this.prescriptions[i].advices[a].price *
|
|
296
|
+ this.prescriptions[i].advices[a].prescribing_number
|
296
|
297
|
}
|
297
|
298
|
}
|
298
|
299
|
|
299
|
300
|
if (this.prescriptions[i].additionalcharge != null) {
|
300
|
301
|
for (
|
301
|
|
- let a = 0;
|
302
|
|
- a < this.prescriptions[i].additionalcharge.length;
|
303
|
|
- a++
|
|
302
|
+ let a = 0;
|
|
303
|
+ a < this.prescriptions[i].additionalcharge.length;
|
|
304
|
+ a++
|
304
|
305
|
) {
|
305
|
306
|
addtotal =
|
306
|
|
- addtotal +
|
307
|
|
- this.prescriptions[i].additionalcharge[a].price *
|
308
|
|
- this.prescriptions[i].additionalcharge[a].count;
|
|
307
|
+ addtotal +
|
|
308
|
+ this.prescriptions[i].additionalcharge[a].price *
|
|
309
|
+ this.prescriptions[i].additionalcharge[a].count
|
309
|
310
|
}
|
310
|
311
|
}
|
311
|
|
- addtotal = Math.floor(addtotal * 100) / 100;
|
|
312
|
+ addtotal = Math.floor(addtotal * 100) / 100
|
312
|
313
|
}
|
313
|
314
|
}
|
314
|
315
|
|
315
|
|
- return total + addtotal;
|
|
316
|
+ return total + addtotal
|
316
|
317
|
},
|
317
|
318
|
|
318
|
319
|
getProjectName(id) {
|
319
|
|
- var project_name = "";
|
|
320
|
+ var project_name = ''
|
320
|
321
|
for (let i = 0; i < this.projectList.length; i++) {
|
321
|
322
|
if (id == this.projectList[i].id) {
|
322
|
|
- project_name = this.projectList[i].project_name;
|
|
323
|
+ project_name = this.projectList[i].project_name
|
323
|
324
|
}
|
324
|
325
|
}
|
325
|
|
- return project_name;
|
|
326
|
+ return project_name
|
326
|
327
|
},
|
327
|
328
|
|
328
|
329
|
getDiagnosis(ids) {
|
329
|
|
- let newIds = ids.split(",").sort(function (a, b) {
|
330
|
|
- return a - b;
|
331
|
|
- });
|
|
330
|
+ let newIds = ids.split(',').sort(function(a, b) {
|
|
331
|
+ return a - b
|
|
332
|
+ })
|
332
|
333
|
|
333
|
|
- let nameArr = [];
|
|
334
|
+ let nameArr = []
|
334
|
335
|
for (let i = 0; i < this.diagnoses.length; i++) {
|
335
|
336
|
if (newIds.indexOf(this.diagnoses[i].id.toString()) > -1) {
|
336
|
337
|
// name += diagnoses[i].class_name + ' '
|
337
|
|
- nameArr.push(this.diagnoses[i].class_name);
|
|
338
|
+ nameArr.push(this.diagnoses[i].class_name)
|
338
|
339
|
}
|
339
|
340
|
}
|
340
|
|
- let newNameArr = [];
|
|
341
|
+ let newNameArr = []
|
341
|
342
|
nameArr.map((item, index) => {
|
342
|
|
- if (item == "尿毒症") {
|
343
|
|
- newNameArr.push(item);
|
344
|
|
- nameArr.splice(index, 1, "");
|
|
343
|
+ if (item == '尿毒症') {
|
|
344
|
+ newNameArr.push(item)
|
|
345
|
+ nameArr.splice(index, 1, '')
|
345
|
346
|
}
|
346
|
|
- });
|
347
|
|
- newNameArr.push(...nameArr);
|
348
|
|
- return newNameArr.join(" ");
|
|
347
|
+ })
|
|
348
|
+ newNameArr.push(...nameArr)
|
|
349
|
+ return newNameArr.join(' ')
|
349
|
350
|
},
|
350
|
351
|
|
351
|
352
|
compare(property) {
|
352
|
|
- return function (a, b) {
|
353
|
|
- var value1 = a[property];
|
354
|
|
- var value2 = b[property];
|
355
|
|
- return value1 - value2; //升序排序
|
356
|
|
- };
|
|
353
|
+ return function(a, b) {
|
|
354
|
+ var value1 = a[property]
|
|
355
|
+ var value2 = b[property]
|
|
356
|
+ return value1 - value2 //升序排序
|
|
357
|
+ }
|
357
|
358
|
},
|
358
|
359
|
getPage() {
|
359
|
|
- this.page = 1;
|
360
|
|
- this.pageArr = [];
|
|
360
|
+ this.page = 1
|
|
361
|
+ this.pageArr = []
|
361
|
362
|
|
362
|
363
|
this.advicePrint.map((item) => {
|
363
|
|
- let arr = [];
|
364
|
|
- item.pageArr = [];
|
|
364
|
+ let arr = []
|
|
365
|
+ item.pageArr = []
|
365
|
366
|
if (item.advices.length <= 5) {
|
366
|
|
- this.page = 1;
|
367
|
|
- arr.push(item.advices.length);
|
368
|
|
- item.pageArr.push(arr);
|
|
367
|
+ this.page = 1
|
|
368
|
+ arr.push(item.advices.length)
|
|
369
|
+ item.pageArr.push(arr)
|
369
|
370
|
} else if (item.advices.length > 5) {
|
370
|
|
- this.page = parseInt(item.advices.length / 5);
|
371
|
|
- let num = item.advices.length % 5;
|
|
371
|
+ this.page = parseInt(item.advices.length / 5)
|
|
372
|
+ let num = item.advices.length % 5
|
372
|
373
|
for (var i = 0; i < this.page; i++) {
|
373
|
|
- item.pageArr.push([5]);
|
|
374
|
+ item.pageArr.push([5])
|
374
|
375
|
}
|
375
|
376
|
if (num != 0) {
|
376
|
|
- item.pageArr.push([num]);
|
|
377
|
+ item.pageArr.push([num])
|
377
|
378
|
}
|
378
|
379
|
}
|
379
|
|
- });
|
|
380
|
+ })
|
380
|
381
|
// console.log('this.pageArr',this.pageArr)
|
381
|
382
|
},
|
382
|
383
|
getName(list) {
|
383
|
|
- console.log("list", list);
|
384
|
|
- let new_list = [];
|
|
384
|
+ console.log('list', list)
|
|
385
|
+ let new_list = []
|
385
|
386
|
for (let i = 0; i < list.length; i++) {
|
386
|
|
- if (list[i].aac031 == "1") {
|
387
|
|
- new_list.push(list[i]);
|
|
387
|
+ if (list[i].aac031 == '1') {
|
|
388
|
+ new_list.push(list[i])
|
388
|
389
|
}
|
389
|
390
|
}
|
390
|
391
|
|
391
|
392
|
switch (new_list[0].bcc334) {
|
392
|
|
- case "A31001":
|
393
|
|
- return "深圳医保1档";
|
394
|
|
- break;
|
395
|
|
- case "A31002":
|
396
|
|
- return "深圳医保2档";
|
397
|
|
-
|
398
|
|
- break;
|
399
|
|
- case "A31003":
|
400
|
|
- return "深圳医保3档";
|
401
|
|
-
|
402
|
|
- break;
|
403
|
|
- case "A31004":
|
404
|
|
- return "二档(少儿)";
|
405
|
|
-
|
406
|
|
- break;
|
407
|
|
- case "A31005":
|
408
|
|
- return "学生二档";
|
409
|
|
-
|
410
|
|
- break;
|
411
|
|
- case "A31006":
|
412
|
|
- return "大学生二档";
|
413
|
|
-
|
414
|
|
- break;
|
415
|
|
- case "A32001":
|
416
|
|
- return "在职公务员";
|
417
|
|
- break;
|
418
|
|
- case "A32002":
|
419
|
|
- return "在职驻深公务员";
|
420
|
|
-
|
421
|
|
- break;
|
422
|
|
- case "A39301":
|
423
|
|
- return "家属统筹医疗";
|
424
|
|
-
|
425
|
|
- break;
|
426
|
|
- case "A41001":
|
427
|
|
- return "工伤在职";
|
428
|
|
-
|
429
|
|
- break;
|
430
|
|
- case "A51001":
|
431
|
|
- return "生育在职";
|
432
|
|
-
|
433
|
|
- break;
|
434
|
|
- case "A52001":
|
435
|
|
- return "生育医疗一档";
|
436
|
|
-
|
437
|
|
- break;
|
438
|
|
- case "A52002":
|
439
|
|
- return "生育医疗一档";
|
440
|
|
-
|
441
|
|
- break;
|
442
|
|
- case "C31001":
|
443
|
|
- return "一档医疗退休";
|
444
|
|
-
|
445
|
|
- break;
|
446
|
|
- case "C31002":
|
447
|
|
- return "二档医疗退休";
|
448
|
|
- break;
|
|
393
|
+ case 'A31001':
|
|
394
|
+ return '深圳医保1档'
|
|
395
|
+ break
|
|
396
|
+ case 'A31002':
|
|
397
|
+ return '深圳医保2档'
|
|
398
|
+
|
|
399
|
+ break
|
|
400
|
+ case 'A31003':
|
|
401
|
+ return '深圳医保3档'
|
|
402
|
+
|
|
403
|
+ break
|
|
404
|
+ case 'A31004':
|
|
405
|
+ return '二档(少儿)'
|
|
406
|
+
|
|
407
|
+ break
|
|
408
|
+ case 'A31005':
|
|
409
|
+ return '学生二档'
|
|
410
|
+
|
|
411
|
+ break
|
|
412
|
+ case 'A31006':
|
|
413
|
+ return '大学生二档'
|
|
414
|
+
|
|
415
|
+ break
|
|
416
|
+ case 'A32001':
|
|
417
|
+ return '在职公务员'
|
|
418
|
+ break
|
|
419
|
+ case 'A32002':
|
|
420
|
+ return '在职驻深公务员'
|
|
421
|
+
|
|
422
|
+ break
|
|
423
|
+ case 'A39301':
|
|
424
|
+ return '家属统筹医疗'
|
|
425
|
+
|
|
426
|
+ break
|
|
427
|
+ case 'A41001':
|
|
428
|
+ return '工伤在职'
|
|
429
|
+
|
|
430
|
+ break
|
|
431
|
+ case 'A51001':
|
|
432
|
+ return '生育在职'
|
|
433
|
+
|
|
434
|
+ break
|
|
435
|
+ case 'A52001':
|
|
436
|
+ return '生育医疗一档'
|
|
437
|
+
|
|
438
|
+ break
|
|
439
|
+ case 'A52002':
|
|
440
|
+ return '生育医疗一档'
|
|
441
|
+
|
|
442
|
+ break
|
|
443
|
+ case 'C31001':
|
|
444
|
+ return '一档医疗退休'
|
|
445
|
+
|
|
446
|
+ break
|
|
447
|
+ case 'C31002':
|
|
448
|
+ return '二档医疗退休'
|
|
449
|
+ break
|
449
|
450
|
}
|
450
|
|
- },
|
|
451
|
+ }
|
451
|
452
|
},
|
452
|
453
|
created() {
|
453
|
454
|
// this.getAllDoctorList()
|
454
|
|
- this.getInitData();
|
|
455
|
+ this.getInitData()
|
455
|
456
|
// this.getPrescriptionPrint()
|
456
|
457
|
// this.getHisPatientDetail()
|
457
|
458
|
// this.getPatientCaseHistory()
|
458
|
|
- var xtuser = this.$store.getters.xt_user;
|
459
|
|
- this.orgname = xtuser.org.org_name;
|
460
|
|
- this.org_id = this.$store.getters.xt_user.org_id;
|
|
459
|
+ var xtuser = this.$store.getters.xt_user
|
|
460
|
+ this.orgname = xtuser.org.org_name
|
|
461
|
+ this.org_id = this.$store.getters.xt_user.org_id
|
461
|
462
|
},
|
462
|
463
|
watch: {
|
463
|
|
- ids: function (val) {
|
464
|
|
- this.ids = val;
|
465
|
|
- this.getPrescriptionPrint();
|
466
|
|
- },
|
|
464
|
+ ids: function(val) {
|
|
465
|
+ this.ids = val
|
|
466
|
+ this.getPrescriptionPrint()
|
|
467
|
+ }
|
467
|
468
|
// printData: {
|
468
|
469
|
// immediate: true,
|
469
|
470
|
// deep: true,
|
|
@@ -474,65 +475,77 @@ export default {
|
474
|
475
|
// });
|
475
|
476
|
// },
|
476
|
477
|
// },
|
477
|
|
- },
|
478
|
|
-};
|
|
478
|
+ }
|
|
479
|
+}
|
479
|
480
|
</script>
|
480
|
481
|
|
481
|
482
|
|
482
|
483
|
<style lang="scss" scoped>
|
483
|
484
|
.prescription-print {
|
484
|
|
- // -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
|
485
|
|
- // 0 0 60px rgba(0, 0, 0, 0.06) inset;
|
486
|
|
- // -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
|
487
|
|
- // 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
488
|
|
- // box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
|
485
|
+ /*-webkit-box-shadow: 0 1 px 4 px rgba(0, 0, 0, 0.27),*/
|
|
486
|
+/*/ / 0 0 60 px rgba(0, 0, 0, 0.06) inset;*/
|
|
487
|
+/*/ / -moz-box-shadow: 0 1 px 4 px rgba(0, 0, 0, 0.27),*/
|
|
488
|
+/*/ / 0 0 40 px rgba(0, 0, 0, 0.06) inset;*/
|
|
489
|
+/*/ / box-shadow: 0 1 px 4 px rgba(0, 0, 0, 0.27), 0 0 40 px rgba(0, 0, 0, 0.06) inset;*/
|
489
|
490
|
margin-bottom: 20px;
|
490
|
491
|
padding: 20px 10px;
|
491
|
492
|
}
|
|
493
|
+
|
492
|
494
|
.printTitle {
|
493
|
495
|
font-size: 22px;
|
494
|
496
|
text-align: center;
|
495
|
497
|
font-weight: bold;
|
496
|
498
|
margin-bottom: 10px;
|
497
|
499
|
}
|
|
500
|
+
|
498
|
501
|
.infoTitle {
|
499
|
502
|
display: flex;
|
500
|
503
|
margin-top: 10px;
|
501
|
504
|
line-height: 24px;
|
502
|
505
|
}
|
|
506
|
+
|
503
|
507
|
.infoTitle div {
|
504
|
508
|
width: 200px;
|
505
|
509
|
}
|
|
510
|
+
|
506
|
511
|
.infoMain {
|
507
|
512
|
display: flex;
|
508
|
513
|
flex-wrap: wrap;
|
509
|
514
|
margin-top: 10px;
|
510
|
515
|
}
|
|
516
|
+
|
511
|
517
|
.infoMain div {
|
512
|
518
|
width: 50%;
|
513
|
519
|
line-height: 24px;
|
514
|
520
|
}
|
|
521
|
+
|
515
|
522
|
.prescriptionBox {
|
516
|
523
|
padding: 0 10px;
|
517
|
524
|
min-height: 400px;
|
518
|
525
|
}
|
|
526
|
+
|
519
|
527
|
.Rp {
|
520
|
528
|
font-size: 22px;
|
521
|
529
|
font-weight: bold;
|
522
|
530
|
}
|
|
531
|
+
|
523
|
532
|
.drugsBox {
|
524
|
533
|
padding-left: 40px;
|
525
|
534
|
margin-bottom: 10px;
|
526
|
535
|
}
|
|
536
|
+
|
527
|
537
|
.drugsBox div {
|
528
|
538
|
line-height: 20px;
|
529
|
539
|
}
|
|
540
|
+
|
530
|
541
|
.drugsOne {
|
531
|
542
|
line-height: 24px;
|
532
|
543
|
}
|
|
544
|
+
|
533
|
545
|
.drugsOne span {
|
534
|
546
|
margin-right: 20px;
|
535
|
547
|
}
|
|
548
|
+
|
536
|
549
|
.doctorBox {
|
537
|
550
|
display: flex;
|
538
|
551
|
justify-content: space-between;
|
|
@@ -540,15 +553,18 @@ export default {
|
540
|
553
|
line-height: 24px;
|
541
|
554
|
border-bottom: 2px solid #000;
|
542
|
555
|
}
|
|
556
|
+
|
543
|
557
|
.actionBar {
|
544
|
558
|
display: flex;
|
545
|
559
|
justify-content: space-between;
|
546
|
560
|
line-height: 24px;
|
547
|
561
|
padding: 0 10px;
|
548
|
562
|
}
|
|
563
|
+
|
549
|
564
|
.actionBar p {
|
550
|
565
|
width: 150px;
|
551
|
566
|
}
|
|
567
|
+
|
552
|
568
|
.under_line {
|
553
|
569
|
display: inline-block;
|
554
|
570
|
border-bottom: 1px solid #000;
|