|
@@ -14,7 +14,8 @@
|
14
|
14
|
</template>
|
15
|
15
|
|
16
|
16
|
<div class='dialysisPage' style="padding-top:40px;">
|
17
|
|
- <printOne :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
|
|
17
|
+ <printOne v-if="org_id != 10106" :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
|
|
18
|
+ <printTwo v-if="org_id == 10106" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></printTwo>
|
18
|
19
|
</div>
|
19
|
20
|
</div>
|
20
|
21
|
</template>
|
|
@@ -23,11 +24,14 @@
|
23
|
24
|
import printOne from './listTemplate/printOne'
|
24
|
25
|
import { getHisOrderDetail } from '@/api/his/his'
|
25
|
26
|
import { uParseTime } from '@/utils/tools'
|
|
27
|
+ import printTwo from './statementTemplate/printTwo'
|
|
28
|
+ import axios from 'axios'
|
26
|
29
|
|
27
|
30
|
export default {
|
28
|
31
|
name: 'listPrint',
|
29
|
32
|
components: {
|
30
|
|
- printOne
|
|
33
|
+ printOne,
|
|
34
|
+ printTwo
|
31
|
35
|
},
|
32
|
36
|
props: {
|
33
|
37
|
paramsObj: Object
|
|
@@ -38,10 +42,21 @@
|
38
|
42
|
patient:{},
|
39
|
43
|
order:{},
|
40
|
44
|
admin:{},
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+ info:null,
|
|
48
|
+ p_admin:{},
|
|
49
|
+ charge_admin:{},
|
|
50
|
+ org_id:''
|
41
|
51
|
}
|
42
|
52
|
},
|
43
|
53
|
created() {
|
44
|
54
|
this.getInfo(this.paramsObj.id)
|
|
55
|
+ this.org_id = this.$store.getters.xt_user.org_id
|
|
56
|
+ if(this.org_id == 10106){
|
|
57
|
+ this.getInfo10106(this.paramsObj.id)
|
|
58
|
+ }
|
|
59
|
+
|
45
|
60
|
},
|
46
|
61
|
|
47
|
62
|
methods: {
|
|
@@ -155,15 +170,26 @@
|
155
|
170
|
|
156
|
171
|
},
|
157
|
172
|
printThisPage() {
|
158
|
|
-
|
159
|
|
- const style =
|
|
173
|
+ if(this.org_id != 10106){
|
|
174
|
+ const style =
|
160
|
175
|
'@media print {.listTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.listInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .listTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;text-align:left;}.listTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
|
161
|
|
- printJS({
|
162
|
|
- printable: 'list-print',
|
163
|
|
- type: 'html',
|
164
|
|
- style: style,
|
165
|
|
- scanStyles: false
|
166
|
|
- })
|
|
176
|
+ printJS({
|
|
177
|
+ printable: 'list-print',
|
|
178
|
+ type: 'html',
|
|
179
|
+ style: style,
|
|
180
|
+ scanStyles: false
|
|
181
|
+ })
|
|
182
|
+ }else{
|
|
183
|
+ const style =
|
|
184
|
+ '@media print {#statement-print{font-size:12px;width:600px;margin:0 auto;}.statementTitle{font-size: 22px;text-align: center;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
|
|
185
|
+ printJS({
|
|
186
|
+ printable: "statement-print",
|
|
187
|
+ type: "html",
|
|
188
|
+ style: style,
|
|
189
|
+ scanStyles: false
|
|
190
|
+ });
|
|
191
|
+ }
|
|
192
|
+
|
167
|
193
|
|
168
|
194
|
// if (this.org_template_info.template_id == 1) {
|
169
|
195
|
// printJS({
|
|
@@ -173,6 +199,78 @@
|
173
|
199
|
// scanStyles: false
|
174
|
200
|
// });
|
175
|
201
|
// }
|
|
202
|
+ },
|
|
203
|
+ getInfo10106(order_id) {
|
|
204
|
+ if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
|
|
205
|
+
|
|
206
|
+ var that = this
|
|
207
|
+
|
|
208
|
+ axios.get('http://127.0.0.1:9532/api/settle/query', {
|
|
209
|
+ params: {
|
|
210
|
+ order_id: order_id,
|
|
211
|
+ admin_user_id:that.$store.getters.xt_user.user.id
|
|
212
|
+ }
|
|
213
|
+ })
|
|
214
|
+ .then(function (response) {
|
|
215
|
+ if (response.data.state == 0) {
|
|
216
|
+ this.$message.error(response.data.msg)
|
|
217
|
+ return false
|
|
218
|
+ } else {
|
|
219
|
+ console.log("logloglog")
|
|
220
|
+
|
|
221
|
+ console.log(response.data.data.info)
|
|
222
|
+ that.info = response.data.data.info
|
|
223
|
+ that.p_admin = response.data.data.printor_admin
|
|
224
|
+ that.charge_admin = response.data.data.charge_admin
|
|
225
|
+ that.order_infos = response.data.data
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+ console.log(that.info)
|
|
229
|
+
|
|
230
|
+ that.info['bed_cost_total'] = response.data.data.bedCostTotal
|
|
231
|
+ that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal
|
|
232
|
+ that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal
|
|
233
|
+
|
|
234
|
+ that.info['operation_cost_total'] = response.data.data.operationCostTotal
|
|
235
|
+ that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal
|
|
236
|
+ that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal
|
|
237
|
+
|
|
238
|
+ that.info['other_cost_total'] = response.data.data.otherCostTotal
|
|
239
|
+ that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal
|
|
240
|
+ that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal
|
|
241
|
+
|
|
242
|
+ that.info['material_cost_total'] = response.data.data.materialCostTotal
|
|
243
|
+ that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal
|
|
244
|
+ that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal
|
|
245
|
+
|
|
246
|
+ that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal
|
|
247
|
+ that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal
|
|
248
|
+ that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal
|
|
249
|
+
|
|
250
|
+ that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal
|
|
251
|
+ that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal
|
|
252
|
+ that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+ that.info['check_cost_total'] = response.data.data.checkCostTotal
|
|
256
|
+ that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal
|
|
257
|
+ that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+ that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal
|
|
261
|
+ that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal
|
|
262
|
+ that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal
|
|
263
|
+
|
|
264
|
+ that.info['treat_cost_total'] = response.data.data.treatCostTotal
|
|
265
|
+ that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal
|
|
266
|
+ that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal
|
|
267
|
+ console.log(this.info)
|
|
268
|
+ }
|
|
269
|
+ })
|
|
270
|
+ .catch(function (error) {
|
|
271
|
+
|
|
272
|
+ });
|
|
273
|
+ }
|
176
|
274
|
}
|
177
|
275
|
}
|
178
|
276
|
|