Browse Source

新功能

test_user 2 years ago
parent
commit
f181a98cb1

+ 13 - 0
src/api/his/his.js View File

@@ -744,3 +744,16 @@ export function handleOne(params) {
744 744
 
745 745
 
746 746
 
747
+export function getBatchSettleAccount(params) {
748
+  return request({
749
+    url: "/api/batch/settleaccount",
750
+    method: "get",
751
+    params:params,
752
+  });
753
+}
754
+
755
+
756
+
757
+
758
+
759
+

+ 5 - 1
src/xt_pages/hospitalStation/components/chargeDialog.vue View File

@@ -89,6 +89,7 @@
89 89
          <el-radio-group v-model="form.pay_way">
90 90
           <el-radio :label="item.value" :value="item.value" v-for="(item,index) in payWays" :key="index">{{ item.label }}</el-radio>
91 91
            <el-button type="primary" v-if="form.pay_way == 4 || form.pay_way == 6" @click="reading()">读卡</el-button>
92
+<!--           <el-button type="primary" v-if="form.pay_way == 6" @click="readEle()">读电子凭证</el-button>-->
92 93
 
93 94
          </el-radio-group>
94 95
       </el-form-item>
@@ -275,9 +276,12 @@
275 276
       created() {
276 277
       },
277 278
       methods: {
279
+        readEle(){
280
+
281
+
282
+        },
278 283
         reading() {
279 284
           var that = this
280
-
281 285
           let id_card_type = 1
282 286
           if (this.form.pay_way == 6){
283 287
             id_card_type = 4

+ 1 - 1
src/xt_pages/hospitalStation/statementPrint.vue View File

@@ -13,7 +13,7 @@
13 13
       >
14 14
     </template>
15 15
 
16
-    <div class='dialysisPage' style="padding-top:40px;" v-if="this.$store.getters.xt_user.org_id == 10215">
16
+    <div class='dialysisPage' style="padding-top:40px;" v-if="this.$store.getters.xt_user.org_id == 10215 || this.$store.getters.xt_user.org_id == 0">
17 17
       <private-charge-print :info="info" v-if="this.paramsObj.balance_accounts_type == 2"></private-charge-print>
18 18
       <printOne :info="info" v-else></printOne>
19 19
     </div>

+ 776 - 0
src/xt_pages/outpatientCharges/batchStatementPrint.vue View File

@@ -0,0 +1,776 @@
1
+<template>
2
+  <!-- 打印 -->
3
+  <div>
4
+    <template>
5
+      <el-button
6
+        style="position: fixed; right: 25px; z-index: 999"
7
+        :loading="loading"
8
+        size="small"
9
+        icon="el-icon-printer"
10
+        @click="printThisPage"
11
+        type="primary"
12
+      >打印
13
+      </el-button
14
+      >
15
+    </template>
16
+
17
+
18
+
19
+    <div class="dialysisPage" style="padding-top: 40px">
20
+
21
+<!--      <batch-print-three-->
22
+<!--        :info="info"-->
23
+<!--        v-if="org_id == 10138 || org_id == 0 || org_id == 10278"-->
24
+<!--      ></batch-print-three>-->
25
+      <batch-print
26
+        :info="info"
27
+        v-if="org_id == 10138 || org_id == 0 || org_id == 10278"
28
+      >
29
+
30
+      </batch-print>
31
+
32
+    </div>
33
+  </div>
34
+</template>
35
+
36
+<script>
37
+import {uParseTime} from "@/utils/tools";
38
+import axios from "axios";
39
+import print from "print-js";
40
+
41
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
42
+import printOne from "./statementTemplate/printOne";
43
+import privateChargePrint from "./statementTemplate/privateChargePrint";
44
+
45
+import printTwo from "./statementTemplate/printTwo";
46
+import printThree from "./statementTemplate/printThree";
47
+import printFour from "./statementTemplate/printFour";
48
+import printFive from "./statementTemplate/printFive";
49
+import testVue from "./statementTemplate/test";
50
+import {getAllDoctorList, getAllHisPatientList,} from "@/api/project/project";
51
+import {getBatchSettleAccount} from "@/api/his/his";
52
+import printSeven from "./statementTemplate/printSeven";
53
+import Print10191 from "./statementTemplate/print10191";
54
+import printTen from "./statementTemplate/printTen";
55
+import BatchPrintThree from '../outpatientDoctorStation/batch_print_template/batchPrintThree'
56
+import BatchPrint from './statementTemplate/batchPrint'
57
+
58
+// import PrintOther from '../hospitalStation/statementTemplate/printOther'
59
+export default {
60
+  name: "batchStatementPrint",
61
+  components: {
62
+    BatchPrint,
63
+    BatchPrintThree,
64
+    Print10191,
65
+    printSeven,
66
+    BreadCrumb,
67
+    printOne,
68
+    privateChargePrint,
69
+    printTwo,
70
+    printThree,
71
+    printFour,
72
+    testVue,
73
+    printFive,
74
+    printTen
75
+  },
76
+  props: {
77
+    paramsObj: Object,
78
+  },
79
+  data() {
80
+    return {
81
+      crumbs: [
82
+        {path: false, name: "门诊医生站"},
83
+        {path: false, name: "打印"},
84
+      ],
85
+      record_date: "",
86
+      patientTableData: [],
87
+      advicePrint: [],
88
+      hisPatient: {},
89
+      patient: {},
90
+      search_input: "",
91
+      loading: false,
92
+      patient_id: 0,
93
+      prescription_id: 0,
94
+      ids: "",
95
+      info: null,
96
+      org_id: "",
97
+      balanceAccounts: {},
98
+    };
99
+  },
100
+  methods: {
101
+    printThisPage() {
102
+      var ptime = Math.round(new Date().getTime() / 1000);
103
+      this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
104
+
105
+      if (
106
+        this.$store.getters.xt_user.org_id == 10138 ||
107
+        this.$store.getters.xt_user.org_id == 4 ||
108
+        this.$store.getters.xt_user.org_id == 10278
109
+      ) {
110
+        setTimeout(() => {
111
+          const style =
112
+            "@media print {#statement-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%;}}}";
113
+          const style2 =
114
+            "@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%;}}}";
115
+          const style3 =
116
+            "@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%;}}}";
117
+          const style4 =
118
+            "@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%;}}}";
119
+          const style5 =
120
+            "@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%;}}}";
121
+          const style6 =
122
+            "@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%;}}}";
123
+          const style7 =
124
+            "@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%;}}}";
125
+          const style8 =
126
+            "@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%;}}}";
127
+          const style9 =
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: 80%;}}}";
129
+          const style10 =
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: 85%;}}}";
131
+          const style11 =
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: 87%;}}}";
133
+          const style12 =
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: 89%;}}}";
135
+          if (this.num >= 13) {
136
+            printJS({
137
+              printable: "prescription-print",
138
+              type: "html",
139
+              style: style,
140
+              scanStyles: false,
141
+            });
142
+          } else if (this.num == 12) {
143
+            printJS({
144
+              printable: "prescription-print",
145
+              type: "html",
146
+              style: style2,
147
+              scanStyles: false,
148
+            });
149
+          } else if (this.num == 11) {
150
+            printJS({
151
+              printable: "prescription-print",
152
+              type: "html",
153
+              style: style3,
154
+              scanStyles: false,
155
+            });
156
+          } else if (this.num == 10) {
157
+            printJS({
158
+              printable: "prescription-print",
159
+              type: "html",
160
+              style: style4,
161
+              scanStyles: false,
162
+            });
163
+          } else if (this.num == 9) {
164
+            printJS({
165
+              printable: "prescription-print",
166
+              type: "html",
167
+              style: style5,
168
+              scanStyles: false,
169
+            });
170
+          } else if (this.num == 8) {
171
+            printJS({
172
+              printable: "prescription-print",
173
+              type: "html",
174
+              style: style6,
175
+              scanStyles: false,
176
+            });
177
+          } else if (this.num == 7) {
178
+            printJS({
179
+              printable: "prescription-print",
180
+              type: "html",
181
+              style: style7,
182
+              scanStyles: false,
183
+            });
184
+          } else if (this.num == 6) {
185
+            printJS({
186
+              printable: "prescription-print",
187
+              type: "html",
188
+              style: style8,
189
+              scanStyles: false,
190
+            });
191
+          } else if (this.num == 5) {
192
+            printJS({
193
+              printable: "prescription-print",
194
+              type: "html",
195
+              style: style9,
196
+              scanStyles: false,
197
+            });
198
+          } else if (this.num == 4) {
199
+            printJS({
200
+              printable: "prescription-print",
201
+              type: "html",
202
+              style: style10,
203
+              scanStyles: false,
204
+            });
205
+          } else if (this.num == 3) {
206
+            printJS({
207
+              printable: "prescription-print",
208
+              type: "html",
209
+              style: style11,
210
+              scanStyles: false,
211
+            });
212
+          } else if (this.num <= 2) {
213
+            printJS({
214
+              printable: "prescription-print",
215
+              type: "html",
216
+              style: style12,
217
+              scanStyles: false,
218
+            });
219
+          }
220
+        }, 500);
221
+      } else if (
222
+        this.$store.getters.xt_user.org_id == 9504 ||
223
+        this.$store.getters.xt_user.org_id == 10028
224
+      ) {
225
+        const style =
226
+          "@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;}}";
227
+        printJS({
228
+          printable: "prescription-print",
229
+          type: "html",
230
+          style: style,
231
+          scanStyles: false,
232
+        });
233
+      } else {
234
+        // 医保环境打印格式
235
+        if (
236
+          this.$store.getters.xt_user.org_id == 9919 ||
237
+          this.$store.getters.xt_user.org_id == 10106
238
+        ) {
239
+          const style =
240
+            "@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;}}";
241
+          printJS({
242
+            printable: "statement-print",
243
+            type: "html",
244
+            style: style,
245
+            scanStyles: false,
246
+          });
247
+        } else if (
248
+          this.$store.getters.xt_user.org_id == 0 ||
249
+          this.$store.getters.xt_user.org_id == 10191
250
+        ) {
251
+          const style =
252
+            "@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%;}}}";
253
+          printJS({
254
+            printable: "statement-print",
255
+            type: "html",
256
+            style: style,
257
+            scanStyles: false,
258
+          });
259
+          // const style =
260
+          //     "@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
+          // printJS({
262
+          //   printable: "statement-print",
263
+          //   type: "html",
264
+          //   style: style,
265
+          //   scanStyles: false,
266
+          // });
267
+        } else {
268
+          const style =
269
+            "@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
+          printJS({
271
+            printable: "statement-print",
272
+            type: "html",
273
+            style: style,
274
+            scanStyles: false,
275
+          });
276
+        }
277
+      }
278
+
279
+      // if (this.org_template_info.template_id == 1) {
280
+      //   printJS({
281
+      //     printable: "dialysis-print-box",
282
+      //     type: "html",
283
+      //     style: style,
284
+      //     scanStyles: false
285
+      //   });
286
+      // }
287
+    },
288
+    getAllDoctorList() {
289
+      getAllDoctorList().then((response) => {
290
+        if (response.data.state == 1) {
291
+          var doctor = response.data.data.doctor;
292
+
293
+          this.doctorList = doctor;
294
+        }
295
+      });
296
+    },
297
+    getAllHisPatientList() {
298
+      const params = {
299
+        record_date: this.record_date,
300
+      };
301
+      getAllHisPatientList(params).then((response) => {
302
+        if (response.data.state == 1) {
303
+          this.patientTableData = response.data.data.list;
304
+          this.patientTableDataTwo = response.data.data.list;
305
+
306
+          console.log("222", this.patientTableData);
307
+          let cal_one = 0;
308
+          let cal_two = 0;
309
+          for (let i = 0; i < response.data.data.list.length; i++) {
310
+            if (
311
+              response.data.data.list[i].prescription == null ||
312
+              response.data.data.list[i].prescription.length == 0
313
+            ) {
314
+              cal_one = cal_one + 1;
315
+            }
316
+            if (
317
+              response.data.data.list[i].prescription != null &&
318
+              response.data.data.list[i].prescription.length > 0
319
+            ) {
320
+              cal_two = cal_two + 1;
321
+            }
322
+          }
323
+          // this.$refs.tab.setCurrentRow(this.patientTableData[0])
324
+          // console.log(this.patientTableData[0])
325
+          // this.choosePatient(this.patientTableData[0])
326
+          this.cal_one = cal_one;
327
+          this.cal_two = cal_two;
328
+        }
329
+      });
330
+    },
331
+
332
+    changePatient(row) {
333
+      console.log("row", row);
334
+      this.patient_id = row.patient_id;
335
+      this.record_date = this.record_date;
336
+      this.prescription_id = this.prescription_id;
337
+      //   var params = {
338
+      //     patient_id:row.patient_id,
339
+      //     record_date:this.record_date,
340
+      //     prescription_id:this.prescription_id,
341
+      //   }
342
+      // getPrescriptionPrint(params).then(response=>{
343
+      //     if(response.data.state == 1){
344
+      //       var advicePrint =  response.data.data.advicePrint
345
+      //       console.log("adviceprint",advicePrint)
346
+      //       this.advicePrint = advicePrint
347
+      //       // var hisPatient =  response.data.data.hisPatient
348
+      //       // console.log("hispatient",hisPatient)
349
+      //       // this.hisPatient = hisPatient
350
+      //       var patient =  response.data.data.patient
351
+      //       console.log("patient",patient)
352
+      //       this.patient = patient
353
+      //       var doctorPorject = response.data.data.doctorPorject
354
+      //       console.log("doctorporject",doctorPorject)
355
+      //     }
356
+      // })
357
+    },
358
+    getTimes(time) {
359
+      return uParseTime(time, "{y}-{m}-{d}");
360
+    },
361
+    searchAction() {
362
+    },
363
+    getInfo(obj) {
364
+      var that = this;
365
+      var params = obj
366
+      getBatchSettleAccount(params).then((response) => {
367
+        if (response.data.state == 0) {
368
+          this.$message.error(response.data.msg)
369
+          return false;
370
+        } else {
371
+          var orders =  response.data.data.orders
372
+
373
+          for(let i = 0; i < orders.length; i++){
374
+
375
+            let obj = {
376
+              type: 1,
377
+              details: [],
378
+              total: 0,
379
+            };
380
+            let obj2 = {
381
+              type: 2,
382
+              details: [],
383
+              total: 0,
384
+            };
385
+            let obj3 = {
386
+              type: 3,
387
+              details: [],
388
+              total: 0,
389
+            };
390
+
391
+            let obj4 = {
392
+              type: 4,
393
+              details: [],
394
+              total: 0,
395
+            };
396
+            let num = 0;
397
+            orders[i].order_infos.map((item) => {
398
+              if (item.advice_id > 0) {
399
+                obj.details.push(item);
400
+                obj.total += item.pric * item.advice.prescribing_number;
401
+                num++;
402
+              } else {
403
+                if (item.project.type == 2) {
404
+                  obj2.details.push(item);
405
+                  obj2.total += item.pric * item.project.count;
406
+                  num++;
407
+                } else {
408
+                  obj3.details.push(item);
409
+                  obj3.total += item.pric * item.project.count;
410
+                  num++;
411
+                }
412
+              }
413
+            });
414
+
415
+            orders[i]["new_detail_list"] = [];
416
+            orders[i]["new_detail_list"].push(obj);
417
+            orders[i]["new_detail_list"].push(obj2);
418
+            orders[i]["new_detail_list"].push(obj3);
419
+            // that.info.new_detail_list.push(obj4)
420
+
421
+
422
+
423
+          }
424
+          this.info = orders
425
+
426
+
427
+          // var that = this;
428
+          //
429
+          // that.info = response.data.data.info;
430
+          // that.p_admin = response.data.data.printor_admin;
431
+          // that.charge_admin = response.data.data.charge_admin;
432
+          // that.info["p_admin"] = that.p_admin;
433
+          // that.info["charge_admin"] = that.charge_admin;
434
+          // that.info["order_number"] = response.data.data.order_number;
435
+          // that.info["patient"] = response.data.data.patient;
436
+          // that.info["date"] = response.data.data.date;
437
+          // that.info["number"] = response.data.data.number;
438
+          // that.info["order_infos"] = response.data.data.order_infos;
439
+          // that.info["diagnosis"] = response.data.data.diagnosis;
440
+          // that.info["fixmedins_name"] = response.data.data.org_name;
441
+          // that.info["fixmedins_code"] = response.data.data.org_code;
442
+          // // that.info["doctor_code"] = response.data.data.doctor_code;
443
+          // // that.info["department"] = response.data.data.department;
444
+          // // that.info["health_card_no"] = response.data.data.health_card_no;
445
+          //
446
+          // that.info["bed_cost_total"] = response.data.data.bedCostTotal;
447
+          // that.info["bed_cost_self_total"] =
448
+          //   response.data.data.bedCostSelfTotal;
449
+          // that.info["bed_cost_part_self_total"] =
450
+          //   response.data.data.bedCostPartSelfTotal;
451
+          //
452
+          // that.info["operation_cost_total"] =
453
+          //   response.data.data.operationCostTotal;
454
+          // that.info["operation_cost_self_total"] =
455
+          //   response.data.data.operationCostSelfTotal;
456
+          // that.info["operation_cost_part_self_total"] =
457
+          //   response.data.data.operationCostPartSelfTotal;
458
+          //
459
+          // that.info["other_cost_total"] = response.data.data.otherCostTotal;
460
+          // that.info["other_cost_self_total"] =
461
+          //   response.data.data.otherCostSelfTotal;
462
+          // that.info["other_cost_part_self_total"] =
463
+          //   response.data.data.otherCostPartSelfTotal;
464
+          //
465
+          // that.info["material_cost_total"] =
466
+          //   response.data.data.materialCostTotal;
467
+          // that.info["material_cost_self_total"] =
468
+          //   response.data.data.materialCostSelfTotal;
469
+          // that.info["material_cost_part_self_total"] =
470
+          //   response.data.data.materialCostPartSelfTotal;
471
+          //
472
+          // that.info["western_medicine_cost_total"] =
473
+          //   response.data.data.westernMedicineCostTotal;
474
+          // that.info["western_medicine_cost_self_total"] =
475
+          //   response.data.data.westernMedicineCostSelfTotal;
476
+          // that.info["western_medicine_cost_part_self_total"] =
477
+          //   response.data.data.westernMedicineCostPartSelfTotal;
478
+          //
479
+          // that.info["chinese_traditional_medicine_cost_total"] =
480
+          //   response.data.data.chineseTraditionalMedicineCostTotal;
481
+          // that.info["chinese_traditional_medicine_cost_self_total"] =
482
+          //   response.data.data.chineseTraditionalMedicineCostSelfTotal;
483
+          // that.info["chinese_traditional_medicine_cost_part_self_total"] =
484
+          //   response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
485
+          //
486
+          // that.info["check_cost_total"] = response.data.data.checkCostTotal;
487
+          // that.info["check_cost_self_total"] =
488
+          //   response.data.data.checkCostSelfTotal;
489
+          // that.info["check_cost_part_self_total"] =
490
+          //   response.data.data.checkCostPartSelfTotal;
491
+          //
492
+          // that.info["laboratory_cost_total"] =
493
+          //   response.data.data.laboratoryCostTotal;
494
+          // that.info["laboratory_cost_self_total"] =
495
+          //   response.data.data.laboratoryCostSelfTotal;
496
+          // that.info["laboratory_cost_part_self_total"] =
497
+          //   response.data.data.laboratoryCostPartSelfTotal;
498
+          //
499
+          // that.info["treat_cost_total"] = response.data.data.treatCostTotal;
500
+          // that.info["treat_cost_self_total"] =
501
+          //   response.data.data.treatCostSelfTotal;
502
+          // that.info["treat_cost_part_self_total"] =
503
+          //   response.data.data.treatCostPartSelfTotal;
504
+          // that.info["date"] = response.data.data.date;
505
+          // // that.info["number"] = response.data.data.number;
506
+          // that.info["order_infos"] = response.data.data.order_infos;
507
+          // that.info["diagnosis"] = response.data.data.diagnosis;
508
+          //
509
+          // let list = []
510
+          // for (let i = 0; i < response.data.data.order_infos.length; i++) {
511
+          //   let order = response.data.data.order_infos[i]
512
+          //   let obj = {
513
+          //     name: "",
514
+          //     spec: "",
515
+          //     cnt: "",
516
+          //     det_item_fee_sumamt: "",
517
+          //   }
518
+          //
519
+          //   if (order.advice_id > 0 && order.project_id == 0) {
520
+          //     obj.name = order.advice.advice_name
521
+          //     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
522
+          //     obj.spec = spec
523
+          //     obj.cnt = order.cnt
524
+          //     obj.det_item_fee_sumamt = order.det_item_fee_sumamt
525
+          //     list.push(obj)
526
+          //
527
+          //   } else if (order.advice_id == 0 && order.project_id > 0) {
528
+          //     if (order.project.type == 2) {
529
+          //       obj.name = order.project.project.project_name
530
+          //       obj.spec = ""
531
+          //       obj.cnt = order.cnt
532
+          //       obj.det_item_fee_sumamt = order.det_item_fee_sumamt
533
+          //
534
+          //     } else {
535
+          //       obj.name = order.project.good_info.good_name
536
+          //       obj.spec = order.project.good_info.specification_name
537
+          //       obj.cnt = order.cnt
538
+          //       obj.det_item_fee_sumamt = order.det_item_fee_sumamt
539
+          //     }
540
+          //     list.push(obj)
541
+          //   }
542
+          //
543
+          // }
544
+          //
545
+          // console.log(list)
546
+          // let len = list.length / 2
547
+          // let L_list = []
548
+          // let R_list = []
549
+          // len = Math.trunc(len)
550
+          // for (let i = 0; i < len; i++) {
551
+          //   L_list.push(list[i])
552
+          // }
553
+          // console.log(len)
554
+          // for (let i = len; i < list.length; i++) {
555
+          //   console.log(list[i])
556
+          //   R_list.push(list[i])
557
+          // }
558
+          // console.log(L_list)
559
+          // console.log(R_list)
560
+          //
561
+          // that.info["L_list"] = L_list
562
+          // that.info["R_list"] = R_list
563
+
564
+        }
565
+      });
566
+    }
567
+
568
+  },
569
+
570
+  created() {
571
+    this.getInfo(this.paramsObj);
572
+    this.org_id = this.$store.getters.xt_user.org_id;
573
+
574
+  },
575
+  watch: {
576
+    paramsObj: {
577
+      //深度监听,可监听到对象、数组的变化
578
+      handler(val, oldVal) {
579
+        this.paramsObj = val;
580
+        this.getInfo(this.paramsObj);
581
+      },
582
+      deep: true,
583
+      immediate: true,
584
+    },
585
+  },
586
+};
587
+</script>
588
+
589
+<style>
590
+.dialysis-print-order {
591
+  width: 960px;
592
+  margin: 0 auto;
593
+}
594
+
595
+.dialysis-print-order .order-yy-name {
596
+  margin: auto;
597
+  text-align: center;
598
+  font-size: 20px;
599
+  letter-spacing: 5px;
600
+}
601
+
602
+.dialysis-print-order .order-title {
603
+  margin: auto;
604
+  font-weight: 600;
605
+  text-align: center;
606
+  font-size: 22px;
607
+  padding: 10px;
608
+}
609
+
610
+.dialysis-print-order .table-box {
611
+  width: 100%;
612
+  line-height: 23px;
613
+  font-size: 14px;
614
+}
615
+
616
+.dialysis-print-order .print-table {
617
+  width: 100%;
618
+  text-align: center;
619
+  border-collapse: collapse;
620
+  line-height: 40px;
621
+  font-size: 14px;
622
+  border-color: #000;
623
+}
624
+
625
+.dialysis-print-order .print-table-no {
626
+  width: 100%;
627
+  text-align: center;
628
+  border-collapse: collapse;
629
+  font-size: 14px;
630
+}
631
+
632
+.dialysis-print-order .under-line {
633
+  border-bottom: 1px solid #999;
634
+  width: 95%;
635
+  text-align: center;
636
+  margin-left: 2px;
637
+}
638
+
639
+.dialysis-print-order .title-box {
640
+  text-align: center;
641
+  font-size: 16px;
642
+}
643
+
644
+.dialysis-print-order .radio-lebel-box {
645
+  font-weight: 400;
646
+  cursor: pointer;
647
+}
648
+
649
+.dialysis-print-order .radio-no {
650
+  opacity: 0;
651
+  outline: none;
652
+  position: absolute;
653
+  margin: 0;
654
+  width: 0;
655
+  height: 0;
656
+  z-index: -1;
657
+}
658
+
659
+.dialysis-print-order .radio-inner {
660
+  white-space: nowrap;
661
+  cursor: pointer;
662
+  outline: none;
663
+  display: inline-block;
664
+  line-height: 1;
665
+  position: relative;
666
+  vertical-align: middle;
667
+}
668
+
669
+.dialysis-print-order .radio-fang {
670
+  display: inline-block;
671
+  position: relative;
672
+  border: 1px solid #000;
673
+  box-sizing: border-box;
674
+  width: 14px;
675
+  height: 14px;
676
+  background-color: #fff;
677
+  z-index: 1;
678
+  transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
679
+  background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
680
+}
681
+
682
+.dialysis-print-order .is-checked-radio::after {
683
+  content: "√";
684
+  font-size: 15px;
685
+}
686
+
687
+.dialysis-print-order .print-table-no tr td {
688
+  padding: 8px 5px;
689
+  line-height: 25px;
690
+}
691
+
692
+.dialysis-print-order .print-table tr td {
693
+  padding: 1px 1px;
694
+  /*line-height: 25px;*/
695
+}
696
+
697
+.es-img {
698
+  height: 30px;
699
+}
700
+
701
+.advice-name {
702
+  text-align: left;
703
+}
704
+
705
+.advice-children {
706
+  display: flex;
707
+}
708
+
709
+.title-box-pro {
710
+  border: 0 #fff;
711
+  line-height: 25px;
712
+  height: 25px;
713
+  text-align: left;
714
+  padding-left: 10px !important;
715
+}
716
+
717
+.title-box-pro-tr {
718
+  border: 0 #fff;
719
+}
720
+
721
+.text-align-left {
722
+  text-align: left !important;
723
+  padding-left: 10px !important;
724
+  font-size: 14px !important;
725
+  line-height: 25px;
726
+}
727
+
728
+.print-table-tr-new td {
729
+  line-height: 20px !important;
730
+}
731
+
732
+.border-top-solid {
733
+  border: solid 1px #000;
734
+}
735
+
736
+.print-template-two tr {
737
+  line-height: 30px;
738
+}
739
+
740
+.table-box1 {
741
+  border: 1px solid #000;
742
+  width: 100%;
743
+  line-height: 30px;
744
+  font-size: 14px;
745
+  border-collapse: collapse;
746
+}
747
+
748
+.table-box1 tr {
749
+  border-bottom: 1px solid #000;
750
+}
751
+</style>
752
+
753
+<style lang="scss">
754
+.newContainer {
755
+
756
+.dialysisPage::-webkit-scrollbar {
757
+  height: 15px;
758
+}
759
+
760
+.el-date-editor {
761
+
762
+.el-input__inner {
763
+  padding-right: 0px;
764
+}
765
+
766
+}
767
+.el-table td,
768
+.el-table th {
769
+  text-align: center;
770
+}
771
+
772
+}
773
+.newContainer::-webkit-scrollbar {
774
+  height: 15px !important;
775
+}
776
+</style>

