Kaynağa Gözat

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 9 ay önce
ebeveyn
işleme
f67d982f6b

+ 268 - 319
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue Dosyayı Görüntüle

@@ -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,6 @@
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;"
324
-                      >
325
-                         {{predialysis.dehydration?predialysis.dehydration:"" }}
326
-                      </div>L -->
327 310
                     </div>
328 311
                   </div>
329 312
                 </td>
@@ -445,7 +428,7 @@
445 428
                         }}
446 429
                       </div>
447 430
                     </div>
448
-                    <div class="inline_block" style="flex:1;">
431
+                    <div class="inline_block" style="flex:1;" v-if="prescription.mode_id ==2 || prescription.mode_id == 12">
449 432
                       实际置换量:
450 433
                       <div style="width: 50%;text-align: center;display: inline-block;border-bottom: 1px solid #999; ">
451 434
                         {{ afterdialysis.actual_displacement ? afterdialysis.actual_displacement : "/" }}
@@ -504,13 +487,13 @@
504 487
                       </div>kg
505 488
                     </div>
506 489
                     <div class="inline_block" style="flex:1;">
507
-                      透析中入量:
490
+                      <!-- 透析中入量:
508 491
                       <div style="width: 50%;text-align: center;display: inline-block;border-bottom: 1px solid #999; ">
509 492
                         {{ afterdialysis.dialysis_intakes
510 493
                             ? afterdialysis.dialysis_intakes
511 494
                             : "/"}}
512 495
                       </div>
513
-                      {{ getUnit(afterdialysis.dialysis_intakes_unit) }}
496
+                      {{ getUnit(afterdialysis.dialysis_intakes_unit) }} -->
514 497
                     </div>
515 498
                   </div>
516 499
                 </td>
@@ -551,35 +534,10 @@
551 534
                         style="width: 80px; text-align: center; font-weight: 600;
552 535
                         "
553 536
                       >
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>
537
+                        {{ prescription.mode ? prescription.mode :'' }}
580 538
                       </div>
581 539
                     </div>
582
-                    <div class="inline_block" style="flex: 1">
540
+                    <div class="inline_block" style="flex: 1" v-if="prescription.mode_id ==2 || prescription.mode_id == 12">
583 541
                       置换方式:
584 542
                       <div class="under_line" style="width: 80px; text-align: center">
585 543
                         {{
@@ -587,7 +545,7 @@
587 545
                         }}
588 546
                       </div>
589 547
                     </div>
590
-                    <div class="inline_block" style="flex: 1">
548
+                    <div class="inline_block" style="flex: 1" v-if="prescription.mode_id ==2 || prescription.mode_id == 12">
591 549
                       置换总量:
592 550
                       <div class="under_line" style="width: 70px; text-align: center">
593 551
                         <span > {{
@@ -609,16 +567,6 @@
609 567
                         {{ predialysis.blood_access_part_opera_name }}
610 568
                       </div>
611 569
                     </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 570
                     <div class="inline_block" style="flex: 2">
623 571
                       人工肾装置:
624 572
                       <div class="under_line" style="width: 50%; text-align: center">
@@ -627,24 +575,12 @@
627 575
                           prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : ""
628 576
                         }}
629 577
                       </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 578
                     </div>
643 579
                     <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>
580
+                      血流量:
581
+                      <div class="under_line" style="width: 50px; text-align: center">
582
+                        {{ prescription.blood_flow_volume ? prescription.blood_flow_volume : "/" }}
583
+                      </div>ml/min
648 584
                     </div>
649 585
                     <div class="inline_block" style="flex: 1">
650 586
                       机号:
