|
@@ -2,19 +2,20 @@
|
2
|
2
|
<div>
|
3
|
3
|
<template>
|
4
|
4
|
<el-button
|
5
|
|
- style="position: fixed; right: 25px; z-index: 999"
|
6
|
|
- :loading="loading"
|
7
|
|
- size="small"
|
8
|
|
- icon="el-icon-printer"
|
9
|
|
- @click="printThisPage"
|
10
|
|
- type="primary"
|
11
|
|
- >打印</el-button
|
|
5
|
+ style="position: fixed; right: 25px; z-index: 999"
|
|
6
|
+ :loading="loading"
|
|
7
|
+ size="small"
|
|
8
|
+ icon="el-icon-printer"
|
|
9
|
+ @click="printThisPage"
|
|
10
|
+ type="primary"
|
|
11
|
+ >打印
|
|
12
|
+ </el-button
|
12
|
13
|
>
|
13
|
14
|
</template>
|
14
|
15
|
|
15
|
16
|
<div class="dialysisPage" style="padding-top: 40px">
|
16
|
17
|
<div
|
17
|
|
- v-if="
|
|
18
|
+ v-if="
|
18
|
19
|
org_id == 9990 ||
|
19
|
20
|
org_id == 10138 ||
|
20
|
21
|
org_id == 9504 ||
|
|
@@ -25,26 +26,26 @@
|
25
|
26
|
>
|
26
|
27
|
<printTwo :info="info" v-if="org_id == 9990"></printTwo>
|
27
|
28
|
<printThree
|
28
|
|
- :info="info"
|
29
|
|
- :paramsObj="paramsObj"
|
30
|
|
- :balanceAccounts="balanceAccounts"
|
31
|
|
- v-if="org_id == 10138 || org_id == 4 || org_id == 10278"
|
|
29
|
+ :info="info"
|
|
30
|
+ :paramsObj="paramsObj"
|
|
31
|
+ :balanceAccounts="balanceAccounts"
|
|
32
|
+ v-if="org_id == 10138 || org_id == 4 || org_id == 10278"
|
32
|
33
|
></printThree>
|
33
|
34
|
<printFour
|
34
|
|
- v-if="org_id == 9504 || org_id == 10028 || org_id == 10088"
|
35
|
|
- :info="info"
|
36
|
|
- :paramsObj="paramsObj"
|
37
|
|
- :balanceAccounts="balanceAccounts"
|
|
35
|
+ v-if="org_id == 9504 || org_id == 10028 || org_id == 10088"
|
|
36
|
+ :info="info"
|
|
37
|
+ :paramsObj="paramsObj"
|
|
38
|
+ :balanceAccounts="balanceAccounts"
|
38
|
39
|
></printFour>
|
39
|
40
|
<!-- <privateChargePrint :info="info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></privateChargePrint>-->
|
40
|
41
|
</div>
|
41
|
42
|
<!-- <print-other :info="info" v-if="org_id == 9919"></print-other>-->
|
42
|
43
|
<!-- <printOne :info=" info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></printOne>-->
|
43
|
44
|
<printFive
|
44
|
|
- v-if="org_id == 0"
|
45
|
|
- :info="info"
|
46
|
|
- :paramsObj="paramsObj"
|
47
|
|
- :balanceAccounts="balanceAccounts"
|
|
45
|
+ v-if="org_id == 0 || org_id == 10191"
|
|
46
|
+ :info="info"
|
|
47
|
+ :paramsObj="paramsObj"
|
|
48
|
+ :balanceAccounts="balanceAccounts"
|
48
|
49
|
></printFive>
|
49
|
50
|
<printOne :info="info" v-else></printOne>
|
50
|
51
|
<!-- 测试医保环境下表格样式放开以下这条 -->
|
|
@@ -54,14 +55,10 @@
|
54
|
55
|
</template>
|
55
|
56
|
|
56
|
57
|
<script>
|
57
|
|
-import { parseTime } from "@/utils";
|
58
|
|
-import { getDialysisRecord } from "@/api/dialysis";
|
59
|
|
-import { getDataConfig } from "@/utils/data";
|
60
|
|
-import { jsGetAge, uParseTime } from "@/utils/tools";
|
|
58
|
+import {uParseTime} from "@/utils/tools";
|
61
|
59
|
import axios from "axios";
|
62
|
60
|
|
63
|
61
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
64
|
|
-import print from "print-js";
|
65
|
62
|
import printOne from "./statementTemplate/printOne";
|
66
|
63
|
import privateChargePrint from "./statementTemplate/privateChargePrint";
|
67
|
64
|
|
|
@@ -70,12 +67,8 @@ import printThree from "./statementTemplate/printThree";
|
70
|
67
|
import printFour from "./statementTemplate/printFour";
|
71
|
68
|
import printFive from "./statementTemplate/printFive";
|
72
|
69
|
import testVue from "./statementTemplate/test";
|
73
|
|
-import {
|
74
|
|
- getAllDoctorList,
|
75
|
|
- getAllHisPatientList,
|
76
|
|
- getPrescriptionPrint,
|
77
|
|
-} from "@/api/project/project";
|
78
|
|
-import { getPrivateExpenses, getPrivateExpensesOrder } from "@/api/his/his";
|
|
70
|
+import {getAllDoctorList, getAllHisPatientList,} from "@/api/project/project";
|
|
71
|
+import {getPrivateExpenses, getPrivateExpensesOrder} from "@/api/his/his";
|
79
|
72
|
// import PrintOther from '../hospitalStation/statementTemplate/printOther'
|
80
|
73
|
export default {
|
81
|
74
|
name: "dialysisPrintOrder",
|
|
@@ -95,8 +88,8 @@ export default {
|
95
|
88
|
data() {
|
96
|
89
|
return {
|
97
|
90
|
crumbs: [
|
98
|
|
- { path: false, name: "门诊医生站" },
|
99
|
|
- { path: false, name: "打印" },
|
|
91
|
+ {path: false, name: "门诊医生站"},
|
|
92
|
+ {path: false, name: "打印"},
|
100
|
93
|
],
|
101
|
94
|
record_date: "",
|
102
|
95
|
patientTableData: [],
|
|
@@ -119,35 +112,35 @@ export default {
|
119
|
112
|
this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
120
|
113
|
|
121
|
114
|
if (
|
122
|
|
- this.$store.getters.xt_user.org_id == 10138 ||
|
123
|
|
- this.$store.getters.xt_user.org_id == 4 ||
|
124
|
|
- this.$store.getters.xt_user.org_id == 10278
|
|
115
|
+ this.$store.getters.xt_user.org_id == 10138 ||
|
|
116
|
+ this.$store.getters.xt_user.org_id == 4 ||
|
|
117
|
+ this.$store.getters.xt_user.org_id == 10278
|
125
|
118
|
) {
|
126
|
119
|
setTimeout(() => {
|
127
|
120
|
const style =
|
128
|
|
- "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 47%;}}}";
|
|
121
|
+ "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 47%;}}}";
|
129
|
122
|
const style2 =
|
130
|
|
- "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 50%;}}}";
|
|
123
|
+ "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 50%;}}}";
|
131
|
124
|
const style3 =
|
132
|
|
- "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 55%;}}}";
|
|
125
|
+ "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 55%;}}}";
|
133
|
126
|
const style4 =
|
134
|
|
- "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 58%;}}}";
|
|
127
|
+ "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 58%;}}}";
|
135
|
128
|
const style5 =
|
136
|
|
- "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 61%;}}}";
|
|
129
|
+ "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 61%;}}}";
|
137
|
130
|
const style6 =
|
138
|
|
- "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 66%;}}}";
|
|
131
|
+ "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 66%;}}}";
|
139
|
132
|
const style7 =
|
140
|
|
- "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 71%;}}}";
|
|
133
|
+ "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 71%;}}}";
|
141
|
134
|
const style8 =
|
142
|
|
- "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 75%;}}}";
|
|
135
|
+ "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 75%;}}}";
|
143
|
136
|
const style9 =
|
144
|
|
- "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 80%;}}}";
|
|
137
|
+ "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 80%;}}}";
|
145
|
138
|
const style10 =
|
146
|
|
- "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 85%;}}}";
|
|
139
|
+ "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 85%;}}}";
|
147
|
140
|
const style11 =
|
148
|
|
- "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 87%;}}}";
|
|
141
|
+ "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 87%;}}}";
|
149
|
142
|
const style12 =
|
150
|
|
- "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 89%;}}}";
|
|
143
|
+ "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 89%;}}}";
|
151
|
144
|
if (this.num >= 13) {
|
152
|
145
|
printJS({
|
153
|
146
|
printable: "prescription-print",
|
|
@@ -235,11 +228,11 @@ export default {
|
235
|
228
|
}
|
236
|
229
|
}, 500);
|
237
|
230
|
} else if (
|
238
|
|
- this.$store.getters.xt_user.org_id == 9504 ||
|
239
|
|
- this.$store.getters.xt_user.org_id == 10028
|
|
231
|
+ this.$store.getters.xt_user.org_id == 9504 ||
|
|
232
|
+ this.$store.getters.xt_user.org_id == 10028
|
240
|
233
|
) {
|
241
|
234
|
const style =
|
242
|
|
- "@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}";
|
|
235
|
+ "@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}";
|
243
|
236
|
printJS({
|
244
|
237
|
printable: "prescription-print",
|
245
|
238
|
type: "html",
|
|
@@ -249,11 +242,11 @@ export default {
|
249
|
242
|
} else {
|
250
|
243
|
// 医保环境打印格式
|
251
|
244
|
if (
|
252
|
|
- this.$store.getters.xt_user.org_id == 9919 ||
|
253
|
|
- this.$store.getters.xt_user.org_id == 10106
|
|
245
|
+ this.$store.getters.xt_user.org_id == 9919 ||
|
|
246
|
+ this.$store.getters.xt_user.org_id == 10106
|
254
|
247
|
) {
|
255
|
248
|
const style =
|
256
|
|
- "@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}";
|
|
249
|
+ "@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}";
|
257
|
250
|
printJS({
|
258
|
251
|
printable: "statement-print",
|
259
|
252
|
type: "html",
|
|
@@ -261,11 +254,11 @@ export default {
|
261
|
254
|
scanStyles: false,
|
262
|
255
|
});
|
263
|
256
|
} else if (
|
264
|
|
- this.$store.getters.xt_user.org_id == 0 ||
|
265
|
|
- this.$store.getters.xt_user.org_id == 10191
|
|
257
|
+ this.$store.getters.xt_user.org_id == 0 ||
|
|
258
|
+ this.$store.getters.xt_user.org_id == 10191
|
266
|
259
|
) {
|
267
|
260
|
const style =
|
268
|
|
- "@media print {.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;} .statementTable thead{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;} .statementTable tbody{text-align:left;} .statementTable tbody .view_tr{text-align:center;border: 1px solid;} tbody .dashed_tr{border: 1px dashed;text-align:center} .list_table{width: 100%;margin-bottom: 100px;} tbody tr td div{height:25px;}}";
|
|
261
|
+ "@media print {.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;} .statementTable thead{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;} .statementTable tbody{text-align:left;} .statementTable tbody .view_tr{text-align:center;border: 1px solid;} tbody .dashed_tr{border: 1px dashed;text-align:center} .list_table{width: 100%;margin-bottom: 100px;} tbody tr td div{height:25px;}}";
|
269
|
262
|
printJS({
|
270
|
263
|
printable: "statement-print",
|
271
|
264
|
type: "html",
|
|
@@ -274,7 +267,7 @@ export default {
|
274
|
267
|
});
|
275
|
268
|
} else {
|
276
|
269
|
const style =
|
277
|
|
- "@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}";
|
|
270
|
+ "@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}";
|
278
|
271
|
printJS({
|
279
|
272
|
printable: "statement-print",
|
280
|
273
|
type: "html",
|
|
@@ -316,14 +309,14 @@ export default {
|
316
|
309
|
let cal_two = 0;
|
317
|
310
|
for (let i = 0; i < response.data.data.list.length; i++) {
|
318
|
311
|
if (
|
319
|
|
- response.data.data.list[i].prescription == null ||
|
320
|
|
- response.data.data.list[i].prescription.length == 0
|
|
312
|
+ response.data.data.list[i].prescription == null ||
|
|
313
|
+ response.data.data.list[i].prescription.length == 0
|
321
|
314
|
) {
|
322
|
315
|
cal_one = cal_one + 1;
|
323
|
316
|
}
|
324
|
317
|
if (
|
325
|
|
- response.data.data.list[i].prescription != null &&
|
326
|
|
- response.data.data.list[i].prescription.length > 0
|
|
318
|
+ response.data.data.list[i].prescription != null &&
|
|
319
|
+ response.data.data.list[i].prescription.length > 0
|
327
|
320
|
) {
|
328
|
321
|
cal_two = cal_two + 1;
|
329
|
322
|
}
|
|
@@ -366,7 +359,8 @@ export default {
|
366
|
359
|
getTimes(time) {
|
367
|
360
|
return uParseTime(time, "{y}-{m}-{d}");
|
368
|
361
|
},
|
369
|
|
- searchAction() {},
|
|
362
|
+ searchAction() {
|
|
363
|
+ },
|
370
|
364
|
getInfo(order_id, obj) {
|
371
|
365
|
// 模拟数据
|
372
|
366
|
// let datainfo =
|
|
@@ -375,7 +369,7 @@ export default {
|
375
|
369
|
// console.log(json, "json");
|
376
|
370
|
// this.info = json.data.info
|
377
|
371
|
//
|
378
|
|
- if (obj.balance_accounts_type == 2) {
|
|
372
|
+ if (obj.balance_accounts_type == 2 ) {
|
379
|
373
|
let params = {
|
380
|
374
|
his_patient_id: obj.his_patient_id,
|
381
|
375
|
id: obj.order_id,
|
|
@@ -383,9 +377,9 @@ export default {
|
383
|
377
|
admin_user_id: this.$store.getters.xt_user.user.id,
|
384
|
378
|
};
|
385
|
379
|
if (
|
386
|
|
- this.org_id == 10138 ||
|
387
|
|
- this.$store.getters.xt_user.org_id == 4 ||
|
388
|
|
- this.org_id == 10278
|
|
380
|
+ this.org_id == 10138 ||
|
|
381
|
+ this.$store.getters.xt_user.org_id == 4 ||
|
|
382
|
+ this.org_id == 10278
|
389
|
383
|
) {
|
390
|
384
|
getPrivateExpenses(params).then((response) => {
|
391
|
385
|
if (response.data.state == 0) {
|
|
@@ -507,7 +501,7 @@ export default {
|
507
|
501
|
console.log(111, this.balanceAccounts);
|
508
|
502
|
}
|
509
|
503
|
});
|
510
|
|
- } else if (this.org_id == 10215 || this.org_id == 0) {
|
|
504
|
+ } else if (this.org_id == 10215 ) {
|
511
|
505
|
getPrivateExpensesOrder(params).then((response) => {
|
512
|
506
|
if (response.data.state == 0) {
|
513
|
507
|
// this.$message.error(response.data.msg)
|
|
@@ -535,62 +529,62 @@ export default {
|
535
|
529
|
|
536
|
530
|
that.info["bed_cost_total"] = response.data.data.bedCostTotal;
|
537
|
531
|
that.info["bed_cost_self_total"] =
|
538
|
|
- response.data.data.bedCostSelfTotal;
|
|
532
|
+ response.data.data.bedCostSelfTotal;
|
539
|
533
|
that.info["bed_cost_part_self_total"] =
|
540
|
|
- response.data.data.bedCostPartSelfTotal;
|
|
534
|
+ response.data.data.bedCostPartSelfTotal;
|
541
|
535
|
|
542
|
536
|
that.info["operation_cost_total"] =
|
543
|
|
- response.data.data.operationCostTotal;
|
|
537
|
+ response.data.data.operationCostTotal;
|
544
|
538
|
that.info["operation_cost_self_total"] =
|
545
|
|
- response.data.data.operationCostSelfTotal;
|
|
539
|
+ response.data.data.operationCostSelfTotal;
|
546
|
540
|
that.info["operation_cost_part_self_total"] =
|
547
|
|
- response.data.data.operationCostPartSelfTotal;
|
|
541
|
+ response.data.data.operationCostPartSelfTotal;
|
548
|
542
|
|
549
|
543
|
that.info["other_cost_total"] = response.data.data.otherCostTotal;
|
550
|
544
|
that.info["other_cost_self_total"] =
|
551
|
|
- response.data.data.otherCostSelfTotal;
|
|
545
|
+ response.data.data.otherCostSelfTotal;
|
552
|
546
|
that.info["other_cost_part_self_total"] =
|
553
|
|
- response.data.data.otherCostPartSelfTotal;
|
|
547
|
+ response.data.data.otherCostPartSelfTotal;
|
554
|
548
|
|
555
|
549
|
that.info["material_cost_total"] =
|
556
|
|
- response.data.data.materialCostTotal;
|
|
550
|
+ response.data.data.materialCostTotal;
|
557
|
551
|
that.info["material_cost_self_total"] =
|
558
|
|
- response.data.data.materialCostSelfTotal;
|
|
552
|
+ response.data.data.materialCostSelfTotal;
|
559
|
553
|
that.info["material_cost_part_self_total"] =
|
560
|
|
- response.data.data.materialCostPartSelfTotal;
|
|
554
|
+ response.data.data.materialCostPartSelfTotal;
|
561
|
555
|
|
562
|
556
|
that.info["western_medicine_cost_total"] =
|
563
|
|
- response.data.data.westernMedicineCostTotal;
|
|
557
|
+ response.data.data.westernMedicineCostTotal;
|
564
|
558
|
that.info["western_medicine_cost_self_total"] =
|
565
|
|
- response.data.data.westernMedicineCostSelfTotal;
|
|
559
|
+ response.data.data.westernMedicineCostSelfTotal;
|
566
|
560
|
that.info["western_medicine_cost_part_self_total"] =
|
567
|
|
- response.data.data.westernMedicineCostPartSelfTotal;
|
|
561
|
+ response.data.data.westernMedicineCostPartSelfTotal;
|
568
|
562
|
|
569
|
563
|
that.info["chinese_traditional_medicine_cost_total"] =
|
570
|
|
- response.data.data.chineseTraditionalMedicineCostTotal;
|
|
564
|
+ response.data.data.chineseTraditionalMedicineCostTotal;
|
571
|
565
|
that.info["chinese_traditional_medicine_cost_self_total"] =
|
572
|
|
- response.data.data.chineseTraditionalMedicineCostSelfTotal;
|
|
566
|
+ response.data.data.chineseTraditionalMedicineCostSelfTotal;
|
573
|
567
|
that.info["chinese_traditional_medicine_cost_part_self_total"] =
|
574
|
|
- response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
|
|
568
|
+ response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
|
575
|
569
|
|
576
|
570
|
that.info["check_cost_total"] = response.data.data.checkCostTotal;
|
577
|
571
|
that.info["check_cost_self_total"] =
|
578
|
|
- response.data.data.checkCostSelfTotal;
|
|
572
|
+ response.data.data.checkCostSelfTotal;
|
579
|
573
|
that.info["check_cost_part_self_total"] =
|
580
|
|
- response.data.data.checkCostPartSelfTotal;
|
|
574
|
+ response.data.data.checkCostPartSelfTotal;
|
581
|
575
|
|
582
|
576
|
that.info["laboratory_cost_total"] =
|
583
|
|
- response.data.data.laboratoryCostTotal;
|
|
577
|
+ response.data.data.laboratoryCostTotal;
|
584
|
578
|
that.info["laboratory_cost_self_total"] =
|
585
|
|
- response.data.data.laboratoryCostSelfTotal;
|
|
579
|
+ response.data.data.laboratoryCostSelfTotal;
|
586
|
580
|
that.info["laboratory_cost_part_self_total"] =
|
587
|
|
- response.data.data.laboratoryCostPartSelfTotal;
|
|
581
|
+ response.data.data.laboratoryCostPartSelfTotal;
|
588
|
582
|
|
589
|
583
|
that.info["treat_cost_total"] = response.data.data.treatCostTotal;
|
590
|
584
|
that.info["treat_cost_self_total"] =
|
591
|
|
- response.data.data.treatCostSelfTotal;
|
|
585
|
+ response.data.data.treatCostSelfTotal;
|
592
|
586
|
that.info["treat_cost_part_self_total"] =
|
593
|
|
- response.data.data.treatCostPartSelfTotal;
|
|
587
|
+ response.data.data.treatCostPartSelfTotal;
|
594
|
588
|
that.info["date"] = response.data.data.date;
|
595
|
589
|
// that.info["number"] = response.data.data.number;
|
596
|
590
|
that.info["order_infos"] = response.data.data.order_infos;
|
|
@@ -655,168 +649,372 @@ export default {
|
655
|
649
|
that.info.begndate = that.getTimes(that.paramsObj.start_time);
|
656
|
650
|
that.info.enddate = that.getTimes(that.paramsObj.end_time);
|
657
|
651
|
}
|
|
652
|
+
|
|
653
|
+ that.info.order_infos.map((item) => {
|
|
654
|
+
|
|
655
|
+ });
|
|
656
|
+
|
658
|
657
|
}
|
659
|
658
|
});
|
660
|
|
- }
|
661
|
|
- } else {
|
662
|
|
- var that = this;
|
663
|
|
- axios
|
664
|
|
- .get("http://127.0.0.1:9532/api/settle/query", {
|
665
|
|
- params: {
|
666
|
|
- order_id: order_id,
|
667
|
|
- admin_user_id: this.$store.getters.xt_user.user.id,
|
668
|
|
- },
|
669
|
|
- })
|
670
|
|
- .then(function (response) {
|
|
659
|
+ } else if (this.org_id == 10191 || this.org_id == 0) {
|
|
660
|
+
|
|
661
|
+ getPrivateExpensesOrder(params).then((response) => {
|
671
|
662
|
if (response.data.state == 0) {
|
672
|
|
- this.$message.error(response.data.msg);
|
|
663
|
+ // this.$message.error(response.data.msg)
|
|
664
|
+
|
673
|
665
|
return false;
|
674
|
666
|
} else {
|
675
|
|
- console.log(response.data.data.info);
|
|
667
|
+ var that = this;
|
676
|
668
|
that.info = response.data.data.info;
|
677
|
669
|
that.p_admin = response.data.data.printor_admin;
|
678
|
670
|
that.charge_admin = response.data.data.charge_admin;
|
679
|
671
|
|
680
|
672
|
that.info["p_admin"] = that.p_admin;
|
681
|
673
|
that.info["charge_admin"] = that.charge_admin;
|
682
|
|
-
|
683
|
674
|
that.info["order_number"] = response.data.data.order_number;
|
684
|
675
|
that.info["patient"] = response.data.data.patient;
|
685
|
676
|
that.info["date"] = response.data.data.date;
|
686
|
677
|
that.info["number"] = response.data.data.number;
|
687
|
678
|
that.info["order_infos"] = response.data.data.order_infos;
|
688
|
679
|
that.info["diagnosis"] = response.data.data.diagnosis;
|
689
|
|
- that.info["org_code"] = response.data.data.org_code;
|
690
|
|
- that.info["org_name"] = response.data.data.org_name;
|
691
|
|
- that.info["doctor_code"] = response.data.data.doctor_code;
|
692
|
|
- that.info["department"] = response.data.data.department;
|
693
|
|
- that.info["health_card_no"] = response.data.data.health_card_no;
|
|
680
|
+ that.info["fixmedins_name"] = response.data.data.org_name;
|
|
681
|
+ that.info["fixmedins_code"] = response.data.data.org_code;
|
|
682
|
+ // that.info["doctor_code"] = response.data.data.doctor_code;
|
|
683
|
+ // that.info["department"] = response.data.data.department;
|
|
684
|
+ // that.info["health_card_no"] = response.data.data.health_card_no;
|
694
|
685
|
|
695
|
686
|
that.info["bed_cost_total"] = response.data.data.bedCostTotal;
|
696
|
687
|
that.info["bed_cost_self_total"] =
|
697
|
|
- response.data.data.bedCostSelfTotal;
|
|
688
|
+ response.data.data.bedCostSelfTotal;
|
698
|
689
|
that.info["bed_cost_part_self_total"] =
|
699
|
|
- response.data.data.bedCostPartSelfTotal;
|
|
690
|
+ response.data.data.bedCostPartSelfTotal;
|
700
|
691
|
|
701
|
692
|
that.info["operation_cost_total"] =
|
702
|
|
- response.data.data.operationCostTotal;
|
|
693
|
+ response.data.data.operationCostTotal;
|
703
|
694
|
that.info["operation_cost_self_total"] =
|
704
|
|
- response.data.data.operationCostSelfTotal;
|
|
695
|
+ response.data.data.operationCostSelfTotal;
|
705
|
696
|
that.info["operation_cost_part_self_total"] =
|
706
|
|
- response.data.data.operationCostPartSelfTotal;
|
|
697
|
+ response.data.data.operationCostPartSelfTotal;
|
707
|
698
|
|
708
|
699
|
that.info["other_cost_total"] = response.data.data.otherCostTotal;
|
709
|
700
|
that.info["other_cost_self_total"] =
|
710
|
|
- response.data.data.otherCostSelfTotal;
|
|
701
|
+ response.data.data.otherCostSelfTotal;
|
711
|
702
|
that.info["other_cost_part_self_total"] =
|
712
|
|
- response.data.data.otherCostPartSelfTotal;
|
|
703
|
+ response.data.data.otherCostPartSelfTotal;
|
713
|
704
|
|
714
|
705
|
that.info["material_cost_total"] =
|
715
|
|
- response.data.data.materialCostTotal;
|
|
706
|
+ response.data.data.materialCostTotal;
|
716
|
707
|
that.info["material_cost_self_total"] =
|
717
|
|
- response.data.data.materialCostSelfTotal;
|
|
708
|
+ response.data.data.materialCostSelfTotal;
|
718
|
709
|
that.info["material_cost_part_self_total"] =
|
719
|
|
- response.data.data.materialCostPartSelfTotal;
|
|
710
|
+ response.data.data.materialCostPartSelfTotal;
|
720
|
711
|
|
721
|
712
|
that.info["western_medicine_cost_total"] =
|
722
|
|
- response.data.data.westernMedicineCostTotal;
|
|
713
|
+ response.data.data.westernMedicineCostTotal;
|
723
|
714
|
that.info["western_medicine_cost_self_total"] =
|
724
|
|
- response.data.data.westernMedicineCostSelfTotal;
|
|
715
|
+ response.data.data.westernMedicineCostSelfTotal;
|
725
|
716
|
that.info["western_medicine_cost_part_self_total"] =
|
726
|
|
- response.data.data.westernMedicineCostPartSelfTotal;
|
|
717
|
+ response.data.data.westernMedicineCostPartSelfTotal;
|
727
|
718
|
|
728
|
719
|
that.info["chinese_traditional_medicine_cost_total"] =
|
729
|
|
- response.data.data.chineseTraditionalMedicineCostTotal;
|
|
720
|
+ response.data.data.chineseTraditionalMedicineCostTotal;
|
730
|
721
|
that.info["chinese_traditional_medicine_cost_self_total"] =
|
731
|
|
- response.data.data.chineseTraditionalMedicineCostSelfTotal;
|
|
722
|
+ response.data.data.chineseTraditionalMedicineCostSelfTotal;
|
732
|
723
|
that.info["chinese_traditional_medicine_cost_part_self_total"] =
|
733
|
|
- response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
|
|
724
|
+ response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
|
734
|
725
|
|
735
|
726
|
that.info["check_cost_total"] = response.data.data.checkCostTotal;
|
736
|
727
|
that.info["check_cost_self_total"] =
|
737
|
|
- response.data.data.checkCostSelfTotal;
|
|
728
|
+ response.data.data.checkCostSelfTotal;
|
738
|
729
|
that.info["check_cost_part_self_total"] =
|
739
|
|
- response.data.data.checkCostPartSelfTotal;
|
|
730
|
+ response.data.data.checkCostPartSelfTotal;
|
740
|
731
|
|
741
|
732
|
that.info["laboratory_cost_total"] =
|
742
|
|
- response.data.data.laboratoryCostTotal;
|
|
733
|
+ response.data.data.laboratoryCostTotal;
|
743
|
734
|
that.info["laboratory_cost_self_total"] =
|
744
|
|
- response.data.data.laboratoryCostSelfTotal;
|
|
735
|
+ response.data.data.laboratoryCostSelfTotal;
|
745
|
736
|
that.info["laboratory_cost_part_self_total"] =
|
746
|
|
- response.data.data.laboratoryCostPartSelfTotal;
|
|
737
|
+ response.data.data.laboratoryCostPartSelfTotal;
|
747
|
738
|
|
748
|
739
|
that.info["treat_cost_total"] = response.data.data.treatCostTotal;
|
749
|
740
|
that.info["treat_cost_self_total"] =
|
750
|
|
- response.data.data.treatCostSelfTotal;
|
|
741
|
+ response.data.data.treatCostSelfTotal;
|
751
|
742
|
that.info["treat_cost_part_self_total"] =
|
752
|
|
- response.data.data.treatCostPartSelfTotal;
|
|
743
|
+ response.data.data.treatCostPartSelfTotal;
|
753
|
744
|
that.info["date"] = response.data.data.date;
|
754
|
|
- that.info["number"] = response.data.data.number;
|
|
745
|
+ // that.info["number"] = response.data.data.number;
|
755
|
746
|
that.info["order_infos"] = response.data.data.order_infos;
|
756
|
747
|
that.info["diagnosis"] = response.data.data.diagnosis;
|
757
|
748
|
|
758
|
|
- let obj = {
|
759
|
|
- type: 1,
|
760
|
|
- details: [],
|
761
|
|
- total: 0,
|
762
|
|
- };
|
763
|
|
- let obj2 = {
|
764
|
|
- type: 2,
|
765
|
|
- details: [],
|
766
|
|
- total: 0,
|
767
|
|
- };
|
768
|
|
- let obj3 = {
|
769
|
|
- type: 3,
|
770
|
|
- details: [],
|
771
|
|
- total: 0,
|
772
|
|
- };
|
773
|
749
|
|
774
|
|
- let obj4 = {
|
775
|
|
- type: 4,
|
776
|
|
- details: [],
|
777
|
|
- total: 0,
|
778
|
|
- };
|
779
|
|
- let num = 0;
|
780
|
|
- that.info.order_infos.map((item) => {
|
781
|
|
- if (item.advice_id > 0) {
|
782
|
|
- obj.details.push(item);
|
783
|
|
- obj.total += item.pric * item.advice.prescribing_number;
|
784
|
|
- num++;
|
785
|
|
- } else {
|
786
|
|
- if (item.project.type == 2) {
|
787
|
|
- obj2.details.push(item);
|
788
|
|
- obj2.total += item.pric * item.project.count;
|
|
750
|
+ let list = []
|
|
751
|
+ for (let i = 0; i < response.data.data.order_infos.length; i++) {
|
|
752
|
+ let order = response.data.data.order_infos[i]
|
|
753
|
+ let obj = {
|
|
754
|
+ name: "",
|
|
755
|
+ spec: "",
|
|
756
|
+ cnt: "",
|
|
757
|
+ det_item_fee_sumamt: "",
|
|
758
|
+ }
|
|
759
|
+
|
|
760
|
+ if (order.advice_id > 0 && order.project_id == 0) {
|
|
761
|
+ obj.name = order.advice.advice_name
|
|
762
|
+ let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
|
|
763
|
+ obj.spec = spec
|
|
764
|
+ obj.cnt = order.cnt
|
|
765
|
+ obj.det_item_fee_sumamt =order.det_item_fee_sumamt
|
|
766
|
+ list.push(obj)
|
|
767
|
+
|
|
768
|
+ }else if (order.advice_id == 0 && order.project_id > 0) {
|
|
769
|
+ if(order.project.type == 2){
|
|
770
|
+ obj.name = order.project.project.project_name
|
|
771
|
+ obj.spec = ""
|
|
772
|
+ obj.cnt = order.cnt
|
|
773
|
+ obj.det_item_fee_sumamt =order.det_item_fee_sumamt
|
|
774
|
+
|
|
775
|
+ }else{
|
|
776
|
+ obj.name = order.project.good_info.good_name
|
|
777
|
+ obj.spec = order.project.good_info.specification_name
|
|
778
|
+ obj.cnt = order.cnt
|
|
779
|
+ obj.det_item_fee_sumamt =order.det_item_fee_sumamt
|
|
780
|
+ }
|
|
781
|
+ list.push(obj)
|
|
782
|
+ }
|
|
783
|
+
|
|
784
|
+ }
|
|
785
|
+ let len = list.length / 2
|
|
786
|
+ let L_list = []
|
|
787
|
+ let R_list = []
|
|
788
|
+
|
|
789
|
+ for(let i = 0; i < len; i++){
|
|
790
|
+ L_list.push(list[i])
|
|
791
|
+ }
|
|
792
|
+ for(let i = len; i < list.length; i++){
|
|
793
|
+ R_list.push(list[i])
|
|
794
|
+ }
|
|
795
|
+ that.info["L_list"] = L_list
|
|
796
|
+ that.info["R_list"] = R_list
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+ }
|
|
804
|
+ });
|
|
805
|
+ }
|
|
806
|
+
|
|
807
|
+ } else {
|
|
808
|
+ var that = this;
|
|
809
|
+ axios
|
|
810
|
+ .get("http://127.0.0.1:9532/api/settle/query", {
|
|
811
|
+ params: {
|
|
812
|
+ order_id: order_id,
|
|
813
|
+ admin_user_id: this.$store.getters.xt_user.user.id,
|
|
814
|
+ },
|
|
815
|
+ })
|
|
816
|
+ .then(function (response) {
|
|
817
|
+ if (response.data.state == 0) {
|
|
818
|
+ this.$message.error(response.data.msg);
|
|
819
|
+ return false;
|
|
820
|
+ } else {
|
|
821
|
+ console.log(response.data.data.info);
|
|
822
|
+ that.info = response.data.data.info;
|
|
823
|
+ that.p_admin = response.data.data.printor_admin;
|
|
824
|
+ that.charge_admin = response.data.data.charge_admin;
|
|
825
|
+
|
|
826
|
+ that.info["p_admin"] = that.p_admin;
|
|
827
|
+ that.info["charge_admin"] = that.charge_admin;
|
|
828
|
+
|
|
829
|
+ that.info["order_number"] = response.data.data.order_number;
|
|
830
|
+ that.info["patient"] = response.data.data.patient;
|
|
831
|
+ that.info["date"] = response.data.data.date;
|
|
832
|
+ that.info["number"] = response.data.data.number;
|
|
833
|
+ that.info["order_infos"] = response.data.data.order_infos;
|
|
834
|
+ that.info["diagnosis"] = response.data.data.diagnosis;
|
|
835
|
+ that.info["org_code"] = response.data.data.org_code;
|
|
836
|
+ that.info["org_name"] = response.data.data.org_name;
|
|
837
|
+ that.info["doctor_code"] = response.data.data.doctor_code;
|
|
838
|
+ that.info["department"] = response.data.data.department;
|
|
839
|
+ that.info["health_card_no"] = response.data.data.health_card_no;
|
|
840
|
+
|
|
841
|
+ that.info["bed_cost_total"] = response.data.data.bedCostTotal;
|
|
842
|
+ that.info["bed_cost_self_total"] =
|
|
843
|
+ response.data.data.bedCostSelfTotal;
|
|
844
|
+ that.info["bed_cost_part_self_total"] =
|
|
845
|
+ response.data.data.bedCostPartSelfTotal;
|
|
846
|
+
|
|
847
|
+ that.info["operation_cost_total"] =
|
|
848
|
+ response.data.data.operationCostTotal;
|
|
849
|
+ that.info["operation_cost_self_total"] =
|
|
850
|
+ response.data.data.operationCostSelfTotal;
|
|
851
|
+ that.info["operation_cost_part_self_total"] =
|
|
852
|
+ response.data.data.operationCostPartSelfTotal;
|
|
853
|
+
|
|
854
|
+ that.info["other_cost_total"] = response.data.data.otherCostTotal;
|
|
855
|
+ that.info["other_cost_self_total"] =
|
|
856
|
+ response.data.data.otherCostSelfTotal;
|
|
857
|
+ that.info["other_cost_part_self_total"] =
|
|
858
|
+ response.data.data.otherCostPartSelfTotal;
|
|
859
|
+
|
|
860
|
+ that.info["material_cost_total"] =
|
|
861
|
+ response.data.data.materialCostTotal;
|
|
862
|
+ that.info["material_cost_self_total"] =
|
|
863
|
+ response.data.data.materialCostSelfTotal;
|
|
864
|
+ that.info["material_cost_part_self_total"] =
|
|
865
|
+ response.data.data.materialCostPartSelfTotal;
|
|
866
|
+
|
|
867
|
+ that.info["western_medicine_cost_total"] =
|
|
868
|
+ response.data.data.westernMedicineCostTotal;
|
|
869
|
+ that.info["western_medicine_cost_self_total"] =
|
|
870
|
+ response.data.data.westernMedicineCostSelfTotal;
|
|
871
|
+ that.info["western_medicine_cost_part_self_total"] =
|
|
872
|
+ response.data.data.westernMedicineCostPartSelfTotal;
|
|
873
|
+
|
|
874
|
+ that.info["chinese_traditional_medicine_cost_total"] =
|
|
875
|
+ response.data.data.chineseTraditionalMedicineCostTotal;
|
|
876
|
+ that.info["chinese_traditional_medicine_cost_self_total"] =
|
|
877
|
+ response.data.data.chineseTraditionalMedicineCostSelfTotal;
|
|
878
|
+ that.info["chinese_traditional_medicine_cost_part_self_total"] =
|
|
879
|
+ response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
|
|
880
|
+
|
|
881
|
+ that.info["check_cost_total"] = response.data.data.checkCostTotal;
|
|
882
|
+ that.info["check_cost_self_total"] =
|
|
883
|
+ response.data.data.checkCostSelfTotal;
|
|
884
|
+ that.info["check_cost_part_self_total"] =
|
|
885
|
+ response.data.data.checkCostPartSelfTotal;
|
|
886
|
+
|
|
887
|
+ that.info["laboratory_cost_total"] =
|
|
888
|
+ response.data.data.laboratoryCostTotal;
|
|
889
|
+ that.info["laboratory_cost_self_total"] =
|
|
890
|
+ response.data.data.laboratoryCostSelfTotal;
|
|
891
|
+ that.info["laboratory_cost_part_self_total"] =
|
|
892
|
+ response.data.data.laboratoryCostPartSelfTotal;
|
|
893
|
+
|
|
894
|
+ that.info["treat_cost_total"] = response.data.data.treatCostTotal;
|
|
895
|
+ that.info["treat_cost_self_total"] =
|
|
896
|
+ response.data.data.treatCostSelfTotal;
|
|
897
|
+ that.info["treat_cost_part_self_total"] =
|
|
898
|
+ response.data.data.treatCostPartSelfTotal;
|
|
899
|
+ that.info["date"] = response.data.data.date;
|
|
900
|
+ that.info["number"] = response.data.data.number;
|
|
901
|
+ that.info["order_infos"] = response.data.data.order_infos;
|
|
902
|
+ that.info["diagnosis"] = response.data.data.diagnosis;
|
|
903
|
+
|
|
904
|
+ let obj = {
|
|
905
|
+ type: 1,
|
|
906
|
+ details: [],
|
|
907
|
+ total: 0,
|
|
908
|
+ };
|
|
909
|
+ let obj2 = {
|
|
910
|
+ type: 2,
|
|
911
|
+ details: [],
|
|
912
|
+ total: 0,
|
|
913
|
+ };
|
|
914
|
+ let obj3 = {
|
|
915
|
+ type: 3,
|
|
916
|
+ details: [],
|
|
917
|
+ total: 0,
|
|
918
|
+ };
|
|
919
|
+
|
|
920
|
+ let obj4 = {
|
|
921
|
+ type: 4,
|
|
922
|
+ details: [],
|
|
923
|
+ total: 0,
|
|
924
|
+ };
|
|
925
|
+ let num = 0;
|
|
926
|
+ that.info.order_infos.map((item) => {
|
|
927
|
+ if (item.advice_id > 0) {
|
|
928
|
+ obj.details.push(item);
|
|
929
|
+ obj.total += item.pric * item.advice.prescribing_number;
|
789
|
930
|
num++;
|
790
|
931
|
} else {
|
791
|
|
- obj3.details.push(item);
|
792
|
|
- obj3.total += item.pric * item.project.count;
|
793
|
|
- num++;
|
|
932
|
+ if (item.project.type == 2) {
|
|
933
|
+ obj2.details.push(item);
|
|
934
|
+ obj2.total += item.pric * item.project.count;
|
|
935
|
+ num++;
|
|
936
|
+ } else {
|
|
937
|
+ obj3.details.push(item);
|
|
938
|
+ obj3.total += item.pric * item.project.count;
|
|
939
|
+ num++;
|
|
940
|
+ }
|
794
|
941
|
}
|
|
942
|
+ });
|
|
943
|
+
|
|
944
|
+ // this.info.order_infos.map(item => {
|
|
945
|
+ // obj4.total = item.Total
|
|
946
|
+ // obj4.details.push(item)
|
|
947
|
+ // num++
|
|
948
|
+ //
|
|
949
|
+ // })
|
|
950
|
+
|
|
951
|
+ that.info.new_detail_list = [];
|
|
952
|
+ that.info.new_detail_list.push(obj);
|
|
953
|
+ that.info.new_detail_list.push(obj2);
|
|
954
|
+ that.info.new_detail_list.push(obj3);
|
|
955
|
+ // that.info.new_detail_list.push(obj4)
|
|
956
|
+
|
|
957
|
+ that.num = num;
|
|
958
|
+
|
|
959
|
+ if (that.paramsObj.settle_type != 1) {
|
|
960
|
+ that.info.begndate = that.getTimes(that.paramsObj.start_time);
|
|
961
|
+ that.info.enddate = that.getTimes(that.paramsObj.end_time);
|
795
|
962
|
}
|
796
|
|
- });
|
797
|
963
|
|
798
|
|
- // this.info.order_infos.map(item => {
|
799
|
|
- // obj4.total = item.Total
|
800
|
|
- // obj4.details.push(item)
|
801
|
|
- // num++
|
802
|
|
- //
|
803
|
|
- // })
|
804
|
964
|
|
805
|
|
- that.info.new_detail_list = [];
|
806
|
|
- that.info.new_detail_list.push(obj);
|
807
|
|
- that.info.new_detail_list.push(obj2);
|
808
|
|
- that.info.new_detail_list.push(obj3);
|
809
|
|
- // that.info.new_detail_list.push(obj4)
|
810
|
965
|
|
811
|
|
- that.num = num;
|
|
966
|
+ let list = []
|
|
967
|
+ for (let i = 0; i < response.data.data.order_infos.length; i++) {
|
|
968
|
+ let order = response.data.data.order_infos[i]
|
|
969
|
+ let obj = {
|
|
970
|
+ name: "",
|
|
971
|
+ spec: "",
|
|
972
|
+ cnt: "",
|
|
973
|
+ det_item_fee_sumamt: "",
|
|
974
|
+ }
|
|
975
|
+
|
|
976
|
+ if (order.advice_id > 0 && order.project_id == 0) {
|
|
977
|
+ obj.name = order.advice.advice_name
|
|
978
|
+ let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
|
|
979
|
+ obj.spec = spec
|
|
980
|
+ obj.cnt = order.cnt
|
|
981
|
+ obj.det_item_fee_sumamt =order.det_item_fee_sumamt
|
|
982
|
+ list.push(obj)
|
|
983
|
+
|
|
984
|
+ }else if (order.advice_id == 0 && order.project_id > 0) {
|
|
985
|
+ if(order.project.type == 2){
|
|
986
|
+ obj.name = order.project.project.project_name
|
|
987
|
+ obj.spec = ""
|
|
988
|
+ obj.cnt = order.cnt
|
|
989
|
+ obj.det_item_fee_sumamt =order.det_item_fee_sumamt
|
|
990
|
+
|
|
991
|
+ }else{
|
|
992
|
+ obj.name = order.project.good_info.good_name
|
|
993
|
+ obj.spec = order.project.good_info.specification_name
|
|
994
|
+ obj.cnt = order.cnt
|
|
995
|
+ obj.det_item_fee_sumamt =order.det_item_fee_sumamt
|
|
996
|
+ }
|
|
997
|
+ list.push(obj)
|
|
998
|
+ }
|
|
999
|
+
|
|
1000
|
+ }
|
|
1001
|
+ let len = list.length / 2
|
|
1002
|
+ let L_list = []
|
|
1003
|
+ let R_list = []
|
|
1004
|
+
|
|
1005
|
+ for(let i = 0; i < len; i++){
|
|
1006
|
+ L_list.push(list[i])
|
|
1007
|
+ }
|
|
1008
|
+ for(let i = len; i < list.length; i++){
|
|
1009
|
+ R_list.push(list[i])
|
|
1010
|
+ }
|
|
1011
|
+ that.info["L_list"] = L_list
|
|
1012
|
+ that.info["R_list"] = R_list
|
812
|
1013
|
|
813
|
|
- if (that.paramsObj.settle_type != 1) {
|
814
|
|
- that.info.begndate = that.getTimes(that.paramsObj.start_time);
|
815
|
|
- that.info.enddate = that.getTimes(that.paramsObj.end_time);
|
816
|
1014
|
}
|
817
|
|
- }
|
818
|
|
- })
|
819
|
|
- .catch(function (error) {});
|
|
1015
|
+ })
|
|
1016
|
+ .catch(function (error) {
|
|
1017
|
+ });
|
820
|
1018
|
}
|
821
|
1019
|
},
|
822
|
1020
|
},
|
|
@@ -933,7 +1131,7 @@ export default {
|
933
|
1131
|
background-color: #fff;
|
934
|
1132
|
z-index: 1;
|
935
|
1133
|
transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
|
936
|
|
- background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
|
|
1134
|
+ background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
|
937
|
1135
|
}
|
938
|
1136
|
|
939
|
1137
|
.dialysis-print-order .is-checked-radio::after {
|
|
@@ -970,21 +1168,26 @@ export default {
|
970
|
1168
|
text-align: left;
|
971
|
1169
|
padding-left: 10px !important;
|
972
|
1170
|
}
|
|
1171
|
+
|
973
|
1172
|
.title-box-pro-tr {
|
974
|
1173
|
border: 0 #fff;
|
975
|
1174
|
}
|
|
1175
|
+
|
976
|
1176
|
.text-align-left {
|
977
|
1177
|
text-align: left !important;
|
978
|
1178
|
padding-left: 10px !important;
|
979
|
1179
|
font-size: 14px !important;
|
980
|
1180
|
line-height: 25px;
|
981
|
1181
|
}
|
|
1182
|
+
|
982
|
1183
|
.print-table-tr-new td {
|
983
|
1184
|
line-height: 20px !important;
|
984
|
1185
|
}
|
|
1186
|
+
|
985
|
1187
|
.border-top-solid {
|
986
|
1188
|
border: solid 1px #000;
|
987
|
1189
|
}
|
|
1190
|
+
|
988
|
1191
|
.print-template-two tr {
|
989
|
1192
|
line-height: 30px;
|
990
|
1193
|
}
|
|
@@ -996,6 +1199,7 @@ export default {
|
996
|
1199
|
font-size: 14px;
|
997
|
1200
|
border-collapse: collapse;
|
998
|
1201
|
}
|
|
1202
|
+
|
999
|
1203
|
.table-box1 tr {
|
1000
|
1204
|
border-bottom: 1px solid #000;
|
1001
|
1205
|
}
|
|
@@ -1003,19 +1207,23 @@ export default {
|
1003
|
1207
|
|
1004
|
1208
|
<style lang="scss">
|
1005
|
1209
|
.newContainer {
|
1006
|
|
- .dialysisPage::-webkit-scrollbar {
|
1007
|
|
- height: 15px;
|
1008
|
|
- }
|
1009
|
|
-
|
1010
|
|
- .el-date-editor {
|
1011
|
|
- .el-input__inner {
|
1012
|
|
- padding-right: 0px;
|
1013
|
|
- }
|
1014
|
|
- }
|
1015
|
|
- .el-table td,
|
1016
|
|
- .el-table th {
|
1017
|
|
- text-align: center;
|
1018
|
|
- }
|
|
1210
|
+
|
|
1211
|
+.dialysisPage::-webkit-scrollbar {
|
|
1212
|
+ height: 15px;
|
|
1213
|
+}
|
|
1214
|
+
|
|
1215
|
+.el-date-editor {
|
|
1216
|
+
|
|
1217
|
+.el-input__inner {
|
|
1218
|
+ padding-right: 0px;
|
|
1219
|
+}
|
|
1220
|
+
|
|
1221
|
+}
|
|
1222
|
+.el-table td,
|
|
1223
|
+.el-table th {
|
|
1224
|
+ text-align: center;
|
|
1225
|
+}
|
|
1226
|
+
|
1019
|
1227
|
}
|
1020
|
1228
|
.newContainer::-webkit-scrollbar {
|
1021
|
1229
|
height: 15px !important;
|