|
@@ -14,9 +14,19 @@
|
14
|
14
|
@click="printThisInfo()"
|
15
|
15
|
type="primary"
|
16
|
16
|
icon="el-icon-printer"
|
17
|
|
- >打印</el-button
|
|
17
|
+ >打印2</el-button
|
18
|
18
|
>
|
19
|
|
- <span> </span>
|
|
19
|
+
|
|
20
|
+ <span> </span>
|
|
21
|
+ <el-button
|
|
22
|
+ style="float:right;"
|
|
23
|
+ size="small"
|
|
24
|
+ @click="printThisInfoOne()"
|
|
25
|
+ type="primary"
|
|
26
|
+ icon="el-icon-printer"
|
|
27
|
+ >打印1</el-button
|
|
28
|
+ >
|
|
29
|
+ <span> </span>
|
20
|
30
|
<el-button
|
21
|
31
|
style="float:right;margin-right:20px"
|
22
|
32
|
size="small"
|
|
@@ -414,6 +424,77 @@
|
414
|
424
|
</div>
|
415
|
425
|
|
416
|
426
|
</div>
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+ <div style="display:none;">
|
|
430
|
+ <div id="printRecordOne" class="record-order">
|
|
431
|
+ <div class="rd-title">{{ orgname }}</div>
|
|
432
|
+ <div class="rd-name">
|
|
433
|
+ <span
|
|
434
|
+ >姓名:<span class="item-value">{{
|
|
435
|
+ currentPatient.name
|
|
436
|
+ }}</span></span
|
|
437
|
+ >
|
|
438
|
+ <span style="margin-left:10px;"
|
|
439
|
+ >透析号:<span class="item-value">{{
|
|
440
|
+ currentPatient.dialysis_no
|
|
441
|
+ }}</span></span
|
|
442
|
+ >
|
|
443
|
+ <span style="margin-left:10px;"
|
|
444
|
+ >性别:
|
|
445
|
+ <span class="item-value">
|
|
446
|
+ <span v-if="currentPatient.gender==1">男</span>
|
|
447
|
+ <span v-if="currentPatient.gender==2">女</span>
|
|
448
|
+ </span>
|
|
449
|
+ </span>
|
|
450
|
+
|
|
451
|
+ <span style="margin-left:10px;"
|
|
452
|
+ >年龄:<span class="item-value">{{
|
|
453
|
+ currentPatient.age
|
|
454
|
+ }}</span></span
|
|
455
|
+ >
|
|
456
|
+ </div>
|
|
457
|
+ <table
|
|
458
|
+ cellspacing="0"
|
|
459
|
+ cellpadding="0"
|
|
460
|
+ border="1"
|
|
461
|
+ class="el-table__body"
|
|
462
|
+ style="width: 100%;"
|
|
463
|
+ >
|
|
464
|
+ <thead>
|
|
465
|
+ <th>序号</th>
|
|
466
|
+ <th>透析日期</th>
|
|
467
|
+ <th>班次</th>
|
|
468
|
+ <th>分区机号</th>
|
|
469
|
+ <th>透析模式</th>
|
|
470
|
+ <th>透析用药</th>
|
|
471
|
+ <th>治疗护士</th>
|
|
472
|
+ <th>治疗医生</th>
|
|
473
|
+ <th>开始透析时间</th>
|
|
474
|
+ <th>结束透析时间</th>
|
|
475
|
+ <th>患者签名</th>
|
|
476
|
+ </thead>
|
|
477
|
+ <tbody>
|
|
478
|
+ <tr v-for="item,index in recordData" :key="item.id">
|
|
479
|
+ <td align="center">{{ index +1 }}</td>
|
|
480
|
+ <td align="center">{{ item.dialysis_date | parseTime("{y}-{m}-{d}") }}</td>
|
|
481
|
+ <td align="center">{{ scheduleType(item.schedule_type) }}</td>
|
|
482
|
+ <td align="center">{{ item.partition_name }}-{{ item.device.number }}</td>
|
|
483
|
+ <td align="center">{{ modeName(item.prescription.mode_id) }}</td>
|
|
484
|
+ <td align="center">{{ getAdviceStr(item.doctor_advice) }}</td>
|
|
485
|
+ <td align="center">{{ getNurseName(item.start_nurse) }}</td>
|
|
486
|
+ <td align="center">{{ getDoctorName(item.prescription.creater) }}</td>
|
|
487
|
+ <td align="center">{{ item.start_time | parseTime("{y}-{m}-{d} {h}:{i}") }}</td>
|
|
488
|
+ <td align="center">{{ item.end_time | parseTime("{y}-{m}-{d} {h}:{i}") }}</td>
|
|
489
|
+ <td align="center">
|
|
490
|
+ <img :src="item.url" style="width: 50px;height:50px">
|
|
491
|
+ </td>
|
|
492
|
+ </tr>
|
|
493
|
+ </tbody>
|
|
494
|
+ </table>
|
|
495
|
+ </div>
|
|
496
|
+
|
|
497
|
+ </div>
|
417
|
498
|
</div>
|
418
|
499
|
<!-- 透析记录弹窗 -->
|
419
|
500
|
<div>
|
|
@@ -679,6 +760,7 @@ export default {
|
679
|
760
|
return "";
|
680
|
761
|
},
|
681
|
762
|
onTranPatient: function(tranPatient) {
|
|
763
|
+
|
682
|
764
|
this.currentPatient = tranPatient;
|
683
|
765
|
},
|
684
|
766
|
printThisInfo() {
|
|
@@ -693,6 +775,18 @@ export default {
|
693
|
775
|
});
|
694
|
776
|
}, 1);
|
695
|
777
|
},
|
|
778
|
+ printThisInfoOne() {
|
|
779
|
+ const style =
|
|
780
|
+ "@media print { .record-order .rd-title{ text-align: center; font-weight: 600; font-size: 30px; line-height: 80px; margin-bottom: 20px; } .record-order .rd-type{ text-align: center; margin-bottom: 20px; } .record-order .rd-name { align-items: center; justify-content: space-between; padding: 30px 2em; } .record-order .el-table__body{ border: 1px solid #333; } .record-order .el-table__body td{ border: 1px solid #333; } .record-order .item-value { border-bottom: 1px solid #333; padding: 0 20px;} .record-order th, .record-order td { padding: 5px 10px; }}";
|
|
781
|
+ setTimeout(() => {
|
|
782
|
+ printJS({
|
|
783
|
+ printable: "printRecordOne",
|
|
784
|
+ type: "html",
|
|
785
|
+ style: style,
|
|
786
|
+ scanStyles: false
|
|
787
|
+ });
|
|
788
|
+ }, 1);
|
|
789
|
+ },
|
696
|
790
|
clickCurrent(val) {
|
697
|
791
|
|
698
|
792
|
this.patient_id = val.patient_id
|
|
@@ -759,6 +853,25 @@ export default {
|
759
|
853
|
return jsonData.map(v => filterVal.map(j => v[j]));
|
760
|
854
|
},
|
761
|
855
|
|
|
856
|
+ getAdviceStr(arr){
|
|
857
|
+
|
|
858
|
+ var advice_name_str = ""
|
|
859
|
+ var newArr = []
|
|
860
|
+ if(arr!=null && arr.length >0){
|
|
861
|
+ for(let i=0;i<arr.length;i++){
|
|
862
|
+ if(arr[i].advice_name.indexOf("促红")!=-1){
|
|
863
|
+ newArr.push(arr[i])
|
|
864
|
+ }
|
|
865
|
+ }
|
|
866
|
+ }
|
|
867
|
+ if(newArr!=null){
|
|
868
|
+ for(let i=0;i<newArr.length;i++){
|
|
869
|
+ advice_name_str += newArr[i].advice_name + "*"+ newArr[i].prescribing_number + newArr[i].prescribing_number_unit+ " "
|
|
870
|
+ }
|
|
871
|
+ }
|
|
872
|
+ console.log("HHHHHHHHHHHHHHHHHHHHHHHHHHHHH",advice_name_str)
|
|
873
|
+ return advice_name_str
|
|
874
|
+ }
|
762
|
875
|
},
|
763
|
876
|
created() {
|
764
|
877
|
const id = this.$route.params && this.$route.params.id;
|