yq1 10 months ago
parent
commit
a2d76cb859
1 changed files with 71 additions and 12 deletions
  1. 71 12
      src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue

+ 71 - 12
src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue View File

@@ -48,7 +48,18 @@
48 48
         <div style="border: 1px solid black;padding: 5px;">
49 49
           上机前病情
50 50
           <span class="under-line" style="display: inline-block;width: 50%;">
51
-            {{ receiverTreatmentAccess.sick_condition ? receiverTreatmentAccess.sick_condition : "/" }}
51
+            <span v-if="predialysis&&predialysis.symptom_before_dialysis!=''">
52
+              {{
53
+                predialysis.symptom_before_dialysis
54
+                  ? predialysis.symptom_before_dialysis
55
+                  : "/"
56
+              }}
57
+            </span>
58
+            <span v-if="predialysis&&predialysis.symptom_before_dialysis_other!=''">
59
+              {{ predialysis.symptom_before_dialysis_other?predialysis.symptom_before_dialysis_other:"/" }}
60
+            </span>
61
+            <span v-if="predialysis&&predialysis.symptom_before_dialysis==''&&predialysis.symptom_before_dialysis_other==''">/</span>
62
+            <!-- {{ receiverTreatmentAccess.sick_condition ? receiverTreatmentAccess.sick_condition : "/" }} -->
52 63
           </span>
53 64
         </div>
54 65
         <div style="display: flex;border-left: 1px solid black;border-right: 1px solid black;padding: 5px;">
@@ -176,7 +187,19 @@
176 187
             </span>L
177 188
           </div>
178 189
           <div style="flex: 1;">
179
-            透析液:□碳酸 &nbsp; □醋酸
190
+            透析液:
191
+            <div style="display: inline-block;margin-right: 10px;">
192
+              <!-- <input type="checkbox" @click="checked=false" style="-webkit-appearance: checkbox" checked="checked">&nbsp;碳酸 -->
193
+              <div style="display: inline-block;width: 10px;height: 10px;border: 1px solid black;position: relative;top: 5px;">
194
+                <span style="position: relative; top: -4px; left: -2px;">√</span>
195
+              </div>&nbsp;碳酸
196
+            </div>
197
+            <div style="display: inline-block;">
198
+              <!-- <input type="checkbox" style="-webkit-appearance: checkbox">&nbsp;醋酸 -->
199
+              <div style="display: inline-block;width: 10px;height: 10px;border: 1px solid black;position: relative;top: 5px;">
200
+                <span style="position: relative; top: -4px; left: -2px;">√</span>
201
+              </div>&nbsp;醋酸
202
+            </div>
180 203
           </div>
181 204
         </div>
182 205
         <div style="display: flex;border-left: 1px solid black;border-right: 1px solid black;padding: 5px;">
@@ -216,7 +239,7 @@
216 239
         <div style="border-left: 1px solid black;border-right: 1px solid black;padding: 5px;text-align: center;">
217 240
           治疗过程记录
218 241
         </div>
219
-        <table border="1" style="border-collapse: collapse;">
242
+        <table border="1" style="border-collapse: collapse;text-align: center;">
220 243
           <tr>
221 244
             <td style="width: 60px;text-align: center;" rowspan="2" >时间</td>
222 245
             <td colspan="4" style="text-align: center;">透析参数</td>
@@ -345,7 +368,7 @@
345 368
                 }}
346 369
               </span>
347 370
             </td>
348
-          
371
+
349 372
             <!-- 病情变化 -->
350 373
             <td style="min-width: 60px; height: 30px">
351 374
               {{ getTime(monitor.operate_time, "{h}:{i}") }}
@@ -366,7 +389,7 @@
366 389
         <table class="print-table" border="1">
367 390
           <tbody>
368 391
             <tr>
369
-              <td style="width:10%;">
392
+              <td style="width:13%;">
370 393
                 <p style="height:20px;line-height:20px">时间</p>
371 394
               </td>
