浏览代码

修改打印

csx 6 年前
父节点
当前提交
429b4dca1e

+ 465 - 45
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue 查看文件

@@ -24,7 +24,7 @@
24 24
             </div>
25 25
             <div class="inline_block" style="margin-left: 15px;">
26 26
               年龄:
27
-              <div class="under_line" style="width: 50px;">{{jsGetAge(record.patient.birthday)}}</div>
27
+              <div class="under_line" style="width: 50px;">{{getAge(record.patient)}}</div>
28 28
29 29
             </div>
30 30
             <div class="inline_block" style="float: right;">
@@ -229,15 +229,6 @@
229 229
                       </div>
230 230
                     </div>
231 231
 
232
-                    <div class="inline_block">
233
-                      &emsp;病情:
234
-                      <check-box text="一般"
235
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>
236
-                      <check-box text="重"
237
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>
238
-                      <check-box text="危"
239
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>
240
-                    </div>
241 232
 
242 233
                     <div class="inline_block">
243 234
                       跌倒风险评估:
@@ -300,15 +291,17 @@
300 291
                     </div>
301 292
 
302 293
                     <div class="inline_block">
303
-                      <div v-if="record.receive_assessment != null && record.receive_assessment.psychological_assessment == 2" class="under_line"
304
-                           style="width: 100px;">{{
294
+                      <div
295
+                        v-if="record.receive_assessment != null && record.receive_assessment.psychological_assessment == 2"
296
+                        class="under_line"
297
+                        style="width: 100px;">{{
305 298
                         record.receive_assessment?record.receive_assessment.psychological_assessment_other:''}}
306 299
                       </div>
307 300
                     </div>
308 301
                   </div>
309 302
                 </td>
310 303
               </tr>
311
-              <tr>
304
+              <tr style="display:none;">
312 305
                 <td width="25px">
313 306
                   透<br/>析<br/>处<br/>方
314 307
                 </td>
@@ -395,21 +388,24 @@
395 388
                     </div>
396 389
 
397 390
 
398
-                    <div class="inline_block" v-if="record.prescription != null &&record.prescription.displace_liqui_part == 0">
391
+                    <div class="inline_block"
392
+                         v-if="record.prescription != null &&record.prescription.displace_liqui_part == 0">
399 393
                       &emsp;置换液后/前稀释 总量:
400 394
                       <div class="under_line" style="width: 100px;">{{
401 395
                         record.prescription?record.prescription.displace_liqui_value:''}}
402 396
                       </div>
403 397
                       L
404 398
                     </div>
405
-                    <div class="inline_block" v-if="record.prescription != null &&record.prescription.displace_liqui_part == 1">
399
+                    <div class="inline_block"
400
+                         v-if="record.prescription != null &&record.prescription.displace_liqui_part == 1">
406 401
                       &emsp;置换液前稀释 总量:
407 402
                       <div class="under_line" style="width: 100px;">{{
408 403
                         record.prescription?record.prescription.displace_liqui_value:''}}
409 404
                       </div>
410 405
                       L
411 406
                     </div>
412
-                    <div class="inline_block" v-if="record.prescription != null &&record.prescription.displace_liqui_part == 2">
407
+                    <div class="inline_block"
408
+                         v-if="record.prescription != null &&record.prescription.displace_liqui_part == 2">
413 409
                       &emsp;置换液后稀释 总量:
414 410
                       <div class="under_line" style="width: 100px;">{{
415 411
                         record.prescription?record.prescription.displace_liqui_value:''}}
@@ -435,9 +431,6 @@
435 431
                   </div>
436 432
 
437 433
 
438
-
439
-
440
-
441 434
                   <div class="row" style="padding: 2px 0;">
442 435
                     <div class="inline_block">
443 436
                       血管通路:
@@ -493,7 +486,7 @@
493 486
                   </div>
494 487
                 </td>
495 488
               </tr>
496
-              <tr>
489
+              <tr style="display:none;">
497 490
                 <td colspan="2" style="padding: 0;">
498 491
                   <table class="inside_table">
499 492
                     <thead>
@@ -664,10 +657,11 @@
664 657
                       <td width="60">脉率<br/>次/分</td>
665 658
                       <td width="60">呼吸<br/>次/分</td>
666 659
                       <td width="60">血流量<br/>ml/min</td>
667
-                      <td width="60">超滤量<br/>L</td>
660
+                      <td width="60">超滤量累计<br/>L</td>
668 661
                       <td width="60">置换量<br/>L</td>
669
-                      <td width="60">静脉压<br/>mmHg</td>
670
-                      <td width="60">跨膜压<br/>mmHg</td>
662
+                      <td width="60">静脉压/动脉压<br/>mmHg</td>
663
+                      <td width="60">钠浓度<br/>mmol/L</td>
664
+
671 665
                       <td>病情特殊情况处理<br/>及专科护理措施记录</td>
672 666
                       <td>护士签名</td>
673 667
 
@@ -684,8 +678,10 @@
684 678
                       <td>{{monitor_record.blood_flow_volume?monitor_record.blood_flow_volume:''}}</td>
685 679
                       <td>{{monitor_record.ultrafiltration_volume?monitor_record.ultrafiltration_volume:''}}</td>
686 680
                       <td>{{monitor_record.displacement_quantity?monitor_record.displacement_quantity:''}}</td>
687
-                      <td>{{monitor_record.venous_pressure?monitor_record.venous_pressure:''}}</td>
688
-                      <td>{{monitor_record.transmembrane_pressure?monitor_record.transmembrane_pressure:''}}</td>
681
+                      <td>
682
+                        {{monitor_record.venous_pressure?monitor_record.venous_pressure:''}}/{{monitor_record.arterial_pressure?monitor_record.arterial_pressure:''}}
683
+                      </td>
684
+                      <td>{{monitor_record.sodium_concentration?monitor_record.sodium_concentration:''}}</td>
689 685
                       <td>
690 686
                         {{monitor_record.symptom}}
691 687
                         &nbsp;{{monitor_record.dispose}}
@@ -693,7 +689,8 @@
693 689
                       </td>
694 690
                       <td>
695 691
                         <span v-if="setAdminUserES(monitor_record, 'monitoring_nurse') == ''">{{getAdminUser(monitor_record, 'monitoring_nurse')}}</span>
696
-                        <img class="es-img" :src="setAdminUserES(monitor_record, 'monitoring_nurse')" alt="" srcset="" v-else
692
+                        <img class="es-img" :src="setAdminUserES(monitor_record, 'monitoring_nurse')" alt="" srcset=""
693
+                             v-else
697 694
                              style="height: 20px;">
698 695
                       </td>
699 696
                     </tr>
@@ -804,7 +801,7 @@
804 801
                   <div class="row" style="padding: 2px 0;">
805 802
                     <div class="inline_block">
806 803
                       透析器及血路管凝血情况:
807
-                      &emsp; 动脉管道:
804
+                       动脉管道:
808 805
                       <check-box text="0"
809 806
                                  :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'arterial_tube', 1)"></check-box>
810 807
                       <check-box text="+"
@@ -839,6 +836,8 @@
839 836
                     </div>
840 837
 
841 838
                   </div>
839
+
840
+
842 841
                   <div class="row" style="padding: 2px 0;">
843 842
                     患者去向:
844 843
                     <check-box text="门诊"
@@ -879,8 +878,8 @@
879 878
                     </div>
880 879
 
881 880
 
882
-                    <div class="inline_block" >
883
-                      &emsp;时间:
881
+                    <div class="inline_block">
882
+                      &emsp;核对时间:
884 883
                       <div class="under_line" style="width: 200px;">
885 884
                         {{record.check?getTime(record.check.updated_time,'{y}年{m}月{d}日 {h}时'):''}}
886 885
                       </div>
@@ -897,8 +896,14 @@
897 896
                     </div>
898 897
 
899 898
 
900
-                    <div class="inline_block" style="float: left;">
901
-                      &emsp;血透室护士签名:
899
+
900
+
901
+                  </div>
902
+
903
+                  <div class="row" style="padding: 2px 0;">
904
+
905
+                    <div class="inline_block" >
906
+                      血透室护士签名:
902 907
                       <div class="under_line" style="width: 100px;">
903 908
                         <span v-if="setAdminUserES(record.dialysis_order, 'start_nurse') == ''">{{getAdminUser(record.dialysis_order, 'start_nurse')}}</span>
904 909
                         <img class="es-img" :src="setAdminUserES(record.dialysis_order, 'start_nurse')" alt="" srcset=""
@@ -907,33 +912,440 @@
907 912
                     </div>
908 913
 
909 914
 
915
+                    <div class="inline_block">
916
+                      病区护士签名:
917
+                      <div class="under_line" style="width: 100px;">
918
+                      </div>
919
+                    </div>
920
+
921
+                    <div class="inline_block">
922
+                      &emsp;时间:
923
+                      <div class="under_line" style="width: 200px;">
924
+                        {{record.dialysis_order?getTime(record.dialysis_order.end_time,'{y}年{m}月{d}日 {h}时'):''}}
925
+                      </div>
926
+                    </div>
927
+                  </div>
928
+                </td>
929
+              </tr>
930
+              </tbody>
931
+            </table>
932
+            <div class="row" style="font-size: 10px;margin-bottom: 300px">
933
+              注:透析器及血路管凝血:0级无凝血;
934
+              “+”(指Ⅰ级:束状纤维凝血或动/静脉壶/滤网见轻微凝血);“++”(指II级:近半数纤维凝血或动/静脉壶/滤网出现凝血块);“+++”(指III级:压力异常升高,须中途更换透析器/血路管A/V)。
935
+            </div>
936
+
937
+            <div class="order-yy-name">{{orgname}}</div>
938
+            <div class="order_title">
939
+              血液净化科医嘱及执行单
940
+            </div>
941
+
942
+            <div class="row" style="margin-top: 15px;">
943
+              <div class="inline_block">
944
+                姓名:
945
+                <div class="under_line" style="width: 120px;">{{ record.patient.name }}</div>
946
+              </div>
947
+              <div class="inline_block" style="margin-left: 20px;">
948
+                性别:
949
+                <check-box text="男" :checked="record.patient.gender == 1"></check-box>
950
+                <check-box text="女" :checked="record.patient.gender == 2"></check-box>
951
+              </div>
952
+              <div class="inline_block" style="margin-left: 15px;">
953
+                年龄:
954
+                <div class="under_line" style="width: 50px;">{{jsGetAge(record.patient.birthday)}}</div>
955
+                岁
956
+              </div>
957
+              <div class="inline_block" style="float: right;">
958
+                科室:
959
+                <check-box text="门诊透析" :checked="record.patient.source == 1"></check-box>
960
+                <check-box text="住院" :checked="record.patient.source == 2"></check-box>
961
+                <!-- TODO -->
962
+              </div>
963
+            </div>
964
+            <div class="row flex">
965
+              <div class="inline_block">
966
+                住院号/透析卡号:
967
+                <div class="under_line" style="width: 100px;">
968
+                  {{record.patient.admission_number?record.patient.admission_number:'无'}}/{{ record.patient.dialysis_no
969
+                  }}
970
+                </div>
971
+              </div>
972
+              <div class="inline_block">
973
+                诊断:
974
+                <div class="under_line" style="width: 500px;">{{record.patient.diagnose}}</div>
975
+              </div>
976
+            </div>
977
+            <table class="proj_table">
978
+              <tbody>
979
+              <tr>
980
+                <td width="25px">
981
+                  透<br/>析<br/>处<br/>方
982
+                </td>
983
+                <td>
984
+                  <div class="row" style="padding: 2px 0;">
985
+                    <div class="inline_block">
986
+                      治疗时间:
987
+                      <div class="under_line" style="width: 30px;">
988
+                        {{record.prescription&&record.prescription.dialysis_duration_hour?record.prescription.dialysis_duration_hour:''}}
989
+                      </div>
990
+                      h
991
+                      <div class="under_line" style="width: 30px;">
992
+                        {{record.prescription&&record.prescription.dialysis_duration_minute?record.prescription.dialysis_duration_minute:''}}
993
+                      </div>
994
+                      min
995
+                    </div>
996
+
997
+                    <div class="inline_block">
998
+                      &emsp;治疗方式:
999
+                      <check-box text="HD" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 1)"></check-box>
1000
+                      <check-box text="HDF" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 2)"></check-box>
1001
+                      <check-box text="HF" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 5)"></check-box>
1002
+                      <check-box text="HP" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 4)"></check-box>
1003
+                      <check-box text="HD+HP"
1004
+                                 :checked="isCheckBoxChecked(record.prescription, 'mode_id', 3)"></check-box>
1005
+                    </div>
1006
+
1007
+                    <div class="inline_block">
1008
+                      其它:
1009
+                      <div class="under_line" style="width: 100px;">{{
1010
+                        record.prescription&&record.prescription.mode_id>5?record.prescription.mode:''}}
1011
+                      </div>
1012
+                    </div>
1013
+
1014
+                  </div>
1015
+                  <div class="row" style="padding: 2px 0;">
910 1016
 
