XMLWAN 2 anni fa
parent
commit
23e694fd96

+ 2 - 2
src/store/modules/globalConfig.js Vedi File

@@ -771,7 +771,7 @@ const global_config = {
771 771
         id: 6,
772 772
         name: '低分子肝素钙',
773 773
         type: 1,
774
-        shouji: 1,
774
+        shouji: 2,
775 775
         weichi: 1,
776 776
         zongliang: 1,
777 777
         gaimingcheng: -1,
@@ -786,7 +786,7 @@ const global_config = {
786 786
         id: 7,
787 787
         name: '低分子肝素钠',
788 788
         type: 1,
789
-        shouji: 1,
789
+        shouji: 2,
790 790
         weichi: 1,
791 791
         zongliang: 1,
792 792
         gaimingcheng: -1,

+ 356 - 384
src/xt_pages/dialysis/bloodPresssWatch.vue Vedi File

@@ -473,8 +473,12 @@
473 473
         :data="SchedualPatientsTableData"
474 474
         style="width: 100%"
475 475
         v-loading="loading"
476
+        border
477
+       
476 478
         @current-change="clickCurrent"
477 479
         @selection-change="handleSelectionChange"
480
+        highlight-current-row
481
+        :cell-class-name="cellStyle"
478 482
       >
479 483
         <el-table-column
480 484
           type="selection"
@@ -534,113 +538,114 @@
534 538
           align="center"
535 539
           width="120"
536 540
         ></el-table-column>
537
-        <el-table-column label="透中血压(mmHg)" align="center"  v-if="isShow('血压')">
538
-          <el-table-column
539
-            v-for="(item, index) in labelArr"
540
-            :key="index"
541
-            :label="item"
542
-            align="center"
543
-          >
544
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
545
-            <template slot-scope="scope">
546
-              <span v-if="getValue(scope.row.bp[index])>=90 && getValue(scope.row.bp[index])<=140">{{getValue(scope.row.bp[index])}}</span>
547
-              <span  v-if="getValue(scope.row.bp[index])<90 || getValue(scope.row.bp[index]) >140" style="color:red">{{getValue(scope.row.bp[index])}}</span>
548
-              <span v-if="getValueOne(scope.row.bp[index])>0">/</span>
549
-              <span v-if="getValueOne(scope.row.bp[index])>=60 && getValueOne(scope.row.bp[index])<=90">{{getValueOne(scope.row.bp[index])}}</span>
550
-              <span v-if="getValueOne(scope.row.bp[index]) <60 || getValueOne(scope.row.bp[index])>90" style="color:red">{{getValueOne(scope.row.bp[index])}}</span>
541
+     
542
+        <el-table-column label="监测时间" align="center" width="120">
543
+           <template slot-scope="scope">
544
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
545
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
546
+                     {{getTimeOne(item.operate_time)}}
547
+                  </td>
548
+               </tr>
549
+             
551 550
             </template>
552
-          </el-table-column>
553 551
         </el-table-column>
554 552
 
555
-        <el-table-column label="体温(℃)" align="center"  v-if="isShow('体温')">
556
-          <el-table-column
557
-            v-for="(item, index) in labelArr"
558
-            :key="index"
559
-            :label="item"
560
-            align="center"
561
-          >
562
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
563
-            <template slot-scope="scope">
564
-               {{getTemValue(scope.row.tp[index])}}
553
+
554
+        <el-table-column label="透中血压(mmHg)" align="center" width="180" v-if="isShow('血压')">
555
+           <template slot-scope="scope">
556
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
557
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
558
+                    {{item.systolic_blood_pressure}}
559
+                      <span v-if="item.systolic_blood_pressure >0">/</span>
560
+                    <span v-if="item.systolic_blood_pressure >0">{{item.systolic_blood_pressure}}</span>
561
+                  </td>
562
+               </tr>
563
+             
565 564
             </template>
566
-          </el-table-column>
567 565
         </el-table-column>
568 566
 
569
-        <el-table-column label="脉搏(次/分)" align="center"  v-if="isShow('脉搏')">
570
-          <el-table-column
571
-            v-for="(item, index) in labelArr"
572
-            :key="index"
573
-            :label="item"
574
-            align="center"
575
-          >
576
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
577
-            <template slot-scope="scope">
578
-               {{getTemValue(scope.row.mp[index])}}
567
+      
568
+
569
+        <el-table-column label="体温(℃)" align="center" width="120"  v-if="isShow('体温')">
570
+           <template slot-scope="scope">
571
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
572
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
573
+                    {{ item.temperature ? item.temperature : "" }}
574
+                  </td>
575
+               </tr>
576
+             
579 577
             </template>
580
-          </el-table-column>
581 578
         </el-table-column>
582 579
 
583
-         <el-table-column label="呼吸频率(次/分)" align="center"  v-if="isShow('呼吸频率')">
584
-          <el-table-column
585
-            v-for="(item, index) in labelArr"
586
-            :key="index"
587
-            :label="item"
588
-            align="center"
589
-          >
590
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
591
-            <template slot-scope="scope">
592
-               {{getTemValue(scope.row.hp[index])}}
580
+     
581
+
582
+          <el-table-column label="脉搏(次/分)" align="center" width="120"  v-if="isShow('脉搏')">
583
+           <template slot-scope="scope">
584
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
585
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
586
+                    {{ item.pulse_frequency ? item.pulse_frequency : "" }}
587
+                  </td>
588
+               </tr>
589
+             
593 590
             </template>
594
-          </el-table-column>
595 591
         </el-table-column>
596 592
 
597
-       <el-table-column label="静脉压/动脉压(mmHg)" align="center">
598
-          <el-table-column
599
-            v-for="(item, index) in labelArr"
600
-            :key="index"
601
-            :label="item"
602
-            align="center"
603
-          >
604
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
605
-            <template slot-scope="scope">
606
-               {{getValue(scope.row.jp[index])}} 
607
-               <span v-if="getValueOne(scope.row.jp[index])!=0">/</span>
608
-               {{getValueOne(scope.row.jp[index])}}
593
+      
594
+          <el-table-column label="呼吸频率(次/分)" align="center" width="120"  v-if="isShow('呼吸频率')">
595
+           <template slot-scope="scope">
596
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
597
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
598
+                    {{ item.breathing_rate ? item.breathing_rate : "" }}
599
+                  </td>
600
+               </tr>
601
+             
609 602
             </template>
610
-          </el-table-column>
611 603
         </el-table-column>
612 604
 
613
-       
614 605
 
615
-       <el-table-column label="血流量" align="center"  v-if="isShow('血流量')">
616
-          <el-table-column
617
-            v-for="(item, index) in labelArr"
618
-            :key="index"
619
-            :label="item"
620
-            align="center"
621
-           
622
-          >
623
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
624
-            <template slot-scope="scope">
625
-               {{getTemValue(scope.row.xp[index])}}
606
+       <el-table-column label="静脉压/动脉压(mmHg)" align="center" width="120">
607
+           <template slot-scope="scope">
608
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
609
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
610
+                   <span>{{item.venous_pressure ? item.venous_pressure : ""}}/
611
+                     {{item.arterial_pressure ? item.arterial_pressure : ""}}</span>
612
+                  </td>
613
+               </tr>
614
+             
626 615
             </template>
627
-          </el-table-column>
628 616
         </el-table-column>
629 617
 
630
-        <el-table-column label="跨膜压(mmHg)" align="center" v-if="isShow('跨膜压')">
631
-          <el-table-column
632
-            v-for="(item, index) in labelArr"
633
-            :key="index"
634
-            :label="item"
635
-            align="center"
636
-          >
637
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
638
-            <template slot-scope="scope">
639
-               {{getTemValue(scope.row.kp[index])}}
618
+
619
+       <el-table-column label="血流量" align="center" width="120" v-if="isShow('血流量')">
620
+           <template slot-scope="scope">
621
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
622
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
623
+                     {{item.blood_flow_volume?item.blood_flow_volume:""}}
624
+                  </td>
625
+               </tr>
626
+             
627
+            </template>
628
+        </el-table-column>
629
+
630
+      
631
+       <el-table-column label="跨膜压(mmHg)" align="center" width="120" v-if="isShow('跨膜压')">
632
+           <template slot-scope="scope">
633
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
634
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
635
+                     {{item.transmembrane_pressure?item.transmembrane_pressure:""}}
636
+                  </td>
637
+               </tr>
638
+             
640 639
             </template>
641
-          </el-table-column>
642 640
         </el-table-column>
643 641
 
642
+
643
+       
644
+
645
+   
646
+
647
+  
648
+
644 649
        <el-table-column label="超滤量(ml)" align="center"
645 650
              v-if="
646 651
               isShow('超滤量') &&
@@ -686,17 +691,14 @@
686 691
                 || org_id == 10432
687 692
                 || org_id == 10445)
688 693
             ">
689
-          <el-table-column
690
-            v-for="(item, index) in labelArr"
691
-            :key="index"
692
-            :label="item"
693
-            align="center"
694
-          >
695
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
696 694
             <template slot-scope="scope">
697
-               {{getTemValue(scope.row.cp[index])}}
695
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
696
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
697
+                     {{item.ultrafiltration_volume?item.ultrafiltration_volume:""}}
698
+                  </td>
699
+               </tr>
700
+             
698 701
             </template>
699
-          </el-table-column>
700 702
         </el-table-column>
701 703
 
702 704
 
@@ -744,17 +746,14 @@
744 746
               org_id != 9555 && org_id!=10387
745 747
               && org_id!=10432 && org_id!=10445
746 748
             ">
747
-          <el-table-column
748
-            v-for="(item, index) in labelArr"
749
-            :key="index"
750
-            :label="item"
751
-            align="center"
752
-          >
753
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
754
-            <template slot-scope="scope">
755
-               {{getTemValue(scope.row.cp[index])}}
749
+           <template slot-scope="scope">
750
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
751
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
752
+                     {{item.ultrafiltration_volume?item.ultrafiltration_volume:""}}
753
+                  </td>
754
+               </tr>
755
+             
756 756
             </template>
757
-          </el-table-column>
758 757
         </el-table-column>
759 758
 
760 759
         <el-table-column label="超滤率(ml/h)" align="center"
@@ -792,17 +791,14 @@
792 791
                 org_id == 10432 ||
793 792
                 org_id == 10445)