+ 3 - 1
src/xt_pages/outpatientCharges/statementPrint.vue View File

@@ -127,6 +127,7 @@
127 127
         prescription_id: 0,
128 128
         ids: "",
129 129
         info: null,
130
+        order:null,
130 131
         org_id: "",
131 132
         balanceAccounts: {},
132 133
       };
@@ -1011,9 +1012,10 @@
1011 1012
                     that.p_admin = response.data.data.printor_admin;
1012 1013
                     that.charge_admin = response.data.data.charge_admin;
1013 1014
 
1015
+
1016
+                    that.info["new_order"] =  response.data.data.order
1014 1017
                     that.info["p_admin"] = that.p_admin;
1015 1018
                     that.info["charge_admin"] = that.charge_admin;
1016
-
1017 1019
                     that.info["order_number"] = response.data.data.order_number;
1018 1020
                     that.info["patient"] = response.data.data.patient;
1019 1021
                     that.info["date"] = response.data.data.date;

+ 530 - 0
src/xt_pages/outpatientCharges/statementTemplate/batchPrint.vue View File

@@ -0,0 +1,530 @@
1
+<template>
2
+  <div>
3
+    <div  id='prescription-print' class="prescription-print"
4
+         style="position: relative;">
5
+      <img style="width:100%;height:80px" v-if="$store.getters.xt_user.org_id == 10138 || $store.getters.xt_user.org_id == 0 " src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt="">
6
+      <img style="width:100%;height:80px" v-if="$store.getters.xt_user.org_id==10278" src="https://kuyi.shengws.com/beierlog.png" alt="">
7
+      <div class="printTitle" style="position: absolute;left: 40%;top: 50px;">门诊收费清单</div>
8
+      <div style="display:flex;">
9
+        <div>单据号:<span
10
+          style="display:inline-block;width:200px;">{{info[0].order.number ? info[0].order.number : ''}}</span>
11
+        </div>
12
+        <div>透析号:<span style="display:inline-block;width:200px;">{{info[0].patient.dialysis_no ? info[0].patient.dialysis_no : ''}}</span>
13
+        </div>
14
+        <div style="margin-left:2px;">电脑号:<span
15
+          style="display:inline-block;">{{info[0].his.psn_no ? info[0].his.psn_no : ''}}</span></div>
16
+      </div>
17
+      <div style="display:flex;justify-content: space-between;">
18
+        <div style="display:flex;">
19
+          <div>姓名:<span style="display:inline-block;width:50px;">{{info[0].patient.name ? info[0].patient.name.indexOf('(') > -1 ? info[0].patient.name.substring(0,info[0].patient.name.indexOf('(')) : info[0].patient.name : ''}}</span>
20
+          </div>
21
+          <div>性别:<span
22
+            style="display:inline-block;width:30px;">{{info[0].patient.gender == '1' ? '男' : '女'}}</span>
23
+          </div>
24
+          <div>年龄:<span
25
+            style="display:inline-block;width:50px;">{{getAge(info[0].patient)}}岁</span>
26
+          </div>
27
+          <div>费别:<span style="display:inline-block;min-width:80px;">医保</span>
28
+          </div>
29
+          <div>收费日期:<span style="display:inline-block;width:100px;">{{info[0].order.setl_time ? info[0].order.setl_time.split(' ')[0] : ''}}</span>
30
+          </div>
31
+        </div>
32
+        <div style="float:right">金额单位:元</div>
33
+      </div>
34
+      <div style="min-height: 300px;">
35
+        <table border='1' style="width:100%;" cellspacing="0">
36
+          <tr>
37
+            <td width="70">类别</td>
38
+            <td>项目</td>
39
+            <td min-width="180" style="min-width:60px;">规格</td>
40
+            <td width="40">单位</td>
41
+            <td width="40">数量</td>
42
+            <td width="60">单价</td>
43
+            <td width="70">总额</td>
44
+            <td width="130">小计</td>
45
+          </tr>
46
+          <div v-for="(item,i) in info[0].new_detail_list" :key="i" style="width:100%;display: table-row-group;">
47
+            <tr v-for="(subItem,index) in item.details" :key="index">
48
+              <td>
49
+                <span v-if="item.type == 1">药品费</span>
50
+                <span v-if="item.type == 2">诊疗费</span>
51
+                <span v-if="item.type == 3">耗材费</span>
52
+                <span v-if="item.type == 4">诊疗费</span>
53
+
54
+              </td>
55
+              <td>
56
+                <span v-if="item.type == 1">{{ subItem.advice.advice_name }}</span>
57
+                <span v-if="item.type == 2">{{ subItem.project.project.project_name }}</span>
58
+                <span v-if="item.type == 3">{{ subItem.project.good_info.good_name }}</span>
59
+                <span v-if="item.type == 4">{{ subItem.project.project.team_name }}</span>
60
+
61
+              </td>
62
+              <td>
63
+                                <span v-if="item.type == 1"><span
64
+                                  v-if="subItem.advice.drug.min_unit != subItem.advice.drug.dose_unit">{{subItem.advice.drug.dose}}{{subItem.advice.drug.dose_unit}}&nbsp;* &nbsp;</span>{{subItem.advice.drug.min_number}}{{subItem.advice.drug.min_unit}}/{{subItem.advice.drug.max_unit}}</span>
65
+                <span v-if="item.type == 2"></span>
66
+                <span v-if="item.type == 3">{{ subItem.project.good_info.specification_name }}</span>
67
+                <span v-if="item.type == 4"></span>
68
+
69
+              </td>
70
+              <td>
71
+                <span v-if="item.type == 1">{{ subItem.advice.drug.prescribing_number_unit }}</span>
72
+                <span v-if="item.type == 2">{{ subItem.project.unit }}</span>
73
+                <span v-if="item.type == 3">{{ subItem.project.unit }}</span>
74
+                <span v-if="item.type == 4"></span>
75
+
76
+              </td>
77
+              <td>
78
+                <span v-if="item.type == 1">{{ subItem.advice.prescribing_number }}</span>
79
+                <span v-if="item.type == 2">{{ subItem.project.count }}</span>
80
+                <span v-if="item.type == 3">{{ subItem.project.count }}</span>
81
+                <span v-if="item.type == 4"></span>
82
+
83
+              </td>
84
+              <td>
85
+                <span v-if="item.type == 1">{{ subItem.pric.toFixed(2) }}</span>
86
+                <span v-if="item.type == 2">{{ subItem.pric.toFixed(2) }}</span>
87
+                <span v-if="item.type == 3">{{ subItem.pric.toFixed(2) }}</span>
88
+                <span v-if="item.type == 4">{{subItem.Total}}</span>
89
+
90
+
91
+              </td>
92
+              <td>
93
+                <span v-if="item.type == 1">{{ (subItem.advice.prescribing_number * subItem.pric).toFixed(2) }}</span>
94
+                <span v-if="item.type == 2">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
95
+                <span v-if="item.type == 3">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
96
+                <span v-if="item.type == 4">{{subItem.Total}}</span>
97
+
98
+                <!--<span v-if="item.type == 4"></span>-->
99
+
100
+              </td>
101
+              <td :rowspan="item.details.length" v-if="index == 0"
102
+                  style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}
103
+              </td>
104
+            </tr>
105
+          </div>
106
+          <tr>
107
+            <td colspan="7">
108
+              <div style="display:flex;flez-wrap:wrap;">
109
+                <div style="width:33%;" v-for="(item,index) in info[0].new_detail_list" :key="index">
110
+                  <span v-if="item.type == 1">药品费: {{ item.total.toFixed(2) }}</span>
111
+                  <span v-if="item.type == 2">诊疗费: {{ item.total.toFixed(2) }}</span>
112
+                  <span v-if="item.type == 3">耗材费: {{ item.total.toFixed(2) }}</span>
113
+                  <span v-if="item.type == 4">诊疗费: {{ item.total.toFixed(2) }}</span>
114
+
115
+                  <!--<span v-if="item.type == 4">检验费: {{ item.total.toFixed(4) }}</span>-->
116
+
117
+                </div>
118
+              </div>
119
+            </td>
120
+            <td>合计: {{info[0].order.medfee_sumamt}}元</td>
121
+          </tr>
122
+          <tr>
123
+            <td colspan="7">
124
+              <div style="display:flex;flez-wrap:wrap;margin-bottom:10px;font-size:16px;">
125
+                <div style="width:33%;">医疗费总额:{{info[0].order.medfee_sumamt}}元</div>
126
+                <div style="width:33%;">基金支付金额:{{info[0].order.hifp_pay}}元</div>
127
+                <div style="width:33%;">个人账户支付金额:{{info[0].order.acct_pay}}元</div>
128
+
129
+              </div>
130
+              <div style="display:flex;flez-wrap:wrap;font-size:16px;">
131
+                <div style="width:33%;">医疗救助基金金额:{{info[0].order.maf_pay}}元</div>
132
+
133
+                <div style="width:33%;">个人支付金额:{{ info[0].order.psn_pay }}元</div>
134
+                <div style="width:33%;">个人账户金额:{{info[0].order.balc}}元</div>
135
+              </div>
136
+            </td>
137
+            <td style="font-size:16px;">合计:{{info[0].order.medfee_sumamt}}元</td>
138
+          </tr>
139
+
140
+        </table>
141
+      </div>
142
+      <div style="float:right;margin:10px 0;display:flex;">
143
+        <div>操作人:<span style="width:100px;display:inline-block;">{{info[0].printor_admin.user_name}}</span></div>
144
+        <div>操作日期:<span style="width:100px;display:inline-block;">{{info[0].order.setl_time ? info[0].order.setl_time.split(' ')[0] : ''}}</span>
145
+        </div>
146
+      </div>
147
+      <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10138" src="https://kuyi.shengws.com/bailin/blend.jpg" alt="">
148
+      <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10278" src="https://kuyi.shengws.com/bailinbeier.png" alt="">
149
+
150
+    </div>
151
+
152
+  </div>
153
+
154
+</template>
155
+<script>
156
+import { getChargePrint } from '@/api/project/project'
157
+import { jsGetAge, uParseTime } from '@/utils/tools'
158
+
159
+export default {
160
+  name: "batchPrint",
161
+  data() {
162
+    return {
163
+      list: {},
164
+      prescription: [],
165
+      patient: {},
166
+      orgname: '',
167
+
168
+      result: {},
169
+      org_code: '',
170
+      patient_name: '',
171
+      doctor_code: '',
172
+      doctor_name: '',
173
+
174
+      name_arr: [],
175
+      spec_arr: [],
176
+      count_arr: [],
177
+      price_arr: [],
178
+      total_arr: []
179
+
180
+    }
181
+  },
182
+  props: {
183
+    paramsObj: Object,
184
+    info: Object,
185
+    balanceAccounts: Object
186
+  },
187
+  methods: {
188
+    getAge: function(val) {
189
+      if (val.id_card_no) {
190
+        var thisLen = val.id_card_no.length
191
+
192
+        var birth = ''
193
+        if (thisLen == 15) {
194
+          birth = '19' + val.id_card_no.substr(6, 6)
195
+        } else {
196
+          birth = val.id_card_no.substr(6, 8)
197
+        }
198
+        var birthtwo =
199
+          birth.substr(0, 4) +
200
+          '-' +
201
+          birth.substr(4, 2) +
202
+          '-' +
203
+          birth.substr(6, 2)
204
+
205
+        var age = jsGetAge(birthtwo, '-')
206
+        return age
207
+      }
208
+    },
209
+    getName(list) {
210
+      let new_list = []
211
+      for (let i = 0; i < list.length; i++) {
212
+        if (list[i].aac031 == '1') {
213
+          new_list.push(list[i])
214
+        }
215
+      }
216
+
217
+      switch (new_list[0].bcc334) {
218
+        case 'A31001':
219
+          return '深圳医保1档'
220
+          break
221
+        case 'A31002':
222
+          return '深圳医保2档'
223
+
224
+          break
225
+        case 'A31003':
226
+          return '深圳医保3档'
227
+
228
+          break
229
+        case 'A31004':
230
+          return '二档(少儿)'
231
+
232
+          break
233
+        case 'A31005':
234
+          return '学生二档'
235
+
236
+          break
237
+        case 'A31006':
238
+          return '大学生二档'
239
+
240
+          break
241
+        case 'A32001':
242
+          return '在职公务员'
243
+          break
244
+        case 'A32002':
245
+          return '在职驻深公务员'
246
+
247
+          break
248
+        case 'A39301':
249
+          return '家属统筹医疗'
250
+
251
+          break
252
+        case 'A41001':
253
+          return '工伤在职'
254
+
255
+          break
256
+        case 'A51001':
257
+          return '生育在职'
258
+
259
+          break
260
+        case 'A52001':
261
+          return '生育医疗一档'
262
+
263
+          break
264
+        case 'A52002':
265
+          return '生育医疗一档'
266
+
267
+          break
268
+        case 'C31001':
269
+          return '一档医疗退休'
270
+
271
+          break
272
+        case 'C31002':
273
+          return '二档医疗退休'
274
+          break
275
+
276
+      }
277
+
278
+    },
279
+    getValue(item) {
280
+      return this.getItemName(item.aka111) + ': ' + item.bka058 + '元'
281
+    },
282
+    getItemName(number) {
283
+      switch (number) {
284
+        case '01':
285
+          return '床位费'
286
+          break
287
+        case '02':
288
+          return '西药费'
289
+
290
+          break
291
+        case '03':
292
+          return '中药费'
293
+
294
+          break
295
+        case '04':
296
+          return '中成药费'
297
+
298
+          break
299
+        case '05':
300
+          return '中草药费'
301
+
302
+          break
303
+        case '06':
304
+          return '检查费'
305
+
306
+          break
307
+        case '07':
308
+          return '治疗费'
309
+
310
+          break
311
+        case '08':
312
+          return '放射费'
313
+
314
+          break
315
+        case '09':
316
+          return '手术费'
317
+
318
+          break
319
+        case '10':
320
+          return '化验费'
321
+
322
+          break
323
+        case '11':
324
+          return '输血费'
325
+
326
+          break
327
+        case '12':
328
+          return '输氧费'
329
+
330
+          break
331
+        case '13':
332
+          return '其它费'
333
+
334
+          break
335
+        case '14':
336
+          return '麻醉费'
337
+
338
+          break
339
+        case '15':
340
+          return '材料费'
341
+
342
+          break
343
+        case '16':
344
+          return '特殊检查费'
345
+
346
+          break
347
+        case '17':
348
+          return '特殊治疗费'
349
+
350
+          break
351
+        case '18':
352
+          return '诊疗费(诊查费)'
353
+
354
+          break
355
+        case '19':
356
+          return '护理费'
357
+
358
+          break
359
+        case '20':
360
+          return '诊金'
361
+
362
+          break
363
+        case '21':
364
+          return '检查费(CT)'
365
+
366
+          break
367
+        case '22':
368
+          return '检查费(MRT)'
369
+
370
+          break
371
+        case '23':
372
+          return '检查费(其他)'
373
+
374
+          break
375
+        case '24':
376
+          return '特需服务费'
377
+
378
+          break
379
+        case '25':
380
+          return '杂费'
381
+
382
+          break
383
+        case '26':
384
+          return '挂号费'
385
+          break
386
+        case '99':
387
+          return '诊疗费'
388
+          break
389
+
390
+      }
391
+
392
+    },
393
+    getChargePrint(record_date, patient_id, prescription_id) {
394
+      var params = {
395
+        record_date: record_date,
396
+        patient_id: patient_id,
397
+        prescription_id: prescription_id
398
+      }
399
+      console.log('params', params)
400
+      getChargePrint(params).then(response => {
401
+        if (response.data.state == 1) {
402
+          var list = response.data.data.list
403
+          console.log('list9999999999', list)
404
+          this.list = list
405
+          var prescription = response.data.data.prescription
406
+          console.log('prescription', prescription)
407
+          this.prescription = prescription
408
+          var patient = response.data.data.patient
409
+          console.log('patient', patient)
410
+          this.patient = patient
411
+          var histpatient = response.data.data.hisPatient
412
+          console.log('hispatient', histpatient)
413
+        }
414
+      })
415
+    },
416
+    getTime(value, temp) {
417
+      if (value != undefined) {
418
+        return uParseTime(value, temp)
419
+      }
420
+      return ''
421
+    }
422
+  },
423
+  mounted() {
424
+    this.org_id = this.$store.getters.xt_user.org_id
425
+
426
+    var record_date = this.paramsObj.record_date
427
+    console.log('record_date', record_date)
428
+    var patient_id = this.paramsObj.patient_id
429
+    console.log('patient_id', patient_id)
430
+    var prescription_id = this.paramsObj.prescription_id
431
+    this.getChargePrint(record_date, patient_id, prescription_id)
432
+    var xtuser = this.$store.getters.xt_user
433
+    this.orgname = xtuser.org.org_name
434
+
435
+  },
436
+  watch: {
437
+    paramsObj: {//深度监听,可监听到对象、数组的变化
438
+      handler(val, oldVal) {
439
+        this.paramsObj = val
440
+        this.patient_id = this.paramsObj.patient_id
441
+        var record_date = this.paramsObj.record
442
+        this.record_date = record_date
443
+        var prescription_id = this.paramsObj.prescription_id
444
+        this.prescription_id = prescription_id
445
+
446
+      },
447
+      deep: true
448
+    }
449
+  }
450
+}
451
+</script>
452
+
453
+
454
+<style lang="scss" scoped>
455
+.prescription-print {
456
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
457
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
458
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
459
+  margin-bottom: 20px;
460
+  padding: 20px 10px;
461
+}
462
+
463
+.printTitle {
464
+  font-size: 22px;
465
+  text-align: center;
466
+  font-weight: bold;
467
+}
468
+
469
+.infoMain {
470
+  display: flex;
471
+  flex-wrap: wrap;
472
+  padding: 0 10px;
473
+  margin-top: 10px;
474
+}
475
+
476
+.infoMain .infoP {
477
+  width: 33%;
478
+  line-height: 24px;
479
+}
480
+
481
+.chargeBox {
482
+  border: 1px solid #000;
483
+}
484
+
485
+.chargeUl {
486
+  display: flex;
487
+  justify-content: space-between;
488
+  text-align: center;
489
+}
490
+
491
+.chargeUl p {
492
+  height: 40px;
493
+  line-height: 40px;
494
+}
495
+
496
+.chargeP {
497
+  height: 40px;
498
+  line-height: 40px;
499
+}
500
+
501
+.moneyBox {
502
+  display: flex;
503
+  justify-content: space-between;
504
+  padding: 0 10px;
505
+  background: #eee;
506
+  height: 40px;
507
+  align-items: center;
508
+  border: 1px solid #000;
509
+  border-top: none
510
+}
511
+
512
+.actionBar {
513
+  display: flex;
514
+  justify-content: space-between;
515
+  line-height: 24px;
516
+  padding: 0 10px;
517
+}
518
+
519
+.actionBar div {
520
+  width: 150px;
521
+}
522
+
523
+table {
524
+
525
+td {
526
+  padding: 10px 5px;
527
+}
528
+
529
+}
530
+</style>