1017
+                  <div class="inline_block">
1018
+                    病情:
1019
+                    <check-box text="一般"
1020
+                               :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>
1021
+                    <check-box text="重"
1022
+                               :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>
1023
+                    <check-box text="危"
1024
+                               :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>
911 1025
 
1026
+                    <div class="inline_block">
1027
+                      &emsp;透析器型号:
1028
+                      <div class="under_line" style="width: 200px">
1029
+                        {{record.prescription?record.prescription.dialyzer_perfusion_apparatus:''}}
1030
+                      </div>
1031
+                    </div>
912 1032
 
913 1033
                   </div>
914 1034
 
1035
+                  </div>
915 1036
                   <div class="row" style="padding: 2px 0;">
916 1037
 
917
-                    <div class="inline_block" >
918
-                      病区护士签名:
919
-                      <div class="under_line" style="width: 100px;">
1038
+                    <div class="inline_block">
1039
+                      体液过多症状:
1040
+                      <check-box text="无"
1041
+                                 :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 1)"></check-box>
1042
+                      <check-box text="下肢水肿+"
1043
+                                 :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 2)"></check-box>
1044
+                      <check-box text="下肢水肿++"
1045
+                                 :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 4)"></check-box>
1046
+                      <check-box text="下肢水肿+++"
1047
+                                 :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 4)"></check-box>
1048
+                    </div>
1049
+
1050
+                    <div class="inline_block">
1051
+                      其它:
1052
+                      <div class="under_line" style="width: 100px;">{{
1053
+                        record.prescription?record.prescription.body_fluid_other:''}}
920 1054
                       </div>
921 1055
                     </div>
922 1056
 
