소스 검색

9月5,客户问题

yq1 9 달 전
부모
커밋
cb6cf01402

+ 274 - 319
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue 파일 보기

@@ -1,7 +1,6 @@
1 1
 <template>
2 2
   <div>
3 3
     <el-button type="primary" @click="checkData">一键核对</el-button>
4
-    <el-button type="primary" @click="toUpload">一键上传</el-button>
5 4
 
6 5
     <div id="dialysis-print-box-1"  ref="pdfContent">
7 6
       <div
@@ -209,9 +208,7 @@
209 208
                     </div>
210 209
                   </div>
211 210
 
212
-                  <div class="row"
213
-                    style="padding: 2px 0; line-height: 23px; display: flex"
214
-                  > 
211
+                  <div class="row" style="padding: 2px 0; line-height: 23px; display: flex"> 
215 212
                     <!-- <div class="inline_block" style=" flex: 1">
216 213
                       透析期间:
217 214
                       <div
@@ -276,14 +273,6 @@
276 273
                         {{ predialysis.complication ? predialysis.complication : "/" }}
277 274
                       </div>
278 275
                     </div>
279
-                    <div class="inline_block" style=" flex: 1">
280
-                      跌倒评估:
281
-                      <div
282
-                        style="width: 50%; text-align: center;display: inline-block;border-bottom: 1px solid #999;"
283
-                      >
284
-                        {{ receiverTreatmentAccess.score ? receiverTreatmentAccess.score : '/' }}
285
-                      </div>
286
-                    </div>
287 276
                   </div>
288 277
 
289 278
                   <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
@@ -318,12 +307,12 @@
318 307
                       </div>kg
319 308
                     </div>
320 309
                     <div class="inline_block" style=" flex: 1">
321
-                      预增脱水量
322
-                      <div
323
-                        style="width: 50%; text-align: center;display: inline-block;border-bottom: 1px solid #999;"
310
+                      <!-- 合并症
311
+                      <div class="under_line"
312
+                        style=" width: 50%;text-align: center; white-space: normal;"
324 313
                       >
325
-                         {{predialysis.dehydration?predialysis.dehydration:"" }}
326
-                      </div>L
314
+                        {{ predialysis.complication ? predialysis.complication : "/" }}
315
+                      </div> -->
327 316
                     </div>
328 317
                   </div>
329 318
                 </td>
@@ -445,7 +434,7 @@
445 434
                         }}
446 435
                       </div>
447 436
                     </div>
448
-                    <div class="inline_block" style="flex:1;">
437
+                    <div class="inline_block" style="flex:1;" v-if="prescription.mode_id ==2 || prescription.mode_id == 12">
449 438
                       实际置换量:
450 439
                       <div style="width: 50%;text-align: center;display: inline-block;border-bottom: 1px solid #999; ">
451 440
                         {{ afterdialysis.actual_displacement ? afterdialysis.actual_displacement : "/" }}
@@ -504,13 +493,13 @@
504 493
                       </div>kg
505 494
                     </div>
506 495
                     <div class="inline_block" style="flex:1;">
507
-                      透析中入量:
496
+                      <!-- 透析中入量:
508 497
                       <div style="width: 50%;text-align: center;display: inline-block;border-bottom: 1px solid #999; ">
509 498
                         {{ afterdialysis.dialysis_intakes
510 499
                             ? afterdialysis.dialysis_intakes
511 500
                             : "/"}}
512 501
                       </div>
513
-                      {{ getUnit(afterdialysis.dialysis_intakes_unit) }}
502
+                      {{ getUnit(afterdialysis.dialysis_intakes_unit) }} -->
514 503
                     </div>
515 504
                   </div>
516 505
                 </td>
@@ -550,36 +539,11 @@
550 539
                       <div class="under_line"
551 540
                         style="width: 80px; text-align: center; font-weight: 600;
552 541
                         "
553
-                      >
554
-                        <span v-if="!prescription.mode_id">/</span>
555
-                        <span v-if="prescription.mode_id == 1">HD</span>
556
-                        <span v-if="prescription.mode_id == 2">HDF</span>
557
-                        <span v-if="prescription.mode_id == 3">HD+HP</span>
558
-                        <span v-if="prescription.mode_id == 4">HP</span>
559
-                        <span v-if="prescription.mode_id == 5">HF</span>
560
-                        <span v-if="prescription.mode_id == 6">SCUF</span>
561
-                        <span v-if="prescription.mode_id == 7">IUF</span>
562
-                        <span v-if="prescription.mode_id == 8">HFHD</span>
563
-                        <span v-if="prescription.mode_id == 9">HFHD+HP</span>
564
-                        <span v-if="prescription.mode_id == 10">PHF</span>
565
-                        <span v-if="prescription.mode_id == 11">HFR</span>
566
-                        <span v-if="prescription.mode_id == 12">HDF+HP</span>
567
-                        <span v-if="prescription.mode_id == 13">CRRT</span>
568
-                        <span v-if="prescription.mode_id == 14">腹水回输</span>
569
-                        <span v-if="prescription.mode_id == 15">HD前置换</span>
570
-                        <span v-if="prescription.mode_id == 16">HD后置换</span>
571
-                        <span v-if="prescription.mode_id == 17">HDF前置换</span>
572
-                        <span v-if="prescription.mode_id == 18">HDF后置换</span>
573
-                        <span v-if="prescription.mode_id == 19">IUF+HD</span>
574
-                        <span v-if="prescription.mode_id == 22">血浆胆红素吸附+HDF</span>
575
-                        <span v-if="prescription.mode_id == 23">血浆胆红素吸附</span>
576
-                        <span v-if="prescription.mode_id == 24">I-HDF</span>
577
-                        <span v-if="prescription.mode_id == 25">HD高通</span>
578
-                        <span v-if="prescription.mode_id == 29">PE</span>
579
-                        <span v-if="prescription.mode_id == 30">血浆胆红素吸附+HP</span>
542
+                      > 
543
+                        {{ prescription.mode ? prescription.mode :'' }}
580 544
                       </div>
581 545
                     </div>
582
-                    <div class="inline_block" style="flex: 1">
546
+                    <div class="inline_block" style="flex: 1" v-if="prescription.mode_id ==2 || prescription.mode_id == 12">
583 547
                       置换方式:
584 548
                       <div class="under_line" style="width: 80px; text-align: center">
585 549
                         {{
@@ -587,7 +551,7 @@
587 551
                         }}
588 552
                       </div>
589 553
                     </div>
590
-                    <div class="inline_block" style="flex: 1">
554
+                    <div class="inline_block" style="flex: 1" v-if="prescription.mode_id ==2 || prescription.mode_id == 12">
591 555
                       置换总量:
592 556
                       <div class="under_line" style="width: 70px; text-align: center">
