csx 2 лет назад
Родитель
Сommit
53127b6ff8

+ 408 - 200
src/xt_pages/outpatientCharges/statementPrint.vue Просмотреть файл

2
   <div>
2
   <div>
3
     <template>
3
     <template>
4
       <el-button
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
     </template>
14
     </template>
14
 
15
 
15
     <div class="dialysisPage" style="padding-top: 40px">
16
     <div class="dialysisPage" style="padding-top: 40px">
16
       <div
17
       <div
17
-        v-if="
18
+          v-if="
18
           org_id == 9990 ||
19
           org_id == 9990 ||
19
           org_id == 10138 ||
20
           org_id == 10138 ||
20
           org_id == 9504 ||
21
           org_id == 9504 ||
25
       >
26
       >
26
         <printTwo :info="info" v-if="org_id == 9990"></printTwo>
27
         <printTwo :info="info" v-if="org_id == 9990"></printTwo>
27
         <printThree
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
         ></printThree>
33
         ></printThree>
33
         <printFour
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
         ></printFour>
39
         ></printFour>
39
         <!--        <privateChargePrint  :info="info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></privateChargePrint>-->
40
         <!--        <privateChargePrint  :info="info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></privateChargePrint>-->
40
       </div>
41
       </div>
41
       <!--      <print-other :info="info" v-if="org_id == 9919"></print-other>-->
42
       <!--      <print-other :info="info" v-if="org_id == 9919"></print-other>-->
42
       <!--      <printOne :info=" info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></printOne>-->
43
       <!--      <printOne :info=" info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></printOne>-->
43
       <printFive
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
       ></printFive>
49
       ></printFive>
49
       <printOne :info="info" v-else></printOne>
50
       <printOne :info="info" v-else></printOne>
50
       <!-- 测试医保环境下表格样式放开以下这条 -->
51
       <!-- 测试医保环境下表格样式放开以下这条 -->
54
 </template>
55
 </template>
55
 
56
 
56
 <script>
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
 import axios from "axios";
59
 import axios from "axios";
62
 
60
 
63
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
61
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
64
-import print from "print-js";
65
 import printOne from "./statementTemplate/printOne";
62
 import printOne from "./statementTemplate/printOne";
66
 import privateChargePrint from "./statementTemplate/privateChargePrint";
63
 import privateChargePrint from "./statementTemplate/privateChargePrint";
67
 
64
 
70
 import printFour from "./statementTemplate/printFour";
67
 import printFour from "./statementTemplate/printFour";
71
 import printFive from "./statementTemplate/printFive";
68
 import printFive from "./statementTemplate/printFive";
72
 import testVue from "./statementTemplate/test";
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
 // import PrintOther from '../hospitalStation/statementTemplate/printOther'
72
 // import PrintOther from '../hospitalStation/statementTemplate/printOther'
