Browse Source

25 2月19打印单

yq1 1 day ago
parent
commit
5c7e389d40
1 changed files with 123 additions and 54 deletions
  1. 123 54
      src/xt_pages/user/courseOfDisease_new.vue

+ 123 - 54
src/xt_pages/user/courseOfDisease_new.vue View File

@@ -1369,6 +1369,8 @@
1369 1369
         this.advice_dialog = false
1370 1370
       },
1371 1371
       getCurrentChangeOne(val){
1372
+        console.log('bbbbbb1111',val);
1373
+        
1372 1374
         this.$refs.editor.contents = val.content
1373 1375
         this.record_date = ""
1374 1376
         if(val.id > 0){
@@ -2489,10 +2491,96 @@
2489 2491
         this.Inspect = arr
2490 2492
         console.log("newarr----------------",arr)
2491 2493
        }
2492
-       const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
2493
-              <tr>
2494
-                <th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date}~${this.end_date})</th>
2495
-              </tr>
2494
+      //  const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
2495
+      //         <tr>
2496
+      //           <th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date}~${this.end_date})</th>
2497
+      //         </tr>
2498
+      //         <tr>
2499
+      //           <td width="130" style="padding: 5px;">基本信息</td>
2500
+      //           <td style="padding: 5px;">
2501
+      //             <span>姓名:${this.patient.name}</span>  <span>性别:${this.patient.gender_name}</span>  <span>年龄:${this.patient.age}</span>  <span>透析号:${this.patient.dialysis_no}</span>
2502
+      //           </td>
2503
+      //         </tr>
2504
+      //         <tr>
2505
+      //           <td style="align-items: center;padding: 5px;">透析处方</td>
2506
+      //           <td style='padding:5px'>
2507
+      //             <p style='font-weight: bold;'>总次数:${total_count}次 ;</p>
2508
+      //             <p>其中;${hd_str}${hdf_str}${hdhp_str}${hp_str}${hf_str}${scuf_str}${iuf_str}${hfhd_str}${hfhdhp_str}${phf_str}${hdfhp_str}${crrt_str}${iuf_str}${uf_str}${hdjia_str}${ihdf_str}${hdgaotong_str}${cvvhd_str}${pe_str}
2509
+      //               ${hpd_str}${hfd_str}${hdf100str}${hdf600str}${hdf1000str}${hdf80str}${hf16str}${hdwuganstr}${hdf17str}${hddianstr}${hd2str}</p>
2510
+      //             <p style='font-weight: bold;'>透析器:</p>
2511
+      //             <p>${dialyzerPerfusionApparatusStr}${dialyzer_str}${dialysisStrainerStr}${dialysisIrrigationStr}</p>
2512
+      //             <p style='font-weight: bold;'>透析液处方:</p>
2513
+      //             <p>${kalium}${sodium}${calcium}${bicarbonate}</p>
2514
+      //             <p style='font-weight: bold;'>抗凝方式:</p>
2515
+      //             <p >${anticoagulant_str}</p>
2516
+      //           </td>
2517
+      //         </tr>
2518
+      //         <tr>
2519
+      //           <td style="align-items: center;padding: 5px;">透析情况</td>
2520
+      //           <td style='padding:5px'>
2521
+      //             <p>透析间期平均体重增加:${pingjun_weight}kg;</p>
2522
+      //             <p>凝血:${dialysisCrruorStr};</p>
2523
+      //             <p>平均血流量:${pingjun_blood_flow_volume}mL/min;最大血流量:${this.max_blood_flow_volume}mL/min;</p>
2524
+      //             <p>平均超滤量:${pingjun_ultrafiltration_volume_total}ml/次;平均超滤率:${pingjun_ultrafiltration_rate_total}mL/h;</p>
2525
+      //             <p><span style='font-weight: bold;'>透前血压:</span>&nbsp;<span class="">收缩压:${this.min_befor_systolic_blood_pressure}mmHg~${this.max_befor_systolic_blood_pressure}mmHg;舒张压:${this.min_befor_diastolic_blood_pressure}mmHg~${this.max_after_systolic_blood_pressure}mmHg;</span></p>
2526
+      //             <p><span style='font-weight: bold;'>透后血压:</span>&nbsp;<span class="">收缩压:${this.min_after_systolic_blood_pressure}mmHg~${this.max_after_systolic_blood_pressure}mmHg;舒张压:${this.min_after_diastolic_blood_pressure}~${this.max_after_diastolic_blood_pressure}mmHg;</span></p>
2527
+      //             <p><span style='font-weight: bold;'>透中最低血压:</span>&nbsp;<span class="">收缩压:${this.min_monitor_systolic_blood_pressure}mmHg~${this.max_monitor_systolic_blood_pressure}mmHg</span></p>
2528
+      //             <p><span style='font-weight: bold;'>透中最高血压:</span>&nbsp;<span class="">舒张压:${this.min_monitor_diastolic_blood_pressure}mmHg~${this.max_monitor_diastolic_blood_pressure}mmHg;</span></p>
2529
+      //           </td>
2530
+      //         </tr>
2531
+      //         <tr>
2532
+      //           <td style="align-items: center;padding: 5px;">干体重</td>
2533
+      //           <td style='padding: 5px;'>
2534
+      //             <p><span style='font-weight: bold;'>当前干体重:${this.berforList[this.berforList.length-1].dry_weight}</span>&nbsp;<span class="">kg;</span></p>
2535
+      //             <p><span style='font-weight: bold;'>调整记录:${dry_weight_str}</span>&nbsp;<span class=""></span></p>
2536
+      //           </td>
2537
+      //         </tr>
2538
+      //         <tr>
2539
+      //           <td style="align-items: center;padding: 5px;">血管通路</td>
2540
+      //           <td style='padding: 5px;'>
2541
+      //             <p><span style='font-weight: bold;'>使用的血管通路:${vascularAccess_str }</span>&nbsp;<span class=""> &nbsp;&nbsp;建立时间:${ created_time }</span></p>
2542
+      //           </td>
2543
+      //         </tr>
2544
+      //         <tr>
2545
+      //           <td style="align-items: center;padding: 5px;">合并症/并发症</td>
2546
+      //           <td style='padding: 5px;'>
2547
+      //             <p><span style='font-weight: bold;'>合并症:</span>&nbsp;<span class="">无</span></p>
2548
+      //             <p><span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class="">${complication}</span></p>
2549
+      //           </td>
2550
+      //         </tr>
2551
+      //         <tr>
2552
+      //           <td style="align-items: center;padding: 5px;">检查结果</td>
2553
+      //           <td style='padding: 5px;'><span class="">无</span></td>
2554
+      //         </tr>
2555
+      //         <tr>
2556
+      //           <td style="align-items: center;padding: 5px;">检验结果</td>
2557
+      //           <td></td>
2558
+      //         </tr>
2559
+      //         <tr>
2560
+      //           <td style="align-items: center;padding: 5px;">医嘱用药</td>
2561
+      //           <td  class='' style="padding: 0;">
2562
+      //             <p style="display: flex;text-align: center;border-bottom: 1px solid black;"><span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
2563
+      //           </td>
2564
+      //         </tr>
2565
+
2566
+
2567
+      //         <tr>
2568
+      //           <td style="align-items: center;padding: 5px;">透析总评价和建议</td>
2569
+      //           <td style='padding: 5px;'>
2570
+      //             <p class="">1、血压控制不良,随时监测血压,并加用口服降压药,将血压控制在正常范围;</p>
2571
+      //             <p class="">2、透析间期体重增加稳定,继续保持;</p>
2572
+      //             <p class="">3、血液透析时血流量达标,注意保护内瘘避免狭窄;</p>
2573
+      //           </td>
2574
+      //         </tr>
2575
+      //         <tr>
2576
+      //           <td style="align-items: center;padding: 5px;">医师签名</td>
2577
+      //           <td style='padding: 5px;'>
2578
+      //             <p class=""></p>
2579
+      //           </td>
2580
+      //         </tr>
2581
+      //       </table>`
2582
+      const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
2583
+              <tr><th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date}~${this.end_date})</th></tr>
2496 2584
               <tr>