372 395
               <td style="">
@@ -386,6 +409,26 @@
386 409
               </td>
387 410
             </tr>
388 411
 
412
+            <!-- <tr>
413
+              <td style="width:13%;height:40px">
414
+                <p style="height:20px;line-height:20px">时间</p>
415
+              </td>
416
+              <td style="width:;height:40px">
417
+                <p style="height:20px;line-height:20px">医嘱执行记录</p>
418
+              </td>
419
+              <td style="width:10%;height:40px">
420
+                <p style="height:20px;line-height:20px">执行</p>
421
+              </td>
422
+              <td style="width:10%;height:60px">
423
+                <p style="height:20px;line-height:20px">核对</p>
424
+              </td>
425
+              <td style="width:14%;height:40px">
426
+                <p style="height:20px;line-height:20px">上次透后体重</p>
427
+              </td>
428
+              <td style="width:8%;height:40px">
429
+                {{ assessmentafter.weight_after ? assessmentafter.weight_after : "0" }}kg
430
+              </td>
431
+            </tr> -->
389 432
             <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
390 433
               <td style="min-width:60px;height:40px">{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
391 434
               <td>
@@ -399,11 +442,11 @@
399 442
               </td>
400 443
               <td>
401 444
                 <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
402
-                <img style="height:40px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else />
445
+                <img style="height:35px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else />
403 446
               </td>
404 447
               <td>
405 448
                 <span v-if="setAdminUserES(advice.checker) == ''">{{ getAdminUser(advice.checker) }}</span>
406
-                <img style="height:40px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else />
449
+                <img style="height:35px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else />
407 450
               </td>
408 451
               <td v-if="advice_index === 0">透前体重</td>
409 452
               <td v-if="advice_index === 0">{{ predialysis.weight_before }}kg</td>
@@ -419,13 +462,16 @@
419 462
               <td v-if="advice_index === 5">{{ afterdialysis.weight_after }}kg</td>
420 463
               <td v-if="advice_index === 6">本次透析体重下降量</td>
421 464
               <td v-if="advice_index === 6">
422
-                {{afterdialysis.weight_after == 0 || predialysis.weight_before == 0 ? 
465
+                {{afterdialysis.weight_after == 0 || predialysis.weight_before == 0 ?
423 466
                   0 : ( predialysis.weight_before - afterdialysis.weight_after ).toFixed(2)
424 467
                 }}kg
425 468
               </td>
426 469
             </tr>
427 470
           </tbody>
428 471
         </table>
472
+
473
+
474
+
429 475
         <div style="border-top: none;border: 1px solid black;padding: 5px;">
430 476
           <div style="width: 100%;">
431 477
             治疗小结:
@@ -454,7 +500,7 @@
454 500
                       alt=""
455 501
                       srcset=""
456 502
                       v-else
457
-                    /> 
503
+                    />
458 504
                 </div>
459 505
               </div>
460 506
             </div>
@@ -609,6 +655,7 @@ export default {
609 655
       },
610 656
       displaceLiquiPartOptions: [],
611 657
       org_id: 0,
658
+      checked:false
612 659
     };
613 660
   },
614 661
   methods: {
@@ -869,8 +916,9 @@ export default {
869 916
           console.log("上次透后体重", this.assessmentafter);
870 917
           var doctorAdevieInfo = response.data.data.doctorAdevieInfo;
871 918
           var tableAdvice = doctorAdevieInfo;
872
-          // console.log('医生', tableAdvice.length)
919
+          console.log('医生', tableAdvice.length)
873 920
           if (tableAdvice.length === 0) {
921
+            console.log('tableAdvice.length',tableAdvice.length);
874 922
             var obj = { advice_name: "", start_time: "" };
875 923
             var obj1 = { advice_name: "", start_time: "" };
876 924
             var obj2 = { advice_name: "", start_time: "" };
@@ -878,6 +926,7 @@ export default {
878 926
             var obj4 = { advice_name: "", start_time: "" };
879 927
             var obj5 = { advice_name: "", start_time: "" };
880 928
             var obj6 = { advice_name: "", start_time: "" };
929
+            // var obj7 = { advice_name: "", start_time: "" };
881 930
             tableAdvice.push(obj);
882 931
             tableAdvice.push(obj1);
883 932
             tableAdvice.push(obj2);
@@ -885,6 +934,7 @@ export default {
885 934
             tableAdvice.push(obj4);
886 935
             tableAdvice.push(obj5);
887 936
             tableAdvice.push(obj6);
937
+            // tableAdvice.push(obj7);
888 938
             this.tableAdvice = tableAdvice;
889 939
           }
890 940
           if (tableAdvice.length === 1) {
@@ -893,11 +943,13 @@ export default {
893 943
             var obj2 = { advice_name: "", start_time: "" };
894 944
             var obj3 = { advice_name: "", start_time: "" };
895 945
             var obj4 = { advice_name: "", start_time: "" };
946
+            var obj5 = { advice_name: "", start_time: "" };
896 947
             tableAdvice.push(obj);
897 948
             tableAdvice.push(obj1);
898 949
             tableAdvice.push(obj2);
899 950
             tableAdvice.push(obj3);
900 951
             tableAdvice.push(obj4);
952
+            tableAdvice.push(obj5);
901 953
             this.tableAdvice = tableAdvice;
902 954
           }
903 955
           if (tableAdvice.length === 2) {
@@ -905,10 +957,13 @@ export default {
905 957
             var obj1 = { advice_name: "", start_time: "" };
906 958
             var obj2 = { advice_name: "", start_time: "" };
907 959
             var obj3 = { advice_name: "", start_time: "" };
960
+            var obj4 = { advice_name: "", start_time: "" };
961
+            // tableAdvice.push(obj);
908 962
             tableAdvice.push(obj);
909 963
             tableAdvice.push(obj1);
910 964
             tableAdvice.push(obj2);
911 965
             tableAdvice.push(obj3);
966
+            tableAdvice.push(obj4);
912 967
             this.tableAdvice = tableAdvice;
913 968
           }
914 969
           if (tableAdvice.length === 3) {
@@ -918,11 +973,12 @@ export default {
918 973
             var obj1 = { advice_name: "", start_time: "" };
919 974
             // eslint-disable-next-line no-redeclare
920 975
             var obj2 = { advice_name: "", start_time: "" };
976
+            var obj3 = { advice_name: "", start_time: "" };
921 977
             // eslint-disable-next-line no-redeclare
922 978
             tableAdvice.push(obj);
923 979
             tableAdvice.push(obj1);
924 980
             tableAdvice.push(obj2);
925
-
981
+            tableAdvice.push(obj3);
926 982
             this.tableAdvice = tableAdvice;
927 983
           }
928 984
           if (tableAdvice.length === 4) {
@@ -931,9 +987,10 @@ export default {
931 987
             // eslint-disable-next-line no-redeclare
932 988
             var obj1 = { advice_name: "", start_time: "" };
933 989
             // eslint-disable-next-line no-redeclare
934
-
990
+            var obj2 = { advice_name: "", start_time: "" };
935 991
             tableAdvice.push(obj);
936 992
             tableAdvice.push(obj1);
993
+            tableAdvice.push(obj2);
937 994
             this.tableAdvice = tableAdvice;
938 995
           }
939 996
           if (tableAdvice.length === 5) {
@@ -941,8 +998,10 @@ export default {
941 998
             var obj = { advice_name: "", start_time: "" };
942 999
             // eslint-disable-next-line no-redeclare
943 1000
             var obj1 = { advice_name: "", start_time: "" };
1001
+            var obj2 = { advice_name: "", start_time: "" };
944 1002
             tableAdvice.push(obj);
945 1003
             tableAdvice.push(obj1);
1004
+            tableAdvice.push(obj2);
946 1005
             this.tableAdvice = tableAdvice;
947 1006
           }
948 1007