794 793
             ">
795
-          <el-table-column
796
-            v-for="(item, index) in labelArr"
797
-            :key="index"
798
-            :label="item"
799
-            align="center"
800
-          >
801
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
802 794
             <template slot-scope="scope">
803
-               {{getTemValue(scope.row.clp[index])}}
795
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
796
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
797
+                      {{item.ultrafiltration_rate? item.ultrafiltration_rate: ""}} 
798
+                  </td>
799
+               </tr>
800
+             
804 801
             </template>
805
-          </el-table-column>
806 802
         </el-table-column>
807 803
 
808 804
 
@@ -843,45 +839,39 @@
843 839
               org_id!=10445
844 840
             "
845 841
        >
846
-          <el-table-column
847
-            v-for="(item, index) in labelArr"
848
-            :key="index"
849
-            :label="item"
850
-            align="center"
851
-          >
852
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
853
-            <template slot-scope="scope">
854
-               {{getTemValue(scope.row.clp[index])}}
842
+        <template slot-scope="scope">
843
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
844
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
845
+                      {{item.ultrafiltration_rate? item.ultrafiltration_rate: ""}} 
846
+                  </td>
847
+               </tr>
848
+             
855 849
             </template>
856
-          </el-table-column>
850
+        
857 851
         </el-table-column>