2497 2585
                 <td width="130" style="padding: 5px;">基本信息</td>
2498 2586
                 <td style="padding: 5px;">
@@ -2502,71 +2590,53 @@
2502 2590
               <tr>
2503 2591
                 <td style="align-items: center;padding: 5px;">透析处方</td>
2504 2592
                 <td style='padding:5px'>
2505
-                  <p style='font-weight: bold;'>总次数:${total_count}次 ;</p>
2506
-                  <p style='margin-bottom: 10px;' >其中;
2507
-                     ${hd_str}${hdf_str}${hdhp_str}${hp_str}${hf_str}${scuf_str}${iuf_str}${hfhd_str}${hfhdhp_str}${phf_str}${hdfhp_str}${crrt_str}${iuf_str}${uf_str}${hdjia_str}${ihdf_str}${hdgaotong_str}${cvvhd_str}${pe_str}
2508
-                    ${hpd_str}${hfd_str}${hdf100str}${hdf600str}${hdf1000str}${hdf80str}${hf16str}${hdwuganstr}${hdf17str}${hddianstr}${hd2str}
2509
-                  </p>
2510
-                  <p style='font-weight: bold;'>透析器:</p>
2511
-                  <p style='margin-bottom: 10px;'>
2512
-                     ${dialyzerPerfusionApparatusStr}${dialyzer_str}${dialysisStrainerStr}${dialysisIrrigationStr}
2513
-                  </p>
2514
-                  <p style='font-weight: bold;'>透析液处方:</p>
2515
-                  <p style='margin-bottom: 10px;'>
2516
-                    ${kalium}${sodium}${calcium}${bicarbonate}
2517
-                  </p>
2518
-                  <p style='font-weight: bold;'>抗凝方式:</p>
2519
-                  <p >${anticoagulant_str}</p>
2593
+                  <span style='font-weight: bold;'>总次数:${total_count}次 ;</span><br/>
2594
+                  <span>其中;${hd_str}${hdf_str}${hdhp_str}${hp_str}${hf_str}${scuf_str}${iuf_str}${hfhd_str}${hfhdhp_str}${phf_str}${hdfhp_str}${crrt_str}${iuf_str}${uf_str}${hdjia_str}${ihdf_str}${hdgaotong_str}${cvvhd_str}${pe_str}
2595
+                    ${hpd_str}${hfd_str}${hdf100str}${hdf600str}${hdf1000str}${hdf80str}${hf16str}${hdwuganstr}${hdf17str}${hddianstr}${hd2str}</span><br/>
2596
+                  <span style='font-weight: bold;'>透析器:</span><br/>
2597
+                  <span>${dialyzerPerfusionApparatusStr}${dialyzer_str}${dialysisStrainerStr}${dialysisIrrigationStr}</span><br/>
2598
+                  <span style='font-weight: bold;'>透析液处方:</span><br/>
2599
+                  <span>${kalium}${sodium}${calcium}${bicarbonate}</span><br/>
2600
+                  <span style='font-weight: bold;'>抗凝方式:</span><br/>
2601
+                  <span >${anticoagulant_str}</span>
2520 2602
                 </td>