@@ -652,7 +588,6 @@
652 588
                         {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0
653 589
                         ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
654 590
                       </div>
655
-
656 591
                     </div>
657 592
                   </div>
658 593
 
@@ -675,7 +610,8 @@
675 610
                     <div
676 611
                       class="inline_block"
677 612
                       style="margin-left: 20px"
678
-                      v-if="prescription.anticoagulant != 5"
613
+                      v-if="prescription.anticoagulant != 5 &&
614
+                      prescription.anticoagulant !=1 && prescription.anticoagulant !=''"
679 615
                     >
680 616
                       首剂:
681 617
                       <div
@@ -706,7 +642,7 @@
706 642
                     <div class="inline_block" style="margin-left: 20px">
707 643
                       维持:
708 644
                       <div
709
-                        v-if="prescription.anticoagulant == 1"
645
+                        v-if="prescription.anticoagulant != 1 && prescription.anticoagulant !=''"
710 646
                         class="under_line"
711 647
                         style="width: 50px; text-align: center"
712 648
                       >
@@ -716,8 +652,8 @@
716 652
                             : "/"
717 653
                         }}
718 654
                       </div>
719
-                      <div
720
-                        v-if="prescription.anticoagulant != 1"
655
+                      <!-- <div
656
+                        v-if="prescription.anticoagulant != 1 && prescription.anticoagulant !=''"
721 657
                         class="under_line"
722 658
                         style="width: 50px; text-align: center"
723 659
                       >
@@ -726,7 +662,7 @@
726 662
                             ? prescription.anticoagulant_weichi
727 663
                             : "0"
728 664
                         }}
729
-                      </div>
665
+                      </div> -->
730 666
 
731 667
                         <span v-if="prescription.anticoagulant == 5">ml/h</span>
732 668
                           <span v-if="prescription.anticoagulant == 4">mg/h</span>
@@ -742,10 +678,8 @@
742 678
                           <span v-if="prescription.anticoagulant == 13">iu/h</span>
743 679
 
744 680
                     </div>
745
-                    <div
746
-                      class="inline_block"
747
-                      style="margin-left: 20px"
748
-                      v-if="prescription.anticoagulant == 5"
681
+                    <div class="inline_block" style="margin-left: 20px"
682
+                      v-if="prescription.anticoagulant == 5 "
749 683
                     >
750 684
                       钙名称:
751 685
                       <div
@@ -759,9 +693,7 @@
759 693
                         }}
760 694
                       </div>
761 695
                     </div>
762
-                    <div
763
-                      class="inline_block"
764
-                      style="margin-left: 20px"
696
+                    <div class="inline_block" style="margin-left: 20px"
765 697
                       v-if="prescription.anticoagulant == 5"
766 698
                     >
767 699
                       钙剂量:
@@ -777,10 +709,9 @@
777 709
                       </div>
778 710
                       ml
779 711
                     </div>
780
-                    <div
781
-                      class="inline_block"
782
-                      style="margin-left: 20px"
783
-                      v-if="prescription.anticoagulant != 5"
712
+                    <div class="inline_block" style="margin-left: 20px"
713
+                      v-if="prescription.anticoagulant != 5 &&
714
+                      prescription.anticoagulant != 1 && prescription.anticoagulant !=''"
784 715
                     >
785 716
                       总量:
786 717
                       <div
@@ -807,7 +738,12 @@
807 738
                       <span v-if="prescription.anticoagulant == 13">iu</span>
808 739
 
809 740
                     </div>
810
-
741
+                    <div class="inline_block" style="flex: 1">
742
+                      透析机型:
743
+                      <div class="under_line" style="width: 80px; text-align: center">
744
+                        {{ predialysis.machine_type ? predialysis.machine_type : '' }}
745
+                      </div>
746
+                    </div>
811 747
                   </div>
812 748
 
813 749
                   <div class="row" style="padding: 2px 0; line-height: 23px">
@@ -1302,7 +1238,7 @@
1302 1238
 
1303 1239
                     <div class="inline_block" style="flex: 2">
1304 1240
                       透后宣教:
1305
-                      <div class="under_line" style="width: 70%; text-align: center">
1241
+                      <div class="under_line" style="width: 80%; text-align: center;white-space: normal;">
1306 1242
                         {{ summary.mission ? summary.mission : '/' }}
1307 1243
                       </div>
1308 1244
                     </div>
@@ -1786,61 +1722,11 @@ export default {
1786 1722
       },
1787 1723
       org_id: 0,
1788 1724
       projectsOne: [],