923
-                    <div class="inline_block" >
924
-                      &emsp;时间:
925
-                      <div class="under_line" style="width: 200px;">
926
-                        {{record.dialysis_order?getTime(record.dialysis_order.end_time,'{y}年{m}月{d}日 {h}时'):''}}
1057
+                  </div>
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+                  <div class="row" style="padding: 2px 0;">
1064
+                    <div class="inline_block">
1065
+                      透析液(mol/l):
1066
+                      &emsp;Ca<sup>2+</sup>:
1067
+                      <div class="under_line" style="width: 30px;">
1068
+                        {{record.prescription&&record.prescription.calcium?record.prescription.calcium:''}}
1069
+                      </div>
1070
+                      mol/l
1071
+                      &emsp;Na<sup>+</sup>:
1072
+                      <div class="under_line" style="width: 30px;">
1073
+                        {{record.prescription&&record.prescription.sodium?record.prescription.sodium:''}}
1074
+                      </div>
1075
+                      mol/l
1076
+                      &emsp;K<sup>+</sup>:
1077
+                      <div class="under_line" style="width: 30px;">
1078
+                        {{record.prescription&&record.prescription.kalium?record.prescription.kalium:''}}
1079
+                      </div>
1080
+                      mol/l
1081
+                    </div>
1082
+
1083
+
1084
+                    <div class="inline_block"
1085
+                         v-if="record.prescription != null &&record.prescription.displace_liqui_part == 0">
1086
+                      &emsp;置换液后/前稀释 总量:
1087
+                      <div class="under_line" style="width: 100px;">{{
1088
+                        record.prescription?record.prescription.displace_liqui_value:''}}
1089
+                      </div>
1090
+                      L
1091
+                    </div>
1092
+                    <div class="inline_block"
1093
+                         v-if="record.prescription != null &&record.prescription.displace_liqui_part == 1">
1094
+                      &emsp;置换液前稀释 总量:
1095
+                      <div class="under_line" style="width: 100px;">{{
1096
+                        record.prescription?record.prescription.displace_liqui_value:''}}
1097
+                      </div>
1098
+                      L
1099
+                    </div>
1100
+                    <div class="inline_block"
1101
+                         v-if="record.prescription != null &&record.prescription.displace_liqui_part == 2">
1102
+                      &emsp;置换液后稀释 总量:
1103
+                      <div class="under_line" style="width: 100px;">{{
1104
+                        record.prescription?record.prescription.displace_liqui_value:''}}
1105
+                      </div>
1106
+                      L
1107
+                    </div>
1108
+
1109
+                  </div>
1110
+                  <div class="row" style="padding: 2px 0;">
1111
+
1112
+                    <div class="inline_block">
1113
+                      透析前使用特殊药物:
1114
+                      <check-box text="无"
1115
+                                 :checked="isCheckBoxChecked(record.prescription, 'special_medicine', 1)"></check-box>
1116
+                      <check-box text="降压药"
1117
+                                 :checked="isCheckBoxChecked(record.prescription, 'special_medicine', 2)"></check-box>
1118
+                      <check-box text="抗凝"
1119
+                                 :checked="isCheckBoxChecked(record.prescription, 'special_medicine', 3)"></check-box>
1120
+                    </div>
1121
+                    <div class="inline_block">
1122
+                      其它:
1123
+                      <div class="under_line" style="width: 150px;">{{
1124
+                        record.prescription?record.prescription.special_medicine_other:''}}
1125
+                      </div>
1126
+                    </div>
1127
+                  </div>
1128
+
1129
+
1130
+                  <div class="row" style="padding: 2px 0;">
1131
+                    <div class="inline_block">
1132
+                      血管通路:
1133
+                      <check-box text="内瘘"
1134
+                                 :checked="isCheckBoxChecked(record.prescription, 'blood_access', 1)"></check-box>
1135
+                      <check-box text="直穿"
1136
+                                 :checked="isCheckBoxChecked(record.prescription, 'blood_access', 2)"></check-box>
1137
+                      <check-box text="导管"
1138
+                                 :checked="isCheckBoxChecked(record.prescription, 'blood_access', 3)"></check-box>
1139
+                    </div>
1140
+
1141
+                    <div class="inline_block">
1142
+                      &emsp;血流量:
1143
+                      <div class="under_line" style="width: 100px;">{{
1144
+                        record.prescription?record.prescription.blood_flow_volume:''}}
1145
+                      </div>
1146
+                      ml/min
1147
+                    </div>
1148
+
1149
+                    <div class="inline_block">
1150
+                      &emsp;透析液流量:
1151
+                      <div class="under_line" style="width: 100px;">{{
1152
+                        record.prescription?record.prescription.dialysate_flow:''}}
1153
+                      </div>
1154
+                      ml/min
1155
+                    </div>
1156
+                  </div>
1157
+
1158
+
1159
+                  <div class="row" style="padding: 2px 0;">
1160
+                    <div class="inline_block">
1161
+                      透前体重:
1162
+                      <div class="under_line" style="width: 100px;">{{
1163
+                        record.assessment_before_dislysis?record.assessment_before_dislysis.weight_before:''}}
1164
+                      </div>
1165
+                      kg
1166
+                    </div>
1167
+
1168
+                    <div class="inline_block">
1169
+                      &emsp;设定超滤量:
1170
+                      <div class="under_line" style="width: 100px;">{{
1171
+                        record.prescription?record.prescription.target_ultrafiltration:''}}
927 1172
                       </div>
1173
+                      L
1174
+                    </div>
1175
+                    <div class="inline_block">
1176
+                      &emsp;实际超滤量:
1177
+                      <div class="under_line" style="width: 100px;">{{
1178
+                        record.prescription?record.prescription.ultrafiltration:''}}
1179
+                      </div>
1180
+                      L
1181
+                    </div>
1182
+
1183
+                    <div class="inline_block">
1184
+                      透后体重:
1185
+                      <div class="under_line" style="width: 100px;">{{
1186
+                        record.assessment_after_dislysis?record.assessment_after_dislysis.weight_after:''}}
1187
+                      </div>
1188
+                      kg
928 1189
                     </div>
929 1190
                   </div>
930 1191
                 </td>
931 1192
               </tr>