2521 2603
               </tr>
2522 2604
               <tr>
2523 2605
                 <td style="align-items: center;padding: 5px;">透析情况</td>
2524 2606
                 <td style='padding:5px'>
2525
-                  <p>透析间期平均体重增加:${pingjun_weight}kg;</p>
2526
-                  <p>凝血:${dialysisCrruorStr};</p>
2527
-                  <p>平均血流量:${pingjun_blood_flow_volume}mL/min;最大血流量:${this.max_blood_flow_volume}mL/min;</p>
2528
-                  <p>平均超滤量:${pingjun_ultrafiltration_volume_total}ml/次;平均超滤率:${pingjun_ultrafiltration_rate_total}mL/h;</p>
2529
-                  <p><span style='font-weight: bold;'>透前血压:</span>&nbsp;<span class="">收缩压:${this.min_befor_systolic_blood_pressure}mmHg~${this.max_befor_systolic_blood_pressure}mmHg;舒张压:${this.min_befor_diastolic_blood_pressure}mmHg~${this.max_after_systolic_blood_pressure}mmHg;</span></p>
2530
-                  <p><span style='font-weight: bold;'>透后血压:</span>&nbsp;<span class="">收缩压:${this.min_after_systolic_blood_pressure}mmHg~${this.max_after_systolic_blood_pressure}mmHg;舒张压:${this.min_after_diastolic_blood_pressure}~${this.max_after_diastolic_blood_pressure}mmHg;</span></p>
2531
-                  <p><span style='font-weight: bold;'>透中最低血压:</span>&nbsp;<span class="">收缩压:${this.min_monitor_systolic_blood_pressure}mmHg~${this.max_monitor_systolic_blood_pressure}mmHg</span></p>
2532
-                  <p><span style='font-weight: bold;'>透中最高血压:</span>&nbsp;<span class="">舒张压:${this.min_monitor_diastolic_blood_pressure}mmHg~${this.max_monitor_diastolic_blood_pressure}mmHg;</span></p>
2607
+                  <span>透析间期平均体重增加:${pingjun_weight}kg;</span><br/>
2608
+                  <span>凝血:${dialysisCrruorStr};</span><br/>
2609
+                  <span>平均血流量:${pingjun_blood_flow_volume}mL/min;最大血流量:${this.max_blood_flow_volume}mL/min;</span><br/>
2610
+                  <span>平均超滤量:${pingjun_ultrafiltration_volume_total}ml/次;平均超滤率:${pingjun_ultrafiltration_rate_total}mL/h;</span><br/>
2611
+                  <span style='font-weight: bold;'>透前血压:</span>&nbsp;<span class="">收缩压:${this.min_befor_systolic_blood_pressure}mmHg~${this.max_befor_systolic_blood_pressure}mmHg;舒张压:${this.min_befor_diastolic_blood_pressure}mmHg~${this.max_after_systolic_blood_pressure}mmHg;</span><br/>
2612
+                  <span style='font-weight: bold;'>透后血压:</span>&nbsp;<span class="">收缩压:${this.min_after_systolic_blood_pressure}mmHg~${this.max_after_systolic_blood_pressure}mmHg;舒张压:${this.min_after_diastolic_blood_pressure}~${this.max_after_diastolic_blood_pressure}mmHg;</span><br/>
2613
+                  <span style='font-weight: bold;'>透中最低血压:</span>&nbsp;<span class="">收缩压:${this.min_monitor_systolic_blood_pressure}mmHg~${this.max_monitor_systolic_blood_pressure}mmHg</span><br/>
2614
+                  <span style='font-weight: bold;'>透中最高血压:</span>&nbsp;<span class="">舒张压:${this.min_monitor_diastolic_blood_pressure}mmHg~${this.max_monitor_diastolic_blood_pressure}mmHg;</span>
2533 2615
                 </td>