+ 8 - 9
src/xt_pages/outpatientCharges/statementTemplate/printThree.vue View File

@@ -117,24 +117,24 @@
117 117
                                 </div>
118 118
                             </div>
119 119
                         </td>
120
-                        <td>合计: {{info.medfee_sumamt?info.medfee_sumamt:0}}元</td>
120
+                        <td>合计: {{info.medfee_sumamt?info.medfee_sumamt:info.new_order.medfee_sumamt}}元</td>
121 121
                     </tr>
122 122
                     <tr>
123 123
                         <td colspan="7">
124 124
                             <div style="display:flex;flez-wrap:wrap;margin-bottom:10px;font-size:16px;">
125
-                                <div style="width:33%;">医疗费总额:{{info.medfee_sumamt?info.medfee_sumamt:0}}元</div>
126
-                                <div style="width:33%;">基金支付金额:{{info.hifp_pay?info.hifp_pay:0}}元</div>
127
-                                <div style="width:33%;">个人账户支付金额:{{info.acct_pay?info.acct_pay:0}}元</div>
125
+                                <div style="width:33%;">医疗费总额:{{info.medfee_sumamt?info.medfee_sumamt:info.new_order.medfee_sumamt}}元</div>
126
+                                <div style="width:33%;">基金支付金额:{{info.hifp_pay?info.hifp_pay:info.new_order.hifp_pay}}元</div>
127
+                                <div style="width:33%;">个人账户支付金额:{{info.acct_pay?info.acct_pay:info.new_order.acct_pay}}元</div>
128 128
 
