瀏覽代碼

龙岗二院打印单

XMLWAN 4 年之前
父節點
當前提交
f8941cc877

+ 103 - 115
src/xt_pages/dialysis/batch_print/batch_print_order_eight.vue 查看文件

@@ -212,7 +212,7 @@
212 212
                         record.assessment_after_dislysis.weight_after
213 213
                           ? parseFloat(
214 214
                               record.assessment_after_dislysis.weight_after
215
-                            ).toFixed(1)
215
+                            ).toFixed(2)
216 216
                           : "/"
217 217
                       }}kg</span
218 218
                     >
@@ -550,7 +550,7 @@
550 550
                     <span style="display:inline-block;margin-left:15px;"
551 551
                       > 血管通路:内瘘波动及震颤:
552 552
                       (&nbsp;
553
-                        <label-box
553
+                        <!-- <label-box
554 554
                           v-for="(item, index) in arr"
555 555
                           :key="index"
556 556
                           :isChecked="
@@ -559,8 +559,29 @@
559 559
                               : false
560 560
                           "
561 561
                           :showValue="item.name"
562
-                        ></label-box
563
-                        >)
562
+                        ></label-box> -->
563
+                        <label-box
564
+                          :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘波动及震颤-存在')
565
+                              ? true
566
+                              : record.assessment_before_dislysis.internal_fistula.indexOf('内瘘波动及震颤-存在') > -1 ? true : false
567
+                          "
568
+                          showValue="存在"
569
+                        ></label-box>
570
+                        <label-box
571
+                          :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘波动及震颤-减弱')
572
+                              ? true
573
+                              : record.assessment_before_dislysis.internal_fistula.indexOf('内瘘波动及震颤-减弱') > -1 ? true : false
574
+                          "
575
+                          showValue="减弱"
576
+                        ></label-box>
577
+                        <label-box
578
+                          :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘波动及震颤-消失')
579
+                              ? true
580
+                              : record.assessment_before_dislysis.internal_fistula.indexOf('内瘘波动及震颤-消失') > -1 ? true : false
581
+                          "
582
+                          showValue="消失"
583
+                        ></label-box>
584
+                        )
564 585
                         <label-box
565 586
                           v-for="(item, index) in arrtwo"
566 587
                           :key="index"
@@ -809,7 +830,7 @@
809 830
                 <tr>
810 831
            <td style="text-align:left;" colspan="8">
811 832
              <span style="display:inline-block;margin-left:15px;">使用特殊药物:</span>
812
-                <label-box
833
+                <!-- <label-box
813 834
                     :isChecked="record.prescription.special_medicine == 1 ? true : false"
814 835
                     showValue="无"
815 836
                   ></label-box>
@@ -825,7 +846,7 @@
825 846
                   <label-box
826 847
                     :isChecked="record.prescription.special_medicine == 4 ? true : false"
827 848
                     showValue="抗凝药"
828
-                  ></label-box>
849
+                  ></label-box> -->
829 850
                   其他:{{ record.prescription.special_medicine_other }}
830 851
               </td>
831 852
              </tr>
@@ -949,103 +970,8 @@
949 970
                 :isChecked="record.assessment_after_dislysis.dialysis_process == 2 ? true : false"
950 971
               ></label-box>
951 972
               &nbsp;&nbsp;
