浏览代码

中能建打印模版修改

张保健 5 年前
父节点
当前提交
71f2b32d2c
共有 1 个文件被更改,包括 77 次插入6 次删除
  1. 77 6
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue

+ 77 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

@@ -553,11 +553,67 @@
553 553
       <div class="row" style="margin-top:-11px;position: relative;">
554 554
         <table class="proj_table">
555 555
           <tbody>
556
+          <template v-if="doctor_advices_2.length > 0">
557
+            <tr style="line-height:35px;padding:8px 5px;">
558
+              <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">医嘱内容</td>
559
+            </tr>
560
+            <!-- <tr style="line-height:35px;padding:8px 5px;">
561
+              <td colspan="4" style="font-size: 16px">开医嘱</td>
562
+              <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
563
+            </tr> -->
564
+            <tr style="line-height:35px;padding:8px 5px;">
565
+              <td style="font-size: 16px" width="10%">时间</td>
566
+              <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
567
+              <td style="font-size: 16px" width="10%">医生签名</td>
568
+              <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
569
+              <td style="font-size: 16px" width="10%">执行人签名</td>
570
+              <td style="font-size: 16px" width="10%">时间</td>
571
+            </tr>
572
+            <!-- <template v-for="group in doctor_advices" > -->
573
+            <tr v-for="(advice, advice_index) in doctor_advices_2" :key="advice_index" >
574
+              <td height="32px" >
575
+                  <span v-if="advice.start_time">
576
+                    {{getTime(advice.start_time,'{h}:{i}')}}
577
+                  </span>
578
+                <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
579
+              </td>
580
+              <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;" >
581
+                <span v-if="advice.parent_id > 0">---></span>
582
+                <span >{{advice.advice_name }}</span>
583
+                <span>{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
584
+                <span v-if="advice.prescribing_number"> &nbsp;&nbsp; {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
585
+                  <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
586
+                <span v-if="advice.parent_id == 0 ">{{advice.delivery_way}}</span>
587
+                <span v-if="advice.parent_id == 0  ">{{advice.execution_frequency}}</span>
588
+                <span v-if="advice.parent_id == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
589
+              </td>
590
+              <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
591
+                <span>{{advice.delivery_way}}</span>
592
+                <span>{{advice.execution_frequency}}</span>
593
+                <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
594
+              </td> -->
595
+              <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
596
+              <td height="32px">
597
+                <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
598
+                <img style="height:20px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
599
+              </td>
600
+              <!-- <td height="35px">
601
+                <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
602
+                <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
603
+              </td> -->
604
+              <td height="32px">
605
+                <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
606
+                <img style="height:20px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
607
+              </td>
608
+              <td height="32px">
609
+                <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{h}:{i}')}}</span>
610
+              </td>
611
+            </tr>
612
+          </template>
556 613
 
557
-
558
-          <tr><td colspan="2"  style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">透析后情况</td></tr>
614
+          <tr><td colspan="7"  style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">透析后情况</td></tr>
559 615
           <tr>
560
-            <td>
616
+            <td colspan="7">
561 617
               <div class="row" style="padding: 2px 0;line-height:23px; display:flex;">
562 618
                 <div class="inline_block" style="flex:1;" >
563 619
                   T:
@@ -666,7 +722,7 @@
666 722
             </td>
667 723
           </tr>
668 724
           <tr>
669
-            <td>
725
+            <td colspan="7">
670 726
               <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
671 727
                 <div class="inline_block" style="flex:1;">
672 728
                   穿刺护士:
@@ -818,6 +874,7 @@
818 874
         org_template_info: {},
819 875
 
820 876
         doctor_advices: [],
877
+        doctor_advices_2: [],
821 878
         advice_groups: [],
822 879
         advice_groups_2: [],
823 880
         print_length : 0,
@@ -1155,7 +1212,6 @@
1155 1212
             this.advices.push(item)
1156 1213
           }
1157 1214
           this.loading = false
1158
-
1159 1215
           this.doctor_advices = response.data.data.advices == null ? [] : response.data.data.advices
1160 1216
 
1161 1217
           for (let index = 0; index < this.doctor_advices.length; index++) {
@@ -1240,7 +1296,6 @@
1240 1296
           //    this.advice_groups.push(group)
1241 1297
           //   }
1242 1298
           // }
1243
-
1244 1299
           if (this.doctor_advices.length <= 6) {
1245 1300
             var nl = 6
1246 1301
             this.print_length = 6
@@ -1253,7 +1308,23 @@
1253 1308
               }
1254 1309
             }
1255 1310
           }
1311
+          
1256 1312
           this.totollength = this.doctor_advices.length + this.monitors.length
1313
+          if (this.totollength > 18) {
1314
+            var temp_advice_length = 17 - this.monitors.length;
1315
+            var doctor_advices_1 = []
1316
+            var doctor_advices_2 = []
1317
+            for (let index = 0; index < this.doctor_advices.length; index++) {
1318
+              const element = this.doctor_advices[index];
1319
+              if (temp_advice_length > index) {
1320
+                doctor_advices_1.push(element)
1321
+              } else {
1322
+                doctor_advices_2.push(element)
1323
+              }
1324
+            }
1325
+            this.doctor_advices = doctor_advices_1
1326
+            this.doctor_advices_2 = doctor_advices_2
1327
+          } 
1257 1328
           console.log(this.advice_groups)
1258 1329
         } else {
1259 1330
           this.loading = false