129 129
                             </div>
130 130
                             <div style="display:flex;flez-wrap:wrap;font-size:16px;">
131
-                              <div style="width:33%;">医疗救助基金金额:{{info.maf_pay?info.maf_pay:0}}元</div>
131
+                              <div style="width:33%;">医疗救助基金金额:{{info.maf_pay?info.maf_pay:info.new_order.maf_pay}}元</div>
132 132
 
133
-                              <div style="width:33%;">个人支付金额:{{ info.psn_pay?info.psn_pay:0 }}元</div>
134
-                                <div style="width:33%;">个人账户金额:{{info.balc >= 0 ? info.balc : 0 }}元</div>
133
+                              <div style="width:33%;">个人支付金额:{{ info.psn_pay?info.psn_pay:info.new_order.psn_pay }}元</div>
134
+                                <div style="width:33%;">个人账户金额:{{info.balc >= 0 ? info.balc : info.new_order.balc}}元</div>
135 135
                             </div>
136 136
                         </td>
137
-                        <td style="font-size:16px;">合计:{{info.medfee_sumamt?info.medfee_sumamt:0}}元</td>
137
+                        <td style="font-size:16px;">合计:{{info.medfee_sumamt?info.medfee_sumamt:info.new_order.medfee_sumamt}}元</td>
138 138
                     </tr>