858 852
 
859 853
        <el-table-column label="钠浓度(mmol/L)" align="center"  v-if="isShow('钠浓度')">
860
-          <el-table-column
861
-            v-for="(item, index) in labelArr"
862
-            :key="index"
863
-            :label="item"
864
-            align="center"
865
-          >
866
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
867
-            <template slot-scope="scope">
868
-               {{getTemValue(scope.row.np[index])}}
854
+         
855
+           <template slot-scope="scope">
856
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
857
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
858
+                      {{item.sodium_concentration? item.sodium_concentration: ""}} 
859
+                  </td>
860
+               </tr>
861
+             
869 862
             </template>
870
-          </el-table-column>
871 863
         </el-table-column>
872 864
 
873 865
        <el-table-column label="透析液温度(℃)" align="center"   v-if="isShow('透析液温度')">
874
-          <el-table-column
875
-            v-for="(item, index) in labelArr"
876
-            :key="index"
877
-            :label="item"
878
-            align="center"
879
-          >
880
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
881
-            <template slot-scope="scope">
882
-               {{getTemValue(scope.row.tcp[index])}}
866
+           <template slot-scope="scope">
867
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
868
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
869
+                      {{item.dialysate_temperature? item.dialysate_temperature: ""}} 
870
+                  </td>
871
+               </tr>
872
+             
883 873
             </template>
884
-          </el-table-column>
874
+         
885 875
         </el-table-column>
886 876
 
887 877
          <el-table-column label="置换率(ml/min)" align="center"
@@ -902,17 +892,14 @@
902 892
           
903 893
             )
904 894
             ">
905
-          <el-table-column
906
-            v-for="(item, index) in labelArr"
907
-            :key="index"
908
-            :label="item"
909
-            align="center"
910
-          >
911
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
912
-            <template slot-scope="scope">
913
-               {{getTemValue(scope.row.zp[index])}}
914
-            </template>
915
-          </el-table-column>
895
+           <template slot-scope="scope">
896
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
897
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
898
+                      {{item.replacement_rate? item.replacement_rate: ""}} 
899
+                  </td>
900
+               </tr>
901
+             
902
+            </template>  
916 903
         </el-table-column>
917 904
 
918 905
 
@@ -933,33 +920,27 @@
933 920
           org_id !=10445
934 921
          "
935 922
       >
936
-          <el-table-column
937
-            v-for="(item, index) in labelArr"
938
-            :key="index"
939
-            :label="item"
940
-            align="center"
941
-          >
942
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
943
-            <template slot-scope="scope">
944
-               {{getTemValue(scope.row.zp[index])}}
945
-            </template>
946
-          </el-table-column>
923
+           <template slot-scope="scope">
924
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
925
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
926
+                      {{item.replacement_rate? item.replacement_rate: ""}} 
927
+                  </td>
928
+               </tr>
929
+             
930
+            </template>  
947 931
         </el-table-column>