593 557
                         <span > {{
@@ -609,16 +573,6 @@
609 573
                         {{ predialysis.blood_access_part_opera_name }}
610 574
                       </div>
611 575
                     </div>
612
-                    <div class="inline_block" style="flex: 1">
613
-                      血流量:
614
-                      <div class="under_line" style="width: 50px; text-align: center">
615
-                        {{ prescription.blood_flow_volume ? prescription.blood_flow_volume : "/" }}
616
-                      </div>ml/min
617
-                    </div>
618
-                    
619
-                  </div>
620
-
621
-                  <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
622 576
                     <div class="inline_block" style="flex: 2">
623 577
                       人工肾装置:
624 578
                       <div class="under_line" style="width: 50%; text-align: center">
@@ -627,24 +581,12 @@
627 581
                           prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : ""
628 582
                         }}
629 583
                       </div>
630
-                    </div>
631
-                     <div class="inline_block" style="flex: 1">
632
-                      膜面积:
633
-                      <div class="under_line" style="width: 50px; text-align: center">
634
-                      
635
-                      </div>㎡
636
-                    </div>
637
-                    <div class="inline_block" style="flex: 1">
638
-                      膜材质:
639
-                      <div class="under_line" style="width: 80px; text-align: center">
640
-                        
641
-                      </div>
642 584
                     </div>
643 585
                     <div class="inline_block" style="flex: 1">
644
-                      透析机型
645
-                      <div class="under_line" style="width: 80px; text-align: center">
646
-                        {{ predialysis.machine_type ? predialysis.machine_type : '' }}
647
-                      </div>
586
+                      血流量:
587
+                      <div class="under_line" style="width: 50px; text-align: center">
588
+                        {{ prescription.blood_flow_volume ? prescription.blood_flow_volume : "/" }}
589
+                      </div>ml/min
648 590
                     </div>
649 591
                     <div class="inline_block" style="flex: 1">
650 592
                       机号:
@@ -652,7 +594,6 @@
652 594
                         {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0
653 595
                         ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
654 596
                       </div>
655
-                      
656 597
                     </div>
657 598
                   </div>
658 599
 
@@ -675,7 +616,8 @@
675 616
                     <div
676 617
                       class="inline_block"
677 618
                       style="margin-left: 20px"
678
-                      v-if="prescription.anticoagulant != 5"
619
+                      v-if="prescription.anticoagulant != 5 && 
620
+                      prescription.anticoagulant !=1 && prescription.anticoagulant !=''"
679 621
                     >
680 622
                       首剂:
681 623
                       <div
@@ -706,7 +648,7 @@
706 648
                     <div class="inline_block" style="margin-left: 20px">
707 649
                       维持:
708 650
                       <div
709
-                        v-if="prescription.anticoagulant == 1"
651
+                        v-if="prescription.anticoagulant != 1 && prescription.anticoagulant !=''"
710 652
                         class="under_line"
711 653
                         style="width: 50px; text-align: center"
712 654
                       >
@@ -716,8 +658,8 @@
716 658
                             : "/"
717 659
                         }}
718 660
                       </div>
719
-                      <div
720
-                        v-if="prescription.anticoagulant != 1"
661
+                      <!-- <div
662
+                        v-if="prescription.anticoagulant != 1 && prescription.anticoagulant !=''"
721 663
                         class="under_line"
722 664
                         style="width: 50px; text-align: center"
723 665
                       >
@@ -726,7 +668,7 @@
726 668
                             ? prescription.anticoagulant_weichi
727 669
                             : "0"
728 670
                         }}
729
-                      </div>
671
+                      </div> -->
730 672
 
731 673
                         <span v-if="prescription.anticoagulant == 5">ml/h</span>
732 674
                           <span v-if="prescription.anticoagulant == 4">mg/h</span>
@@ -742,10 +684,8 @@
742 684
                           <span v-if="prescription.anticoagulant == 13">iu/h</span>
743 685
 
744 686
                     </div>
745
-                    <div
746
-                      class="inline_block"
747
-                      style="margin-left: 20px"
748
-                      v-if="prescription.anticoagulant == 5"
687
+                    <div class="inline_block" style="margin-left: 20px"
688
+                      v-if="prescription.anticoagulant == 5 "
749 689
                     >
750 690
                       钙名称:
751 691
                       <div
@@ -759,9 +699,7 @@
759 699
                         }}
760 700
                       </div>
761 701
                     </div>
762
-                    <div
763
-                      class="inline_block"
764
-                      style="margin-left: 20px"
702
+                    <div class="inline_block" style="margin-left: 20px"
765 703
                       v-if="prescription.anticoagulant == 5"
766 704
                     >
767 705
                       钙剂量:
@@ -777,10 +715,9 @@
777 715
                       </div>
778 716
                       ml
779 717
                     </div>
780
-                    <div
781
-                      class="inline_block"
782
-                      style="margin-left: 20px"
783
-                      v-if="prescription.anticoagulant != 5"
718
+                    <div class="inline_block" style="margin-left: 20px"
719
+                      v-if="prescription.anticoagulant != 5 && 
720
+                      prescription.anticoagulant != 1 && prescription.anticoagulant !=''"
784 721
                     >
785 722
                       总量:
786 723
                       <div
@@ -807,7 +744,12 @@
807 744
                       <span v-if="prescription.anticoagulant == 13">iu</span>
808 745
                    
809 746
                     </div>
810
-                    
747
+                    <div class="inline_block" style="flex: 1">
748
+                      透析机型:
749
+                      <div class="under_line" style="width: 80px; text-align: center">
750
+                        {{ predialysis.machine_type ? predialysis.machine_type : '' }}
751
+                      </div>
752
+                    </div>
811 753
                   </div>
812 754
 
813 755
                   <div class="row" style="padding: 2px 0; line-height: 23px">
@@ -1302,7 +1244,7 @@
1302 1244
 
1303 1245
                     <div class="inline_block" style="flex: 2">
1304 1246
                       透后宣教:
1305
-                      <div class="under_line" style="width: 70%; text-align: center">
1247
+                      <div class="under_line" style="width: 80%; text-align: center;white-space: normal;">
1306 1248
                         {{ summary.mission ? summary.mission : '/' }}
1307 1249
                       </div>                     
1308 1250
                     </div>
@@ -1786,61 +1728,11 @@ export default {
1786 1728
       },
1787 1729
       org_id: 0,
1788 1730
       projectsOne: [],
1731
+      checkDate:[{value:'this.predialysis.temperature',label:'透前体温未填'},
1732
+                  {value:'this.predialysis.pulse_frequency',label:'透前脉搏未填'}],
1789 1733
     };
1790 1734
   },