952
-                并发症:
953
-               <label-box
954
-                :isChecked="
955
-                  record.assessment_after_dislysis.complication.indexOf('低血压') > -1
956
-                    ? true
957
-                    : false
958
-                "
959
-                showValue="低血压"
960
-              ></label-box>
961
-              <label-box
962
-                :isChecked="
963
-                  record.assessment_after_dislysis.complication.indexOf('高血压') > -1
964
-                    ? true
965
-                    : false
966
-                "
967
-                showValue="高血压"
968
-              ></label-box>
969
-              <label-box
970
-                :isChecked="
971
-                  record.assessment_after_dislysis.complication.indexOf('心律失常') > -1
972
-                    ? true
973
-                    : false
974
-                "
975
-                showValue="心律失常"
976
-              ></label-box>
977
-              <label-box
978
-                :isChecked="
979
-                  record.assessment_after_dislysis.complication.indexOf('头晕') > -1
980
-                    ? true
981
-                    : false
982
-                "
983
-                showValue="头晕"
984
-              ></label-box>
985
-              <label-box
986
-                :isChecked="
987
-                  record.assessment_after_dislysis.complication.indexOf('头痛') > -1
988
-                    ? true
989
-                    : false
990
-                "
991
-                showValue="头痛"
992
-              ></label-box>
993
-              <label-box
994
-                :isChecked="
995
-                  record.assessment_after_dislysis.complication.indexOf('呕吐') > -1
996
-                    ? true
997
-                    : false
998
-                "
999
-                showValue="呕吐"
1000
-              ></label-box>
1001
-              <label-box
1002
-                :isChecked="
1003
-                  record.assessment_after_dislysis.complication.indexOf('抽搐') > -1
1004
-                    ? true
1005
-                    : false
1006
-                "
1007
-                showValue="抽搐"
1008
-              ></label-box>
1009
-              <label-box
1010
-                :isChecked="
1011
-                  record.assessment_after_dislysis.complication.indexOf('出血') > -1
1012
-                    ? true
1013
-                    : false
1014
-                "
1015
-                showValue="出血"
1016
-              ></label-box>
1017
-              <label-box
1018
-                :isChecked="
1019
-                  record.assessment_after_dislysis.complication.indexOf('心衰') > -1
1020
-                    ? true
1021
-                    : false
1022
-                "
1023
-                showValue="心衰"
1024
-              ></label-box>
1025
-              <label-box
1026
-                :isChecked="
1027
-                  record.assessment_after_dislysis.complication.indexOf('腹痛') > -1
1028
-                    ? true
1029
-                    : false
1030
-                "
1031
-                showValue="腹痛"
1032
-              ></label-box>
1033
-                <label-box
1034
-                :isChecked="
1035
-                  record.assessment_after_dislysis.complication.indexOf('肌肉痉挛') > -1
1036
-                    ? true
1037
-                    : false
1038
-                "
1039
-                showValue="肌肉痉挛"
1040
-              ></label-box>
1041
-              <label-box
1042
-                :isChecked="
1043
-                  record.assessment_after_dislysis.complication.indexOf('无') > -1
1044
-                    ? true
1045
-                    : false
1046
-                "
1047
-                showValue="无"
1048
-              ></label-box>
973
+                并发症:{{ record.assessment_after_dislysis.complication ? record.assessment_after_dislysis.complication : '' }}
974
+               
1049 975
             </span>
1050 976
           </td>
1051 977
         </tr>
@@ -1122,6 +1048,58 @@
1122 1048
            </span>
1123 1049
          </td>
1124 1050
         </tr>
1051
+      </table>
1052
+      <div v-if='record.advices.length > 7' style="page-break-after:always"></div>
1053
+      <div v-if='record.advices.length > 7' class="order-title">{{ orgname }}&nbsp;&nbsp;&nbsp;血液净化治疗记录单续页</div>
1054
+      <table v-if='record.advices.length > 7' class="print-table" style="margin-top: 10px;" border="1">
1055
+        <tr>
1056
+          <td style="text-align:center;" width="140">
1057
+            <span style="display:inline-block;margin-left:10px;">
1058
+              {{ getTime(record.schedule_date, "{y}-{m}-{d}") }}
1059
+            </span>
1060
+          </td>
1061
+          <td style="text-align:center" width="140">
1062
+            姓名:<span style="display:inline-block;margin-left:10px;">
1063
+                {{ record.patient.name }}
1064
+            </span>
1065
+          </td>
1066
+          <td style="text-align:center;width:100px">
1067
+            性别:<span
1068
+              style="display:inline-block;margin-left:10px;"
1069
+            >
1070
+            {{ record.patient.gender == 1 ? '男' : '女' }}
1071
+            </span>
1072
+          </td>
1073
+          <td style="text-align:center;width:100px">
1074
+            年龄:<span
1075
+              style="display:inline-block;margin-left:10px;"
1076
+            >
1077
+            {{ getAge(record.patient) }}
1078
+            </span>
1079
+          </td>
1080
+          <td style="text-align:center;width:160px">
1081
+            <check-box text="门诊" :checked="record.receive_assessment.condition == 1"></check-box>
1082
+            &nbsp;
1083
+              <check-box text="住院" :checked="record.receive_assessment.condition == 2"></check-box>
1084
+          </td>
1085
+          <td style="text-align:center;width:160px">
1086
+            住院号:<span style="display:inline-block;margin-left:10px;">
1087
+                {{record.receive_assessment.admission_number?record.receive_assessment.admission_number:"/"}}
1088
+            </span>
1089
+          </td>
1090
+          <td style="text-align:center;">
1091
+            机器号:<span style="display:inline-block;margin-left:10px;">
1092
+              {{
1093
+                record.dialysis_order &&
1094
+                record.dialysis_order.device_number &&
1095
+                record.dialysis_order.device_number.number.length >
1096
+                0
1097
+                ? record.dialysis_order.device_number.number
1098
+                : record.device_number.number
1099
+              }}
1100
+            </span>
1101
+          </td>
1102
+        </tr>
1125 1103
       </table>