948 932
 
949 933
        <el-table-column label="置换量(ml/h)" align="center"
950 934
         v-if="isShow('置换量') && (template_id == 43 || template_id == 48)"
951 935
        >
952
-          <el-table-column
953
-            v-for="(item, index) in labelArr"
954
-            :key="index"
955
-            :label="item"
956
-            align="center"
957
-          >
958
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
959
-            <template slot-scope="scope">
960
-               {{getTemValue(scope.row.zhp[index])}}
961
-            </template>
962
-          </el-table-column>
936
+          <template slot-scope="scope">
937
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
938
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
939
+                      {{item.displacement_quantity? item.displacement_quantity: ""}} 
940
+                  </td>
941
+               </tr>
942
+             
943
+            </template>  
963 944
         </el-table-column>
964 945
 
965 946
       <el-table-column label="置换量(ml)" align="center"
@@ -983,19 +964,15 @@
983 964
           org_id == 10432 ||
984 965
           org_id == 10445)
985 966
             ">
986
-          <el-table-column
987
-            v-for="(item, index) in labelArr"
988
-            :key="index"
989
-            :label="item"
990
-            align="center"
991
-          >
992
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
993
-            <template slot-scope="scope">
994
-               {{getTemValue(scope.row.zhp[index])}}
995
-            </template>
996
-          </el-table-column>
967
+          <template slot-scope="scope">
968
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
969
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
970
+                      {{item.displacement_quantity? item.displacement_quantity: ""}} 
971
+                  </td>
972
+               </tr>
973
+             
974
+            </template>  
997 975
         </el-table-column>
998
-
999 976
       
1000 977
       <el-table-column label="置换量(L)" align="center"
1001 978
        v-if="
@@ -1016,17 +993,14 @@
1016 993
               org_id !=10445
1017 994
             "
1018 995
       >
1019
-          <el-table-column
1020
-            v-for="(item, index) in labelArr"
1021
-            :key="index"
1022
-            :label="item"
1023
-            align="center"
1024
-          >
1025
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1026
-            <template slot-scope="scope">
1027
-               {{getTemValue(scope.row.zhp[index])}}
1028
-            </template>
1029
-          </el-table-column>
996
+        <template slot-scope="scope">
997
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
998
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
999
+                      {{item.displacement_quantity? item.displacement_quantity: ""}} 
1000
+                  </td>
1001
+               </tr>
1002
+             
1003
+           </template>  
1030 1004
         </el-table-column>
1031 1005
 
1032 1006
         <el-table-column label="SpO₂(%)" align="center"
@@ -1037,255 +1011,207 @@
1037 1011
               template_id != 11
1038 1012
             "
1039 1013
         >
1040
-          <el-table-column
1041
-            v-for="(item, index) in labelArr"
1042
-            :key="index"
1043
-            :label="item"
1044
-            align="center"
1045
-          >
1046
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1047
-            <template slot-scope="scope">
1048
-               {{getTemValue(scope.row.sp[index])}}
1049
-            </template>
1050
-          </el-table-column>
1014
+         <template slot-scope="scope">
1015
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1016
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1017
+                      {{item.blood_oxygen_saturation? item.blood_oxygen_saturation: ""}} 
1018
+                  </td>
1019
+               </tr>
1020
+             
1021
+           </template>  
1051 1022
         </el-table-column>
1052 1023
 
1053 1024
        <el-table-column label="电导度(mS/cm)" align="center"
1054 1025
         v-if="isShow('电导度')">
1055
-          <el-table-column
1056
-            v-for="(item, index) in labelArr"
1057
-            :key="index"
1058
-            :label="item"
1059
-            align="center"
1060
-          >
1061
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1062
-            <template slot-scope="scope">
1063
-               {{getTemValue(scope.row.ddp[index])}}
1064
-            </template>
1065
-          </el-table-column>
1026
+         
1027
+          <template slot-scope="scope">
1028
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1029
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1030
+                      {{item.conductivity? item.conductivity: ""}} 
1031
+                  </td>
1032
+               </tr>
1033
+             
1034
+           </template>  
1066 1035
         </el-table-column>
1067 1036
 
1068 1037
        <el-table-column label="置换液流量(ml/h)" align="center"
1069 1038
        v-if="isShow('置换液流量') && template_id != 27"
1070 1039
        >
1071
-          <el-table-column
1072
-            v-for="(item, index) in labelArr"
1073
-            :key="index"
1074
-            :label="item"
1075
-            align="center"
1076
-          >
1077 1040
             <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1078
-            <template slot-scope="scope">
1079
-               {{getTemValue(scope.row.zhyp[index])}}
1080
-            </template>
1081
-          </el-table-column>
1041
+             <template slot-scope="scope">
1042
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1043
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1044
+                      {{item.displacement_flow_quantity? item.displacement_flow_quantity: ""}} 
1045
+                  </td>
1046
+               </tr>
1047
+             
1048
+           </template>  
1082 1049
         </el-table-column>