1791 1735
   methods: {
1792
-    toUpload() {
1793
-
1794
-         let dom = document.getElementById("dialysis-print-box-1")
1795
-         //调用方法下载
1796
-         html2canvas(dom, {
1797
-           useCORS: true, //允许跨域
1798
-           allowTaint: false,
1799
-           logging: false,
1800
-           letterRendering: true,
1801
-           ddpi: window.devicePixelRatio * 4, //将分辨率提高到特定的DPI 提高四倍
1802
-           scale: 4, //按比例增加分辨率
1803
-           background: '#fff',//pdf背景色为白色,默认是黑色的
1804
-         }).then((canvas) => {
1805
-           //返回图片dataURL,参数:图片格式和清晰度(0-1)
1806
-           var pageData = canvas.toDataURL('image/jpeg', 1.0);
1807
-
1808
-           //方向默认竖直,尺寸ponits,格式a4[595.28,841.89]
1809
-           var pdf = new jsPDF('', 'pt', 'a4');
1810
-
1811
-           //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
1812
-           //  pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
1813
-           pdf.addImage(pageData, 'JPEG', 0, 0, 555.28, 592.28 / canvas.width * canvas.height);
1814
-
1815
-           console.log("pdf222222222222222222",pdf)
1816
-
1817
-           var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
1818
-           // console.log("base63",newBase64Data)
1819
-           const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
1820
-           console.log("blobwoowowowwo",blob)
1821
-           this.openPdf(blob);
1822
-
1823
-           // var data = {
1824
-           //   name:newBase64Data,
1825
-           // }
1826
-           // UploadPrintOrder(data).then(response=>{
1827
-           //   if(response.data.state == 1){
1828
-           //     var sign =  response.data.data.sign
1829
-           //     console.log("SIGNWWOOWWO")
1830
-           //     var pdfBase64 = response.data.data.pdfBase64
1831
-           //     console.log("pdfBase64",pdfBase64)
1832
-           //     this.$message.success("保存成功!")
1833
-           //     const blob = this.base64ToBlob(pdfBase64, 'application/pdf');
1834
-           //     this.openPdf(blob);
1835
-           //   }
1836
-           // })
1837
-
1838
-           // this.viewPdf(newBase64Data)
1839
-           //保存到pdf,名字是stone
1840
-           // pdf.save('stone.pdf');
1841
-
1842
-         });
1843
-       },
1844 1736
 
1845 1737
      viewPdf(content) {
1846 1738
        console.log("content",content);
@@ -1927,219 +1819,279 @@ export default {
1927 1819
     },
1928 1820
 
1929 1821
     checkData() {
1822
+      var checkDate =[]
1930 1823
       if (this.predialysis.temperature == '') {
1931
-        this.$message.error("透前体温未填");
1932
-      } else if (this.predialysis.pulse_frequency == "") {
1933
-        this.$message.error("透前脉搏未填");
1934
-      } else if (this.predialysis.breathing_rate == "") {
1935
-        this.$message.error("透前呼吸频率未填");
1936
-      } else if (
1824
+        const obj = "透前体温"
1825
+        checkDate.push(obj)
1826
+      } if (this.predialysis.pulse_frequency == "") {
1827
+        const obj1 = "透前脉搏"
1828
+        checkDate.push(obj1)
1829
+      } if (this.predialysis.breathing_rate == "") {
1830
+         const obj2 = "透前呼吸频率"
1831
+         checkDate.push(obj2)
1832
+      } if (
1937 1833
         this.predialysis.systolic_blood_pressure == 0 ||
1938 1834
         this.predialysis.diastolic_blood_pressure == 0
1939 1835
       ) {
1940
-        this.$message.error("透前血压未填完整");
1941
-      } 
1942
-      // else if (this.predialysis.dialysis_interphase == "") {
1943
-      //   this.$message.error("透析期间未填");
1944
-      // } 
1945
-      else if (this.predialysis.symptom_before_dialysis == "") {
1946
-        this.$message.error("透前症状未填");
1947
-      } else if (this.predialysis.internal_fistula == "") {
1948
-        this.$message.error("透前内瘘未填");
1949
-      } else if (this.predialysis.catheter == "") {
1950
-        this.$message.error("透前导管未填");
1951
-      } else if (this.predialysis.complication == "" ) {
1952
-        this.$message.error("合并症未填");
1953
-      } else if (this.receiverTreatmentAccess.score == "") {
1954
-        this.$message.error("跌倒评估未填");
1955
-      } else if (this.predialysis.dry_weight == '' ) {
1956
-        this.$message.error("干体重未填");
1957
-      } else if ( this. predialysis.weight_before == '') {
1958
-        this.$message.error("透前体重未填");
1959
-      } else if (this.predialysis.dehydration == '') {
1960
-        this.$message.error("预增脱水量未填");
1961
-      } else if (this.afterdialysis.temperature == '') {
1962
-        this.$message.error("透后体温未填");
1963
-      } else if (this.afterdialysis.pulse_frequency == "") {
1964
-        this.$message.error("透后脉搏未填");
1965
-      } else if (this.afterdialysis.breathing_rate == "") {
1966
-        this.$message.error("透后呼吸频率未填");
1967
-      } else if (
1836
+        const obj3 = "透前血压"
1837
+        checkDate.push(obj3)
1838
+      } if (this.predialysis.symptom_before_dialysis == "") {
1839
+        const obj5 = "透前症状"
1840
+        checkDate.push(obj5)
1841
+      } if (this.predialysis.internal_fistula == "" || this.predialysis.catheter == "") {
1842
+        const obj6 = "透前内瘘,导管"
1843
+        checkDate.push(obj6)
1844
+      } if (this.predialysis.complication == "" ) {
1845
+        const obj7 = "合并症"
1846
+        checkDate.push(obj7)
1847
+      } if (this.predialysis.dry_weight == '' ) {
1848
+        const obj8 = "干体重"
1849
+        checkDate.push(obj8)
1850
+      } if ( this. predialysis.weight_before == '') {
1851
+        const obj9 = "透前体重"
1852
+        checkDate.push(obj9)
1853
+      } if (this.afterdialysis.temperature == '') {
1854
+        const obj10 = "透后体温"
1855
+        checkDate.push(obj10)
1856
+      } if (this.afterdialysis.pulse_frequency == "") {
1857
+        const obj11 = "透后脉搏"
1858
+        checkDate.push(obj11)
1859
+      } if (this.afterdialysis.breathing_rate == "") {
1860
+        const obj12 = "透后呼吸频率"
1861
+        checkDate.push(obj12)
1862
+      } if (
1968 1863
         this.afterdialysis.systolic_blood_pressure == 0 ||
1969 1864
         this.afterdialysis.diastolic_blood_pressure == 0
1970 1865
       ) {
1971
-        this.$message.error("透后血压未填完整");
1972
-      } else if (this.afterdialysis.cruor == "") {
1973
-        this.$message.error("凝血未填");
1974
-      } else if (this.afterdialysis.symptom_after_dialysis == "") {
1975
-        this.$message.error("透后症状未填");
1976
-      } else if (this.afterdialysis.internal_fistula == "") {
1977
-        this.$message.error("透后内瘘未填");
1978
-      } else if (this.afterdialysis.catheter == "") {
1979
-        this.$message.error("透后导管未填");
1980
-      } else if (this.afterdialysis.complication == 0) {
1981
-        this.$message.error("并发症未填");
1982
-      } else if (this.afterdialysis.actual_displacement == 0) {
1983
-        this.$message.error("实际置换量未填");
1984
-      } else if (this.afterdialysis.actual_ultrafiltration == 0) {
1985
-        this.$message.error("实际超滤量未填");
1986
-      } else if (this.afterdialysis.weight_after == 0) {
1987
-        this.$message.error("透后体重未填");
1988
-      } else if (this.afterdialysis.weight_loss == 0) {
1989
-        this.$message.error("体重减少未填");
1990
-      } else if (this.afterdialysis.dialysis_intakes == 0) {
1991
-        this.$message.error("透析中入量未填");
1992
-      } else if (this.prescription.target_ultrafiltration == 0) {
1993
-        this.$message.error("处方脱水量未填");
1994
-      } else if (this.afterdialysis.actual_ultrafiltration == 0) {
1995
-        this.$message.error("超滤总量未填");
1996
-      } else if (this.prescription.dialysis_duration_hour == 0) {
1997
-        this.$message.error("透析时长未填");
1998
-      } else if (this.prescription.mode_id == 0) {
1999
-        this.$message.error("透析方式未填");
2000
-      } else if (this.prescription.displace_liqui_part == '') {
2001
-        this.$message.error("置换方式未填");
2002
-      } else if (this.prescription.displace_liqui_value == 0) {
2003
-        this.$message.error("置换总量未填");
2004
-      } else if (this.predialysis.blood_access_part_opera_name == ''){
2005
-        this.$message.error('血管通路未填');
2006
-      } else if (this.prescription.blood_flow_volume == 0) {
2007
-        this.$message.error("血流量未填");
2008
-      } else if (
1866
+        const obj13 = "透后血压"
1867
+        checkDate.push(obj13)
1868
+      } if (this.afterdialysis.cruor == "") {
1869
+        const obj14 = "凝血"
1870
+        checkDate.push(obj14)
1871
+      } if (this.afterdialysis.symptom_after_dialysis == "") {
1872
+        const obj15 = "透后症状"
1873
+        checkDate.push(obj15)
1874
+      } if (this.afterdialysis.internal_fistula == "" || this.afterdialysis.catheter == "") {
1875
+        const obj16 = "透后内瘘,导管"
1876
+        checkDate.push(obj16)
1877
+      }  if (this.afterdialysis.complication == 0) {
1878
+        const obj17 = "并发症"
1879
+        checkDate.push(obj17)
1880
+      } if (this.afterdialysis.actual_displacement == 0 && 
1881
+        (this.prescription.mode_id ==2 || this.prescription.mode_id ==12)) {
1882
+        const obj18 = "实际置换量"
1883
+        checkDate.push(obj18)
1884
+      } if (this.afterdialysis.actual_ultrafiltration == 0) {
1885
+        const obj19 = "实际超滤量"
1886
+        checkDate.push(obj19)
1887
+      } if (this.afterdialysis.weight_after == 0) {
1888
+        const obj20 = "透后体重"
1889
+        checkDate.push(obj20)
1890
+      } if (this.afterdialysis.weight_loss == 0) {
1891
+        const obj21 = "体重减少"
1892
+        checkDate.push(obj21)
1893
+      } if (this.prescription.target_ultrafiltration == 0) {
1894
+        const obj22 = "处方脱水量"
1895
+        checkDate.push(obj22)
1896
+      } if (this.afterdialysis.actual_ultrafiltration == 0) {
1897
+        const obj23 = "超滤总量"
1898
+        checkDate.push(obj23)
1899
+      } if (this.prescription.dialysis_duration_hour == 0) {
1900
+        const obj24 = "透析时长"
1901
+        checkDate.push(obj24)
1902
+      } if (this.prescription.mode == '') {
1903
+        const obj25 = "透析方式"
1904
+        checkDate.push(obj25)
1905
+      } if (this.prescription.displace_liqui_part == '' && 
1906
+      (this.prescription.mode_id ==2 ||this.prescription.mode_id ==12)) {
1907
+        const obj26 = "置换方式"
1908
+        checkDate.push(obj26)
1909
+      } if (this.prescription.displace_liqui_value == 0 && 
1910
+      (this.prescription.mode_id ==2 ||this.prescription.mode_id ==12)) {
1911
+        const obj27 = "置换总量"
1912
+        checkDate.push(obj27)
1913
+      } if (this.predialysis.blood_access_part_opera_name == ''){
1914
+        const obj28 = "血管通路"
1915
+        checkDate.push(obj28)
1916
+      } if (this.prescription.blood_flow_volume == 0) {
1917
+        const obj29 = "血流量"
1918
+        checkDate.push(obj29)
1919
+      } if (
2009 1920
         this.prescription.dialysis_irrigation == '' &&
2010 1921
         this.prescription.dialysis_dialyszers == ''
2011 1922
       ){
2012
-        this.$message.error('人工肾装置未填');
2013
-      } else if (this.predialysis.machine_type == 0) {
2014
-        this.$message.error("透析机型未填");
2015
-      } else if (this.dialysisOrder.DeviceNumber.number == 0) {
2016
-        this.$message.error("机号未填");
2017
-      } else if (this.prescription.anticoagulant_name == 0) {
2018
-        this.$message.error("抗凝剂未填");
2019
-      } else if (this.prescription.anticoagulant_shouji == 0) {
2020
-        this.$message.error("首剂未填");
2021
-      } else if (this.prescription.anticoagulant_weichi == 0) {
2022
-        this.$message.error("维持未填");
2023
-      } else if (this.prescription.anticoagulant_zongliang == 0) {
2024
-        this.$message.error("总量未填");
2025
-      } else if (this.prescription.calcium == 0) {
2026
-        this.$message.error("钙未填");
2027
-      } else if (this.prescription.sodium == 0) {
2028
-        this.$message.error("钠未填");
2029
-      } else if (this.prescription.kalium == 0) {
2030
-        this.$message.error("钾未填");
2031
-      } else if (this.prescription.bicarbonate == 0) {
2032
-        this.$message.error("碳酸氢根未填");
2033
-      } else if (this.prescription.dialysate_flow == 0) {
2034
-        this.$message.error("透析液流量未填");
2035
-      } else if (
1923
+        const obj30 = "人工肾装置"
1924
+        checkDate.push(obj30)
1925
+      } if (this.predialysis.machine_type == 0) {
1926
+        const obj31 = "透析机型"
1927
+        checkDate.push(obj31)
1928
+      } if (this.dialysisOrder.DeviceNumber.number == 0) {
1929
+        const obj32 = "机号"
1930
+        checkDate.push(obj32)
1931
+      } if (this.prescription.anticoagulant_name == 0) {
1932
+        const obj33 = "抗凝剂"
1933
+        checkDate.push(obj33)
1934
+      } if (this.prescription.anticoagulant_shouji == 0 && 
1935
+        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
1936
+      ) {
1937
+        const obj34 = "首剂"
1938
+        checkDate.push(obj34)
1939
+      } if (this.prescription.anticoagulant_weichi == 0 &&
1940
+        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
1941
+      ) {
1942
+        const obj35 = "维持"
1943
+        checkDate.push(obj35)
1944
+      } if (this.prescription.anticoagulant_zongliang == 0 && 
1945
+        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !='' && prescription.anticoagulant != 5
1946
+      ) {
1947
+        const obj36 = "总量"
1948
+        checkDate.push(obj36)
1949
+      } if (this.prescription.calcium == 0) {
1950
+        const obj37 = "钙"
1951
+        checkDate.push(obj37)
1952
+      } if (this.prescription.sodium == 0) {
1953
+        const obj38 = "钠"
1954
+        checkDate.push(obj38)
1955
+      } if (this.prescription.kalium == 0) {
1956
+        const obj39 = "钾"
1957
+        checkDate.push(obj39)
1958
+      } if (this.prescription.bicarbonate == 0) {
1959
+        const obj40 = "碳酸氢根"
1960
+        checkDate.push(obj40)
1961
+      } if (this.prescription.dialysate_flow == 0) {
1962
+        const obj41 = "透析液流量"
1963
+        checkDate.push(obj41)
1964
+      } if (
2036 1965
         this.prescription.anticoagulant_gaimingcheng == "" &&
2037 1966
         this.prescription.anticoagulant == 5
2038 1967
       ) {
2039
-        this.$message.error("钙名称未填");
2040
-      } else if (
1968
+        const obj42 = "钙名称"
1969
+        checkDate.push(obj42)
1970
+      } if (
2041 1971
         this.prescription.anticoagulant_gaijiliang == "" &&
2042 1972
         this.prescription.anticoagulant == 5
2043 1973
       ) {
2044
-        this.$message.error("钙剂量未填");
2045
-      } else if (
1974
+        const obj43 = "钙剂量"
1975
+        checkDate.push(obj43)
1976
+      } if (
2046 1977
         this.afterdialysis.actual_treatment_hour == 0 &&
2047 1978
         this.afterdialysis.actual_treatment_minute == 0
2048 1979
       ) {
2049
-        this.$message.error("实际治疗时间未填");
2050
-      } else if (this.summary.mission == 0) {
2051
-        this.$message.error("透后宣教未填");
2052
-      } else if (this.summary.dialysis_summary == "") {
2053
-        this.$message.error("透析小结未填");
2054
-      } else if (
1980
+        const obj44 = "实际治疗时间"
1981
+        checkDate.push(obj44)
1982
+      } if (this.summary.mission == 0) {
1983
+        const obj45 = "透后宣教"
1984
+        checkDate.push(obj45)
1985
+      } if (this.summary.dialysis_summary == "") {
1986
+        const obj46 = "透析小结"
1987
+        checkDate.push(obj46)
1988
+      } if (
2055 1989
         this.dialysisOrder == null ||
2056 1990
         this.dialysisOrder.puncture_nurse == 0
2057 1991
       ) {
2058
-        this.$message.error("穿刺护士未填");
2059
-      } else if (
1992
+        const obj47 = "穿刺护士"
1993
+        checkDate.push(obj47)
1994
+      } if (
2060 1995
         this.dialysisOrder == null ||
2061 1996
         this.dialysisOrder.start_nurse == 0
2062 1997
       ) {
2063
-        this.$message.error("治疗护士未填");
2064
-      } else if (this.dialysisOrder == null && this.check.creater == 0) {
2065
-        this.$message.error("核对人员未填");
1998
+        const obj48 = "治疗护士"
1999
+        checkDate.push(obj48)
2000
+      } if (this.dialysisOrder == null && this.check.creater == 0) {
2001
+        const obj49 = "核对人员"
2002
+        checkDate.push(obj49)
2066 2003
       } else if (
2067 2004
         this.dialysisOrder != null &&
2068 2005
         this.dialysisOrder.start_nurse == this.check.modifier &&
2069 2006
         this.check.creater == 0
2070 2007
       ) {
2071
-        this.$message.error("核对人员未填");
2008
+        const obj49 = "核对人员"
2009
+        checkDate.push(obj49)
2072 2010
       } else if (
2073 2011
         this.dialysisOrder != null &&
2074 2012
         this.dialysisOrder.start_nurse == this.check.creater &&
2075 2013
         this.check.modifier == 0
2076 2014
       ) {
2077
-        this.$message.error("核对人员未填");
2015
+        const obj49 = "核对人员"
2016
+        checkDate.push(obj49)
2078 2017
       } else if (
2079 2018
         this.dialysisOrder != null &&
2080 2019
         this.dialysisOrder.start_nurse != this.check.creater &&
2081 2020
         this.dialysisOrder.start_nurse != this.check.modifier &&
2082 2021
         this.check.creater == 0
2083 2022
       ) {
2084
-        this.$message.error("核对人员未填");
2085
-      } else if (
2023
+        const obj49 = "核对人员"
2024
+        checkDate.push(obj49)
2025
+      } if (
2086 2026
         this.dialysisOrder == null ||
2087 2027
         this.dialysisOrder.finish_nurse == 0
2088 2028
       ) {
2089
-        this.$message.error("下机护士未填");
2090
-      } else if (this.prescription.creater == 0) {
2091
-        this.$message.error("治疗医生未填");
2092
-      } else if (this.tableAdvice.length > 0) {
2093
-        let num = 0;
2094
-        this.tableAdvice.map((item) => {
2095
-          if (item.id > 0 && (item.created_time || item.start_time)) {
2096
-            this.users.map((it) => {
2097
-              if (it.id == item.advice_doctor) {
2098
-                if (it.user_type == 3) {
2099
-                  num++;
2100
-                  this.$message.closeAll();
2101
-                  this.$message.error("存在不是医生保存的医嘱");
2102
-                } else if (
2103
-                  it.id == item.execution_staff &&
2104
-                  item.execution_staff > 0
2105
-                ) {
2106
-                  if (it.user_type == 2) {
2107
-                    num++;
2108
-                    this.$message.closeAll();
2109
-                    this.$message.error("存在不是护士执行的医嘱");
2110
-                  }
2111
-                } else if (it.id == item.checker && item.checker > 0) {
2112
-                  if (it.user_type == 2) {
2113
-                    num++;
2114
-                    this.$message.closeAll();
2115
-                    this.$message.error("存在不是护士核对的医嘱");
2116
-                  }
2117
-                }
2118
-              } else if (
2119
-                it.id == item.execution_staff &&
2120
-                item.execution_staff > 0
2121
-              ) {
2122
-                if (it.user_type == 2) {
2123
-                  num++;
2124
-                  this.$message.closeAll();
2125
-                  this.$message.error("存在不是护士执行的医嘱");
2126
-                }
2127
-              } else if (it.id == item.checker && item.checker > 0) {
2128
-                if (it.user_type == 2) {
2129
-                  num++;
2130
-                  this.$message.closeAll();
2131
-                  this.$message.error("存在不是护士核对的医嘱");
2132
-                }
2133
-              }
2134
-            });
2029
+        const obj50 = "下机护士"
2030
+        checkDate.push(obj50)
2031
+      } if (this.prescription.creater == 0) {
2032
+        const obj51 = "治疗医生"
2033
+        checkDate.push(obj51)
2034
+      } 
2035
+      if(this.tableAdvice.length > 0){
2036
+        this.tableAdvice.map((item) =>{
2037
+          if(item.id > 0 && (item.created_time || item.start_time)){
2038
+            if(item.execution_staff ==0 || item.checker ==0){
2039
+              const obj52 = '执行人员,核对人员'
2040
+              checkDate.push(obj52)
2041
+            }
2135 2042
           }
2136
-        });
2137
-        if (num == 0) {
2138
-          this.$message.success("核对完成");
2139
-        }
2140
-      } else {
2141
-        this.$message.success("核对完成");
2043
+        })
2142 2044
       }
2045
+      // if (this.tableAdvice.length > 0) {
2046
+      //   let num = 0;
2047
+      //   this.tableAdvice.map((item) => {
2048
+      //     if (item.id > 0 && (item.created_time || item.start_time)) {
2049
+      //       this.users.map((it) => {
2050
+      //         if (it.id == item.advice_doctor) {
2051
+      //           if (it.user_type == 3) {
2052
+      //             num++;
2053
+      //             this.$message.closeAll();
2054
+      //             this.$message.error("存在不是医生保存的医嘱");
2055
+      //           } else if (
2056
+      //             it.id == item.execution_staff &&
2057
+      //             item.execution_staff > 0
2058
+      //           ) {
2059
+      //             if (it.user_type == 2) {
2060
+      //               num++;
2061
+      //               this.$message.closeAll();
2062
+      //               this.$message.error("存在不是护士执行的医嘱");
2063
+      //             }
2064
+      //           } else if (it.id == item.checker && item.checker > 0) {
2065
+      //             if (it.user_type == 2) {
2066
+      //               num++;
2067
+      //               this.$message.closeAll();
2068
+      //               this.$message.error("存在不是护士核对的医嘱");
2069
+      //             }
2070
+      //           }
2071
+      //         } else if (
2072
+      //           it.id == item.execution_staff &&
2073
+      //           item.execution_staff > 0
2074
+      //         ) {
2075
+      //           if (it.user_type == 2) {
2076
+      //             num++;
2077
+      //             this.$message.closeAll();
2078
+      //             this.$message.error("存在不是护士执行的医嘱");
2079
+      //           }
2080
+      //         } else if (it.id == item.checker && item.checker > 0) {
2081
+      //           if (it.user_type == 2) {
2082
+      //             num++;
2083
+      //             this.$message.closeAll();
2084
+      //             this.$message.error("存在不是护士核对的医嘱");
2085
+      //           }
2086
+      //         }
2087
+      //       });
2088
+      //     }
2089
+      //   });
2090
+      //   if (num == 0) {
2091
+      //     this.$message.success("核对完成");
2092
+      //   }
2093
+      // }
2094
+      this.getcheckData(checkDate)
2143 2095
     },
2144 2096
     getDisplaceLiquiPart: function (val) {
2145 2097
       let displace_liqui_part_name = "/";
@@ -2385,7 +2337,7 @@ export default {
2385 2337
           this.afterdialysis.complications_other.join(",");
2386 2338
 
2387 2339
         this.prescription = response.data.data.dialysisPrescription;
2388
-        // console.log("透析处方", this.prescription);
2340
+        console.log("透析处方", this.prescription);
2389 2341
         this.receiverTreatmentAccess =
2390 2342
           response.data.data.receiverTreatmentAccess;
2391 2343
         this.prescription.mode = this.modeName(this.prescription.mode_id);
@@ -2853,7 +2805,14 @@ export default {
2853 2805
         return "0.0";
2854 2806
       }
2855 2807
     },
2856
-
2808
+    getcheckData(val){
2809
+      if(val.length >0){
2810
+        const a = val.join(',')
2811
+        console.log('a',a);
2812
+        this.$message.error(a +" 未填");
2813
+        return a
2814
+      }
2815
+    }
2857 2816
   },
2858 2817
   watch: {
2859 2818
     "patientInfo.gender": function () {
@@ -2880,10 +2839,6 @@ export default {
2880 2839
         this.patientInfo_source_1 = false;
2881 2840
       }
2882 2841
     },
2883
-    // "props.childResponse": function () {
2884
-    //   console.log('sdfasdfada',this.props.childResponse);
2885
-    // }
2886
-
2887 2842
   },
2888 2843
   created() {
2889 2844
     console.log('dddddd',this.$parent.childResponse);

+ 24 - 9
src/xt_pages/hospitalStation/listPrint.vue 파일 보기

@@ -13,7 +13,8 @@
13 13
     </template>
14 14
 
15 15
     <div class='dialysisPage' style="padding-top:40px;">
16
-       <printOne :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
16
+       <!-- <printOne :list="list" :patient="patient" :order="order" :admin="admin"></printOne> -->
17
+       <printthree :list="list" :patient="patient" :order="order" :admin="admin"></printthree>
17 18
 <!--      <printTwo :list="list" :patient="patient" :order="order" :admin="admin"></printTwo>-->
18 19
     </div>
19 20
   </div>
@@ -22,14 +23,16 @@
22 23
 <script>
23 24
   import printOne from './listTemplate/printOne'
24 25
   import printTwo from './listTemplate/printTwo'
26
+  import printthree from './listTemplate/printthree'
25 27
   import { getHisOrderDetail } from '@/api/his/his'
26 28
   import { uParseTime } from '@/utils/tools'
27
-
29
+  import print from "print-js";
28 30
   export default {
29 31
     name: 'listPrint',
30 32
     components: {
31 33
       printOne,
32
-      printTwo
34
+      printTwo,
35
+      printthree
33 36
     },
34 37
     props: {
35 38
       paramsObj: Object
@@ -63,13 +66,15 @@
63 66
             this.patient = response.data.data.patient
64 67
             this.admin = response.data.data.admin_info
65 68
 
66
-
69
+            console.log('response.data.data',response.data.data);
70
+            
67 71
             for (let i = 0; i < response.data.data.order_info.length; i++) {
68 72
               var infos = response.data.data.order_info[i]
69 73
               let obj = {
70 74
                 med_chrgitm_type: this.getType(infos.med_chrgitm_type),
71 75
                 price: infos.pric,
72
-                count: infos.cnt
76
+                count: infos.cnt,
77
+                selfpay_prop:infos.selfpay_prop,
73 78
               }
74 79
               console.log("-----1-------")
75 80
 
@@ -77,13 +82,21 @@
77 82
                 obj['p_time'] = this.getTimes(infos.project.prescription.ctime)
78 83
                 if(infos.project.type == 2){
79 84
                   obj['name'] = infos.project.project.project_name
85
+                  obj['code'] = infos.project.project.medical_code
86
+                  obj['spec'] = ''
87
+                  obj['unit'] =  infos.project.project.unit
88
+                  obj['is_total']= 0
89
+                  obj['start_time'] = infos.project.start_time
80 90
 
81 91
                 }else if (infos.project.type == 3){
82 92
                   obj['name'] = infos.project.good_info.good_name
83
-
93
+                  obj['code'] = infos.project.good_info.medical_insurance_number
94
+                  obj['unit'] = infos.project.good_info.packing_unit
95
+                  obj['is_total']= 0
96
+                  obj['start_time'] = infos.project.start_time
84 97
                 }
85
-                obj['spec'] = 1
86
-                obj['unit'] = infos.project.unit
98
+                // obj['spec'] = 1
99
+                // obj['unit'] = infos.project.unit
87 100
 
88 101
               }
89 102
               console.log("-----2-------")
@@ -93,7 +106,9 @@
93 106
                 obj['name'] = infos.advice.advice_name
94 107
                 obj['spec'] = infos.advice.drug.drug_spec
95 108
                 obj['unit'] = infos.advice.drug.max_unit
96
-
109
+                obj['code'] = infos.advice.drug.medical_insurance_number
110
+                obj['start_time'] = infos.advice.created_time
111
+                obj['spec'] =  infos.advice.drug.dose +  infos.advice.drug.dose_unit+"*" + infos.advice.drug.min_number +  infos.advice.drug.min_unit+"/"+infos.advice.drug.max_unit
97 112
               }
98 113
               console.log("~~~3~~~~~~")
99 114
 

+ 232 - 0
src/xt_pages/hospitalStation/listTemplate/printthree.vue 파일 보기

@@ -0,0 +1,232 @@
1
+<template>
2
+  <div id="list-print" class="list-print">
3
+      <div style="page-break-after: always;">
4
+        <div class="listTitle">{{$store.getters.xt_user.org.org_name}}费用清单</div>
5
+        <div class="listInfo">
6
+            <div>患者姓名:{{patient.name}}</div>
7
+            <div>性别:{{patient.gender == 1 ? '男': '女'}}</div>
8
+            <div>身份证号:{{patient.id_card_no}}</div>
9
+            <div>年龄:{{patient.age}}  岁</div>
10
+            <!-- <div>开方日期:{{getTimes(order.settle_accounts_date) }}</div> -->
11
+        </div>
12
+        <div class="listInfo">
13
+            <div>结算类型:{{order.is_medicine_insurance == 1 ? "医保" : "自费"}}</div>
14
+            <div>就诊流水号:{{ order.mdtrt_id }}</div>
15
+            <div>透析号:{{patient.dialysis_no}}</div>
16
+            <div>发票号:{{order.fa_piao_number}}</div>
17
+        </div>
18
+        <div class="listInfo">
19
+            <div>总金额:{{ order.medfee_sumamt }}</div>
20
+            <div>个人支付金额:{{ order.psn_part_amt }}</div>
21
+            <div>基金支付金额:{{ order.fund_pay_sumamt }}</div>
22
+            <div>收费日期:{{getTimes(order.ctime)}}</div>
23
+        </div>
24
+        
25
+        <table class="listTable" style="text-align: center;">
26
+            <tr style="border-bottom: 1px solid black;">
27
+              <td style="width:12%">开方日期</td>
28
+              <td style="width:20%">医保编码</td>
29
+              <td style="width:20%">项目名称</td>
30
+              <td style="width:13%">规格</td>
31
+              <td style="width:5%">数量</td>
32
+              <td style="width:5%">单位</td>
33
+              <td style="width:8%">单价(元)</td>
34
+              <td style="width:8%">金额(元)</td>
35
+              <td style="width:10%">自付比例</td>
36
+            </tr>
37
+            <tr v-for="(item,index) in list" style="line-height: 30px;">
38
+                <!-- <template v-if="index == (list.length)-1">
39
+                    <tr style="border-bottom: 1px solid black;"></tr>
40
+                </template> -->
41
+                <td style="width:12%">{{getTimes(item.start_time)}}</td>
42
+                <td style="width:20%">{{item.code}}</td>
43
+                <td style="width:20%">{{item.name}}</td>
44
+                <td style="width:13%">{{item.spec}}</td>
45
+                <td style="width:5%" >
46
+                  <span v-if="item.code!=undefined">{{item.count}}</span>
47
+                </td>
48
+                <td style="width:5%" >{{item.unit}}</td>
49
+                <td style="width:7%">
50
+                  <span v-if="item.code!=undefined">{{(item.price*1).toFixed(2)}}</span>
51
+                </td>
52
+                <td style="width:7%">{{(item.price * item.count).toFixed(2)}}</td>
53
+                <td style="width:10%" v-if="item.code!=undefined">
54
+                  {{(item.selfpay_prop)*100}}
55
+                  <span v-if="item.selfpay_prop !=''">%</span>
56
+                </td>
57
+            </tr>
58
+        </table>
59
+        <div style="border-top: 1px solid black;">
60
+          <div style="text-align: right;">
61
+            合计金额:{{order.medfee_sumamt}}
62
+          </div>
63
+        </div>
64
+      </div>
65
+  </div>
66
+</template>
67
+
68
+<script>
69
+import { uParseTime } from '@/utils/tools'
70
+
71
+export default {
72
+  props: {
73
+    list: {
74
+      type: Array,
75
+      default: function () {
76
+        return [];
77
+      }
78
+    },
79
+    patient: {
80
+      type: Object,
81
+      default: function () {
82
+        return {};
83
+      }
84
+    }, order: {
85
+      type: Object,
86
+      default: function () {
87
+        return {};
88
+      }
89
+    }, admin: {
90
+      type: Object,
91
+      default: function () {
92
+        return {};
93
+      }
94
+    },
95
+  },
96
+  data(){
97
+      return{
98
+          page:1,
99
+          pageArr:[],
100
+          org_id:'',
101
+          list:[]
102
+      }
103
+  },
104
+  // mounted(){
105
+  //     this.getPage()
106
+  // },
107
+  methods:{
108
+    getMedicineInsuranceKind(type){
109
+      switch (type) {
110
+        case "01":
111
+          return '甲类';
112
+        case "02":
113
+          return '乙类';
114
+        case "03":
115
+          return '自费';
116
+          break;
117
+      }
118
+
119
+    },
120
+    getNowTime: function () {
121
+      let dateTime
122
+      let yy = new Date().getFullYear()
123
+      let mm = new Date().getMonth() + 1
124
+      let dd = new Date().getDate()
125
+      let hh = new Date().getHours()
126
+      let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
127
+        :
128
+        new Date().getMinutes()
129
+      let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
130
+        :
131
+        new Date().getSeconds()
132
+      dateTime = yy + '-' + mm + '-' + dd
133
+      return dateTime
134
+    },
135
+    getTimes(time) {
136
+      return uParseTime(time, '{y}-{m}-{d}')
137
+    },
138
+    getPage(){
139
+
140
+      if(this.list.length <= 17){
141
+          this.page = 1
142
+          this.pageArr.push(this.list.length)
143
+      }else if(this.list.length > 17){
144
+          this.page = parseInt(this.list.length / 17)
145
+          let num = this.list.length % 17
146
+          for (var i=0;i<this.page;i++){
147
+              this.pageArr.push(17)
148
+          }
149
+          if(num != 0){
150
+              this.pageArr.push(num)
151
+          }
152
+      }
153
+      console.log('this.pageArr',this.list);
154
+    },
155
+    getlist(){
156
+      // if(this.list.length <= 17){
157
+          this.page = 1
158
+          this.pageArr.push(this.list.length)
159
+          console.log('this.pageArr',this.pageArr);
160
+      // }else if(this.list.length > 17){
161
+      //     this.page = parseInt(this.list.length / 17)
162
+      //     let num = this.list.length % 17
163
+      //     for (var i=0;i<this.page;i++){
164
+      //         this.pageArr.push(17)
165
+      //     }
166
+      //     if(num != 0){
167
+      //         this.pageArr.push(num)
168
+      //     }
169
+      // }
170
+    }
171
+  },
172
+  created(){
173
+   
174
+    this.org_id = this.$store.getters.xt_user.org_id
175
+  },
176
+  watch:{
177
+      list: {
178
+          handler(newVal) {
179
+            // this.list = newVal
180
+              this.getPage()
181
+              // this.getlist()
182
+          },
183
+          deep: true
184
+      }
185
+  }
186
+
187
+}
188
+
189
+
190
+</script>
191
+
192
+<style lang="scss" scoped>
193
+.list-print{
194
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
195
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
196
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
197
+  margin-bottom: 20px;
198
+  padding:20px 10px;
199
+}
200
+.listTitle{
201
+  font-size: 24px;
202
+  text-align: center;
203
+  font-weight: bold;
204
+  margin-bottom: 10px;
205
+}
206
+.listInfo{
207
+  display: flex;
208
+  font-size: 16px;
209
+  justify-content: space-between;
210
+  margin: 10px 0;
211
+}
212
+.listTable{
213
+  width: 100%;
214
+  text-align: center;
215
+  border-collapse: collapse;
216
+  line-height: 20px;
217
+  font-size: 14px;
218
+  border-color: #000;
219
+  text-align: left;
220
+}
221
+.listTable tr td {
222
+  padding: 0 5px;
223
+}
224
+.tableBottom{
225
+  font-size: 12px;
226
+  display: flex;
227
+  margin-top: 20px;
228
+}
229
+.tableBottomOne{
230
+  margin-right: 20px;
231
+}
232
+</style>

+ 12 - 6
src/xt_pages/workforce/components/editTableData.vue 파일 보기

@@ -4194,14 +4194,14 @@ export default {
4194 4194
             ) {
4195 4195
               return "hover-td schedule-table-cell-disable";
4196 4196
             }
4197
-            // if(column.label == '晚'){
4198
-            //   return 'evening_border schedule-table-cell-disable'
4199
-            // }
4197
+            if(row.cut.indexOf('滤')>-1 && columnIndex!=1 &&columnIndex!=23&&columnIndex!=0){
4198
+              return 'thefilter schedule-table-cell-disable'
4199
+            }
4200 4200
             return "schedule-table-cell-disable";
4201 4201
           } else {
4202
-            // if(column.label == '晚' ){
4203
-            //     return 'evening_border'
4204
-            // }
4202
+            if(row.cut.indexOf('滤')>-1 && columnIndex!=1 &&columnIndex!=23&&columnIndex!=0){
4203
+              return 'thefilter'
4204
+            }
4205 4205
             if (
4206 4206
                 row[column.property].patient_id > 0 &&
4207 4207
                 row[column.property].patient_id == this.patient_id_hover
@@ -6274,6 +6274,12 @@ textarea{
6274 6274
 .infectious {
6275 6275
   color: red !important;
6276 6276
 }
6277
+.backPurple{
6278
+  color: #f32424 !important;
6279
+}
6280
+.thefilter{
6281
+  color: #93d104 !important;
6282
+}
6277 6283
 // .border_bott{
6278 6284
 //   border-left: 1px solid aqua !important;
6279 6285
 //   border-right: 1px solid aqua !important;

+ 21 - 15
src/xt_pages/workforce/components/tableData.vue 파일 보기

@@ -1395,19 +1395,17 @@ export default {
1395 1395
      },
1396 1396
     //  单元格样式的回调
1397 1397
     cellClass({ row, column, rowIndex, columnIndex }) {
1398
-      // if(row[column.property].patient_id>0){
1399
-      //   console.log('qqqqq',row[column.property])
1400
-      // }
1401
-
1398
+      
1399
+      
1402 1400
       // console.log('wwwww',column)
1403 1401
       // console.log('eeeee',rowIndex)
1404 1402
       // console.log('rrrrr',columnIndex)
1405 1403
       if(columnIndex==1&&row.zone_type!=1){
1406 1404
         return "table-row-new-class schedule-table-row Infectious_disease";
1407 1405
       }
1408
-      if(columnIndex!=1&&row.zone_type!=1&&columnIndex!=23&&columnIndex!=0){
1409
-        return 'backPurple'
1410
-      }
1406
+      // if(columnIndex!=1&&row.zone_type!=1&&columnIndex!=23&&columnIndex!=0){
1407
+      //   return 'backPurple table-row-new-class schedule-table-row'
1408
+      // }
1411 1409
       // 机号蓝线
1412 1410
       // if(columnIndex==1 ){
1413 1411
       //   return 'border_bott '
@@ -1436,17 +1434,22 @@ export default {
1436 1434
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1437 1435
               return 'hover-td schedule-table-cell-disable'
1438 1436
             }
1439
-            //  if(column.label == '晚'){
1440
-            //    return 'evening_border schedule-table-cell-disable'
1441
-            //  }
1437
+            if(columnIndex!=1&&row.zone_type!=1&&columnIndex!=23&&columnIndex!=0){
1438
+              return 'backPurple schedule-table-cell-disable'
1439
+            }
1440
+            if(row.cut.indexOf('滤')>-1 && columnIndex!=1 &&columnIndex!=23&&columnIndex!=0){
1441
+              return 'thefilter schedule-table-cell-disable'
1442
+            }
1442 1443
             return "schedule-table-cell-disable";
1443 1444
           }else{
1444
-            // 分日期
1445
-            // if(column.label == '晚' ){
1446
-            //     return 'evening_border'
1447
-            // }
1445
+            if(columnIndex!=1&&row.zone_type!=1&&columnIndex!=23&&columnIndex!=0){
1446
+              return 'backPurple'
1447
+            }
1448
+            if(row.cut.indexOf('滤')>-1 && columnIndex!=1 &&columnIndex!=23&&columnIndex!=0){
1449
+              return 'thefilter'
1450
+            }
1448 1451
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover){
1449
-              return 'hover-td '
1452
+              return 'hover-td schedule-table-cell-disable'
1450 1453
             }else {
1451 1454
               return ''
1452 1455
             }
@@ -4411,6 +4414,9 @@ textarea{
4411 4414
 .backPurple{
4412 4415
   color: #f32424 !important;
4413 4416
 }
4417
+.thefilter{
4418
+  color: #93d104 !important;
4419
+}
4414 4420
 .eldialog{
4415 4421
   .el-dialog__headerbtn {
4416 4422
     // position: absolute;