2534 2616
               </tr>
2535 2617
               <tr>
2536 2618
                 <td style="align-items: center;padding: 5px;">干体重</td>
2537 2619
                 <td style='padding: 5px;'>
2538
-                  <p>
2539
-                    <span style='font-weight: bold;'>当前干体重:${this.berforList[this.berforList.length-1].dry_weight}</span>&nbsp;<span class="">kg;</span>
2540
-                  </p>
2541
-                  <p>
2542
-                    <span style='font-weight: bold;'>调整记录:${dry_weight_str}</span>&nbsp;<span class=""></span>
2543
-                  </p>
2620
+                  <span style='font-weight: bold;'>当前干体重:${this.berforList[this.berforList.length-1].dry_weight}</span>&nbsp;<span class="">kg;</span>
2621
+                  <span style='font-weight: bold;'>调整记录:${dry_weight_str}</span>&nbsp;<span class=""></span>
2544 2622
                 </td>
2545 2623
               </tr>
2546 2624
               <tr>
2547 2625
                 <td style="align-items: center;padding: 5px;">血管通路</td>
2548 2626
                 <td style='padding: 5px;'>
2549
-                  <p>
2550
-                    <span style='font-weight: bold;'>使用的血管通路:${vascularAccess_str }</span>&nbsp;<span class=""> &nbsp;&nbsp;建立时间:${ created_time }</span>
2551
-                  </p>
2627
+                  <span style='font-weight: bold;'>使用的血管通路:${vascularAccess_str }</span>&nbsp;<span class=""> &nbsp;&nbsp;建立时间:${ created_time }</span>
2552 2628
                 </td>
2553 2629
               </tr>
2554 2630
               <tr>