1083 1050
 
1084 1051
        <el-table-column label="置换液流量(ml/min)" align="center"
1085 1052
         v-if="isShow('置换液流量') && template_id == 27"
1086 1053
        >
1087
-          <el-table-column
1088
-            v-for="(item, index) in labelArr"
1089
-            :key="index"
1090
-            :label="item"
1091
-            align="center"
1092
-          >
1093
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1094
-            <template slot-scope="scope">
1095
-               {{getTemValue(scope.row.zhyp[index])}}
1096
-            </template>
1097
-          </el-table-column>
1054
+          <template slot-scope="scope">
1055
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1056
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1057
+                      {{item.displacement_flow_quantity? item.displacement_flow_quantity: ""}} 
1058
+                  </td>
1059
+               </tr>
1060
+             
1061
+           </template>  
1098 1062
         </el-table-column>
1099 1063
 
1100 1064
        <el-table-column label="透析液流量(ml/h)" align="center" v-if="isShow('透析液流量')">
1101
-          <el-table-column
1102
-            v-for="(item, index) in labelArr"
1103
-            :key="index"
1104
-            :label="item"
1105
-            align="center"
1106
-          >
1107
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1108
-            <template slot-scope="scope">
1109
-               {{getTemValue(scope.row.tcyp[index])}}
1110
-            </template>
1111
-          </el-table-column>
1065
+           <template slot-scope="scope">
1066
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1067
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1068
+                      {{item.dialysate_flow? item.dialysate_flow: ""}} 
1069
+                  </td>
1070
+               </tr>
1071
+             
1072
+           </template>  
1112 1073
         </el-table-column>
1113 1074
 
1114 1075
         <el-table-column label="肝素用量余量(ml)" align="center" v-if="isShow('肝素用量余量')">
1115
-          <el-table-column
1116
-            v-for="(item, index) in labelArr"
1117
-            :key="index"
1118
-            :label="item"
1119
-            align="center"
1120
-          >
1121
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1122
-            <template slot-scope="scope">
1123
-               {{getTemValue(scope.row.gsyp[index])}}
1124
-            </template>
1125
-          </el-table-column>
1076
+          <template slot-scope="scope">
1077
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1078
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1079
+                      {{item.heparin? item.heparin: ""}} 
1080
+                  </td>
1081
+               </tr>
1082
+             
1083
+           </template>  
1126 1084
         </el-table-column>
1127 1085
 
1128 1086
       
1129 1087
 
1130 1088
         <el-table-column label="血压监测部位" align="center" v-if="isShow('血压监测部位')">
1131
-          <el-table-column
1132
-            v-for="(item, index) in labelArr"
1133
-            :key="index"
1134
-            :label="item"
1135
-            align="center"
1136
-          >
1137
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1138
-            <template slot-scope="scope">
1139
-               {{getTemValue(scope.row.xyjcp[index])}}
1140
-            </template>
1141
-          </el-table-column>
1089
+          <template slot-scope="scope">
1090
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1091
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1092
+                      {{ getBloodPressure(item.blood_pressure_monitoring_site) }}
1093
+                  </td>
1094
+               </tr>
1095
+             
1096
+           </template>  
1142 1097
         </el-table-column>
1143 1098
 
1144 1099
        <el-table-column label="并发症" align="center" v-if="isShow('并发症')">
1145
-          <el-table-column
1146
-            v-for="(item, index) in labelArr"
1147
-            :key="index"
1148
-            :label="item"
1149
-            align="center"
1150
-          >
1151
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1152 1100
             <template slot-scope="scope">
1153
-               {{getTemValue(scope.row.bfp[index])}}
1154
-            </template>
1155
-          </el-table-column>
1101
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1102
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1103
+                     {{ getComplication(item.complication) }}
1104
+                  </td>
1105
+               </tr>
1106
+             
1107
+           </template>  
1156 1108
         </el-table-column>
1157 1109
 
1158 1110
        <el-table-column label="累计血容量(ml)" align="center"
1159 1111
        v-if="isShow('累计血容量') && template_id != 41 && org_id != 9538 && org_id != 9671 && org_id != 10340"
1160 1112
        >
1161
-          <el-table-column
1162
-            v-for="(item, index) in labelArr"
1163
-            :key="index"
1164
-            :label="item"
1165
-            align="center"
1166
-          >
1167
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1168
-            <template slot-scope="scope">
1169
-               {{getTemValue(scope.row.ljxrp[index])}}
1170
-            </template>
1171
-          </el-table-column>
1113
+         <template slot-scope="scope">
1114
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1115
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1116
+                    {{item.accumulated_blood_volume}}
1117
+                  </td>
1118
+               </tr>
1119
+             
1120
+           </template>  
1172 1121
         </el-table-column>