139 139
 
140 140
                 </table>
@@ -545,7 +545,6 @@
545 545
     },
546 546
     mounted() {
547 547
       this.org_id = this.$store.getters.xt_user.org_id
548
-
549 548
       var record_date = this.paramsObj.record_date
550 549
       console.log('record_date', record_date)
551 550
       var patient_id = this.paramsObj.patient_id

+ 115 - 9
src/xt_pages/outpatientCharges/summary.vue View File

@@ -62,6 +62,23 @@
62 62
             >
63 63
             </el-option>
64 64
           </el-select>
65
+
66
+          <el-select v-model="sch_type" placeholder="请选择班次" @change="handleSchType">
67
+            <el-option label="全部" value="0"></el-option>
68
+            <el-option label="上午" value="1"></el-option>
69
+            <el-option label="下午" value="2"></el-option>
70
+            <el-option label="晚上" value="3"></el-option>
71
+          </el-select>
72
+
73
+          <el-select v-model="zoneVal" placeholder="分区" style="margin-right:20px;" @change="handleZoneChange">
74
+            <el-option
75
+              v-for="item in zone_options"
76
+              :key="item.id"
77
+              :label="item.text"
78
+              :value="item.id">
79
+            </el-option>
80
+          </el-select>
81
+
65 82
           <el-date-picker
66 83
               size="small"
67 84
               v-model="start_time"
@@ -104,13 +121,17 @@
104 121
                       <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
105 122
 
106 123
                     </el-popover> -->
124
+          <el-button size="small" type="primary" @click="batch_print_settlte"
125
+          >批量打印结算单
126
+          </el-button>
107 127
           <el-button size="small" type="primary" @click="export_detail"
108 128
           >报表下载
109 129
           </el-button
110 130
           >
111 131
           <el-button v-if="$store.getters.xt_user.org_id == 10106 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten">报表下载2</el-button>
112
-          <el-button v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten_four">报表下载3</el-button>
113
-<!--          <el-button  size="small" type="primary" @click="export_detail_ten_three">报表下载4</el-button>-->
132
+          <el-button v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten_two">报表下载3</el-button>
133
+
134
+          <!--          <el-button  size="small" type="primary" @click="export_detail_ten_three">报表下载4</el-button>-->
114 135
 
115 136
 
116 137
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
@@ -134,12 +155,14 @@
134 155
           border
135 156
           style="width: 100%"
136 157
           :row-style="{ color: '#303133' }"
158
+          @selection-change="handleSelectionChange"
137 159
           :header-cell-style="{
138 160
           backgroundColor: 'rgb(245, 247, 250)',
139 161
           color: '#606266',
140 162
         }"
