yq1 1年前
父节点
当前提交
a2d76cb859
共有 1 个文件被更改,包括 71 次插入12 次删除
  1. 71 12
      src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue

+ 71 - 12
src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue 查看文件

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