1126 1104
        <table  class="print-table" border="1">
1127 1105
         <tr>
@@ -1224,6 +1202,7 @@
1224 1202
              </div>
1225 1203
             </div>
1226 1204
           </div>
1205
+          <div style="page-break-after:always"></div>
1227 1206
         </div>
1228 1207
       </div>
1229 1208
     </div>
@@ -1325,21 +1304,28 @@ export default {
1325 1304
       'vascular_access_desc'
1326 1305
     )
1327 1306
     console.log("血管通路",bloodAccessParOpera)
1307
+    for (var key in bloodAccessParOpera) {
1308
+      this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
1309
+        bloodAccessParOpera[key]
1310
+    }
1311
+    console.log(this.bloodAccessParOpera)
1312
+
1313
+    
1328 1314
      var arr = [];
1329 1315
     var arrtwo = [];
1330 1316
     for (let i = 0; i < bloodAccessParOpera.length; i++) {
1331
-      if (bloodAccessParOpera[i].name == "内瘘波动及震颤-存在") {
1332
-        bloodAccessParOpera[i].name = "存在";
1333
-        arr.push(bloodAccessParOpera[i]);
1334
-      }
1335
-      if (bloodAccessParOpera[i].name == "内瘘波动及震颤-减弱") {
1336
-        bloodAccessParOpera[i].name = "减弱";
1337
-        arr.push(bloodAccessParOpera[i]);
1338
-      }
1339
-      if (bloodAccessParOpera[i].name == "内瘘波动及震颤-消失") {
1340
-        bloodAccessParOpera[i].name = "消失";
1341
-        arr.push(bloodAccessParOpera[i]);
1342
-      }
1317
+      // if (bloodAccessParOpera[i].name == "内瘘波动及震颤-存在") {
1318
+      //   bloodAccessParOpera[i].name = "存在";
1319
+      //   arr.push(bloodAccessParOpera[i]);
1320
+      // }
1321
+      // if (bloodAccessParOpera[i].name == "内瘘波动及震颤-减弱") {
1322
+      //   bloodAccessParOpera[i].name = "减弱";
1323
+      //   arr.push(bloodAccessParOpera[i]);
1324
+      // }
1325
+      // if (bloodAccessParOpera[i].name == "内瘘波动及震颤-消失") {
1326
+      //   bloodAccessParOpera[i].name = "消失";
1327
+      //   arr.push(bloodAccessParOpera[i]);
1328
+      // }
1343 1329
       if (bloodAccessParOpera[i].name == "直穿") {
1344 1330
         arrtwo.push(bloodAccessParOpera[i]);
1345 1331
       }
@@ -1351,6 +1337,8 @@ export default {
1351 1337
       }
1352 1338
       this.arr = arr;
1353 1339
       this.arrtwo = arrtwo;
1340
+
1341
+      
1354 1342
     this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
1355 1343
 
1356 1344
     var dialysateFormulationOptions = getDataConfig(

+ 103 - 110
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue 查看文件

@@ -431,7 +431,7 @@
431 431
           <td colspan="8" style="text-align:left;">
432 432
             <span style="display:inline-block;margin-left:15px;">
433 433
               血管通路:内瘘波动及震颤: (&nbsp;
434
-              <label-box
434
+              <!-- <label-box
435 435
                 v-for="(item, index) in arr"
436 436
                 :key="index"
437 437
                 :isChecked="
@@ -440,7 +440,20 @@
440 440
                     : false
441 441
                 "
442 442
                 :showValue="item.name"
443
-              ></label-box>)
443
+              ></label-box> -->
444
+              <label-box
445
+                :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘波动及震颤-存在')>-1?true: predialysis.internal_fistula.indexOf('内瘘波动及震颤-存在')>-1 ? true : false"
446
+                showValue="存在"
447
+              ></label-box>
448
+              <label-box
449
+                :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘波动及震颤-减弱')>-1?true: predialysis.internal_fistula.indexOf('内瘘波动及震颤-减弱')>-1 ? true : false"
450
+                showValue="减弱"
451
+              ></label-box>
452
+              <label-box
453
+                :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘波动及震颤-消失')>-1?true: predialysis.internal_fistula.indexOf('内瘘波动及震颤-消失')>-1 ? true : false"
454
+                showValue="消失"
455
+              ></label-box>
456
+              )
444 457
               <label-box
445 458
                 v-for="(item, index) in arrtwo"
446 459
                 :key="index"
@@ -620,7 +633,7 @@
620 633
         <tr>
621 634
           <td style="text-align:left;" colspan="8">
622 635
             <span style="display:inline-block;margin-left:15px;">使用特殊药物:</span>
623
-            <label-box :isChecked="prescription.special_medicine == 1 ? true : false" showValue="无"></label-box>
636
+            <!-- <label-box :isChecked="prescription.special_medicine == 1 ? true : false" showValue="无"></label-box>
624 637
             <label-box :isChecked="prescription.special_medicine == 2 ? true : false" showValue="有"></label-box>:
625 638
             <label-box
626 639
               :isChecked="prescription.special_medicine == 3 ? true : false"
@@ -629,7 +642,7 @@
629 642
             <label-box
630 643
               :isChecked="prescription.special_medicine == 4 ? true : false"
631 644
               showValue="抗凝药"
632
-            ></label-box>
645
+            ></label-box> -->
633 646
             其他:{{ prescription.special_medicine_other }}
634 647
           </td>
635 648
         </tr>
@@ -792,103 +805,8 @@
792 805
               <label-box
793 806
                 showValue="提前"
794 807
                 :isChecked="afterdialysis.dialysis_process == 2 ? true : false"
795
-              ></label-box>&nbsp;&nbsp; 并发症:
796
-              <label-box
797
-                :isChecked="
798
-                  afterdialysis.complication.indexOf('低血压') > -1
799
-                    ? true
800
-                    : false
801
-                "
802
-                showValue="低血压"
803
-              ></label-box>
804
-              <label-box
805
-                :isChecked="
806
-                  afterdialysis.complication.indexOf('高血压') > -1
807
-                    ? true
808
-                    : false
809
-                "
810
-                showValue="高血压"
811
-              ></label-box>
812
-              <label-box
813
-                :isChecked="
814
-                  afterdialysis.complication.indexOf('心律失常') > -1
815
-                    ? true
816
-                    : false
817
-                "
818
-                showValue="心律失常"
819
-              ></label-box>
820
-              <label-box
821
-                :isChecked="
822
-                  afterdialysis.complication.indexOf('头晕') > -1
823
-                    ? true
824
-                    : false
825
-                "
826
-                showValue="头晕"
827
-              ></label-box>
828
-              <label-box
829
-                :isChecked="
830
-                  afterdialysis.complication.indexOf('头痛') > -1
831
-                    ? true
832
-                    : false
833
-                "
834
-                showValue="头痛"
835
-              ></label-box>
836
-              <label-box
837
-                :isChecked="
838
-                  afterdialysis.complication.indexOf('呕吐') > -1
839
-                    ? true
840
-                    : false
841
-                "
842
-                showValue="呕吐"
843
-              ></label-box>
844
-              <label-box
845
-                :isChecked="
846
-                  afterdialysis.complication.indexOf('抽搐') > -1
847
-                    ? true
848
-                    : false
849
-                "
850
-                showValue="抽搐"
851
-              ></label-box>
852
-              <label-box
853
-                :isChecked="
854
-                  afterdialysis.complication.indexOf('出血') > -1
855
-                    ? true
856
-                    : false
857
-                "
858
-                showValue="出血"
859
-              ></label-box>
860
-              <label-box
861
-                :isChecked="
862
-                  afterdialysis.complication.indexOf('心衰') > -1
863
-                    ? true
864
-                    : false
865
-                "
866
-                showValue="心衰"
867
-              ></label-box>
868
-              <label-box
869
-                :isChecked="
870
-                  afterdialysis.complication.indexOf('腹痛') > -1
871
-                    ? true
872
-                    : false
873
-                "
874
-                showValue="腹痛"
875
-              ></label-box>
876
-              <label-box
877
-                :isChecked="
878
-                  afterdialysis.complication.indexOf('肌肉痉挛') > -1
879
-                    ? true
880
-                    : false
881
-                "
882
-                showValue="肌肉痉挛"
883
-              ></label-box>
884
-              <label-box
885
-                :isChecked="
886
-                  afterdialysis.complication.indexOf('无') > -1
887
-                    ? true
888
-                    : false
889
-                "
890
-                showValue="无"
891
-              ></label-box>
808
+              ></label-box>&nbsp;&nbsp; 并发症:{{ afterdialysis.complication ? afterdialysis.complication : '' }}
809
+              
892 810
             </span>
893 811
           </td>
894 812
         </tr>
@@ -972,7 +890,81 @@
972 890
           </td>
973 891
         </tr>
974 892
       </table>
975
-
893
+      <div v-if='tableAdvice.length > 8' style="page-break-after:always"></div>
894
+      <div v-if='tableAdvice.length > 8' class="order-title">{{ orgname }}&nbsp;&nbsp;&nbsp;血液净化治疗记录单续页</div>
895
+      <table v-if='tableAdvice.length > 8' class="print-table" border="1" style="margin-top: 10px;">
896
+        <tr>
897
+          <td style="text-align:left;">
898
+            <span style="display:inline-block;margin-left:15px;">
899
+              {{getDatge(queryParams.xtdate)}}
900
+            </span>
901
+          </td>
902
+          <td style="text-align:center;">
903
+            姓名:
904
+            <span style="display:inline-block;margin-left:10px;">
905
+              {{patientInfo.name}}
906
+            </span>
907
+          </td>
908
+          <td style="text-align:center;">
909
+            性别:
910
+            <span style="display:inline-block;margin-left:10px;">
911
+              {{patientInfo.gender}}
912
+            </span>
913
+          </td>
914
+          <td style="text-align:center;">
915
+            年龄:
916
+            <span style="display:inline-block;margin-left:10px;">
917
+              {{
918
+              getAge(patientInfo)
919
+              }}
920
+            </span>
921
+          </td>
922
+          <td style="text-align:center;">
923
+            <label-box
924
+              showValue="门诊"
925
+              :isChecked="receiverTreatmentAccess.condition == 2 ? true : false"
926
+            ></label-box>
927
+            <label-box
928
+              showValue="住院"
929
+              :isChecked="receiverTreatmentAccess.condition == 1 ? true : false"
930
+            ></label-box>
931
+          </td>
932
+          <td style="text-align:center;">
933
+            <template v-if="receiverTreatmentAccess.condition == 1">
934
+              住院号:
935
+              <span style="display:inline-block;margin-left:10px;">
936
+                {{
937
+                receiverTreatmentAccess.admission_number
938
+                ? receiverTreatmentAccess.admission_number
939
+                : "/"
940
+                }}
941
+              </span>
942
+            </template>
943
+            <template v-else>
944
+              门诊号:
945
+              <span style="display:inline-block;margin-left:10px;">
946
+                {{
947
+                patientInfo.admission_number
948
+                ? patientInfo.admission_number
949
+                : "/"
950
+                }}
951
+              </span>
952
+            </template>
953
+          </td>
954
+          <td style="text-align:center;">
955
+            机器号:
956
+            <span style="display:inline-block;margin-left:10px;">
957
+              {{
958
+              dialysisOrder &&
959
+              dialysisOrder.DeviceNumber &&
960
+              dialysisOrder.DeviceNumber.number > 0
961
+              ? dialysisOrder.DeviceNumber.number
962
+              : patientInfo.DialysisSchedule.device_number.number
963
+              }}
964
+            </span>
965
+          </td>
966
+        </tr>
967
+      </table>
976 968
       <table class="print-table" border="1">
977 969
         <tr>
978 970
           <td>时间</td>
@@ -2018,14 +2010,15 @@ export default {
2018 2010
     console.log('arr', arr)
2019 2011
     console.log('arrtwo', arrtwo)
2020 2012
 
2021
-    // var bloodAccessParOpera = getDataConfig(
2022
-    //   "hemodialysis",
2023
-    //   "vascular_access_desc"
2024
-    // );
2025
-    // for (var key in bloodAccessParOpera) {
2026
-    //   this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2027
-    //     bloodAccessParOpera[key];
2028
-    // }
2013
+    var bloodAccessParOpera = getDataConfig(
2014
+      "hemodialysis",
2015
+      "vascular_access_desc"
2016
+    );
2017
+    for (var key in bloodAccessParOpera) {
2018
+      this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2019
+        bloodAccessParOpera[key];
2020
+    }
2021
+    
2029 2022
 
2030 2023
     var dialysateFormulationOptions = getDataConfig(
2031 2024
       'hemodialysis',