1725
+      checkDate:[{value:'this.predialysis.temperature',label:'透前体温未填'},
1726
+                  {value:'this.predialysis.pulse_frequency',label:'透前脉搏未填'}],
1789 1727
     };
1790 1728
   },
1791 1729
   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 1730
 
1845 1731
      viewPdf(content) {
1846 1732
        console.log("content",content);
@@ -1927,219 +1813,279 @@ export default {
1927 1813
     },
1928 1814
 
1929 1815
     checkData() {
1816
+      var checkDate =[]
1930 1817
       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 (
1818
+        const obj = "透前体温"
1819
+        checkDate.push(obj)
1820
+      } if (this.predialysis.pulse_frequency == "") {
1821
+        const obj1 = "透前脉搏"
1822
+        checkDate.push(obj1)
1823
+      } if (this.predialysis.breathing_rate == "") {
1824
+         const obj2 = "透前呼吸频率"
1825
+         checkDate.push(obj2)
1826
+      } if (
1937 1827
         this.predialysis.systolic_blood_pressure == 0 ||
1938 1828
         this.predialysis.diastolic_blood_pressure == 0
1939 1829
       ) {
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 (
1830
+        const obj3 = "透前血压"
1831
+        checkDate.push(obj3)
1832
+      } if (this.predialysis.symptom_before_dialysis == "") {
1833
+        const obj5 = "透前症状"
1834
+        checkDate.push(obj5)
1835
+      } if (this.predialysis.internal_fistula == "" || this.predialysis.catheter == "") {
1836
+        const obj6 = "透前内瘘,导管"
1837
+        checkDate.push(obj6)
1838
+      } if (this.predialysis.complication == "" ) {
1839
+        const obj7 = "合并症"
1840
+        checkDate.push(obj7)
1841
+      } if (this.predialysis.dry_weight == '' ) {
1842
+        const obj8 = "干体重"
1843
+        checkDate.push(obj8)
1844
+      } if ( this. predialysis.weight_before == '') {
1845
+        const obj9 = "透前体重"
1846
+        checkDate.push(obj9)
1847
+      } if (this.afterdialysis.temperature == '') {
1848
+        const obj10 = "透后体温"
1849
+        checkDate.push(obj10)
1850
+      } if (this.afterdialysis.pulse_frequency == "") {
1851
+        const obj11 = "透后脉搏"
1852
+        checkDate.push(obj11)
1853
+      } if (this.afterdialysis.breathing_rate == "") {
1854
+        const obj12 = "透后呼吸频率"
1855
+        checkDate.push(obj12)
1856
+      } if (
1968 1857
         this.afterdialysis.systolic_blood_pressure == 0 ||
1969 1858
         this.afterdialysis.diastolic_blood_pressure == 0
1970 1859
       ) {
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 (
1860
+        const obj13 = "透后血压"
1861
+        checkDate.push(obj13)
1862
+      } if (this.afterdialysis.cruor == "") {
1863
+        const obj14 = "凝血"
1864
+        checkDate.push(obj14)
1865
+      } if (this.afterdialysis.symptom_after_dialysis == "") {
1866
+        const obj15 = "透后症状"
1867
+        checkDate.push(obj15)
1868
+      } if (this.afterdialysis.internal_fistula == "" || this.afterdialysis.catheter == "") {
1869
+        const obj16 = "透后内瘘,导管"
1870
+        checkDate.push(obj16)
1871
+      }  if (this.afterdialysis.complication == 0) {
1872
+        const obj17 = "并发症"
1873
+        checkDate.push(obj17)
1874
+      } if (this.afterdialysis.actual_displacement == 0 &&
1875
+        (this.prescription.mode_id ==2 || this.prescription.mode_id ==12)) {
1876
+        const obj18 = "实际置换量"
1877
+        checkDate.push(obj18)
1878
+      } if (this.afterdialysis.actual_ultrafiltration == 0) {
1879
+        const obj19 = "实际超滤量"
1880
+        checkDate.push(obj19)
1881
+      } if (this.afterdialysis.weight_after == 0) {
1882
+        const obj20 = "透后体重"
1883
+        checkDate.push(obj20)
1884
+      } if (this.afterdialysis.weight_loss == 0) {
1885
+        const obj21 = "体重减少"
1886
+        checkDate.push(obj21)
1887
+      } if (this.prescription.target_ultrafiltration == 0) {
1888
+        const obj22 = "处方脱水量"
1889
+        checkDate.push(obj22)
1890
+      } if (this.afterdialysis.actual_ultrafiltration == 0) {
1891
+        const obj23 = "超滤总量"
1892
+        checkDate.push(obj23)
1893
+      } if (this.prescription.dialysis_duration_hour == 0) {
1894
+        const obj24 = "透析时长"
1895
+        checkDate.push(obj24)
1896
+      } if (this.prescription.mode == '') {
1897
+        const obj25 = "透析方式"
1898
+        checkDate.push(obj25)
1899
+      } if (this.prescription.displace_liqui_part == '' &&
1900
+      (this.prescription.mode_id ==2 ||this.prescription.mode_id ==12)) {
1901
+        const obj26 = "置换方式"
1902
+        checkDate.push(obj26)
1903
+      } if (this.prescription.displace_liqui_value == 0 &&
1904
+      (this.prescription.mode_id ==2 ||this.prescription.mode_id ==12)) {
1905
+        const obj27 = "置换总量"
1906
+        checkDate.push(obj27)
1907
+      } if (this.predialysis.blood_access_part_opera_name == ''){
1908
+        const obj28 = "血管通路"
1909
+        checkDate.push(obj28)
1910
+      } if (this.prescription.blood_flow_volume == 0) {
1911
+        const obj29 = "血流量"
1912
+        checkDate.push(obj29)
1913
+      } if (
2009 1914
         this.prescription.dialysis_irrigation == '' &&
2010 1915
         this.prescription.dialysis_dialyszers == ''
2011 1916
       ){
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 (
1917
+        const obj30 = "人工肾装置"
1918
+        checkDate.push(obj30)
1919
+      } if (this.predialysis.machine_type == 0) {
1920
+        const obj31 = "透析机型"
1921
+        checkDate.push(obj31)
1922
+      } if (this.dialysisOrder.DeviceNumber.number == 0) {
1923
+        const obj32 = "机号"
1924
+        checkDate.push(obj32)
1925
+      } if (this.prescription.anticoagulant_name == 0) {
1926
+        const obj33 = "抗凝剂"
1927
+        checkDate.push(obj33)
1928
+      } if (this.prescription.anticoagulant_shouji == 0 &&
1929
+        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
1930
+      ) {
1931
+        const obj34 = "首剂"
1932
+        checkDate.push(obj34)
1933
+      } if (this.prescription.anticoagulant_weichi == 0 &&
1934
+        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
1935
+      ) {
1936
+        const obj35 = "维持"
1937
+        checkDate.push(obj35)
1938
+      } if (this.prescription.anticoagulant_zongliang == 0 &&
1939
+        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !='' && prescription.anticoagulant != 5
1940
+      ) {
1941
+        const obj36 = "总量"
1942
+        checkDate.push(obj36)
1943
+      } if (this.prescription.calcium == 0) {
1944
+        const obj37 = "钙"
1945
+        checkDate.push(obj37)
1946
+      } if (this.prescription.sodium == 0) {
1947
+        const obj38 = "钠"
1948
+        checkDate.push(obj38)
1949
+      } if (this.prescription.kalium == 0) {
1950
+        const obj39 = "钾"
1951
+        checkDate.push(obj39)
1952
+      } if (this.prescription.bicarbonate == 0) {
1953
+        const obj40 = "碳酸氢根"
1954
+        checkDate.push(obj40)
1955
+      } if (this.prescription.dialysate_flow == 0) {
1956
+        const obj41 = "透析液流量"
1957
+        checkDate.push(obj41)
1958
+      } if (
2036 1959
         this.prescription.anticoagulant_gaimingcheng == "" &&
2037 1960
         this.prescription.anticoagulant == 5
2038 1961
       ) {
2039
-        this.$message.error("钙名称未填");
2040
-      } else if (
1962
+        const obj42 = "钙名称"
1963
+        checkDate.push(obj42)
1964
+      } if (
2041 1965
         this.prescription.anticoagulant_gaijiliang == "" &&
2042 1966
         this.prescription.anticoagulant == 5
2043 1967
       ) {
2044
-        this.$message.error("钙剂量未填");
2045
-      } else if (
1968
+        const obj43 = "钙剂量"
1969
+        checkDate.push(obj43)
1970
+      } if (
2046 1971
         this.afterdialysis.actual_treatment_hour == 0 &&
2047 1972
         this.afterdialysis.actual_treatment_minute == 0
2048 1973
       ) {
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 (
1974
+        const obj44 = "实际治疗时间"
1975
+        checkDate.push(obj44)
1976
+      } if (this.summary.mission == 0) {
1977
+        const obj45 = "透后宣教"
1978
+        checkDate.push(obj45)
1979
+      } if (this.summary.dialysis_summary == "") {
1980
+        const obj46 = "透析小结"
1981
+        checkDate.push(obj46)
1982
+      } if (
2055 1983
         this.dialysisOrder == null ||
2056 1984
         this.dialysisOrder.puncture_nurse == 0
2057 1985
       ) {
2058
-        this.$message.error("穿刺护士未填");
2059
-      } else if (
1986
+        const obj47 = "穿刺护士"
1987
+        checkDate.push(obj47)
1988
+      } if (
2060 1989
         this.dialysisOrder == null ||
2061 1990
         this.dialysisOrder.start_nurse == 0
2062 1991
       ) {
2063
-        this.$message.error("治疗护士未填");
2064
-      } else if (this.dialysisOrder == null && this.check.creater == 0) {
2065
-        this.$message.error("核对人员未填");
1992
+        const obj48 = "治疗护士"
1993
+        checkDate.push(obj48)
1994
+      } if (this.dialysisOrder == null && this.check.creater == 0) {
1995
+        const obj49 = "核对人员"
1996
+        checkDate.push(obj49)
2066 1997
       } else if (
2067 1998
         this.dialysisOrder != null &&
2068 1999
         this.dialysisOrder.start_nurse == this.check.modifier &&
2069 2000
         this.check.creater == 0
2070 2001
       ) {
2071
-        this.$message.error("核对人员未填");
2002
+        const obj49 = "核对人员"
2003
+        checkDate.push(obj49)
2072 2004
       } else if (
2073 2005
         this.dialysisOrder != null &&
2074 2006
         this.dialysisOrder.start_nurse == this.check.creater &&
2075 2007
         this.check.modifier == 0
2076 2008
       ) {
2077
-        this.$message.error("核对人员未填");
2009
+        const obj49 = "核对人员"
2010
+        checkDate.push(obj49)
2078 2011
       } else if (
2079 2012
         this.dialysisOrder != null &&
2080 2013
         this.dialysisOrder.start_nurse != this.check.creater &&
2081 2014
         this.dialysisOrder.start_nurse != this.check.modifier &&
2082 2015
         this.check.creater == 0
2083 2016
       ) {
2084
-        this.$message.error("核对人员未填");
2085
-      } else if (
2017
+        const obj49 = "核对人员"
2018
+        checkDate.push(obj49)
2019
+      } if (
2086 2020
         this.dialysisOrder == null ||
2087 2021
         this.dialysisOrder.finish_nurse == 0
2088 2022
       ) {
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
-            });
2023
+        const obj50 = "下机护士"
2024
+        checkDate.push(obj50)
2025
+      } if (this.prescription.creater == 0) {
2026
+        const obj51 = "治疗医生"
2027
+        checkDate.push(obj51)
2028
+      }
2029
+      if(this.tableAdvice.length > 0){
2030
+        this.tableAdvice.map((item) =>{
2031
+          if(item.id > 0 && (item.created_time || item.start_time)){
2032
+            if(item.execution_staff ==0 || item.checker ==0){
2033
+              const obj52 = '执行人员,核对人员'
2034
+              checkDate.push(obj52)
2035
+            }
2135 2036
           }
2136
-        });
2137
-        if (num == 0) {
2138
-          this.$message.success("核对完成");
2139
-        }
2140
-      } else {
2141
-        this.$message.success("核对完成");
2037
+        })
2142 2038
       }
2039
+      // if (this.tableAdvice.length > 0) {
2040
+      //   let num = 0;
2041
+      //   this.tableAdvice.map((item) => {
2042
+      //     if (item.id > 0 && (item.created_time || item.start_time)) {
2043
+      //       this.users.map((it) => {
2044
+      //         if (it.id == item.advice_doctor) {
2045
+      //           if (it.user_type == 3) {
2046
+      //             num++;
2047
+      //             this.$message.closeAll();
2048
+      //             this.$message.error("存在不是医生保存的医嘱");
2049
+      //           } else if (
2050
+      //             it.id == item.execution_staff &&
2051
+      //             item.execution_staff > 0
2052
+      //           ) {
2053
+      //             if (it.user_type == 2) {
2054
+      //               num++;
2055
+      //               this.$message.closeAll();
2056
+      //               this.$message.error("存在不是护士执行的医嘱");
2057
+      //             }
2058
+      //           } else if (it.id == item.checker && item.checker > 0) {
2059
+      //             if (it.user_type == 2) {
2060
+      //               num++;
2061
+      //               this.$message.closeAll();
2062
+      //               this.$message.error("存在不是护士核对的医嘱");
2063
+      //             }
2064
+      //           }
2065
+      //         } else if (
2066
+      //           it.id == item.execution_staff &&
2067
+      //           item.execution_staff > 0
2068
+      //         ) {
2069
+      //           if (it.user_type == 2) {
2070
+      //             num++;
2071
+      //             this.$message.closeAll();
2072
+      //             this.$message.error("存在不是护士执行的医嘱");
2073
+      //           }
2074
+      //         } else if (it.id == item.checker && item.checker > 0) {
2075
+      //           if (it.user_type == 2) {
2076
+      //             num++;
2077
+      //             this.$message.closeAll();
2078
+      //             this.$message.error("存在不是护士核对的医嘱");
2079
+      //           }
2080
+      //         }
2081
+      //       });
2082
+      //     }
2083
+      //   });
2084
+      //   if (num == 0) {
2085
+      //     this.$message.success("核对完成");
2086
+      //   }
2087
+      // }
2088
+      this.getcheckData(checkDate)
2143 2089
     },
2144 2090
     getDisplaceLiquiPart: function (val) {
2145 2091
       let displace_liqui_part_name = "/";
@@ -2385,7 +2331,7 @@ export default {
2385 2331
           this.afterdialysis.complications_other.join(",");
2386 2332
 
2387 2333
         this.prescription = response.data.data.dialysisPrescription;
2388
-        // console.log("透析处方", this.prescription);
2334
+        console.log("透析处方", this.prescription);
2389 2335
         this.receiverTreatmentAccess =
2390 2336
           response.data.data.receiverTreatmentAccess;
2391 2337
         this.prescription.mode = this.modeName(this.prescription.mode_id);
@@ -2853,7 +2799,14 @@ export default {
2853 2799
         return "0.0";
2854 2800
       }
2855 2801
     },
2856
-
2802
+    getcheckData(val){
2803
+      if(val.length >0){
2804
+        const a = val.join(',')
2805
+        console.log('a',a);
2806
+        this.$message.error(a +" 未填");
2807
+        return a
2808
+      }
2809
+    }
2857 2810
   },
2858 2811
   watch: {
2859 2812
     "patientInfo.gender": function () {
@@ -2880,10 +2833,6 @@ export default {
2880 2833
         this.patientInfo_source_1 = false;
2881 2834
       }
2882 2835
     },
2883
-    // "props.childResponse": function () {
2884
-    //   console.log('sdfasdfada',this.props.childResponse);
2885
-    // }
2886
-
2887 2836
   },
2888 2837
   created() {
2889 2838
     console.log('dddddd',this.$parent.childResponse);