1193
+              <tr>
1194
+                <td colspan="2" style="padding: 0;">
1195
+                  <table class="inside_table">
1196
+                    <thead>
1197
+                    <tr>
1198
+                      <td width="40px">时间</td>
1199
+                      <td width="110px">医嘱内容</td>
1200
+                      <td width="80px">医生签名</td>
1201
+                      <td width="80px">执行护士</td>
1202
+                      <td width="65px">执行时间</td>
1203
+                      <td width="75px">核对护士</td>
1204
+                      <td width="10px"></td>
1205
+                      <td width="40px">时间</td>
1206
+                      <td width="110px">医嘱内容</td>
1207
+                      <td width="80px">医生签名</td>
1208
+                      <td width="80px">执行护士</td>
1209
+                      <td width="65px">执行时间</td>
1210
+                      <td width="75px">核对护士</td>
1211
+
1212
+                      <!-- <td width="100">时间</td>
1213
+                      <td>医嘱内容</td>
1214
+                      <td width="120">医生签名</td>
1215
+                      <td width="120">执行护士</td>
1216
+                      <td width="100">执行时间</td>
1217
+                      <td width="120">核对护士</td> -->
1218
+                    </tr>
1219
+                    </thead>
1220
+                    <tbody>
1221
+                    <tr v-for="(advice, index) in record.advices" :key="index">
1222
+                      <td>
1223
+                                                    <span v-if="advice[0]&&advice[0].start_time">
1224
+                                                    {{getTime(advice[0].start_time,'{h}:{i}')}}
1225
+                                                    </span>
1226
+                        <span v-else>&nbsp;<br/>&nbsp;</span>
1227
+                      </td>
1228
+                      <td class="advice-name">
1229
+                        <span v-if="advice[0].parent_id>0">└</span>
1230
+                        <span>{{advice[0].advice_name }}</span>
1231
+                        <span>{{advice[0].advice_desc}}</span>
1232
+                        <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
1233
+                        <span v-if="advice[0].prescribing_number">* {{advice[0].prescribing_number}}{{advice[0].prescribing_number_unit}}</span>
1234
+                        <span v-if="advice[0].single_dose != 0">单次用量 {{advice[0].single_dose}}{{advice[0].single_dose_unit}}</span>
1235
+                        <span>{{advice[0].delivery_way}}</span>
1236
+                        <span>{{advice[0].execution_frequency}}</span>
1237
+                        <div v-for="(child, childindex) in advice[0].children" :key="childindex"
1238
+                             class="advice-children">
1239
+                          <div>▲</div>
1240
+                          <div>
1241
+                            <span>{{child.advice_name }}</span>
1242
+                            <span>{{child.advice_desc}}</span>
1243
+                            <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
1244
+                            <span
1245
+                              v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
1246
+                            <span
1247
+                              v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
1248
+                          </div>
1249
+                        </div>
1250
+                      </td>
1251
+                      <td>
1252
+                        <span v-if="setAdminUserES(advice[0], 'advice_doctor') == ''">{{getAdminUser(advice[0], 'advice_doctor')}}</span>
1253
+                        <img class="es-img" :src="setAdminUserES(advice[0], 'advice_doctor')" alt="" srcset="" v-else
1254
+                             style="height: 20px;">
1255
+                      </td>
1256
+                      <td>
1257
+                        <span v-if="setAdminUserES(advice[0], 'execution_staff') == ''">{{getAdminUser(advice[0], 'execution_staff')}}</span>
1258
+                        <img class="es-img" :src="setAdminUserES(advice[0], 'execution_staff')" alt="" srcset="" v-else
1259
+                             style="height: 20px;">
1260
+                      </td>
1261
+                      <td>
1262
+                                                    <span v-if="advice[0].execution_time">
1263
+                                                    {{getTime(advice[0].execution_time,'{h}:{i}')}}
1264
+                                                    </span>
1265
+                      </td>
1266
+                      <td>
1267
+                        <span
1268
+                          v-if="setAdminUserES(advice[0], 'checker') == ''">{{getAdminUser(advice[0], 'checker')}}</span>
1269
+                        <img class="es-img" :src="setAdminUserES(advice[0], 'checker')" alt="" srcset="" v-else
1270
+                             style="height: 20px;">
1271
+                      </td>
1272
+                      <td></td>
1273
+                      <td>
1274
+                                                    <span v-if="advice[1]&&advice[1].start_time">
1275
+                                                    {{getTime(advice[1].start_time,'{h}:{i}')}}
1276
+                                                    </span>
1277
+                        <span v-else>&nbsp;<br/>&nbsp;</span>
1278
+                      </td>
1279
+                      <td class="advice-name">
1280
+                        <span v-if="advice[1].parent_id>0">└</span>
1281
+                        <span>{{advice[1].advice_name }}</span>
1282
+                        <span>{{advice[1].advice_desc}}</span>
1283
+                        <!-- <span v-if="advice[1].drug_spec">{{advice[1].drug_spec}}{{advice[1].drug_spec_unit}}</span> -->
1284
+                        <span v-if="advice[1].prescribing_number">* {{advice[1].prescribing_number}}{{advice[1].prescribing_number_unit}}</span>
1285
+                        <span
1286
+                          v-if="advice[1].single_dose ">单次用量 {{advice[1].single_dose}}{{advice[1].single_dose_unit}}</span>
1287
+                        <span>{{advice[1].delivery_way}}</span>
1288
+                        <span>{{advice[1].execution_frequency}}</span>
1289
+                        <div v-for="(child, childindex) in advice[1].children" :key="childindex"
1290
+                             class="advice-children">
1291
+                          <div>▲</div>
1292
+                          <div>
1293
+                            <span>{{child.advice_name }}</span>
1294
+                            <span>{{child.advice_desc}}</span>
1295
+                            <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
1296
+                            <span
1297
+                              v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
1298
+                            <span
1299
+                              v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
1300
+                          </div>
1301
+                        </div>
1302
+                      </td>
1303
+                      <td>
1304
+                        <span v-if="setAdminUserES(advice[1], 'advice_doctor') == ''">{{getAdminUser(advice[1], 'advice_doctor')}}</span>
1305
+                        <img class="es-img" :src="setAdminUserES(advice[1], 'advice_doctor')" alt="" srcset="" v-else
1306
+                             style="height: 20px;">
1307
+                      </td>
1308
+                      <td>
1309
+                        <span v-if="setAdminUserES(advice[1], 'execution_staff') == ''">{{getAdminUser(advice[1], 'execution_staff')}}</span>
1310
+                        <img class="es-img" :src="setAdminUserES(advice[1], 'execution_staff')" alt="" srcset="" v-else
1311
+                             style="height: 20px;">
1312
+                      </td>
1313
+                      <td>
1314
+                                                    <span v-if="advice[1].execution_time">
1315
+                                                    {{getTime(advice[1].execution_time,'{h}:{i}')}}
1316
+                                                    </span>
1317
+                      </td>
1318
+                      <td>
1319
+                        <span
1320
+                          v-if="setAdminUserES(advice[1], 'checker') == ''">{{getAdminUser(advice[1], 'checker')}}</span>
1321
+                        <img class="es-img" :src="setAdminUserES(advice[1], 'checker')" alt="" srcset="" v-else
1322
+                             style="height: 20px;">
1323
+                      </td>
1324
+                    </tr>
1325
+                    <!-- 使整个表有5行以上 -->
1326
+                    <!-- <template v-if="record.advices.length < 1">
1327
+                    <tr v-for="(num) in (5 - record.advices.length)" :key="'5_' + num">
1328
+                        <td>&nbsp;</td>
1329
+                        <td></td>
1330
+                        <td></td>
1331
+                        <td></td>
1332
+                        <td></td>
1333
+                        <td></td>
1334
+                        <td></td>
1335
+                        <td>&nbsp;</td>
1336
+                        <td></td>
1337
+                        <td></td>
1338
+                        <td></td>
1339
+                        <td></td>
1340
+                        <td></td>
1341
+                    </tr>
1342
+                    </template> -->
1343
+                    </tbody>
1344
+                  </table>
1345
+                </td>
1346
+              </tr>
932 1347
               </tbody>
933 1348
             </table>
934
-            <div class="row" style="font-size: 10px">
935
-              注:透析器及血路管凝血:0级无凝血; “+”(指Ⅰ级:束状纤维凝血或动/静脉壶/滤网见轻微凝血);“++”(指II级:近半数纤维凝血或动/静脉壶/滤网出现凝血块);“+++”(指III级:压力异常升高,须中途更换透析器/血路管A/V)。
936
-            </div>
937 1349
           </div>
938 1350
 
939 1351
         </div>
@@ -948,7 +1360,6 @@
948 1360
   import { jsGetAge, uParseTime } from '@/utils/tools'
949 1361
   import { getDataConfig } from '@/utils/data'
950 1362
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
951
-  import print from "print-js"
952 1363
 