2555 2631
                 <td style="align-items: center;padding: 5px;">合并症/并发症</td>
2556 2632
                 <td style='padding: 5px;'>
2557
-                  <p>
2558
-                    <span style='font-weight: bold;'>合并症:</span>&nbsp;<span class="">无</span>
2559
-                  </p>
2560
-                  <p>
2561
-                    <span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class="">${complication}</span>
2562
-                  </p>
2633
+                  <span style='font-weight: bold;'>合并症:</span>&nbsp;<span class="">无</span><br/>
2634
+                  <span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class="">${complication}</span>
2563 2635
                 </td>
2564 2636
               </tr>
2565 2637
               <tr>
2566 2638
                 <td style="align-items: center;padding: 5px;">检查结果</td>
2567
-                <td style='padding: 5px;'>
2568
-                  <span class="">无</span>
2569
-                </td>
2639
+                <td style='padding: 5px;'><span class="">无</span></td>
2570 2640
               </tr>
2571 2641
               <tr>
2572 2642
                 <td style="align-items: center;padding: 5px;">检验结果</td>
@@ -2575,8 +2645,7 @@
2575 2645
               <tr>
2576 2646
                 <td style="align-items: center;padding: 5px;">医嘱用药</td>
2577 2647
                 <td  class='' style="padding: 0;">
2578
-                  <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
2579
-                    <span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
2648
+                  <p style="display: flex;text-align: center;border-bottom: 1px solid black;"><span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
2580 2649
                 </td>
2581 2650
               </tr>
2582 2651
 
@@ -2584,9 +2653,9 @@
2584 2653
               <tr>
2585 2654
                 <td style="align-items: center;padding: 5px;">透析总评价和建议</td>
2586 2655
                 <td style='padding: 5px;'>
2587
-                  <p class="">1、血压控制不良,随时监测血压,并加用口服降压药,将血压控制在正常范围;</p>
2588
-                  <p class="">2、透析间期体重增加稳定,继续保持;</p>
2589
-                  <p class="">3、血液透析时血流量达标,注意保护内瘘避免狭窄;</p>
2656
+                  <span class="">1、血压控制不良,随时监测血压,并加用口服降压药,将血压控制在正常范围;</span><br/>
2657
+                  <span class="">2、透析间期体重增加稳定,继续保持;</span><br/>
2658
+                  <span class="">3、血液透析时血流量达标,注意保护内瘘避免狭窄;</span><br/>
2590 2659
                 </td>
2591 2660
               </tr>
2592 2661
               <tr>
@@ -2596,13 +2665,13 @@
2596 2665
                 </td>
2597 2666
               </tr>
2598 2667
             </table>`
2599
-          console.log('1111111111textcontent',this.start_date);
2668
+          
2600 2669
         this.textcontent = contents
2601 2670
         this.$nextTick(()=>{
2602 2671
           console.log('document.getElementById(editer)',document.getElementById('editer').getElementsByTagName('tbody')[0].children[9]);
2603 2672
           const iframeDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[9].children[1]
2604 2673
           const jiancDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[8].children[1]
2605
-          console.log('document.getElementById(editer)1111',jiancDoc);
2674
+          console.log('document.getElementById(editer)1111',iframeDoc,jiancDoc);
2606 2675
           if(this.Inspect.length<1){
2607 2676
             let newList = document.createElement('p');
2608 2677
             newList.style.cssText = 'padding: 5px;'
@@ -2726,8 +2795,8 @@
2726 2795
 
2727 2796
         this.$nextTick(()=>{
2728 2797
           const iframeDoc1 = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[9].children[1]
2729
-
2730 2798
           const jiancDoc1 = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[8].children[1]
2799
+          console.log('document.getElementById(editer)2222',jiancDoc1,iframeDoc1);
2731 2800
           jiancDoc1.getElementsByTagName('br')[0].remove()
2732 2801
           jiancDoc1.style.cssText='padding: 0'
2733 2802
             if(this.Inspect.length<1){
@@ -2850,7 +2919,7 @@
2850 2919
           }
2851 2920
         })
2852 2921
          this.AuToShow = true
2853
-
2922
+         console.log('document.getElementById(editer)1111',this.new_content);
2854 2923
        }
2855 2924
        })
2856 2925
       },