|
@@ -1,18 +1,7 @@
|
1
|
1
|
<template>
|
2
|
|
- <div>
|
3
|
|
- <div id="prescription-print3" class="prescription-print">
|
4
|
|
- <img
|
5
|
|
- style="width: 100%; height: 80px"
|
6
|
|
- v-if="org_id == 10138"
|
7
|
|
- src="https://kuyi.shengws.com/bailin/bltotle.jpg"
|
8
|
|
- alt=""
|
9
|
|
- />
|
10
|
|
- <img
|
11
|
|
- style="width: 100%; height: 80px"
|
12
|
|
- v-if="org_id == 10278 || org_id == 0"
|
13
|
|
- src="https://kuyi.shengws.com/beierlog.png"
|
14
|
|
- alt=""
|
15
|
|
- />
|
|
2
|
+ <div id="prescription-print">
|
|
3
|
+ <div v-for="(item, index) in advicePrint" :key="index">
|
|
4
|
+ <div id="prescription-print" class="prescription-print" style="page-break-after: always">
|
16
|
5
|
<div class="printTitle">检验申请单</div>
|
17
|
6
|
|
18
|
7
|
<div style="border: 1px solid #000;margin-bottom: 10px;">
|
|
@@ -91,8 +80,8 @@
|
91
|
80
|
<!-- <div v-for="item in projectPrint" style="margin-bottom: 10px">-->
|
92
|
81
|
<!-- {{ item.team.project_team }}-->
|
93
|
82
|
<!-- </div>-->
|
94
|
|
- <div v-for="item in singleProjectPrint" style="margin-bottom: 10px">
|
95
|
|
- {{ item.project.project_name }}
|
|
83
|
+ <div v-for="subitem in item.singleProjectPrint" style="margin-bottom: 10px">
|
|
84
|
+ {{ subitem.project.project_name }}
|
96
|
85
|
</div>
|
97
|
86
|
</div>
|
98
|
87
|
</div>
|
|
@@ -140,11 +129,13 @@
|
140
|
129
|
/>
|
141
|
130
|
<img
|
142
|
131
|
style="width: 100%"
|
143
|
|
- v-if="org_id == 10278 || org_id == 0"
|
|
132
|
+ v-if="org_id == 10278"
|
144
|
133
|
src="https://kuyi.shengws.com/bailinbeier.png"
|
145
|
134
|
alt=""
|
146
|
135
|
/>
|
147
|
136
|
</div>
|
|
137
|
+ </div>
|
|
138
|
+
|
148
|
139
|
</div>
|
149
|
140
|
</template>
|
150
|
141
|
<script>
|
|
@@ -266,17 +257,21 @@ export default {
|
266
|
257
|
let projectPrint = [];
|
267
|
258
|
let total = 0;
|
268
|
259
|
this.advicePrint.map((item) => {
|
|
260
|
+ let singleProjectPrint = []
|
269
|
261
|
// console.log("imte233232323232323223", item.project);
|
270
|
262
|
if (item.project.length > 0) {
|
271
|
263
|
item.project.map((it) => {
|
272
|
264
|
if (it.type == 2) {
|
273
|
265
|
if (it.project.cost_classify == 3) {
|
274
|
266
|
projectPrint.push(it);
|
|
267
|
+ singleProjectPrint.push(it)
|
275
|
268
|
total += it.project.price * parseInt(it.count);
|
276
|
269
|
}
|
277
|
270
|
}
|
278
|
271
|
});
|
279
|
272
|
}
|
|
273
|
+ item["singleProjectPrint"] = singleProjectPrint
|
|
274
|
+
|
280
|
275
|
});
|
281
|
276
|
this.doctorList_1 = response.data.data.eles;
|
282
|
277
|
// console.log(this.doctorList_1, "医生列表");
|