141 163
           highlight-current-row
142 164
       >
165
+        <el-table-column align="center" type="selection" width="55"></el-table-column>
143 166
         <el-table-column
144 167
             prop="date"
145 168
             label="序号"
@@ -324,6 +347,24 @@
324 347
           :paramsObj="orderObj"
325 348
       ></new-statement-print>
326 349
     </el-dialog>
350
+
351
+
352
+    <el-dialog
353
+      class="centerDialog"
354
+      width="1200px"
355
+      title="打印"
356
+      :visible.sync="batchStatementVisible"
357
+    >
358
+<!--      <batchStatementPrint-->
359
+<!--        ref="batchPrint"-->
360
+<!--        :paramsObj="batchOrderObj"-->
361
+<!--      ></batchStatementPrint>-->
362
+      <batch-statement-print
363
+        ref="batchPrint"
364
+        :paramsObj="batchOrderObj"
365
+      ></batch-statement-print>
366
+    </el-dialog>
367
+
327 368
     <el-dialog
328 369
       class="centerDialog"
329 370
       width="1200px"
@@ -386,8 +427,11 @@
386 427
 
387 428
 <script>
388 429
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
389
-import {getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund,} from "@/api/his/his";
430
+import {getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund} from "@/api/his/his";
390 431
 // import NewStatementPrint from './newStatementPrint'
