Kaynağa Gözat

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

XMLWAN 4 yıl önce
ebeveyn
işleme
6fb16d77cd

+ 3 - 5
src/xt_pages/dialysis/dialysisPrintOrder.vue Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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>
@@ -1958,33 +1968,40 @@
1958 1968
             <td width="80">
1959 1969
               <div class="under-line">
1960 1970
                 &nbsp;
1961
-                <span
1962
-                  v-if="setAdminUserES(doctor_advices[0].execution_staff) == ''"
1963
-                  >{{ getAdminUser(doctor_advices[0].execution_staff) }}</span
1964
-                >
1965
-                <img
1966
-                  class="es-img"
1967
-                  :src="setAdminUserES(doctor_advices[0].execution_staff)"
1968
-                  alt=""
1969
-                  srcset=""
1970
-                  v-else
1971
-                />
1971
+                <p v-if="doctor_advices.length > 0">
1972
+                  <span
1973
+                    v-if="
1974
+                      setAdminUserES(doctor_advices[0].execution_staff) == ''
1975
+                    "
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
+                  />
1985
+                </p>
1972 1986
               </div>
1973 1987
             </td>
1974 1988
             <td width="50">核对护士</td>
1975 1989
             <td width="80">
1976 1990
               <div class="under-line">
1977
-                &nbsp;<span
1978
-                  v-if="setAdminUserES(doctor_advices[0].checker) == ''"
1979
-                  >{{ getAdminUser(doctor_advices[0].checker) }}</span
1980
-                >
1981
-                <img
1982
-                  class="es-img"
1983
-                  :src="setAdminUserES(doctor_advices[0].checker)"
1984
-                  alt=""
1985
-                  srcset=""
1986
-                  v-else
1987
-                />
1991
+                &nbsp;
1992
+                <p v-if="doctor_advices.length > 0">
1993
+                  <span
1994
+                    v-if="setAdminUserES(doctor_advices[0].checker) == ''"
1995
+                    >{{ getAdminUser(doctor_advices[0].checker) }}</span
1996
+                  >
1997
+                  <img
1998
+                    class="es-img"
1999
+                    :src="setAdminUserES(doctor_advices[0].checker)"
2000
+                    alt=""
2001
+                    srcset=""
2002
+                    v-else
2003
+                  />
2004
+                </p>
1988 2005
               </div>
1989 2006
             </td>
1990 2007
           </tr>
@@ -2680,7 +2697,6 @@ export default {
2680 2697
             response.data.data.advices == null
2681 2698
               ? []
2682 2699
               : response.data.data.advices;
2683
-
2684 2700
           for (let index = 0; index < this.doctor_advices.length; index++) {
2685 2701
             this.doctor_advices[index]["isShow"] = 2;
2686 2702
           }
@@ -2908,7 +2924,7 @@ export default {
2908 2924
   font-weight: 600;
2909 2925
   text-align: center;
2910 2926
   font-size: 22px;
2911
-  padding: 10px 20px 20px 20px;
2927
+  padding: 10px 20px 0px 20px;
2912 2928
 }
2913 2929
 
2914 2930
 .dialysis-print-order .table-box {