Browse Source

修改样式

张保健 6 years ago
parent
commit
fe87f636cb
1 changed files with 23 additions and 20 deletions
  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 View File

45
               <div class="under_line_two" style="width: 500px;">{{record.patient.diagnose}}</div>
45
               <div class="under_line_two" style="width: 500px;">{{record.patient.diagnose}}</div>
46
             </div>
46
             </div>
47
           </div>
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
               <tbody>
50
               <tbody>
51
                 <tr><td colspan="2">一、透析前护理评估:</td></tr>
51
                 <tr><td colspan="2">一、透析前护理评估:</td></tr>
52
                 <tr>
52
                 <tr>
319
               </div>
319
               </div>
320
             </div>
320
             </div>
321
           </template>
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
               <tbody>
324
               <tbody>
325
                 <tr v-if="record.monitor_records2.length > 0">
325
                 <tr v-if="record.monitor_records2.length > 0">
326
                   <td style="padding: 0;" colspan="2">
326
                   <td style="padding: 0;" colspan="2">
982
             var dlegh = 0
982
             var dlegh = 0
983
             if (this.records[recordIndex].monitor_records && this.records[recordIndex].monitor_records.length < 8) {
983
             if (this.records[recordIndex].monitor_records && this.records[recordIndex].monitor_records.length < 8) {
984
               dlegh = 7 - this.records[recordIndex].monitor_records.length
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
               dlegh = 7
987
               dlegh = 7
988
             }
988
             }
989
             if (dlegh > 0) {
989
             if (dlegh > 0) {
996
             }
996
             }
997
 
997
 
998
             this.records[recordIndex].monitor_records2 = []
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
               const tempMonitors = []
1000
               const tempMonitors = []
1001
               const tempMonitors2 = []
1001
               const tempMonitors2 = []
1002
 
1002
 
1007
                   tempMonitors2.push(this.records[recordIndex].monitor_records[index])
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
             var childMap = {}
1014
             var childMap = {}
1051
                 if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
1051
                 if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
1052
                   new_advice_index = index + this.doctor_advices[index].children.length + 1
1052
                   new_advice_index = index + this.doctor_advices[index].children.length + 1
1053
 
1053
 
1054
+
1054
                   var doctor_advice = {
1055
                   var doctor_advice = {
1055
                     delivery_way: this.doctor_advices[index].delivery_way,
1056
                     delivery_way: this.doctor_advices[index].delivery_way,
1056
                     execution_frequency: this.doctor_advices[index].execution_frequency,
1057
                     execution_frequency: this.doctor_advices[index].execution_frequency,
1062
                     execution_staff: this.doctor_advices[index].execution_staff,
1063
                     execution_staff: this.doctor_advices[index].execution_staff,
1063
                     checker: this.doctor_advices[index].checker,
1064
                     checker: this.doctor_advices[index].checker,
1064
                     advice_doctor: this.doctor_advices[index].advice_doctor,
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
                   doctor_advice['isShow'] = 1
1070
                   doctor_advice['isShow'] = 1
1203
     },
1205
     },
1204
     methods: {
1206
     methods: {
1205
       printAction: function() {
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
           '    width: 100%;\n' +
1209
           '    width: 100%;\n' +
1208
           '    text-align: center;\n' +
1210
           '    text-align: center;\n' +
1209
           '    border-collapse: collapse;\n' +
1211
           '    border-collapse: collapse;\n' +
1290
         } else {
1292
         } else {
1291
           return ''
1293
           return ''
1292
         }
1294
         }
1293
-      }, getFloat: function(x) {
1295
+      },getFloat: function(x) {
1294
         if (x != '.') {
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
           if (rs <= 0) {
1300
           if (rs <= 0) {
1299
-            rs = s.length
1300
-            s += '.'
1301
+            rs = s.length;
1302
+            s += '.';
1301
           }
1303
           }
1302
           while (s.length <= rs + 1) {
1304
           while (s.length <= rs + 1) {
1303
-            s += '0'
1305
+            s += '0';
1304
           }
1306
           }
1305
-          return s
1307
+          return s;
1306
         } else {
1308
         } else {
1307
-          return '0.0'
1309
+          return '0.0';
1308
         }
1310
         }
1311
+
1309
       },
1312
       },
1310
       getAdminUser(key, id) {
1313
       getAdminUser(key, id) {
1311
         if (typeof (key) === 'undefined' || key == null || typeof (key[id]) === 'undefined') {
1314
         if (typeof (key) === 'undefined' || key == null || typeof (key[id]) === 'undefined') {