432
+
433
+
434
+import batchStatementPrint from "./batchStatementPrint.vue";
391 435
 import NewStatementPrint from "./statementPrint.vue";
392 436
 import listPrint from "./listPrint";
393 437
 import allListPrint from "./allListPrint";
@@ -397,15 +441,19 @@ import axios from "axios";
397 441
 import invoicePrint from "./invoicePrint";
398 442
 import settlementPrint from "./settlementPrint";
399 443
 import {jsGetAge, uParseTime} from "@/utils/tools";
400
-
444
+const moment = require('moment')
401 445
 import {getHisDataFive, getHisDataSix, getHisDataThree, getHisDataTwo,getAllOrders,exportOrderInfo,handleOne} from "../../api/his/his";
402 446
 
403 447
 import {handleData10106,handleData10318,handleData10138Two} from "../../api/his/his_export";
404 448
 import StatementListPrint from "./statementListPrint";
405
-
449
+import {
450
+  getDialysisRecordInitData
451
+} from '@/api/dialysis_record'
452
+import BatchStatementPrint from './batchStatementPrint'
406 453
 export default {
407 454
   name: "OutpatientChargesSummary",
408 455
   components: {
456
+    BatchStatementPrint,
409 457
     StatementListPrint,
410 458
     NewStatementPrintTwo,
411 459
     NewStatementPrint,
@@ -418,8 +466,13 @@ export default {
418 466
   data() {
419 467
     return {
420 468
       orderObj: {},
469
+      batchOrderObj:{},
470
+      zone_options: [
471
+        { id: 0, text: '全部分区' }
472
+      ],
421 473
       statementListVisible:false,
422 474
       statementVisible: false,
475
+      batchStatementVisible:false,
423 476
       statementVisible9504: false,
424 477
       orderObj9504: {},
425 478
       crumbs: [
@@ -427,11 +480,14 @@ export default {
427 480
         {path: false, name: "项目消费明细汇总"},
428 481
       ],
429 482
       tableData: [],
483
+      selecting_schs:[],
430 484
       limit: 10,
431 485
       page: 1,
432 486
       keywords: "",
433
-      start_time: "",
434
-      end_time: "",
487
+      sch_type:"0",
488
+      zoneVal:0,
489
+      start_time: moment(new Date()).add('year',0).format("YYYY-MM-DD"),
490
+      end_time: moment(new Date()).add('year',0).format("YYYY-MM-DD"),
435 491
       total: "",
436 492
       doctors: [],
437 493
       sort_type: 1,
@@ -485,12 +541,44 @@ export default {
485 541
   },
486 542
 
487 543
   created() {
544
+    this.getInitData()
488 545
     this.fetchAllAdminUsers();
489 546
     this.getDoctorList();
490 547
     this.getHisOrderList();
491 548
   },
492 549
 
493 550
   methods: {
551
+    handleSelectionChange(val) {
552
+      this.selecting_schs = val
553
+    },
554
+    handleSchType(val){
555
+      this.sch_type = val
556
+      this.getHisOrderList()
557
+    },
558
+    handleZoneChange(val){
559
+      this.zoneVal = val
560
+      this.getHisOrderList()
561
+
562
+
563
+    },
564
+    getInitData: function () {
565
+      getDialysisRecordInitData().then((rs) => {
566
+        var resp = rs.data;
567
+        if (resp.state == 1) {
568
+          var zones = resp.data.zones;
569
+          var zone_options = [{ id: 0, text: "全部" }];
570
+          for (let z_i = 0; z_i < zones.length; z_i++) {
571
+            const zone = zones[z_i];
572
+            zone_options.push({ id: zone.id, text: zone.name });
573
+          }
574
+          this.zone_options = zone_options;
575
+
576
+        } else {
577
+          this.$message.error(resp.msg);
578
+        }
579
+      });
580
+    },
581
+
494 582
     setStorage() {
495 583
       this.$store.commit("SET_PAGEDATA", {
496 584
         page: this.page,
@@ -1110,7 +1198,7 @@ export default {
1110 1198
                 name: order.patient.name,
1111 1199
                 id_card_no: order.patient.id_card_no,
1112 1200
                 year: "2023",
1113
-                month: "2",
1201
+                month: "3",
1114 1202
                 code: data[b].code,
1115 1203
                 pric: data[b].count * data[b].price,
1116 1204
                 item_name: data[b].name,
@@ -2695,8 +2783,24 @@ export default {
2695 2783
         }
2696 2784
       }
2697 2785
       return res
2698
-    },
2786
+    },batch_print_settlte(){
2787
+      if (this.selecting_schs.length === 0) {
2788
+        this.$message.error('请至少选择一条需要打印的内容')
2789
+        return false
2790
+      } else {
2791
+        var sch_ids = []
2792
+        for (let index = 0; index < this.selecting_schs.length; index++) {
2793
+          sch_ids.push(this.selecting_schs[index].id)
2794
+        }
2795
+        this.batchStatementVisible = true
2796
+        let params = {
2797
+          order_ids: sch_ids.join(","),
2798
+          admin_user_id:  this.$store.getters.xt_user.user.id,
2799
+        };
2800
+        this.batchOrderObj = params
2699 2801
 
2802
+      }
2803
+    },
2700 2804
     export_detail() {
2701 2805
       let params = {
2702 2806
         start_time: this.start_time,
@@ -3280,6 +3384,8 @@ export default {
3280 3384
         type: this.admin_user_id,
3281 3385
         p_type: 2,
3282 3386
         sort_type: this.sort_type,
3387
+        sch_type: this.sch_type,
3388
+        zone_type: this.zoneVal
3283 3389
       };
3284 3390
       getHisOrderList(params).then((response) => {
3285 3391
         if (response.data.state == 0) {

+ 1 - 4
src/xt_pages/outpatientDoctorStation/components/saveTemplate.vue View File

@@ -8,9 +8,7 @@
8 8
         <div>
9 9
             <el-form :model="form" class="adviceForm" :rules="rules" ref="form" label-width="90px">
10 10
 
11
-                <el-form-item label="模板名称:"  prop="name" style="width: 100%;margin-bottom:0;">
12
-                    <el-input v-model="form.name"  placeholder=""></el-input>
13
-                </el-form-item>
11
+
14 12
 
15 13
                 <el-form-item label="透析模式:" style="width: 100%;margin-top: 20px" prop="mode">
16 14
                     <el-select v-model="form.mode" style="width:100%;" placeholder="请选择">
@@ -158,7 +156,6 @@
158 156
     data() {
159 157
       return {
160 158
         rules: {
161
-          name: [{required: true, message: "模版名字不能为空", trigger: 'blur'}],
162 159
           mode: [{required: true, message: "请选择透析模式", trigger: 'blur'}],
163 160
         },
164 161
         visible: false,

+ 19 - 19
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -119,7 +119,7 @@
119 119
                        v-loading="saveLoading">保存
120 120
             </el-button>
121 121
             <el-button size="small" ref="button_three" @click="open_two()" type="primary">处方调用</el-button>
122
-            <!--<el-button size="small" @click="open_three()" type="primary">存模板</el-button>-->
122
+            <el-button size="small" @click="open_three()" type="primary">存模板</el-button>
123 123
 
124 124
             <!-- <el-popover
125 125
                                 placement="bottom"
@@ -1704,7 +1704,7 @@ export default {
1704 1704
                   unit: prescription.project[b].unit,
1705 1705
                   type: prescription.project[b].type,
1706 1706
                   execution_state: prescription.project[b].execution_state,
1707
-                
1707
+
1708 1708
 
1709 1709
                 }
1710 1710
 
@@ -1713,14 +1713,14 @@ export default {
1713 1713
                   obj['medical_code'] = prescription.project[b].project.medical_code
1714 1714
                   obj['project_name'] = prescription.project[b].project.project_name
1715 1715
                   obj['project'] = prescription.project[b].project
1716
-                 
1716
+
1717 1717
 
1718 1718
                 } else if (prescription.project[b].type == 3) {
1719 1719
                   obj['statistical_classification'] = ''
1720 1720
                   obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1721 1721
                   obj['project_name'] = prescription.project[b].good_info.good_name
1722 1722
                   obj['good_info'] = prescription.project[b].good_info
1723
-                
1723
+
1724 1724
 
1725 1725
                 }
1726 1726
                 tempProject.push(obj)
@@ -1866,7 +1866,7 @@ export default {
1866 1866
                     unit: prescription.project[b].unit,
1867 1867
                     type: prescription.project[b].type,
1868 1868
                     execution_state: 2,
1869
-                    
1869
+
1870 1870
 
1871 1871
                   }
1872 1872
 
@@ -1876,7 +1876,7 @@ export default {
1876 1876
                     obj['project_name'] = prescription.project[b].project.project_name
1877 1877
                     obj['price'] = prescription.project[b].project.price
1878 1878
                     obj['project'] = prescription.project[b].project
1879
-                    
1879
+
1880 1880
 
1881 1881
                   } else if (prescription.project[b].type == 3) {
1882 1882
                     obj['statistical_classification'] = ''
@@ -1884,7 +1884,7 @@ export default {
1884 1884
                     obj['project_name'] = prescription.project[b].good_info.good_name
1885 1885
                     obj['price'] = prescription.project[b].good_info.packing_price
1886 1886
                     obj['good_info'] = prescription.project[b].good_info
1887
-                  
1887
+
1888 1888
                   }
1889 1889
                   tempProject.push(obj)
1890 1890
                 }
@@ -2166,7 +2166,7 @@ export default {
2166 2166
                         unit: prescription.project[b].unit,
2167 2167
                         type: prescription.project[b].type,
2168 2168
                         execution_state: prescription.project[b].execution_state,
2169
-                       
2169
+
2170 2170
                       }
2171 2171
 
2172 2172
                       if (prescription.project[b].type == 2) {
@@ -2325,7 +2325,7 @@ export default {
2325 2325
                           unit: prescription.project[b].unit,
2326 2326
                           type: prescription.project[b].type,
2327 2327
                           execution_state: 2,
2328
-                         
2328
+
2329 2329
 
2330 2330
                         }
2331 2331
 
@@ -2710,7 +2710,7 @@ export default {
2710 2710
                         unit: prescription.project[b].unit,
2711 2711
                         type: prescription.project[b].type,
2712 2712
                         execution_state: prescription.project[b].execution_state,
2713
-                       
2713
+
2714 2714
                       }
2715 2715
 
2716 2716
                       if (prescription.project[b].type == 2) {
@@ -2860,7 +2860,7 @@ export default {
2860 2860
                           unit: prescription.project[b].unit,
2861 2861
                           type: prescription.project[b].type,
2862 2862
                           execution_state: 2,
2863
-                         
2863
+
2864 2864
                         }
2865 2865
 
2866 2866
                         if (prescription.project[b].type == 2) {
@@ -3224,7 +3224,7 @@ export default {
3224 3224
                       unit: prescription.project[b].unit,
3225 3225
                       type: prescription.project[b].type,
3226 3226
                       execution_state: prescription.project[b].execution_state,
3227
-                  
3227
+
3228 3228
                     }
3229 3229
 
3230 3230
                     if (prescription.project[b].type == 2) {
@@ -3374,7 +3374,7 @@ export default {
3374 3374
                         unit: prescription.project[b].unit,
3375 3375
                         type: prescription.project[b].type,
3376 3376
                         execution_state: 2,
3377
-                       
3377
+
3378 3378
 
3379 3379
                       }
3380 3380
 
@@ -3818,7 +3818,7 @@ export default {
3818 3818
                         unit: prescription.project[b].unit,
3819 3819
                         type: prescription.project[b].type,
3820 3820
                         execution_state: prescription.project[b].execution_state,
3821
-                       
3821
+
3822 3822
                       }
3823 3823
 
3824 3824
                       if (prescription.project[b].type == 2) {
@@ -3826,7 +3826,7 @@ export default {
3826 3826
                         obj['medical_code'] = prescription.project[b].project.medical_code
3827 3827
                         obj['project_name'] = prescription.project[b].project.project_name
3828 3828
                         obj['project'] = prescription.project[b].project
3829
-                      
3829
+
3830 3830
 
3831 3831
                       } else if (prescription.project[b].type == 3) {
3832 3832
                         if (prescription.project[b].team_id > 0) {
@@ -3835,7 +3835,7 @@ export default {
3835 3835
                         obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3836 3836
                         obj['project_name'] = prescription.project[b].good_info.good_name
3837 3837
                         obj['good_info'] = prescription.project[b].good_info
3838
-                       
3838
+
3839 3839
 
3840 3840
                       }
3841 3841
                       tempProject.push(obj)
@@ -3979,7 +3979,7 @@ export default {
3979 3979
                           unit: prescription.project[b].unit,
3980 3980
                           type: prescription.project[b].type,
3981 3981
                           execution_state: 2,
3982
-                          
3982
+
3983 3983
                         }
3984 3984
 
3985 3985
                         if (prescription.project[b].type == 2) {
@@ -4448,7 +4448,7 @@ export default {
4448 4448
                         unit: prescription.project[b].unit,
4449 4449
                         type: prescription.project[b].type,
4450 4450
                         execution_state: prescription.project[b].execution_state,
4451
-                       
4451
+
4452 4452
                       }
4453 4453
 
4454 4454
                       if (prescription.project[b].type == 2) {
@@ -4608,7 +4608,7 @@ export default {
4608 4608
                           unit: prescription.project[b].unit,
4609 4609
                           type: prescription.project[b].type,
4610 4610
                           execution_state: 2,
4611
-                         
4611
+
4612 4612
                         }
4613 4613
 
4614 4614
                         if (prescription.project[b].type == 2) {

+ 13 - 1
src/xt_pages/outpatientTool/labelPrint.vue View File

@@ -31,6 +31,15 @@
31 31
                             @change="changeDate"
32 32
                     >
33 33
                     </el-date-picker>
34
+
35
+                    <el-select v-model="tube_color" style="width:160px;" placeholder="请选择">
36
+                      <el-option
37
+                        v-for="(item,index) in getDictionaryDataConfig('system','tube_color')"
38
+                        :key="index"
39
+                        :label="item.name"
40
+                        :value="item.id">
41
+                      </el-option>
42
+                    </el-select>
34 43
                 </div>
35 44
             </div>
36 45
             <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
@@ -130,6 +139,7 @@
130 139
   import { uParseTime } from '@/utils/tools'
131 140
   import SignPrint from '../dialysis/signPrint'
132 141
   import JsBarcode from 'jsbarcode'
142
+  import { getDictionaryDataConfig} from "@/utils/data";
133 143
 
134 144
   // import NewStatementPrint from './newStatementPrint'
135 145
   const moment = require('moment')
@@ -141,6 +151,7 @@
141 151
     },
142 152
     data() {
143 153
       return {
154
+        tube_color:0,
144 155
         current_ctime: 0,
145 156
         current_number: '',
146 157
         current_project_name: '',
@@ -246,7 +257,8 @@
246 257
           is_print: this.item_type,
247 258
           keyword: this.keywords,
248 259
           page: this.page,
249
-          limit: this.limit
260
+          limit: this.limit,
261
+          tube_color:this.tube_color,
250 262
         }
251 263
         GetLabelList(params).then(response => {
252 264
           if (response.data.state == 0) {