ソースを参照

打印单样式修改

See999 4 年 前
コミット
de5d9b626f
共有2 個のファイルを変更した44 個の追加30 個の削除を含む
  1. 3 5
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  2. 41 25
      src/xt_pages/dialysis/template/dialysisPrintOrderNine.vue

+ 3 - 5
src/xt_pages/dialysis/dialysisPrintOrder.vue ファイルの表示

@@ -364,6 +364,8 @@ export default {
364 364
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order  tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 2px 5px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
365 365
       const style4 =
366 366
         '@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; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.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 50px;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: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.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: 3px 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: 16px;padding: 6px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
367
+      const style5 =
368
+        '@media print {.dialysis-print-order {width: 960px; margin: 0 auto;}.dialysis-print-order .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.dialysis-print-order .order-title {  margin: auto;  font-weight: 600;  text-align: center;  font-size: 22px;  padding: 10px 20px 0px 20px;}.dialysis-print-order .table-box {  width: 100%;  line-height: 18px;  font-size: 14px;}.dialysis-print-order .print-table {  width: 100%;  text-align: center;  border-collapse: collapse;  line-height: 40px;  font-size: 14px;}.dialysis-print-order .print-table-no {  width: 100%;  text-align: center;  border-collapse: collapse;  font-size: 14px;}.dialysis-print-order .under-line {  border-bottom: 1px solid #999;  width: 95%;  text-align: center;  margin-left: 2px;}.dialysis-print-order .title-box {  text-align: center;  font-size: 16px;}.dialysis-print-order .radio-lebel-box {  font-weight: 400;  cursor: pointer;}.dialysis-print-order .radio-no {  opacity: 0;  outline: none;  position: absolute;  margin: 0;  width: 0;  height: 0;  z-index: -1;}.dialysis-print-order .radio-inner {  white-space: nowrap;  cursor: pointer;  outline: none;  display: inline-block;  line-height: 1;  position: relative;  vertical-align: middle;}.dialysis-print-order .radio-fang {  display: inline-block;  position: relative;  border: 1px solid #000;  box-sizing: border-box;  width: 14px;  height: 14px;  background-color: #fff;  z-index: 1;  transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),    background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);}.dialysis-print-order .is-checked-radio::after {  content: "√";  font-size: 15px;}.dialysis-print-order .print-table-no tr td {  padding: 8px 5px;  line-height: 25px;}.dialysis-print-order .print-table tr td {  padding: 1px 1px;  /*line-height: 25px;*/}.es-img {  height: 25px;}.advice-name {  text-align: left;}.advice-children {  display: flex;}.title-box-pro {  border: 0 #fff;  line-height: 25px;  height: 25px;  text-align: left;  padding-left: 10px !important;}.title-box-pro-tr {  border: 0 #fff;}.text-align-left {  text-align: left !important;  padding-left: 10px !important;  font-size: 14px !important;  line-height: 25px;}.print-table-tr-new td {line-height: 20px !important;}.border-top-solid {border: solid 1px #000;}.print-template-two tr {line-height: 30px;}}';
367 369
 
368 370
       if (this.org_template_info.template_id == 1) {
369 371
         printJS({
@@ -429,14 +431,10 @@ export default {
429 431
           scanStyles: false
430 432
         });
431 433
       } else if (this.org_template_info.template_id == 9) {
432
-        console.log(
433
-          "joasdjjaslkdjlasjdlkasj",
434
-          this.org_template_info.template_id
435
-        );
436 434
         printJS({
437 435
           printable: "dialysis-print-box",
438 436
           type: "html",
439
-          style: style3,
437
+          style: style5,
440 438
           scanStyles: false
441 439
         });
442 440
       }

+ 41 - 25
src/xt_pages/dialysis/template/dialysisPrintOrderNine.vue ファイルの表示

@@ -44,6 +44,12 @@
44 44
           </tr>
45 45
         </tbody>
46 46
       </table>
47
+      <!-- <div style="display:flex:font-size:14px">
48
+        <span style="width:50px;text-align:text-algin">诊 断:</span>
49
+        <div class="under-line" style="text-align:left">
50
+          &nbsp;{{ patientInfo.diagnose }}
51
+        </div>
52
+      </div> -->
47 53
       <table class="table-box" style="margin-top: 10px;">
48 54
         <tbody>
49 55
           <tr>
@@ -1205,7 +1211,11 @@
1205 1211
                   <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
1206 1212
                 </tr> -->
1207 1213
           <tr style="line-height:35px;padding:8px 5px;">
1208
-            <td width="30px" :rowspan="doctor_advices.length + 1">
1214
+            <td
1215
+              style="font-size: 16px"
1216
+              width="30"
1217
+              :rowspan="doctor_advices.length + 1"
1218
+            >
1209 1219
               医嘱内容
1210 1220
             </td>
1211 1221
             <td style="font-size: 16px" width="10%">时间</td>
@@ -1971,33 +1981,40 @@
1971 1981
             <td width="80">
1972 1982
               <div class="under-line">
1973 1983
                 &nbsp;
1974
-                <span
1975
-                  v-if="setAdminUserES(doctor_advices[0].execution_staff) == ''"
1976
-                  >{{ getAdminUser(doctor_advices[0].execution_staff) }}</span
1977
-                >
1978
-                <img
1979
-                  class="es-img"
1980
-                  :src="setAdminUserES(doctor_advices[0].execution_staff)"
1981
-                  alt=""
1982
-                  srcset=""
1983
-                  v-else
1984
-                />
1984
+                <p v-if="doctor_advices.length > 0">
1985
+                  <span
1986
+                    v-if="
1987
+                      setAdminUserES(doctor_advices[0].execution_staff) == ''
1988
+                    "
1989
+                    >{{ getAdminUser(doctor_advices[0].execution_staff) }}</span
1990
+                  >
1991
+                  <img
1992
+                    class="es-img"
1993
+                    :src="setAdminUserES(doctor_advices[0].execution_staff)"
1994
+                    alt=""
1995
+                    srcset=""
1996
+                    v-else
1997
+                  />
1998
+                </p>
1985 1999
               </div>
1986 2000
             </td>
1987 2001
             <td width="50">核对护士</td>
1988 2002
             <td width="80">
1989 2003
               <div class="under-line">
1990
-                &nbsp;<span
1991
-                  v-if="setAdminUserES(doctor_advices[0].checker) == ''"
1992
-                  >{{ getAdminUser(doctor_advices[0].checker) }}</span
1993
-                >
1994
-                <img
1995
-                  class="es-img"
1996
-                  :src="setAdminUserES(doctor_advices[0].checker)"
1997
-                  alt=""
1998
-                  srcset=""
1999
-                  v-else
2000
-                />
2004
+                &nbsp;
2005
+                <p v-if="doctor_advices.length > 0">
2006
+                  <span
2007
+                    v-if="setAdminUserES(doctor_advices[0].checker) == ''"
2008
+                    >{{ getAdminUser(doctor_advices[0].checker) }}</span
2009
+                  >
2010
+                  <img
2011
+                    class="es-img"
2012
+                    :src="setAdminUserES(doctor_advices[0].checker)"
2013
+                    alt=""
2014
+                    srcset=""
2015
+                    v-else
2016
+                  />
2017
+                </p>
2001 2018
               </div>
2002 2019
             </td>
2003 2020
           </tr>
@@ -2693,7 +2710,6 @@ export default {
2693 2710
             response.data.data.advices == null
2694 2711
               ? []
2695 2712
               : response.data.data.advices;
2696
-
2697 2713
           for (let index = 0; index < this.doctor_advices.length; index++) {
2698 2714
             this.doctor_advices[index]["isShow"] = 2;
2699 2715
           }
@@ -2921,7 +2937,7 @@ export default {
2921 2937
   font-weight: 600;
2922 2938
   text-align: center;
2923 2939
   font-size: 22px;
2924
-  padding: 10px 20px 20px 20px;
2940
+  padding: 10px 20px 0px 20px;
2925 2941
 }
2926 2942
 
2927 2943
 .dialysis-print-order .table-box {