|
@@ -1,60 +1,78 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div id="allList-print" class="allList-print">
|
3
|
|
- <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}汇总清单</div>
|
4
|
|
- <div class="allListInfo">
|
|
3
|
+ <div class="allListTitle">
|
|
4
|
+ {{ $store.getters.xt_user.org.org_name }}汇总清单
|
|
5
|
+ </div>
|
|
6
|
+ <div class="allListInfo" style="border-top: 1px solid;">
|
5
|
7
|
<div>科别:门诊</div>
|
6
|
8
|
<div>床号:</div>
|
7
|
9
|
<div>门诊号:{{ order.mdtrt_id }}</div>
|
8
|
|
- <div>患者姓名:{{ patient.name }}</div>
|
|
10
|
+ <div>姓名:{{ patient.name }}</div>
|
9
|
11
|
</div>
|
10
|
12
|
|
11
|
|
- <div class="allListInfo">
|
|
13
|
+ <div class="allListInfo" style="border-bottom: 1px solid;">
|
12
|
14
|
<div>预交款:</div>
|
13
|
|
- <div>门诊日期:</div>
|
14
|
15
|
<div>总费用:{{ order.medfee_sumamt }}</div>
|
|
16
|
+ <div>门诊日期:</div>
|
15
|
17
|
</div>
|
16
|
18
|
|
17
|
19
|
<div class="allListInfo">
|
18
|
|
- <div>西药: {{order.westernMedicineCostTotal?order.westernMedicineCostTotal:''}}</div>
|
19
|
|
- <div>中成药:{{order.chineseTraditionalMedicineCostTotal?order.chineseTraditionalMedicineCostTotal:''}}</div>
|
|
20
|
+ <div>
|
|
21
|
+ 西药: {{
|
|
22
|
+ order.westernMedicineCostTotal ? order.westernMedicineCostTotal : ""
|
|
23
|
+ }}
|
|
24
|
+ </div>
|
|
25
|
+ <div>
|
|
26
|
+ 中成药:{{
|
|
27
|
+ order.chineseTraditionalMedicineCostTotal
|
|
28
|
+ ? order.chineseTraditionalMedicineCostTotal
|
|
29
|
+ : ""
|
|
30
|
+ }}
|
|
31
|
+ </div>
|
20
|
32
|
<div>中草药:</div>
|
21
|
|
- <div>检查费:{{order.checkCostTotal?order.checkCostTotal:''}}</div>
|
22
|
33
|
</div>
|
23
|
34
|
|
24
|
|
-
|
25
|
35
|
<div class="allListInfo">
|
|
36
|
+ <div>检查费:{{ order.checkCostTotal ? order.checkCostTotal : "" }}</div>
|
26
|
37
|
<div>输氧费:</div>
|
27
|
|
- <div>手术费:{{order.operationCostTotal?order.operationCostTotal:''}}</div>
|
28
|
|
- <div>化验费:{{order.laboratoryCostTotal?order.laboratoryCostTotal:''}}</div>
|
29
|
|
- <div>输血费:</div>
|
|
38
|
+ <div>
|
|
39
|
+ 手术费:{{ order.operationCostTotal ? order.operationCostTotal : "" }}
|
|
40
|
+ </div>
|
30
|
41
|
</div>
|
31
|
42
|
|
32
|
|
-
|
33
|
43
|
<div class="allListInfo">
|
34
|
|
- <div >诊察费:{{order.zhenChaCostTotal?order.zhenChaCostTotal:''}}</div>
|
35
|
|
- <div >治疗费:{{order.treatCostTotal?order.treatCostTotal:''}}</div>
|
36
|
|
- <div >护理费:</div>
|
37
|
|
- <div >床位费:{{order.bedCostTotal?order.bedCostTotal:''}}</div>
|
|
44
|
+ <div>
|
|
45
|
+ 化验费:{{ order.laboratoryCostTotal ? order.laboratoryCostTotal : "" }}
|
|
46
|
+ </div>
|
|
47
|
+ <div>输血费:</div>
|
|
48
|
+ <div>
|
|
49
|
+ 诊察费:{{ order.zhenChaCostTotal ? order.zhenChaCostTotal : "" }}
|
|
50
|
+ </div>
|
38
|
51
|
</div>
|
39
|
52
|
|
40
|
|
-
|
41
|
53
|
<div class="allListInfo">
|
42
|
|
- <div >麻醉费:</div>
|
43
|
|
- <div >材料费:{{order.materialCostTotal?order.materialCostTotal:''}}</div>
|
44
|
|
- <div >其他费:{{order.otherCostTotal?order.otherCostTotal:''}}</div>
|
45
|
|
- <div style="visibility: hidden;">其他费:</div>
|
|
54
|
+ <div>治疗费:{{ order.treatCostTotal ? order.treatCostTotal : "" }}</div>
|
|
55
|
+ <div>护理费:</div>
|
|
56
|
+ <div>床位费:{{ order.bedCostTotal ? order.bedCostTotal : "" }}</div>
|
|
57
|
+ </div>
|
|
58
|
+ <div class="allListInfo">
|
|
59
|
+ <div>麻醉费:</div>
|
|
60
|
+ <div>
|
|
61
|
+ 材料费:{{ order.materialCostTotal ? order.materialCostTotal : "" }}
|
|
62
|
+ </div>
|
|
63
|
+ <div>其他:{{ order.otherCostTotal ? order.otherCostTotal : "" }}</div>
|
46
|
64
|
</div>
|
47
|
65
|
<!-- <div style="display:flex;justify-content: space-between;">-->
|
48
|
|
-<!-- <div style="position: absolute;top:160px;left:40px">西药</div>-->
|
49
|
|
-<!-- <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal }}</div>-->
|
50
|
|
-<!-- <div style="position: absolute;top:160px;left:180px">检查费</div>-->
|
51
|
|
-<!-- <div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal }}</div>-->
|
52
|
|
-<!-- <div style="position: absolute;top:160px;left:340px">化验费</div>-->
|
53
|
|
-<!-- <div style="position: absolute;top:160px;left:420px">{{ list.treatCostTotal }}</div>-->
|
54
|
|
-<!-- <div style="position: absolute;top:160px;left:500px">治疗费</div>-->
|
55
|
|
-<!-- <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
|
56
|
|
-<!-- <div style="position: absolute;top:160px;left:500px">麻醉费</div>-->
|
57
|
|
-<!-- <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
|
|
66
|
+ <!-- <div style="position: absolute;top:160px;left:40px">西药</div>-->
|
|
67
|
+ <!-- <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal }}</div>-->
|
|
68
|
+ <!-- <div style="position: absolute;top:160px;left:180px">检查费</div>-->
|
|
69
|
+ <!-- <div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal }}</div>-->
|
|
70
|
+ <!-- <div style="position: absolute;top:160px;left:340px">化验费</div>-->
|
|
71
|
+ <!-- <div style="position: absolute;top:160px;left:420px">{{ list.treatCostTotal }}</div>-->
|
|
72
|
+ <!-- <div style="position: absolute;top:160px;left:500px">治疗费</div>-->
|
|
73
|
+ <!-- <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
|
|
74
|
+ <!-- <div style="position: absolute;top:160px;left:500px">麻醉费</div>-->
|
|
75
|
+ <!-- <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
|
58
|
76
|
<!-- </div>-->
|
59
|
77
|
<!-- <div style="display:flex;justify-content: space-between;">-->
|
60
|
78
|
<!-- <div style="position: absolute;top:190px;left:40px">中成药</div>-->
|
|
@@ -82,129 +100,150 @@
|
82
|
100
|
<!-- <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
|
83
|
101
|
<!-- </div>-->
|
84
|
102
|
|
85
|
|
-
|
86
|
103
|
<table class="allListTable" border="1">
|
87
|
104
|
<tr>
|
88
|
|
- <td style="width:10%">费用类别</td>
|
89
|
|
- <td style="width:35%">项目名称</td>
|
90
|
|
- <td style="width:5%">单位</td>
|
91
|
|
- <td style="width:10%">数量</td>
|
92
|
|
- <td style="width:10%">单价</td>
|
93
|
|
- <td style="width:10%">金额</td>
|
94
|
|
- <td style="width:10%">医保类型</td>
|
95
|
|
-
|
|
105
|
+ <td style="width: 10%">费用类别</td>
|
|
106
|
+ <td style="width: 35%">项目名称</td>
|
|
107
|
+ <td style="width: 5%">单位</td>
|
|
108
|
+ <td style="width: 10%">数量</td>
|
|
109
|
+ <td style="width: 10%">单价</td>
|
|
110
|
+ <td style="width: 10%">金额</td>
|
|
111
|
+ <td style="width: 10%">医保类型</td>
|
96
|
112
|
</tr>
|
97
|
|
- <template v-for='(item,index) in list'>
|
|
113
|
+ <template v-for="(item, index) in list">
|
98
|
114
|
<tr v-if="item.is_total == 2">
|
99
|
|
- <td style="width:10%">{{ item.med_chrgitm_type }}</td>
|
100
|
|
- <td style="width:35%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ item.name }}{{ item.spec }}</td>
|
101
|
|
- <td style="width:5%">{{ item.unit }}</td>
|
102
|
|
- <td style="width:10%;text-align:right;">{{ item.count }}</td>
|
103
|
|
- <td style="width:10%;text-align:right;">{{ item.price.toFixed(4) }}</td>
|
104
|
|
- <td style="width:10%;text-align:right;">{{ (item.price * item.count).toFixed(2) }}</td>
|
105
|
|
- <td style="width:10%">{{ item.medicine_insurance_kind }}</td>
|
106
|
|
-
|
|
115
|
+ <td style="width: 10%">{{ item.med_chrgitm_type }}</td>
|
|
116
|
+ <td
|
|
117
|
+ style="
|
|
118
|
+ width: 35%;
|
|
119
|
+ white-space: nowrap;
|
|
120
|
+ overflow: hidden;
|
|
121
|
+ text-overflow: ellipsis;
|
|
122
|
+ "
|
|
123
|
+ >
|
|
124
|
+ {{ item.name }}{{ item.spec }}
|
|
125
|
+ </td>
|
|
126
|
+ <td style="width: 5%">{{ item.unit }}</td>
|
|
127
|
+ <td style="width: 10%; text-align: right">{{ item.count }}</td>
|
|
128
|
+ <td style="width: 10%; text-align: right">
|
|
129
|
+ {{ item.price.toFixed(4) }}
|
|
130
|
+ </td>
|
|
131
|
+ <td style="width: 10%; text-align: right">
|
|
132
|
+ {{ (item.price * item.count).toFixed(2) }}
|
|
133
|
+ </td>
|
|
134
|
+ <td style="width: 10%">{{ item.medicine_insurance_kind }}</td>
|
107
|
135
|
</tr>
|
108
|
136
|
<tr v-if="item.is_total == 1">
|
109
|
|
- <td style="width:10%"></td>
|
110
|
|
- <td style="width:35%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">合计</td>
|
111
|
|
- <td style="width:5%"></td>
|
112
|
|
- <td style="width:10%;text-align:right;"></td>
|
113
|
|
- <td style="width:10%;text-align:right;"></td>
|
114
|
|
- <td style="width:10%;text-align:right;">{{ item.total }}</td>
|
115
|
|
- <td style="width:10%"></td>
|
116
|
|
-
|
|
137
|
+ <td style="width: 10%"></td>
|
|
138
|
+ <td
|
|
139
|
+ style="
|
|
140
|
+ width: 35%;
|
|
141
|
+ white-space: nowrap;
|
|
142
|
+ overflow: hidden;
|
|
143
|
+ text-overflow: ellipsis;
|
|
144
|
+ "
|
|
145
|
+ >
|
|
146
|
+ 合计
|
|
147
|
+ </td>
|
|
148
|
+ <td style="width: 5%"></td>
|
|
149
|
+ <td style="width: 10%; text-align: right"></td>
|
|
150
|
+ <td style="width: 10%; text-align: right"></td>
|
|
151
|
+ <td style="width: 10%; text-align: right">{{ item.total }}</td>
|
|
152
|
+ <td style="width: 10%"></td>
|
117
|
153
|
</tr>
|
118
|
154
|
</template>
|
119
|
155
|
</table>
|
120
|
|
-
|
121
|
156
|
</div>
|
122
|
157
|
</template>
|
123
|
158
|
|
124
|
159
|
<script>
|
125
|
|
-import { uParseTime } from '@/utils/tools'
|
|
160
|
+import { uParseTime } from "@/utils/tools";
|
126
|
161
|
|
127
|
162
|
export default {
|
128
|
163
|
props: {
|
129
|
164
|
list: {
|
130
|
165
|
type: Array,
|
131
|
|
- default: function() {
|
132
|
|
- return []
|
133
|
|
- }
|
134
|
|
- }, patient: {
|
|
166
|
+ default: function () {
|
|
167
|
+ return [];
|
|
168
|
+ },
|
|
169
|
+ },
|
|
170
|
+ patient: {
|
135
|
171
|
type: Object,
|
136
|
|
- default: function() {
|
137
|
|
- return {}
|
138
|
|
- }
|
139
|
|
- }, order: {
|
|
172
|
+ default: function () {
|
|
173
|
+ return {};
|
|
174
|
+ },
|
|
175
|
+ },
|
|
176
|
+ order: {
|
140
|
177
|
type: Object,
|
141
|
|
- default: function() {
|
142
|
|
- return {}
|
143
|
|
- }
|
144
|
|
- }, admin: {
|
|
178
|
+ default: function () {
|
|
179
|
+ return {};
|
|
180
|
+ },
|
|
181
|
+ },
|
|
182
|
+ admin: {
|
145
|
183
|
type: Object,
|
146
|
|
- default: function() {
|
147
|
|
- return {}
|
148
|
|
- }
|
149
|
|
- }, hospital: {
|
|
184
|
+ default: function () {
|
|
185
|
+ return {};
|
|
186
|
+ },
|
|
187
|
+ },
|
|
188
|
+ hospital: {
|
150
|
189
|
type: Object,
|
151
|
|
- default: function() {
|
152
|
|
- return {}
|
153
|
|
- }
|
154
|
|
-
|
155
|
|
- }
|
|
190
|
+ default: function () {
|
|
191
|
+ return {};
|
|
192
|
+ },
|
|
193
|
+ },
|
156
|
194
|
},
|
157
|
195
|
data() {
|
158
|
196
|
return {
|
159
|
197
|
page: 1,
|
160
|
|
- pageArr: []
|
161
|
|
- }
|
|
198
|
+ pageArr: [],
|
|
199
|
+ };
|
162
|
200
|
},
|
163
|
201
|
methods: {
|
164
|
|
- getNowTime: function() {
|
165
|
|
- let dateTime
|
166
|
|
- let yy = new Date().getFullYear()
|
167
|
|
- let mm = new Date().getMonth() + 1
|
168
|
|
- let dd = new Date().getDate()
|
169
|
|
- let hh = new Date().getHours()
|
170
|
|
- let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
|
171
|
|
- :
|
172
|
|
- new Date().getMinutes()
|
173
|
|
- let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
|
174
|
|
- :
|
175
|
|
- new Date().getSeconds()
|
176
|
|
- dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
|
177
|
|
- return dateTime
|
|
202
|
+ getNowTime: function () {
|
|
203
|
+ let dateTime;
|
|
204
|
+ let yy = new Date().getFullYear();
|
|
205
|
+ let mm = new Date().getMonth() + 1;
|
|
206
|
+ let dd = new Date().getDate();
|
|
207
|
+ let hh = new Date().getHours();
|
|
208
|
+ let mf =
|
|
209
|
+ new Date().getMinutes() < 10
|
|
210
|
+ ? "0" + new Date().getMinutes()
|
|
211
|
+ : new Date().getMinutes();
|
|
212
|
+ let ss =
|
|
213
|
+ new Date().getSeconds() < 10
|
|
214
|
+ ? "0" + new Date().getSeconds()
|
|
215
|
+ : new Date().getSeconds();
|
|
216
|
+ dateTime = yy + "-" + mm + "-" + dd + " " + hh + ":" + mf + ":" + ss;
|
|
217
|
+ return dateTime;
|
178
|
218
|
},
|
179
|
219
|
getTimes(time) {
|
180
|
|
- return uParseTime(time, '{y}-{m}-{d}')
|
181
|
|
- }, getTotal: function(items) {
|
182
|
|
- let total = 0
|
|
220
|
+ return uParseTime(time, "{y}-{m}-{d}");
|
|
221
|
+ },
|
|
222
|
+ getTotal: function (items) {
|
|
223
|
+ let total = 0;
|
183
|
224
|
for (let i = 0; i < items.length; i++) {
|
184
|
|
- total = total + (items[i].count * items[i].price).toFixed(2)
|
|
225
|
+ total = total + (items[i].count * items[i].price).toFixed(2);
|
185
|
226
|
}
|
186
|
|
- return total
|
187
|
|
-
|
188
|
|
- }
|
189
|
|
-
|
|
227
|
+ return total;
|
|
228
|
+ },
|
190
|
229
|
},
|
191
|
230
|
watch: {
|
192
|
231
|
list: {
|
193
|
232
|
handler(newVal) {
|
194
|
|
- this.getPage()
|
|
233
|
+ this.getPage();
|
195
|
234
|
},
|
196
|
|
- deep: true
|
197
|
|
- }
|
198
|
|
- }
|
199
|
|
-}
|
200
|
|
-
|
201
|
|
-
|
|
235
|
+ deep: true,
|
|
236
|
+ },
|
|
237
|
+ },
|
|
238
|
+};
|
202
|
239
|
</script>
|
203
|
240
|
|
204
|
241
|
<style lang="scss" scoped>
|
205
|
242
|
.allList-print {
|
206
|
|
- -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
|
207
|
|
- -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
|
243
|
+ -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
|
|
244
|
+ 0 0 60px rgba(0, 0, 0, 0.06) inset;
|
|
245
|
+ -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
|
|
246
|
+ 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
208
|
247
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
209
|
248
|
margin-bottom: 20px;
|
210
|
249
|
padding: 20px 10px;
|
|
@@ -224,6 +263,10 @@ export default {
|
224
|
263
|
margin: 10px 0;
|
225
|
264
|
}
|
226
|
265
|
|
|
266
|
+.allListInfo div{
|
|
267
|
+ min-width: 200px;
|
|
268
|
+}
|
|
269
|
+
|
227
|
270
|
.allListTable {
|
228
|
271
|
width: 100%;
|
229
|
272
|
text-align: center;
|