1173 1122
 
1174 1123
        <el-table-column label="累计血容量(L)" align="center"
1175 1124
         v-if="isShow('累计血容量') && (template_id == 41  || org_id == 9538 || org_id == 9671 || org_id == 10340)"
1176 1125
        >
1177
-          <el-table-column
1178
-            v-for="(item, index) in labelArr"
1179
-            :key="index"
1180
-            :label="item"
1181
-            align="center"
1182
-          >
1183
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1184
-            <template slot-scope="scope">
1185
-               {{getTemValue(scope.row.ljxrp[index])}}
1186
-            </template>
1187
-          </el-table-column>
1126
+          <template slot-scope="scope">
1127
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1128
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1129
+                    {{item.accumulated_blood_volume}}
1130
+                  </td>
1131
+               </tr>
1132
+             
1133
+           </template>  
1188 1134
         </el-table-column>
1189 1135
 
1190 1136
         <el-table-column label="血容量" align="center"  v-if="isShow('血容量')">
1191
-          <el-table-column
1192
-            v-for="(item, index) in labelArr"
1193
-            :key="index"
1194
-            :label="item"
1195
-            align="center"
1196
-          >
1197
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1198
-            <template slot-scope="scope">
1199
-               {{getTemValue(scope.row.xrp[index])}}
1200
-            </template>
1137
+      
1138
+           <template slot-scope="scope">
1139
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1140
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1141
+                    {{item.accumulated_blood_volume}}
1142
+                  </td>
1143
+               </tr>
1144
+             
1145
+           </template>  
1201 1146
           </el-table-column>
1202
-        </el-table-column>
1203 1147
 
1204 1148
         <el-table-column label="血温监测" align="center" v-if="isShow('血温监测')">
1205
-          <el-table-column
1206
-            v-for="(item, index) in labelArr"
1207
-            :key="index"
1208
-            :label="item"
1209
-            align="center"
1210
-          >
1211
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1212
-            <template slot-scope="scope">
1213
-               {{getTemValue(scope.row.xwp[index])}}
1214
-            </template>
1215
-          </el-table-column>
1149
+          <template slot-scope="scope">
1150
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1151
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1152
+                    {{item.blood_temperature}}
1153
+                  </td>
1154
+               </tr>
1155
+             
1156
+           </template>  
1216 1157
         </el-table-column>
1217 1158
 
1218 1159
         <el-table-column label="尿素监测" align="center" v-if="isShow('尿素监测')" >
1219
-          <el-table-column
1220
-            v-for="(item, index) in labelArr"
1221
-            :key="index"
1222
-            :label="item"
1223
-            align="center"
1224
-          >
1225
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1226
-            <template slot-scope="scope">
1227
-               {{getTemValue(scope.row.nxp[index])}}
1228
-            </template>
1229
-          </el-table-column>
1160
+           <template slot-scope="scope">
1161
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1162
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1163
+                    {{item.urea_monitoring}}
1164
+                  </td>
1165
+               </tr>
1166
+             
1167
+           </template>  
1230 1168
         </el-table-column>
1231 1169
 
1232 1170
         <el-table-column label="血压监测" align="center" v-if="isShow('血压监测')">
1233
-          <el-table-column
1234
-            v-for="(item, index) in labelArr"
1235
-            :key="index"
1236
-            :label="item"
1237
-            align="center"
1238
-          >
1239
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1240
-            <template slot-scope="scope">
1241
-               {{getTemValue(scope.row.xyjc[index])}}
1242
-            </template>
1243
-          </el-table-column>
1171
+          <template slot-scope="scope">
1172
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1173
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1174
+                    {{item.blood_monitor}}
1175
+                  </td>
1176
+               </tr>
1177
+             
1178
+           </template>  
1244 1179
         </el-table-column>
1245 1180
 
1246 1181
         <el-table-column label="肝素量(mg)" align="center" v-if="isShow('肝素量')">
1247
-          <el-table-column
1248
-            v-for="(item, index) in labelArr"
1249
-            :key="index"
1250
-            :label="item"
1251
-            align="center"
1252
-          >
1253
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1254
-            <template slot-scope="scope">
1255
-               {{getTemValue(scope.row.gsp[index])}}
1256
-            </template>
1257
-          </el-table-column>
1182
+          <template slot-scope="scope">
1183
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1184
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1185
+                    {{item.heparin_amount}}
1186
+                  </td>
1187
+               </tr>
1188
+             
1189
+           </template>  
1258 1190
         </el-table-column>
1259 1191
 
1260 1192
        <el-table-column label="脱水(L)" align="center"  v-if="isShow('脱水')">
