浏览代码

修改样式

张保健 6 年前
父节点
当前提交
fe87f636cb
共有 1 个文件被更改,包括 23 次插入20 次删除
  1. 23 20
      src/xt_pages/dialysis/batch_print/batch_print_order_other.vue

+ 23 - 20
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue 查看文件

@@ -45,8 +45,8 @@
45 45
               <div class="under_line_two" style="width: 500px;">{{record.patient.diagnose}}</div>
46 46
             </div>
47 47
           </div>
48
-          <div class="row">
49
-            <table class="proj_table" :class="record.monitor_records.length > 8  ? 'margin-bottom-300': ''">
48
+          <div class="row" :class="record.monitor_records.length > 8  ? 'margin-bottom-300': ''">
49
+            <table class="proj_table">
50 50
               <tbody>
51 51
                 <tr><td colspan="2">一、透析前护理评估:</td></tr>
52 52
                 <tr>
@@ -319,8 +319,8 @@
319 319
               </div>
320 320
             </div>
321 321
           </template>
322
-          <div class="row" :style="record.monitor_records.length <= 8 ? 'margin-top:-11px':''">
323
-            <table class="proj_table" :class="record.monitor_records.length > 8 ? 'margin-bottom-900':'margin-bottom-300'">
322
+          <div class="row" :style="record.monitor_records.length <= 8 ? 'margin-top:-11px':''" :class="record.monitor_records.length > 8 ? 'margin-bottom-900':'margin-bottom-300'"> 
323
+            <table class="proj_table" >
324 324
               <tbody>
325 325
                 <tr v-if="record.monitor_records2.length > 0">
326 326
                   <td style="padding: 0;" colspan="2">
@@ -982,8 +982,8 @@
982 982
             var dlegh = 0
983 983
             if (this.records[recordIndex].monitor_records && this.records[recordIndex].monitor_records.length < 8) {
984 984
               dlegh = 7 - this.records[recordIndex].monitor_records.length
985
-            }
986
-            if (this.records[recordIndex].monitor_records.length <= 0) {
985
+            } 
986
+            if(this.records[recordIndex].monitor_records.length <=0 ){
987 987
               dlegh = 7
988 988
             }
989 989
             if (dlegh > 0) {
@@ -996,7 +996,7 @@
996 996
             }
997 997
 
998 998
             this.records[recordIndex].monitor_records2 = []
999
-            if (this.records[recordIndex].monitor_records.length > 12) {
999
+            if (this.records[recordIndex].monitor_records.length > 12){
1000 1000
               const tempMonitors = []
1001 1001
               const tempMonitors2 = []
1002 1002
 
@@ -1007,8 +1007,8 @@
1007 1007
                   tempMonitors2.push(this.records[recordIndex].monitor_records[index])
1008 1008
                 }
1009 1009
               }
1010
-              this.records[recordIndex].monitor_records = tempMonitors
1011
-              this.records[recordIndex].monitor_records2 = tempMonitors2
1010
+            this.records[recordIndex].monitor_records = tempMonitors
1011
+            this.records[recordIndex].monitor_records2 = tempMonitors2
1012 1012
             }
1013 1013
 
1014 1014
             var childMap = {}
@@ -1051,6 +1051,7 @@
1051 1051
                 if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
1052 1052
                   new_advice_index = index + this.doctor_advices[index].children.length + 1
1053 1053
 
1054
+
1054 1055
                   var doctor_advice = {
1055 1056
                     delivery_way: this.doctor_advices[index].delivery_way,
1056 1057
                     execution_frequency: this.doctor_advices[index].execution_frequency,
@@ -1062,7 +1063,8 @@
1062 1063
                     execution_staff: this.doctor_advices[index].execution_staff,
1063 1064
                     checker: this.doctor_advices[index].checker,
1064 1065
                     advice_doctor: this.doctor_advices[index].advice_doctor,
1065
-                    execution_time: this.doctor_advices[index].execution_time
1066
+                    execution_time: this.doctor_advices[index].execution_time,
1067
+
1066 1068
 
1067 1069
                   }
1068 1070
                   doctor_advice['isShow'] = 1
@@ -1203,7 +1205,7 @@
1203 1205
     },
1204 1206
     methods: {
1205 1207
       printAction: function() {
1206
-        const style = '@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; } .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; 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: 40px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .under_line_two { display: inline-block; border-bottom: 1px solid #999; text-align: left; white-space: nowrap; } .under_line_two::before { content: "\\00A0"; } .under_line_two::after { content: "\\00A0"; }  .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: 6px 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: 14px; padding: 8px 5px; line-height: 20px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}.print-table-no {\n' +
1208
+        const style = '@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; } .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; 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: 40px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .under_line_two { display: inline-block; border-bottom: 1px solid #999; text-align: left; white-space: nowrap; } .under_line_two::before { content: "\\00A0"; } .under_line_two::after { content: "\\00A0"; }  .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: 6px 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: 14px; padding: 8px 5px; line-height: 20px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.advice-children{display:flex;}.print-table-no {\n' +
1207 1209
           '    width: 100%;\n' +
1208 1210
           '    text-align: center;\n' +
1209 1211
           '    border-collapse: collapse;\n' +
@@ -1290,22 +1292,23 @@
1290 1292
         } else {
1291 1293
           return ''
1292 1294
         }
1293
-      }, getFloat: function(x) {
1295
+      },getFloat: function(x) {
1294 1296
         if (x != '.') {
1295
-          var f = Math.round(x * 100) / 100
1296
-          var s = f.toString()
1297
-          var rs = s.indexOf('.')
1297
+          var f = Math.round(x * 100) / 100;
1298
+          var s = f.toString();
1299
+          var rs = s.indexOf('.');
1298 1300
           if (rs <= 0) {
1299
-            rs = s.length
1300
-            s += '.'
1301
+            rs = s.length;
1302
+            s += '.';
1301 1303
           }
1302 1304
           while (s.length <= rs + 1) {
1303
-            s += '0'
1305
+            s += '0';
1304 1306
           }
1305
-          return s
1307
+          return s;
1306 1308
         } else {
1307
-          return '0.0'
1309
+          return '0.0';
1308 1310
         }
1311
+
1309 1312
       },
1310 1313
       getAdminUser(key, id) {
1311 1314
         if (typeof (key) === 'undefined' || key == null || typeof (key[id]) === 'undefined') {