953 1364
   export default {
954 1365
     name: 'BatchPrintOrder',
@@ -1028,9 +1439,9 @@
1028 1439
           for (const recordIndex in this.records) {
1029 1440
             var dlegh = 0
1030 1441
             if (this.records[recordIndex].monitor_records && this.records[recordIndex].monitor_records.length < 8) {
1031
-              dlegh = 8 - this.records[recordIndex].monitor_records.length
1442
+              dlegh = 10 - this.records[recordIndex].monitor_records.length
1032 1443
             } else {
1033
-              dlegh = 8
1444
+              dlegh = 10
1034 1445
             }
1035 1446
             if (dlegh > 0) {
1036 1447
               if (typeof (this.records[recordIndex].monitor_records) == 'undefined' || this.records[recordIndex].monitor_records == null) {
@@ -1118,7 +1529,7 @@
1118 1529
     },
1119 1530
     methods: {
1120 1531
       printAction: function() {
1121
-        const style = '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 46px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 20px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}';
1532
+        const style = '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 46px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 20px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}'
1122 1533
 
1123 1534
         printJS({
1124 1535
           printable: 'print_content',
@@ -1237,6 +1648,15 @@
1237 1648
         } else {
1238 1649
           return record[key] == target_value
1239 1650
         }
1651
+      },getAge:function(val) {
1652
+          if(val.age == 0){
1653
+            if (val.birthday == 0) {
1654
+              return ''
1655
+            }
1656
+            return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
1657
+          }else{
1658
+            return val.age
1659
+          }
1240 1660
       }
1241 1661
     }
1242 1662
   }

文件差异内容过多而无法显示
+ 641 - 524
src/xt_pages/dialysis/dialysisPrintOrder.vue


+ 13 - 0
src/xt_pages/user/components/PatientDetail.vue 查看文件

@@ -22,6 +22,12 @@
22 22
                   </el-radio-group>
23 23
                 </el-form-item>
24 24
             </el-col>
25
+            <el-col :span="8"  style="height:59px;" >
26
+              <el-form-item label="年龄 : " class="is-required" prop="age" >
27
+                <el-input v-model="form.age" disabled ></el-input>
28
+              </el-form-item>
29
+            </el-col>
30
+
25 31
             <el-col :span="8">
26 32
               <el-form-item label="身份证号 : "  class="is-required" prop="idCardNo" >
27 33
                   <el-input v-model="form.idCardNo" disabled></el-input>
@@ -666,6 +672,13 @@ export default {
666 672
             this.form.homeAddress = patietInfo.home_address
667 673
             this.form.work = patietInfo.work_unit
668 674
             this.form.unit_address = patietInfo.unit_address
675
+
676
+            if (patietInfo.age == 0){
677
+              this.form.age = jsGetAge(this.form.birth, '-')
678
+            }else{
679
+              this.form.age = patietInfo.age
680
+            }
681
+
669 682
             if (patietInfo.profession > 0) {
670 683
               this.form.profession = patietInfo.profession
671 684
             }

+ 156 - 100
src/xt_pages/user/components/PatientForm.vue 查看文件

@@ -3,7 +3,10 @@
3 3
     <div v-if="!isEdit" class="position">
4 4
       <bread-crumb :crumbs='crumbs'></bread-crumb>
5 5
       <div class="" style="float:right;color: white">
6
-        <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" type="primary" v-if="this.isEdit==false" @click="resetForm('form')"  icon="el-icon-circle-plus-outline" size="small">新增</el-button>
6
+        <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" type="primary"
7
+                   v-if="this.isEdit==false" @click="resetForm('form')" icon="el-icon-circle-plus-outline" size="small">
8
+          新增
9
+        </el-button>
7 10
       </div>
8 11
     </div>
9 12
 
@@ -15,31 +18,39 @@
15 18
     </div>
16 19
 
17 20
     <div class="app-container " v-loading="pageLoad">
18
-      <el-form ref="form" :rules="rules" :model="form" label-width="124px" class="clearfix" popper-append-to-body="false" >
21
+      <el-form ref="form" :rules="rules" :model="form" label-width="124px" class="clearfix"
22
+               popper-append-to-body="false">
19 23
         <div class="dataTitle">一般资料</div>
20
-        <el-row >
21
-          <el-col :span="20" class="form-table" >
24
+        <el-row>
25
+          <el-col :span="20" class="form-table">
22 26
             <el-row :span="20">
23 27
               <el-col :span="8" :style="isEdit?'width:360px':''">
24
-                <el-form-item label="姓名 : "  class="is-required" prop="name" >
25
-                  <el-input v-model="form.name" ></el-input>
28
+                <el-form-item label="姓名 : " class="is-required" prop="name">
29
+                  <el-input v-model="form.name"></el-input>
26 30
                 </el-form-item>
27 31
               </el-col>
28
-              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;" >
29
-                <el-form-item label="性别 : " class="is-required" prop="gender" >
32
+              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;">
33
+                <el-form-item label="性别 : " class="is-required" prop="gender">
30 34
                   <el-radio-group v-model="form.gender" @change="changeGender">
31
-                    <el-radio v-for="item in sexOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
35
+                    <el-radio v-for="item in sexOptions" :key="item.value" :label="item.value" :value="item.value">
36
+                      {{item.label}}
37
+                    </el-radio>
32 38
                   </el-radio-group>
33 39
                 </el-form-item>
34 40
               </el-col>
35 41
 
36 42
 
37 43
               <el-col :span="8" :style="isEdit?'width:360px':''">
38
-                <el-form-item label="身份证号 : "  class="is-required" prop="idCardNo" >
39
-                  <el-input v-model="form.idCardNo" @blur="checkIdCardNo" ></el-input>
44
+                <el-form-item label="身份证号 : " class="is-required" prop="idCardNo">
45
+                  <el-input v-model="form.idCardNo" @blur="checkIdCardNo"></el-input>
40 46
                 </el-form-item>
41 47
               </el-col>
42 48
 
49
+              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;">
50
+                <el-form-item label="年龄 : " class="is-required" prop="age">
51
+                  <el-input v-model="form.age" placeholder="请填写年龄"></el-input>
52
+                </el-form-item>
53
+              </el-col>
43 54
               <template v-if="isEdit">
44 55
                 <!-- <el-col  :span="8" :style="isEdit?'width:360px':''">
45 56
                   <el-form-item label="患者类型 : " class="is-required" >
@@ -48,9 +59,12 @@
48 59
                     </el-select>
49 60
                   </el-form-item>
50 61
                 </el-col> -->
62
+
63
+
51 64
                 <el-col :span="8" :style="isEdit?'width:360px':''">
52 65
                   <el-form-item label="透析号 : " class="is-required">
53
-                    <el-input disabled v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 2%;" ></el-input>
66
+                    <el-input disabled v-model="form.dialysisNo" placeholder="填写或自动生成"
67
+                              style="width:62%;float:left;margin-right: 2%;"></el-input>
54 68
                     <el-button style="width:36%;padding:10px 0;" disabled type="primary">自动生成</el-button>
55 69
                   </el-form-item>
56 70
                 </el-col>
@@ -64,17 +78,23 @@
64 78
                   </el-form-item>
65 79
                 </el-col> -->
66 80
 
67
-                <el-col :span="8" >
68
-                  <el-form-item label="透析号 : " class="is-required" prop="dialysisNo" >
69
-                    <el-input v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 2%;" ></el-input>
70
-                    <el-button style="width:36%;padding:10px 0;" :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" type="primary" @click="generatedialysisno">自动生成</el-button>
81
+                <el-col :span="8">
82
+                  <el-form-item label="透析号 : " class="is-required" prop="dialysisNo">
83
+                    <el-input v-model="form.dialysisNo" placeholder="填写或自动生成"
84
+                              style="width:62%;float:left;margin-right: 2%;"></el-input>
85
+                    <el-button style="width:36%;padding:10px 0;"
86
+                               :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
87
+                               type="primary" @click="generatedialysisno">自动生成
88
+                    </el-button>
71 89
                   </el-form-item>
72 90
                 </el-col>
73 91
               </template>
74 92
 
75 93
               <el-col :span="8" :style="isEdit?'width:360px':''">
76
-                <el-form-item label="出生日期 : "  class="is-required" prop="birth" >
77
-                  <el-date-picker v-model="form.birth" type="date" placeholder="选择日期" :suffix-icon="'el-icon-menu'" @change="hadSelectBirth" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
94
+                <el-form-item label="出生日期 : " class="is-required" prop="birth">
95
+                  <el-date-picker v-model="form.birth" type="date" placeholder="选择日期" :suffix-icon="'el-icon-menu'"
96
+                                  @change="hadSelectBirth" format="yyyy-MM-dd"
97
+                                  value-format="yyyy-MM-dd"></el-date-picker>
78 98
                 </el-form-item>
79 99
               </el-col>
80 100
               <el-col :span="8" :style="isEdit?'width:360px':''">
@@ -87,17 +107,21 @@
87 107
                   <el-input v-model="form.homeTelephone" maxlength="20"></el-input>
88 108
                 </el-form-item>
89 109
               </el-col>
90
-              <el-col :span="8" :style="isEdit?'width:360px':''"  >
91
-                <el-form-item label="患者来源 : " class="is-required" prop="source" >
110
+              <el-col :span="8" :style="isEdit?'width:360px':''">
111
+                <el-form-item label="患者来源 : " class="is-required" prop="source">
92 112
                   <el-radio-group v-model="form.source">
93
-                    <el-radio v-for="item in sourceOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
113
+                    <el-radio v-for="item in sourceOptions" :key="item.value" :label="item.value" :value="item.value">
114
+                      {{item.label}}
115
+                    </el-radio>
94 116
                   </el-radio-group>
95 117
                 </el-form-item>
96 118
               </el-col>
97
-              <el-col :span="8" :style="isEdit?'width:360px':''" >
98
-                <el-form-item label="治疗状态(转归) : " class="is-required" prop="lapseto" >
119
+              <el-col :span="8" :style="isEdit?'width:360px':''">
120
+                <el-form-item label="治疗状态(转归) : " class="is-required" prop="lapseto">
99 121
                   <el-radio-group v-model="form.lapseto">
100
-                    <el-radio v-for="item in lapsetoOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
122
+                    <el-radio v-for="item in lapsetoOptions" :key="item.value" :label="item.value" :value="item.value">
123
+                      {{item.label}}
124
+                    </el-radio>
101 125
                   </el-radio-group>
102 126
                 </el-form-item>
103 127
               </el-col>
@@ -113,7 +137,7 @@
113 137
                 </el-form-item>
114 138
               </el-col>
115 139
 
116
-              <el-col :span="8" :style="isEdit?'width:360px':''" >
140
+              <el-col :span="8" :style="isEdit?'width:360px':''">
117 141
                 <el-form-item label="家庭住址 : " prop="homeAddress">
118 142
                   <el-input v-model="form.homeAddress"></el-input>
119 143
                 </el-form-item>
@@ -121,49 +145,49 @@
121 145
 
122 146
               <div v-show="!generic_info_fold">
123 147
                 <el-col :span="8" :style="isEdit?'width:360px':''">
124
-                  <el-form-item label="别名 : "  prop="alias" >
125
-                    <el-input v-model="form.alias" ></el-input>
148
+                  <el-form-item label="别名 : " prop="alias">
149
+                    <el-input v-model="form.alias"></el-input>
126 150
                   </el-form-item>
127 151
                 </el-col>
128 152
                 <el-col :span="8" :style="isEdit?'width:360px':''">
129
-                  <el-form-item label="身高(cm) : "  prop="height">
153
+                  <el-form-item label="身高(cm) : " prop="height">
130 154
                     <el-input maxlength="5" v-model="form.height" @change="checkHeight"></el-input>
131 155
                   </el-form-item>
132 156
                 </el-col>
133 157
                 <el-col :span="8" :style="isEdit?'width:360px':''">
134 158
                   <el-form-item label="婚姻状况 : " prop="maritalStatus">
135
-                    <el-select v-model="form.maritalStatus"  placeholder="请选择婚姻状况">
159
+                    <el-select v-model="form.maritalStatus" placeholder="请选择婚姻状况">
136 160
                       <el-option v-for="item in maritalOptions" :key="item.id" :label="item.name" :value="item.id"/>
137 161
                     </el-select>
138 162
                   </el-form-item>
139 163
                 </el-col>
140 164
                 <el-col :span="8" style="clearfix" :style="isEdit?'width:360px':''">
141 165
                   <el-form-item label="子女情况(个) : " prop="children">
142
-                    <el-input maxlength="5" v-model="form.children" ></el-input>
166
+                    <el-input maxlength="5" v-model="form.children"></el-input>
143 167
                   </el-form-item>
144 168
                   <!-- <el-form-item label=" " style="float:left;" label-width="30px">
145 169
                   </el-form-item> -->
146 170
                 </el-col>
147 171
                 <el-col :span="8" :style="isEdit?'width:360px':''">
148
-                  <el-form-item label="住院(门诊)号 : "  >
172
+                  <el-form-item label="住院(门诊)号 : ">
149 173
                     <el-input v-model="form.admissionNumber"></el-input>
150 174
                   </el-form-item>
151 175
                 </el-col>
152 176
                 <el-col :span="8" :style="isEdit?'width:360px':''">
153 177
                   <el-form-item label="医保类型 : " prop="reimbursementWayID">
154
-                    <el-select v-model="form.reimbursementWayID"  >
178
+                    <el-select v-model="form.reimbursementWayID">
155 179
                       <el-option v-for="item in wayOptions" :key="item.id" :label="item.name" :value="item.id"/>
156 180
                     </el-select>
157 181
                   </el-form-item>
158 182
                 </el-col>
159 183
                 <el-col :span="8" :style="isEdit?'width:360px':''">
160 184
                   <el-form-item label="医保号 : " prop="healthCareNo">
161
-                    <el-input v-model="form.healthCareNo" ></el-input>
185
+                    <el-input v-model="form.healthCareNo"></el-input>
162 186
                   </el-form-item>
163 187
                 </el-col>
164 188
                 <el-col :span="8" :style="isEdit?'width:360px':''">
165
-                  <el-form-item label="教育程度 : "  prop="educationOptions">
166
-                    <el-select v-model="form.education"  >
189
+                  <el-form-item label="教育程度 : " prop="educationOptions">
190
+                    <el-select v-model="form.education">
167 191
                       <el-option v-for="item in educationOptions" :key="item.id" :label="item.name" :value="item.id"/>
168 192
                     </el-select>
169 193
                   </el-form-item>
@@ -179,13 +203,13 @@
179 203
                   </el-form-item>
180 204
                 </el-col>
181 205
                 <el-col :span="8" :style="isEdit?'width:360px':''">
182
-                  <el-form-item label="职业 : "  prop="profession">
183
-                    <el-select v-model="form.profession"  >
206
+                  <el-form-item label="职业 : " prop="profession">
207
+                    <el-select v-model="form.profession">
184 208
                       <el-option v-for="item in professionOptions" :key="item.id" :label="item.name" :value="item.id"/>
185 209
                     </el-select>
186 210
                   </el-form-item>
187 211
                 </el-col>
188
-                <el-col :span="8" :style="isEdit?'width:360px':''" >
212
+                <el-col :span="8" :style="isEdit?'width:360px':''">
189 213
                   <el-form-item label="工作单位 : " prop="work">
190 214
                     <el-input v-model="form.work"></el-input>
191 215
                   </el-form-item>
@@ -198,23 +222,24 @@
198 222
               </div>
199 223
               <el-col :span="24">
200 224
                 <el-form-item>
201
-                  <el-button type="text" @click="generic_info_fold = !generic_info_fold">{{ generic_info_fold ? "更多资料" : "收起" }}<i class="el-icon--right" :class="generic_fold_icon"></i></el-button>
225
+                  <el-button type="text" @click="generic_info_fold = !generic_info_fold">{{ generic_info_fold ? '更多资料' :
226
+                    '收起' }}<i class="el-icon--right" :class="generic_fold_icon"></i></el-button>
202 227
                 </el-form-item>
203 228
               </el-col>
204 229
             </el-row>
205 230
           </el-col>
206 231
           <el-col :span="4" align="center">
207
-            <el-upload  style="width:100%;"
208
-                        :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
209
-                        :data="uploadData"
210
-                        class="uploadHead"
211
-                        :multiple="false"
212
-                        action="https://upload.qiniup.com"
213
-                        :show-file-list="false"
214
-                        :on-error="handleAvatarError"
215
-                        :on-success="handleAvatarSuccess"
216
-                        list-type="picture-card"
217
-                        :before-upload="beforeAvatarUpload">
232
+            <el-upload style="width:100%;"
233
+                       :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
234
+                       :data="uploadData"
235
+                       class="uploadHead"
236
+                       :multiple="false"
237
+                       action="https://upload.qiniup.com"
238
+                       :show-file-list="false"
239
+                       :on-error="handleAvatarError"
240
+                       :on-success="handleAvatarSuccess"
241
+                       list-type="picture-card"
242
+                       :before-upload="beforeAvatarUpload">
218 243
               <img width="100%" height="100%" v-if="form.avatar" :src="form.avatar" class="avatar">
219 244
               <i class="el-icon-plus" v-else></i>
220 245
             </el-upload>
@@ -230,10 +255,12 @@
230 255
               :on-error="handleAvatarError"
231 256
               :on-success="handleAvatarSuccess"
232 257
               :before-upload="beforeAvatarUpload">
233
-              <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" class="uploadHeadBtn" type="primary" >上传头像</el-button>
258
+              <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
259
+                         class="uploadHeadBtn" type="primary">上传头像
260
+              </el-button>
234 261
             </el-upload>
235
-            <el-form-item >
236
-              <el-input v-model="form.avatar"  type="hidden" placeholder=""></el-input>
262
+            <el-form-item>
263
+              <el-input v-model="form.avatar" type="hidden" placeholder=""></el-input>
237 264
             </el-form-item>
238 265
           </el-col>
239 266
         </el-row>
@@ -243,12 +270,14 @@
243 270
         <el-row :span="24">
244 271
           <el-col :span="12">
245 272
             <el-form-item label="主诉 : " prop="patient_complains">
246
-              <el-input type="textarea" :rows="3" v-model="form.patient_complains" resize="none" placeholder=""></el-input>
273
+              <el-input type="textarea" :rows="3" v-model="form.patient_complains" resize="none"
274
+                        placeholder=""></el-input>
247 275
             </el-form-item>
248 276
           </el-col>
249 277
           <el-col :span="12">
250 278
             <el-form-item label="现病史 : " prop="present_history">
251
-              <el-input type="textarea" :rows="3" v-model="form.present_history" resize="none" placeholder=""></el-input>
279
+              <el-input type="textarea" :rows="3" v-model="form.present_history" resize="none"
280
+                        placeholder=""></el-input>
252 281
             </el-form-item>
253 282
           </el-col>
254 283
           <el-col :span="12">
@@ -256,7 +285,7 @@
256 285
               <el-input type="textarea" :rows="3" v-model="form.past_history" resize="none" placeholder=""></el-input>
257 286
             </el-form-item>
258 287
           </el-col>
259
-        </el-row >
288
+        </el-row>
260 289
         <el-row :span="24">
261 290
           <el-col>
262 291
             <el-form-item label="体格检查">
@@ -265,11 +294,11 @@
265 294
                 <template slot="append">℃</template>
266 295
               </el-input>
267 296
               <el-input v-model="form.pulse" style="width: 220px;">
268
-                <template slot="prepend">脉搏: </template>
297
+                <template slot="prepend">脉搏:</template>
269 298
                 <template slot="append">次/分</template>
270 299
               </el-input>
271 300
               <el-input v-model="form.respiratory" style="width: 220px;">
272
-                <template slot="prepend">呼吸: </template>
301
+                <template slot="prepend">呼吸:</template>
273 302
                 <template slot="append">次/分</template>
274 303
               </el-input>
275 304
               <!-- </el-form-item>
@@ -292,17 +321,21 @@
292 321
               <el-input type="textarea" :rows="3" v-model="form.remark" resize="none" placeholder=""></el-input>
293 322
             </el-form-item>
294 323
           </el-col>
295
-          <el-col :span="24" >
324
+          <el-col :span="24">
296 325
             <el-form-item label="传染病 : " prop="contagions">
297 326
               <el-checkbox-group v-model="form.contagions">
298
-                <el-checkbox v-for="item in contagionList" v-if="item.type==2" :label="item.id" :key="item.id" :value="item.id">{{item.name}}</el-checkbox>
327
+                <el-checkbox v-for="item in contagionList" v-if="item.type==2" :label="item.id" :key="item.id"
328
+                             :value="item.id">{{item.name}}
329
+                </el-checkbox>
299 330
               </el-checkbox-group>
300 331
             </el-form-item>
301 332
           </el-col>
302
-          <el-col :span="24" >
333
+          <el-col :span="24">
303 334
             <el-form-item label="慢性病 : " prop="diseases">
304
-              <el-checkbox-group  v-model="form.diseases" >
305
-                <el-checkbox v-for="item in checkDisease" :label="item.id" :key="item.id" :value="item.id" >{{item.name}}</el-checkbox>
335
+              <el-checkbox-group v-model="form.diseases">
336
+                <el-checkbox v-for="item in checkDisease" :label="item.id" :key="item.id" :value="item.id">
337
+                  {{item.name}}
338
+                </el-checkbox>
306 339
               </el-checkbox-group>
307 340
             </el-form-item>
308 341
           </el-col>
@@ -315,15 +348,18 @@
315 348
 
316 349
           <div v-show="!treat_info_fold">
317 350
             <el-col :span="6" :style="isEdit?'width:360px':''">
318
-              <el-form-item label="本院首次透析 : " prop="is_hospital_first_dialysis" >
351
+              <el-form-item label="本院首次透析 : " prop="is_hospital_first_dialysis">
319 352
                 <el-radio-group v-model="form.is_hospital_first_dialysis">
320
-                  <el-radio v-for="item in isHospitalFirstDialysisOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
353
+                  <el-radio v-for="item in isHospitalFirstDialysisOptions" :key="item.value" :label="item.value"
354
+                            :value="item.value">{{item.label}}
355
+                  </el-radio>
321 356
                 </el-radio-group>
322 357
               </el-form-item>
323 358
             </el-col>
324 359
             <el-col :span="6" :style="isEdit?'width:360px':''">
325
-              <el-form-item label="首次透析日期 : "  prop="firstDialysisDate">
326
-                <el-date-picker v-model="form.firstDialysisDate" type="date"  format="yyyy-MM-dd" value-format="yyyy-MM-dd" @change="selectFirstDialysisDate"></el-date-picker>
360
+              <el-form-item label="首次透析日期 : " prop="firstDialysisDate">
361
+                <el-date-picker v-model="form.firstDialysisDate" type="date" format="yyyy-MM-dd"
362
+                                value-format="yyyy-MM-dd" @change="selectFirstDialysisDate"></el-date-picker>
327 363
               </el-form-item>
328 364
             </el-col>
329 365
             <el-col :span="6" :style="isEdit?'width:360px':''">
@@ -331,10 +367,12 @@
331 367
                 <el-input v-model="form.first_dialysis_hospital"></el-input>
332 368
               </el-form-item>
333 369
             </el-col>
334
-            <el-col :span="24" >
370
+            <el-col :span="24">
335 371
               <el-form-item label="透析之前情况 : " prop="predialysis_condition">
336 372
                 <el-checkbox-group v-model="form.predialysis_condition">
337
-                  <el-checkbox v-for="item in predialysisConditionOptions"  :label="item.label" :key="item.value" :value="item.label">{{item.label}}</el-checkbox>
373
+                  <el-checkbox v-for="item in predialysisConditionOptions" :label="item.label" :key="item.value"
374
+                               :value="item.label">{{item.label}}
375
+                  </el-checkbox>
338 376
                 </el-checkbox-group>
339 377
               </el-form-item>
340 378
             </el-col>
@@ -349,14 +387,16 @@
349 387
               </el-form-item>
350 388
             </el-col>
351 389
             <el-col :span="6" :style="isEdit?'width:360px':''">
352
-              <el-form-item label="本院首次透析 : "  prop="hospital_first_dialysis_date">
353
-                <el-date-picker v-model="form.hospital_first_dialysis_date" type="date"  format="yyyy-MM-dd" value-format="yyyy-MM-dd" ></el-date-picker>
390
+              <el-form-item label="本院首次透析 : " prop="hospital_first_dialysis_date">
391
+                <el-date-picker v-model="form.hospital_first_dialysis_date" type="date" format="yyyy-MM-dd"
392
+                                value-format="yyyy-MM-dd"></el-date-picker>
354 393
               </el-form-item>
355 394
             </el-col>
356 395
           </div>
357 396
           <el-col :span="24">
358 397
             <el-form-item>
359
-              <el-button type="text" @click="treat_info_fold = !treat_info_fold">{{ treat_info_fold ? "更多治疗信息" : "收起" }}<i class="el-icon--right" :class="treat_fold_icon"></i></el-button>
398
+              <el-button type="text" @click="treat_info_fold = !treat_info_fold">{{ treat_info_fold ? '更多治疗信息' : '收起' }}<i
399
+                class="el-icon--right" :class="treat_fold_icon"></i></el-button>
360 400
             </el-form-item>
361 401
           </el-col>
362 402
 
@@ -366,11 +406,16 @@
366 406
             </el-form-item>
367 407
           </el-col>
368 408
 
369
-          <el-col :span="24" align="right" >
409
+          <el-col :span="24" align="right">
370 410
             <el-form-item>
371
-                <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
372
-                <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" @click="onSubmit('form')"  size="small" type="primary" icon="el-icon-setting" >保存</el-button>
373
-                <el-button v-if="isEdit==false" @click="onReSubmit('form')" :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" icon="el-icon-document-add" size="small" type="success" >保存并继续新增</el-button>
411
+              <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
412
+              <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
413
+                         @click="onSubmit('form')" size="small" type="primary" icon="el-icon-setting">保存
414
+              </el-button>
415
+              <el-button v-if="isEdit==false" @click="onReSubmit('form')"
416
+                         :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
417
+                         icon="el-icon-document-add" size="small" type="success">保存并继续新增
418
+              </el-button>
374 419
             </el-form-item>
375 420
           </el-col>
376 421
         </el-row>
@@ -385,21 +430,8 @@
385 430
 <script>
386 431
   import { getToken } from '@/api/qiniu'
387 432
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
388
-  import {
389
-    getFileExtension,
390
-    isCardNo,
391
-    jsGetAge,
392
-    isPositiveInteger,
393
-    dialysisAge,
394
-    uParseTime
395
-  } from '@/utils/tools'
396
-  import {
397
-    generateDialysisNo,
398
-    createPatient,
399
-    editPatient,
400
-    fetchPatient,
401
-    GetPatientTotal
402
-  } from '@/api/patient'
433
+  import { dialysisAge, getFileExtension, isCardNo, isPositiveInteger, jsGetAge, uParseTime } from '@/utils/tools'
434
+  import { createPatient, editPatient, fetchPatient, generateDialysisNo, GetPatientTotal } from '@/api/patient'
403 435
   // import { fetchAllDoctorAndNurse } from "@/api/doctor";
404 436
   import { getDataConfig } from '@/utils/data'
405 437
 
@@ -441,6 +473,8 @@
441 473
     diseases: [],
442 474
     remark: '',
443 475
     diagnose: '',
476
+    age: '',
477
+
444 478
     //  patientType: "",
445 479
     //   partition: "",
446 480
     //   bed: "",
@@ -551,7 +585,9 @@
551 585
           name: [{ required: true, message: '请填写姓名', trigger: 'blur' }],
552 586
           gender: [{ required: true, message: '请选择性别', trigger: 'blur' }],
553 587
           idCardNo: [{ required: true, message: '请填写身份证号', trigger: 'blur' }],
554
-          birth: [{ required: true, message: '请填写生日', trigger: 'blur' }]
588
+          birth: [{ required: true, message: '请填写生日', trigger: 'blur' }],
589
+          age: [{ required: true, message: '请填写年龄', trigger: 'blur' }]
590
+
555 591
           // homeTelephone: [{ validator: checkFamilyPhone, trigger: "blur" }],
556 592
           // homeAddress: [{ required: true, message: "请填写住址", trigger: "blur" }],
557 593
         }
@@ -615,7 +651,7 @@
615 651
         GetPatientTotal().then(response => {
616 652
           if (response.data.state == 1) {
617 653
             this.patientTotal = response.data.data.total
618
-            this.subscibeFlag = true;
654
+            this.subscibeFlag = true
619 655
             // if ((this.subscibe.state == 2 && this.patientTotal >= 100) || (this.subscibe.state == 1 && this.patientTotal >= 200)) {
620 656
             //   this.$alert('患者数已达到当前服务版本病人数,需要升级到更高的版本', '提示', {
621 657
             //     confirmButtonText: '确定',
@@ -664,6 +700,7 @@
664 700
           if (valid) {
665 701
             this.formSubmit = false
666 702
             if (this.isEdit) {
703
+              this.form.age = parseInt(this.form.age)
667 704
               editPatient(this.patientID, this.form)
668 705
                 .then(response => {
669 706
                   if (response.data.state == 0) {
@@ -692,6 +729,7 @@
692 729
                   return false
693 730
                 })
694 731
             } else {
732
+              this.form.age = parseInt(this.form.age)
695 733
               createPatient(this.form)
696 734
                 .then(response => {
697 735
                   if (response.data.state == 0) {
@@ -843,6 +881,7 @@
843 881
         fetchPatient(id)
844 882
           .then(response => {
845 883
             if (response.data.state == 1) {
884
+
846 885
               this.$emit('tran-patient-info', response.data.data.patient)
847 886
               var patietInfo = response.data.data.patient
848 887
               this.form.avatar = patietInfo.avatar
@@ -858,7 +897,7 @@
858 897
               this.form.nation = patietInfo.nation
859 898
               this.form.native_place = patietInfo.native_place
860 899
               this.form.height = patietInfo.height + ''
861
-              // this.form.age = jsGetAge(this.form.birth, "-");
900
+              console.log(this.form.birth)
862 901
               if (patietInfo.marital_status > 0) {
863 902
                 this.form.maritalStatus = patietInfo.marital_status
864 903
               }
@@ -875,6 +914,7 @@
875 914
               this.form.homeAddress = patietInfo.home_address
876 915
               this.form.work = patietInfo.work_unit
877 916
               this.form.unit_address = patietInfo.unit_address
917
+
878 918
               if (patietInfo.profession > 0) {
879 919
                 this.form.profession = patietInfo.profession
880 920
               }
@@ -922,6 +962,15 @@
922 962
               this.form.sbp = patietInfo.sbp
923 963
               this.form.dbp = patietInfo.dbp
924 964
 
965
+              if (patietInfo.age == 0){
966
+                this.form.age = jsGetAge(this.form.birth, "-");
967
+              }else{
968
+                this.form.age = patietInfo.age
969
+              }
970
+
971
+
972
+
973
+
925 974
               // this.form.initial = patietInfo.initial_dialysis + "";
926 975
               // this.form.dialysisTotal = patietInfo.total_dialysis + "";
927 976
               // this.form.assessment = patietInfo.evaluate;
@@ -1007,28 +1056,35 @@
1007 1056
     width: 148px;
1008 1057
     margin-top: 10px;
1009 1058
   }
1010
-  .el-form{
1011
-  .el-col-6,.el-col-8{
1059
+
1060
+  .el-form {
1061
+
1062
+  .el-col-6, .el-col-8 {
1012 1063
     width: 430px;
1013
-    height: 59px!important;
1064
+    height: 59px !important;
1014 1065
   }
1066
+
1015 1067
   .el-form-item {
1068
+
1016 1069
   .el-select {
1017 1070
     width: 100%;
1018 1071
   }
1072
+
1019 1073
   .el-date-editor.el-input {
1020 1074
     width: 100%;
1021 1075
   }
1076
+
1022 1077
   .textarea {
1023 1078
     width: 100%;
1024 1079
     height: 70px;
1025 1080
     border-color: #dcdfe6;
1026 1081
     padding: 5px;
1027 1082
   }
1083
+
1084
+  }
1028 1085
   }
1086
+  .el-select-dropdown {
1087
+    z-index: 998 !important;
1029 1088
   }
1030
-  .el-select-dropdown{
1031
-  z-index: 998!important;
1032
-}
1033 1089
 </style>
1034 1090