1261
-          <el-table-column
1262
-            v-for="(item, index) in labelArr"
1263
-            :key="index"
1264
-            :label="item"
1265
-            align="center"
1266
-          >
1267
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1268
-            <template slot-scope="scope">
1269
-               {{getTemValue(scope.row.tshp[index])}}
1270
-            </template>
1271
-          </el-table-column>
1193
+           <template slot-scope="scope">
1194
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1195
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1196
+                    {{item.dehydration}}
1197
+                  </td>
1198
+               </tr>
1199
+             
1200
+           </template>  
1272 1201
         </el-table-column>
1273 1202
 
1274 1203
 
1275 1204
          <el-table-column label="KT/V" align="center"
1276 1205
           v-if="isShow('KT/V') &&(org_id == 9987 || org_id == 10215 || org_id == 9800 || org_id == 9671 || org_id == 9675)"
1277 1206
          >
1278
-          <el-table-column
1279
-            v-for="(item, index) in labelArr"
1280
-            :key="index"
1281
-            :label="item"
1282
-            align="center"
1283
-          >
1284
-            <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
1285
-            <template slot-scope="scope">
1286
-               {{getTemValue(scope.row.ktvp[index])}}
1287
-            </template>
1288
-          </el-table-column>
1207
+          <template slot-scope="scope">
1208
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
1209
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
1210
+                    {{item.ktv}}
1211
+                  </td>
1212
+               </tr>
1213
+             
1214
+           </template>  
1289 1215
         </el-table-column>
1290 1216
 
1291 1217
 
@@ -1311,6 +1237,7 @@
1311 1237
 import store from "@/store";
1312 1238
 import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
1313 1239
 import { parseTime } from "@/utils";
1240
+import { uParseTime } from '@/utils/tools'
1314 1241
 import { getDataConfig } from "@/utils/data";
1315 1242
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
1316 1243
 import { getPrintTemplate } from "@/api/data";
@@ -1509,6 +1436,16 @@ export default {
1509 1436
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
1510 1437
   },