80
 export default {
73
 export default {
81
   name: "dialysisPrintOrder",
74
   name: "dialysisPrintOrder",
95
   data() {
88
   data() {
96
     return {
89
     return {
97
       crumbs: [
90
       crumbs: [
98
-        { path: false, name: "门诊医生站" },
99
-        { path: false, name: "打印" },
91
+        {path: false, name: "门诊医生站"},
92
+        {path: false, name: "打印"},
100
       ],
93
       ],
101
       record_date: "",
94
       record_date: "",
102
       patientTableData: [],
95
       patientTableData: [],
119
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
112
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
120
 
113
 
121
       if (
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
         setTimeout(() => {
119
         setTimeout(() => {
127
           const style =
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
           const style2 =
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
           const style3 =
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
           const style4 =
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
           const style5 =
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
           const style6 =
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
           const style7 =
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
           const style8 =
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
           const style9 =
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
           const style10 =
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
           const style11 =
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
           const style12 =
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
           if (this.num >= 13) {
144
           if (this.num >= 13) {
152
             printJS({
145
             printJS({
153
               printable: "prescription-print",
146
               printable: "prescription-print",
235
           }
228
           }
236
         }, 500);
229
         }, 500);
237
       } else if (
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
         const style =
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
         printJS({
236
         printJS({
244
           printable: "prescription-print",
237
           printable: "prescription-print",
245
           type: "html",
238
           type: "html",
249
       } else {
242
       } else {
250
         // 医保环境打印格式
243
         // 医保环境打印格式
251
         if (
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
           const style =
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
           printJS({
250
           printJS({
258
             printable: "statement-print",
251
             printable: "statement-print",
259
             type: "html",
252
             type: "html",
261
             scanStyles: false,
254
             scanStyles: false,
262
           });
255
           });
263
         } else if (
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
           const style =
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
           printJS({
262
           printJS({
270
             printable: "statement-print",
263
             printable: "statement-print",
271
             type: "html",
264
             type: "html",
274
           });
267
           });
275
         } else {
268
         } else {
276
           const style =
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
           printJS({
271
           printJS({
279
             printable: "statement-print",
272
             printable: "statement-print",
280
             type: "html",
273
             type: "html",
316
           let cal_two = 0;
309
           let cal_two = 0;
317
           for (let i = 0; i < response.data.data.list.length; i++) {
310
           for (let i = 0; i < response.data.data.list.length; i++) {
318
             if (
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
               cal_one = cal_one + 1;
315
               cal_one = cal_one + 1;
323
             }
316
             }
324
             if (
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
               cal_two = cal_two + 1;
321
               cal_two = cal_two + 1;
329
             }
322
             }
366
     getTimes(time) {
359
     getTimes(time) {
367
       return uParseTime(time, "{y}-{m}-{d}");
360
       return uParseTime(time, "{y}-{m}-{d}");
368
     },
361
     },
369
-    searchAction() {},
362
+    searchAction() {
363
+    },
370
     getInfo(order_id, obj) {
364
     getInfo(order_id, obj) {
371
       // 模拟数据
365
       // 模拟数据
372
       // let datainfo =
366
       // let datainfo =
375
       // console.log(json, "json");
369
       // console.log(json, "json");
376
       // this.info = json.data.info
370
       // this.info = json.data.info
377
       //
371
       //
378
-      if (obj.balance_accounts_type == 2) {
372
+      if (obj.balance_accounts_type == 2 ) {
379
         let params = {
373
         let params = {
380
           his_patient_id: obj.his_patient_id,
374
           his_patient_id: obj.his_patient_id,
381
           id: obj.order_id,
375
           id: obj.order_id,
383
           admin_user_id: this.$store.getters.xt_user.user.id,
377
           admin_user_id: this.$store.getters.xt_user.user.id,
384
         };
378
         };
385
         if (
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
           getPrivateExpenses(params).then((response) => {
384
           getPrivateExpenses(params).then((response) => {
391
             if (response.data.state == 0) {
385
             if (response.data.state == 0) {
507
               console.log(111, this.balanceAccounts);
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
           getPrivateExpensesOrder(params).then((response) => {
505
           getPrivateExpensesOrder(params).then((response) => {
512
             if (response.data.state == 0) {
506
             if (response.data.state == 0) {
513
               // this.$message.error(response.data.msg)
507
               // this.$message.error(response.data.msg)
535
 
529
 
536
               that.info["bed_cost_total"] = response.data.data.bedCostTotal;
530
               that.info["bed_cost_total"] = response.data.data.bedCostTotal;
537
               that.info["bed_cost_self_total"] =
531
               that.info["bed_cost_self_total"] =
538
-                response.data.data.bedCostSelfTotal;
532
+                  response.data.data.bedCostSelfTotal;
539
               that.info["bed_cost_part_self_total"] =
533
               that.info["bed_cost_part_self_total"] =
540
-                response.data.data.bedCostPartSelfTotal;
534
+                  response.data.data.bedCostPartSelfTotal;
541
 
535
 
542
               that.info["operation_cost_total"] =
536
               that.info["operation_cost_total"] =
543
-                response.data.data.operationCostTotal;
537
+                  response.data.data.operationCostTotal;
544
               that.info["operation_cost_self_total"] =
538
               that.info["operation_cost_self_total"] =
545
-                response.data.data.operationCostSelfTotal;
539
+                  response.data.data.operationCostSelfTotal;
546
               that.info["operation_cost_part_self_total"] =
540
               that.info["operation_cost_part_self_total"] =
547
-                response.data.data.operationCostPartSelfTotal;
541
+                  response.data.data.operationCostPartSelfTotal;
548
 
542
 
549
               that.info["other_cost_total"] = response.data.data.otherCostTotal;
543
               that.info["other_cost_total"] = response.data.data.otherCostTotal;
550
               that.info["other_cost_self_total"] =
544
               that.info["other_cost_self_total"] =
551
-                response.data.data.otherCostSelfTotal;
545
+                  response.data.data.otherCostSelfTotal;
552
               that.info["other_cost_part_self_total"] =
546
               that.info["other_cost_part_self_total"] =
553
-                response.data.data.otherCostPartSelfTotal;
547
+                  response.data.data.otherCostPartSelfTotal;
554
 
548
 
555
               that.info["material_cost_total"] =
549
               that.info["material_cost_total"] =
556
-                response.data.data.materialCostTotal;
550
+                  response.data.data.materialCostTotal;
557
               that.info["material_cost_self_total"] =
551
               that.info["material_cost_self_total"] =
558
-                response.data.data.materialCostSelfTotal;
552
+                  response.data.data.materialCostSelfTotal;
559
               that.info["material_cost_part_self_total"] =
553
               that.info["material_cost_part_self_total"] =
560
-                response.data.data.materialCostPartSelfTotal;
554
+                  response.data.data.materialCostPartSelfTotal;
561
 
555
 
562
               that.info["western_medicine_cost_total"] =
556
               that.info["western_medicine_cost_total"] =
563
-                response.data.data.westernMedicineCostTotal;
557
+                  response.data.data.westernMedicineCostTotal;
564
               that.info["western_medicine_cost_self_total"] =
558
               that.info["western_medicine_cost_self_total"] =
565
-                response.data.data.westernMedicineCostSelfTotal;
559
+                  response.data.data.westernMedicineCostSelfTotal;
566
               that.info["western_medicine_cost_part_self_total"] =
560
               that.info["western_medicine_cost_part_self_total"] =
567
-                response.data.data.westernMedicineCostPartSelfTotal;
561
+                  response.data.data.westernMedicineCostPartSelfTotal;
568
 
562
 
569
               that.info["chinese_traditional_medicine_cost_total"] =
563
               that.info["chinese_traditional_medicine_cost_total"] =
570
-                response.data.data.chineseTraditionalMedicineCostTotal;
564
+                  response.data.data.chineseTraditionalMedicineCostTotal;
571
               that.info["chinese_traditional_medicine_cost_self_total"] =
565
               that.info["chinese_traditional_medicine_cost_self_total"] =
572
-                response.data.data.chineseTraditionalMedicineCostSelfTotal;
566
+                  response.data.data.chineseTraditionalMedicineCostSelfTotal;
573
               that.info["chinese_traditional_medicine_cost_part_self_total"] =
567
               that.info["chinese_traditional_medicine_cost_part_self_total"] =
574
-                response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
568
+                  response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
575
 
569
 
576
               that.info["check_cost_total"] = response.data.data.checkCostTotal;
570
               that.info["check_cost_total"] = response.data.data.checkCostTotal;
577
               that.info["check_cost_self_total"] =
571
               that.info["check_cost_self_total"] =
578
-                response.data.data.checkCostSelfTotal;
572
+                  response.data.data.checkCostSelfTotal;
579
               that.info["check_cost_part_self_total"] =
573
               that.info["check_cost_part_self_total"] =
580
-                response.data.data.checkCostPartSelfTotal;
574
+                  response.data.data.checkCostPartSelfTotal;
581
 
575
 
582
               that.info["laboratory_cost_total"] =
576
               that.info["laboratory_cost_total"] =
583
-                response.data.data.laboratoryCostTotal;
577
+                  response.data.data.laboratoryCostTotal;
584
               that.info["laboratory_cost_self_total"] =
578
               that.info["laboratory_cost_self_total"] =
585
-                response.data.data.laboratoryCostSelfTotal;
579
+                  response.data.data.laboratoryCostSelfTotal;
586
               that.info["laboratory_cost_part_self_total"] =
580
               that.info["laboratory_cost_part_self_total"] =
587
-                response.data.data.laboratoryCostPartSelfTotal;
581
+                  response.data.data.laboratoryCostPartSelfTotal;
588
 
582
 
589
               that.info["treat_cost_total"] = response.data.data.treatCostTotal;
583
               that.info["treat_cost_total"] = response.data.data.treatCostTotal;
590
               that.info["treat_cost_self_total"] =
584
               that.info["treat_cost_self_total"] =
591
-                response.data.data.treatCostSelfTotal;
585
+                  response.data.data.treatCostSelfTotal;
592
               that.info["treat_cost_part_self_total"] =
586
               that.info["treat_cost_part_self_total"] =
593
-                response.data.data.treatCostPartSelfTotal;
587
+                  response.data.data.treatCostPartSelfTotal;
594
               that.info["date"] = response.data.data.date;
588
               that.info["date"] = response.data.data.date;
595
               // that.info["number"] = response.data.data.number;
589
               // that.info["number"] = response.data.data.number;
596
               that.info["order_infos"] = response.data.data.order_infos;
590
               that.info["order_infos"] = response.data.data.order_infos;
655
                 that.info.begndate = that.getTimes(that.paramsObj.start_time);
649
                 that.info.begndate = that.getTimes(that.paramsObj.start_time);
656
                 that.info.enddate = that.getTimes(that.paramsObj.end_time);
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
             if (response.data.state == 0) {
662
             if (response.data.state == 0) {
672
-              this.$message.error(response.data.msg);
663
+              // this.$message.error(response.data.msg)
664
+
673
               return false;
665
               return false;
674
             } else {
666
             } else {
675
-              console.log(response.data.data.info);
667
+              var that = this;
676
               that.info = response.data.data.info;
668
               that.info = response.data.data.info;
677
               that.p_admin = response.data.data.printor_admin;
669
               that.p_admin = response.data.data.printor_admin;
678
               that.charge_admin = response.data.data.charge_admin;
670
               that.charge_admin = response.data.data.charge_admin;
679
 
671
 
680
               that.info["p_admin"] = that.p_admin;
672
               that.info["p_admin"] = that.p_admin;
681
               that.info["charge_admin"] = that.charge_admin;
673
               that.info["charge_admin"] = that.charge_admin;
682
-
683
               that.info["order_number"] = response.data.data.order_number;
674
               that.info["order_number"] = response.data.data.order_number;
684
               that.info["patient"] = response.data.data.patient;
675
               that.info["patient"] = response.data.data.patient;
685
               that.info["date"] = response.data.data.date;
676
               that.info["date"] = response.data.data.date;
686
               that.info["number"] = response.data.data.number;
677
               that.info["number"] = response.data.data.number;
687
               that.info["order_infos"] = response.data.data.order_infos;
678
               that.info["order_infos"] = response.data.data.order_infos;
688
               that.info["diagnosis"] = response.data.data.diagnosis;
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
               that.info["bed_cost_total"] = response.data.data.bedCostTotal;
686
               that.info["bed_cost_total"] = response.data.data.bedCostTotal;
696
               that.info["bed_cost_self_total"] =
687
               that.info["bed_cost_self_total"] =
697
-                response.data.data.bedCostSelfTotal;
688
+                  response.data.data.bedCostSelfTotal;
698
               that.info["bed_cost_part_self_total"] =
689
               that.info["bed_cost_part_self_total"] =
699
-                response.data.data.bedCostPartSelfTotal;
690
+                  response.data.data.bedCostPartSelfTotal;
700
 
691
 
701
               that.info["operation_cost_total"] =
692
               that.info["operation_cost_total"] =
702
-                response.data.data.operationCostTotal;
693
+                  response.data.data.operationCostTotal;
703
               that.info["operation_cost_self_total"] =
694
               that.info["operation_cost_self_total"] =
704
-                response.data.data.operationCostSelfTotal;
695
+                  response.data.data.operationCostSelfTotal;
705
               that.info["operation_cost_part_self_total"] =
696
               that.info["operation_cost_part_self_total"] =
706
-                response.data.data.operationCostPartSelfTotal;
697
+                  response.data.data.operationCostPartSelfTotal;
707
 
698
 
708
               that.info["other_cost_total"] = response.data.data.otherCostTotal;
699
               that.info["other_cost_total"] = response.data.data.otherCostTotal;
709
               that.info["other_cost_self_total"] =
700
               that.info["other_cost_self_total"] =
710
-                response.data.data.otherCostSelfTotal;
701
+                  response.data.data.otherCostSelfTotal;
711
               that.info["other_cost_part_self_total"] =
702
               that.info["other_cost_part_self_total"] =
712
-                response.data.data.otherCostPartSelfTotal;
703
+                  response.data.data.otherCostPartSelfTotal;
713
 
704
 
714
               that.info["material_cost_total"] =
705
               that.info["material_cost_total"] =
715
-                response.data.data.materialCostTotal;
706
+                  response.data.data.materialCostTotal;
716
               that.info["material_cost_self_total"] =
707
               that.info["material_cost_self_total"] =
717
-                response.data.data.materialCostSelfTotal;
708
+                  response.data.data.materialCostSelfTotal;
718
               that.info["material_cost_part_self_total"] =
709
               that.info["material_cost_part_self_total"] =
719
-                response.data.data.materialCostPartSelfTotal;
710
+                  response.data.data.materialCostPartSelfTotal;
720
 
711
 
721
               that.info["western_medicine_cost_total"] =
712
               that.info["western_medicine_cost_total"] =
722
-                response.data.data.westernMedicineCostTotal;
713
+                  response.data.data.westernMedicineCostTotal;
723
               that.info["western_medicine_cost_self_total"] =
714
               that.info["western_medicine_cost_self_total"] =
724
-                response.data.data.westernMedicineCostSelfTotal;
715
+                  response.data.data.westernMedicineCostSelfTotal;
725
               that.info["western_medicine_cost_part_self_total"] =
716
               that.info["western_medicine_cost_part_self_total"] =
726
-                response.data.data.westernMedicineCostPartSelfTotal;
717
+                  response.data.data.westernMedicineCostPartSelfTotal;
727
 
718
 
728
               that.info["chinese_traditional_medicine_cost_total"] =
719
               that.info["chinese_traditional_medicine_cost_total"] =
729
-                response.data.data.chineseTraditionalMedicineCostTotal;
720
+                  response.data.data.chineseTraditionalMedicineCostTotal;
730
               that.info["chinese_traditional_medicine_cost_self_total"] =
721
               that.info["chinese_traditional_medicine_cost_self_total"] =
731
-                response.data.data.chineseTraditionalMedicineCostSelfTotal;
722
+                  response.data.data.chineseTraditionalMedicineCostSelfTotal;
732
               that.info["chinese_traditional_medicine_cost_part_self_total"] =
723
               that.info["chinese_traditional_medicine_cost_part_self_total"] =
733
-                response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
724
+                  response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
734
 
725
 
735
               that.info["check_cost_total"] = response.data.data.checkCostTotal;
726
               that.info["check_cost_total"] = response.data.data.checkCostTotal;
736
               that.info["check_cost_self_total"] =
727
               that.info["check_cost_self_total"] =
737
-                response.data.data.checkCostSelfTotal;
728
+                  response.data.data.checkCostSelfTotal;
738
               that.info["check_cost_part_self_total"] =
729
               that.info["check_cost_part_self_total"] =
739
-                response.data.data.checkCostPartSelfTotal;
730
+                  response.data.data.checkCostPartSelfTotal;
740
 
731
 
741
               that.info["laboratory_cost_total"] =
732
               that.info["laboratory_cost_total"] =
742
-                response.data.data.laboratoryCostTotal;
733
+                  response.data.data.laboratoryCostTotal;
743
               that.info["laboratory_cost_self_total"] =
734
               that.info["laboratory_cost_self_total"] =
744
-                response.data.data.laboratoryCostSelfTotal;
735
+                  response.data.data.laboratoryCostSelfTotal;
745
               that.info["laboratory_cost_part_self_total"] =
736
               that.info["laboratory_cost_part_self_total"] =
746
-                response.data.data.laboratoryCostPartSelfTotal;
737
+                  response.data.data.laboratoryCostPartSelfTotal;
747
 
738
 
748
               that.info["treat_cost_total"] = response.data.data.treatCostTotal;
739
               that.info["treat_cost_total"] = response.data.data.treatCostTotal;
749
               that.info["treat_cost_self_total"] =
740
               that.info["treat_cost_self_total"] =
750
-                response.data.data.treatCostSelfTotal;
741
+                  response.data.data.treatCostSelfTotal;
751
               that.info["treat_cost_part_self_total"] =
742
               that.info["treat_cost_part_self_total"] =
752
-                response.data.data.treatCostPartSelfTotal;
743
+                  response.data.data.treatCostPartSelfTotal;
753
               that.info["date"] = response.data.data.date;
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
               that.info["order_infos"] = response.data.data.order_infos;
746
               that.info["order_infos"] = response.data.data.order_infos;
756
               that.info["diagnosis"] = response.data.data.diagnosis;
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
                     num++;
930
                     num++;
790
                   } else {
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
   background-color: #fff;
1131
   background-color: #fff;
934
   z-index: 1;
1132
   z-index: 1;
935
   transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
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
 .dialysis-print-order .is-checked-radio::after {
1137
 .dialysis-print-order .is-checked-radio::after {
970
   text-align: left;
1168
   text-align: left;
971
   padding-left: 10px !important;
1169
   padding-left: 10px !important;
972
 }
1170
 }
1171
+
973
 .title-box-pro-tr {
1172
 .title-box-pro-tr {
974
   border: 0 #fff;
1173
   border: 0 #fff;
975
 }
1174
 }
1175
+
976
 .text-align-left {
1176
 .text-align-left {
977
   text-align: left !important;
1177
   text-align: left !important;
978
   padding-left: 10px !important;
1178
   padding-left: 10px !important;
979
   font-size: 14px !important;
1179
   font-size: 14px !important;
980
   line-height: 25px;
1180
   line-height: 25px;
981
 }
1181
 }
1182
+
982
 .print-table-tr-new td {
1183
 .print-table-tr-new td {
983
   line-height: 20px !important;
1184
   line-height: 20px !important;
984
 }
1185
 }
1186
+
985
 .border-top-solid {
1187
 .border-top-solid {
986
   border: solid 1px #000;
1188
   border: solid 1px #000;
987
 }
1189
 }
1190
+
988
 .print-template-two tr {
1191
 .print-template-two tr {
989
   line-height: 30px;
1192
   line-height: 30px;
990
 }
1193
 }
996
   font-size: 14px;
1199
   font-size: 14px;
997
   border-collapse: collapse;
1200
   border-collapse: collapse;
998
 }
1201
 }
1202
+
999
 .table-box1 tr {
1203
 .table-box1 tr {
1000
   border-bottom: 1px solid #000;
1204
   border-bottom: 1px solid #000;
1001
 }
1205
 }
1003
 
1207
 
1004
 <style lang="scss">
1208
 <style lang="scss">
1005
 .newContainer {
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
 .newContainer::-webkit-scrollbar {
1228
 .newContainer::-webkit-scrollbar {
1021
   height: 15px !important;
1229
   height: 15px !important;

+ 0 - 8
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue Просмотреть файл

47
         <td colspan="3" v-if="info.psn_type == '1102'">公务员在职</td>
47
         <td colspan="3" v-if="info.psn_type == '1102'">公务员在职</td>
48
         <td colspan="3" v-if="info.psn_type == '1103'">灵活就业人员在职</td>
48
         <td colspan="3" v-if="info.psn_type == '1103'">灵活就业人员在职</td>
49
         <td colspan="3" v-if="info.psn_type == '1160'">地方其他扩展人员</td>
49
         <td colspan="3" v-if="info.psn_type == '1160'">地方其他扩展人员</td>
50
-
51
-
52
         <td colspan="3" v-if="info.psn_type == '12'">退休人员</td>
50
         <td colspan="3" v-if="info.psn_type == '12'">退休人员</td>
53
         <td colspan="3" v-if="info.psn_type == '1201'">职工退休</td>
51
         <td colspan="3" v-if="info.psn_type == '1201'">职工退休</td>
54
         <td colspan="3" v-if="info.psn_type == '1202'">公务员退休</td>
52
         <td colspan="3" v-if="info.psn_type == '1202'">公务员退休</td>
55
         <td colspan="3" v-if="info.psn_type == '1203'">灵活就业人员退休</td>
53
         <td colspan="3" v-if="info.psn_type == '1203'">灵活就业人员退休</td>
56
         <td colspan="3" v-if="info.psn_type == '1260'">地方其他扩展人员</td>
54
         <td colspan="3" v-if="info.psn_type == '1260'">地方其他扩展人员</td>
57
-
58
-
59
         <td colspan="3" v-if="info.psn_type == '13'">离休</td>
55
         <td colspan="3" v-if="info.psn_type == '13'">离休</td>
60
         <td colspan="3" v-if="info.psn_type == '1300'">离休人员</td>
56
         <td colspan="3" v-if="info.psn_type == '1300'">离休人员</td>
61
         <td colspan="3" v-if="info.psn_type == '1360'">地方其他扩展人员</td>
57
         <td colspan="3" v-if="info.psn_type == '1360'">地方其他扩展人员</td>
62
-
63
         <td colspan="3" v-if="info.psn_type == '14'">居民(未成年)</td>
58
         <td colspan="3" v-if="info.psn_type == '14'">居民(未成年)</td>
64
         <td colspan="3" v-if="info.psn_type == '1401'">新生儿</td>
59
         <td colspan="3" v-if="info.psn_type == '1401'">新生儿</td>
65
         <td colspan="3" v-if="info.psn_type == '1402'">学龄前儿童</td>
60
         <td colspan="3" v-if="info.psn_type == '1402'">学龄前儿童</td>
66
         <td colspan="3" v-if="info.psn_type == '1403'">中小学生</td>
61
         <td colspan="3" v-if="info.psn_type == '1403'">中小学生</td>
67
         <td colspan="3" v-if="info.psn_type == '1404'">大学生</td>
62
         <td colspan="3" v-if="info.psn_type == '1404'">大学生</td>
68
         <td colspan="3" v-if="info.psn_type == '1405'">未成年(未入学)</td>
63
         <td colspan="3" v-if="info.psn_type == '1405'">未成年(未入学)</td>
69
-
70
-
71
         <td colspan="3" v-if="info.psn_type == '15'">居民(成年)</td>
64
         <td colspan="3" v-if="info.psn_type == '15'">居民(成年)</td>
72
         <td colspan="3" v-if="info.psn_type == '1501'">普通居民(成年)</td>
65
         <td colspan="3" v-if="info.psn_type == '1501'">普通居民(成年)</td>
73
         <td colspan="3" v-if="info.psn_type == '1560'">地方其他扩展身份</td>
66
         <td colspan="3" v-if="info.psn_type == '1560'">地方其他扩展身份</td>
74
-
75
         <td colspan="3" v-if="info.psn_type == '16'">居民(老年)</td>
67
         <td colspan="3" v-if="info.psn_type == '16'">居民(老年)</td>
76
 
68
 
77
 
69