1511 1438
   methods: {
1439
+    getTimeOne(val) {
1440
+        if(val < 0){
1441
+          return ""
1442
+        }
1443
+        if(val == ""){
1444
+        return ""
1445
+        }else {
1446
+        return uParseTime(val, '{h}:{i}')
1447
+        }
1448
+    },
1512 1449
     getTemplateInfo() {
1513 1450
       getPrintTemplate().then(response => {
1514 1451
         if (response.data.state == 0) {
@@ -1594,6 +1531,7 @@ export default {
1594 1531
           this.total = response.data.data.total;
1595 1532
           // console.log(response.data.data)
1596 1533
           for (let i = 0; i < response.data.data.schedule.length; i++) {
1534
+
1597 1535
             if (response.data.data.schedule[i].patient&&response.data.data.schedule[i].patient.id > 0) {
1598 1536
               const SchedualPatientsTable = {
1599 1537
                 bp: []
@@ -1606,6 +1544,7 @@ export default {
1606 1544
               SchedualPatientsTable["sch_time_int"] = response.data.data.schedule[i].schedule_date;
1607 1545
               SchedualPatientsTable["sch_time"] = parseTime(response.data.data.schedule[i].schedule_date,"{y}-{m}-{d}");
1608 1546
               SchedualPatientsTable["mode_id"] = response.data.data.schedule[i].mode_id
1547
+
1609 1548
               if(response.data.data.schedule[i].patient!=null){
1610 1549
                  SchedualPatientsTable["dialysis_no"] = response.data.data.schedule[i].patient.dialysis_no;
1611 1550
                  SchedualPatientsTable["name"] =  response.data.data.schedule[i].patient.name;
@@ -1630,6 +1569,10 @@ export default {
1630 1569
                 SchedualPatientsTable["dialysis_after_weight"] =response.data.data.schedule[i].assessment_after_dislysis.weight_after;
1631 1570
               }
1632 1571
 
1572
+              if(response.data.data.schedule[i].monitoring_record!=null &&response.data.data.schedule[i].monitoring_record.length >0 ){
1573
+                 SchedualPatientsTable["monitoring_record"]  = response.data.data.schedule[i].monitoring_record
1574
+              }
1575
+
1633 1576
               SchedualPatientsTable.bp = [];
1634 1577
               if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
1635 1578
                 for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
@@ -2147,6 +2090,12 @@ export default {
2147 2090
       }
2148 2091
       return false;
2149 2092
     },
2093
+    cellStyle({ row, column, rowIndex, columnIndex }) {
2094
+      let arr = [9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36];
2095
+      if (arr.indexOf(columnIndex) > -1) {
2096
+        return "spanClass";
2097
+      }
2098
+    },
2150 2099
   },
2151 2100
   components: {
2152 2101
     BreadCrumb
@@ -2243,4 +2192,27 @@ export default {
2243 2192
   width: 20px;
2244 2193
   height: 20px;
2245 2194
 }
2195
+
2196
+
2246 2197
 </style>
2198
+<style scoped>
2199
+ /* 合并表格线样式 */
2200
+.spanClass .cell {
2201
+  padding: 0 !important;
2202
+}
2203
+
2204
+.spanClass .cell tr {
2205
+  display: inline-block;
2206
+  width: 100%;
2207
+}
2208
+
2209
+.spanClass .cell tr td {
2210
+  padding: 10px 0;
2211
+  border-bottom: 1px solid #ebeef5;
2212
+  display: block;
2213
+  width: 100%;
2214
+}
2215
+.spanClass .cell tr:last-of-type td {
2216
+  border-bottom: none;
2217
+}
2218
+</style>

+ 19 - 15
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Vedi File

@@ -189,13 +189,14 @@
189 189
                     <el-row :gutter="20"> -->
190 190
 
191 191
                     <el-col :span="8" v-if="isShows('抗凝剂')">
192
+                       
192 193
                         <el-form-item label="抗凝剂:">
193 194
                             <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择"
194 195
                                        style="width:100%;"
195 196
                                        @change="changeThisAnticoagulant">
196 197
                                 <el-option :key="0" label="请选择" :value="0"></el-option>
197
-                                <el-option v-if="dialysisPrescription.anticoagulant ==3" :key="3" label="低分子肝素"
198
-                                           :value="3"></el-option>
198
+                                <!-- <el-option v-if="dialysisPrescription.anticoagulant ==3" :key="3" label="低分子肝素"
199
+                                           :value="3"></el-option> -->
199 200
                                 <el-option v-for="(item, index) in anticoagulantsConfit" :label="item.name"
200 201
                                            :key="index + 'e'"
201 202
                                            :value="item.id"></el-option>
@@ -291,7 +292,7 @@
291 292
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
292 293
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
293 294
                             </el-form-item>
294
-                           <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7" :label="'首剂(iu):'"> 
295
+                           <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7 && this.$store.getters.xt_user.template_info.template_id!=6" :label="'首剂(iu):'"> 
295 296
                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
296 297
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
297 298
 
@@ -299,9 +300,11 @@
299 300
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
300 301
                             </el-form-item>
301 302
 
303
+                          
304
+
302 305
 
303 306
                             <el-form-item
304
-                                    v-if='dialysisPrescription.anticoagulant == 2 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387 && dialysisPrescription.anticoagulant == 2'
307
+                                    v-if='dialysisPrescription.anticoagulant == 2 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387'
305 308
                                     :label="'首剂(mg) : '">
306 309
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
307 310
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
@@ -330,6 +333,7 @@
330 333
                         </div>
331 334
 
332 335
                         <div v-else>
336
+                            
333 337
                             <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '">
334 338
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
335 339
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
@@ -1716,7 +1720,7 @@
1716 1720
         )
1717 1721
         // this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1718 1722
 
1719
-        var anticoagulantsConfitOne = this.$store.getters.anticoagulants_confit
1723
+        this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1720 1724
 
1721 1725
         // for (let i = 0; i < anticoagulantsConfitOne.length; i++) {
1722 1726
         //   console.log('anticoagulantsConfitOne', anticoagulantsConfitOne[i].name)
@@ -1730,15 +1734,15 @@
1730 1734
         // var arrthree = {}
1731 1735
         // arrthree = { ...arr }
1732 1736
         // console.log('arrthree', arrthree)
1733
-        const arrFour = []
1734
-        Object.keys(anticoagulantsConfitOne).map((item, index) => {
1735
-          arrFour.push(anticoagulantsConfitOne[item])
1736
-          // if (index != 2) {
1737
-          //   arrFour.push(anticoagulantsConfitOne[item])
1738
-          // }
1739
-        })
1740
-
1741
-        this.anticoagulantsConfit = arrFour
1737
+        // const arrFour = []
1738
+        // Object.keys(anticoagulantsConfitOne).map((item, index) => {
1739
+        //   arrFour.push(anticoagulantsConfitOne[item])
1740
+        //   // if (index != 2) {
1741
+        //   //   arrFour.push(anticoagulantsConfitOne[item])
1742
+        //   // }
1743
+        // })
1744
+        // console.log("arrFour0-0000000000000wo",arrFour)
1745
+        // this.anticoagulantsConfit = arrFour
1742 1746
         this.dialysisList = this.devices
1743 1747
 
1744 1748
         this.body_fluid_option = this.$store.getters.body_fluid
@@ -4040,7 +4044,7 @@
4040 4044
               this.dialysisPrescription['dialysate_temperature'] = ''
4041 4045
             }
4042 4046
             if (this.prescription['anticoagulant_shouji'] == 0) {
4043
-              this.dialysisPrescription['anticoagulant_shouji'] = 0
4047
+              this.dialysisPrescription['anticoagulant_'] = 0
4044 4048
             }
4045 4049
             if (this.prescription['anticoagulant_weichi'] == 0) {
4046 4050
               this.dialysisPrescription['anticoagulant_weichi'] = 0