Ver código fonte

修改打印

csx 6 anos atrás
pai
commit
e051b2e681

+ 78 - 16
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue Ver arquivo

@@ -45,7 +45,7 @@
45 45
 
46 46
             <div class="inline_block">
47 47
               诊断:
48
-              <div class="under_line" style="width: 500px;">{{record.patient.diagnose}}</div>
48
+              <div class="under_line_two" style="width: 500px;">{{record.patient.diagnose}}</div>
49 49
             </div>
50 50
 
51 51
           </div>
@@ -78,7 +78,7 @@
78 78
                     <div class="inline_block" style="margin-left: 30px;">
79 79
                       透析机编号:
80 80
                       <div class="under_line" style="width: 100px;">{{record.dialysis_order&&record.dialysis_order.device_number&&record.dialysis_order.device_number.number.length > 0?record.dialysis_order.device_number.number:''}}</div>
81
-                      型号
81
+                      型号:
82 82
                       <div class="under_line" style="width: 100px;">{{record.assessment_before_dislysis&&record.assessment_before_dislysis.machine_type&&record.assessment_before_dislysis.machine_type.length > 0 ? record.assessment_before_dislysis.machine_type:''}}</div>
83 83
                     </div>
84 84
 
@@ -337,7 +337,10 @@
337 337
                     <!-- </thead>
338 338
                     <tbody> -->
339 339
                     <tr v-for="(monitor_record, index) in record.monitor_records" :key="index">
340
-                      <td>{{getTime(monitor_record.operate_time,'{h}:{i}')}}</td>
340
+                      <td v-if="(index == 0&&monitor_record.systolic_blood_pressure&&monitor_record.diastolic_blood_pressure)||(index == 0&&monitor_record.result)">&nbsp;
341
+                        {{'透析前'}}
342
+                      </td>
343
+                      <td v-else>{{getTime(monitor_record.operate_time,'{h}:{i}')}}</td>
341 344
                       <td>{{monitor_record.systolic_blood_pressure?monitor_record.systolic_blood_pressure:''}} /
342 345
                         {{monitor_record.diastolic_blood_pressure?monitor_record.diastolic_blood_pressure:''}}
343 346
                       </td>
@@ -645,7 +648,7 @@
645 648
             <div class="row flex">
646 649
               <div class="inline_block">
647 650
                 诊断:
648
-                <div class="under_line" style="width: 500px;">{{record.patient.diagnose}}</div>
651
+                <div class="under_line_two" style="width: 500px;">{{record.patient.diagnose}}</div>
649 652
               </div>
650 653
             </div>
651 654
             <table class="proj_table">
@@ -703,7 +706,7 @@
703 706
 
704 707
                       <div class="inline_block">
705 708
                         &emsp;透析器型号:
706
-                        <div class="under_line" style="width: 200px">
709
+                        <div class="under_line_two" style="width: 200px">
707 710
                           {{record.prescription?record.prescription.dialyzer_perfusion_apparatus:''}}
708 711
                         </div>
709 712
                       </div>
@@ -753,18 +756,18 @@
753 756
                     <div class="inline_block">
754 757
                       透析液(mol/l):
755 758
                       &emsp;Ca<sup>2+</sup>:
756
-                      <div class="under_line" style="width: 30px;">
757
-                        {{record.prescription&&record.prescription.calcium?record.prescription.calcium:''}}
759
+                      <div class="under_line" style="width: 60px;">
760
+                        {{record.prescription&&record.prescription.calcium?getFloat(record.prescription.calcium):''}}
758 761
                       </div>
759 762
                       mol/l
760 763
                       &emsp;Na<sup>+</sup>:
761
-                      <div class="under_line" style="width: 30px;">
762
-                        {{record.prescription&&record.prescription.sodium?record.prescription.sodium:''}}
764
+                      <div class="under_line" style="width: 60px;">
765
+                        {{record.prescription&&record.prescription.sodium?getFloat(record.prescription.sodium):''}}
763 766
                       </div>
764 767
                       mol/l
765 768
                       &emsp;K<sup>+</sup>:
766
-                      <div class="under_line" style="width: 30px;">
767
-                        {{record.prescription&&record.prescription.kalium?record.prescription.kalium:''}}
769
+                      <div class="under_line" style="width: 60px;">
770
+                        {{record.prescription&&record.prescription.kalium?getFloat(record.prescription.kalium):''}}
768 771
                       </div>
769 772
                       mol/l
770 773
                     </div>
@@ -845,8 +848,8 @@
845 848
                     </div>
846 849
                     <div class="inline_block">
847 850
                       &emsp;实际超滤量:
848
-                      <div class="under_line" style="width: 100px;">{{
849
-                        record.prescription?record.prescription.ultrafiltration:''}}
851
+                      <div class="under_line" style="width: 100px;">
852
+                        {{record.assessment_after_dislysis&&record.assessment_after_dislysis.actual_ultrafiltration?record.assessment_after_dislysis.actual_ultrafiltration:''}}
850 853
                       </div>
851 854
                       L
852 855
                     </div>
@@ -1059,6 +1062,31 @@
1059 1062
               }
1060 1063
             }
1061 1064
 
1065
+            //
1066
+              if((this.records[recordIndex].assessment_before_dislysis&&this.records[recordIndex].assessment_before_dislysis.systolic_blood_pressure!= 0 && this.records[recordIndex].diastolic_blood_pressure != 0) || (this.records[recordIndex].assessment_before_dislysis && this.records[recordIndex].assessment_before_dislysis.remark.length > 0)) {
1067
+               let records = {
1068
+                   id : -1,
1069
+                  systolic_blood_pressure: this.records[recordIndex].assessment_before_dislysis.systolic_blood_pressure,
1070
+                  diastolic_blood_pressure: this.records[recordIndex].assessment_before_dislysis.diastolic_blood_pressure,
1071
+                  pulse_frequency: 0,
1072
+                  breathing_rate: 0,
1073
+                  venous_pressure: 0,
1074
+                  blood_flow_volume: 0,
1075
+                  ultrafiltration_volume: 0,
1076
+                  sodium_concentration: 0,
1077
+                  symptom: '',
1078
+                  dispose: '',
1079
+                  result:  this.records[recordIndex].assessment_before_dislysis.remark,
1080
+                  monitoring_nurse: 0,
1081
+                }
1082
+
1083
+                this.records[recordIndex].monitor_records.splice(0,0,records)
1084
+
1085
+              }
1086
+
1087
+
1088
+
1089
+
1062 1090
             var childMap = {}
1063 1091
             for (const index in this.records[recordIndex].advices) {
1064 1092
               if (this.records[recordIndex].advices[index].parent_id == 0) {
@@ -1098,7 +1126,8 @@
1098 1126
                 var new_advice_index = 0
1099 1127
                 if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
1100 1128
                   new_advice_index = index + this.doctor_advices[index].children.length + 1
1101
-                  console.log(new_advice_index)
1129
+
1130
+
1102 1131
                   var doctor_advice = {
1103 1132
                     delivery_way: this.doctor_advices[index].delivery_way,
1104 1133
                     execution_frequency: this.doctor_advices[index].execution_frequency,
@@ -1107,10 +1136,10 @@
1107 1136
                     parent_id: this.doctor_advices[index].parent_id,
1108 1137
                     children: this.doctor_advices[index].children,
1109 1138
                     remark: this.doctor_advices[index].remark,
1110
-
1111 1139
                     execution_staff: this.doctor_advices[index].execution_staff,
1112 1140
                     checker: this.doctor_advices[index].checker,
1113 1141
                     advice_doctor: this.doctor_advices[index].advice_doctor,
1142
+                    execution_time: this.doctor_advices[index].execution_time,
1114 1143
 
1115 1144
 
1116 1145
                   }
@@ -1190,7 +1219,7 @@
1190 1219
     },
1191 1220
     methods: {
1192 1221
       printAction: function() {
1193
-        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: 46px; 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"; } .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: 10px 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' +
1222
+        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: 46px; 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: 10px 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' +
1194 1223
           '    width: 100%;\n' +
1195 1224
           '    text-align: center;\n' +
1196 1225
           '    border-collapse: collapse;\n' +
@@ -1277,6 +1306,23 @@
1277 1306
         } else {
1278 1307
           return ''
1279 1308
         }
1309
+      },getFloat: function(x) {
1310
+        if (x != '.') {
1311
+          var f = Math.round(x * 100) / 100;
1312
+          var s = f.toString();
1313
+          var rs = s.indexOf('.');
1314
+          if (rs <= 0) {
1315
+            rs = s.length;
1316
+            s += '.';
1317
+          }
1318
+          while (s.length <= rs + 1) {
1319
+            s += '0';
1320
+          }
1321
+          return s;
1322
+        } else {
1323
+          return '0.0';
1324
+        }
1325
+
1280 1326
       },
1281 1327
       getAdminUser(key, id) {
1282 1328
         if (typeof (key) === 'undefined' || key == null || typeof (key[id]) === 'undefined') {
@@ -1385,6 +1431,22 @@
1385 1431
     content: "\00A0";
1386 1432
   }
1387 1433
 
1434
+  .under_line_two {
1435
+    display: inline-block;
1436
+    border-bottom: 1px solid #999;
1437
+    text-align: left;
1438
+    white-space: nowrap;
1439
+    width: 50%;
1440
+  }
1441
+
1442
+  .under_line_two::before {
1443
+    content: "\00A0";
1444
+  }
1445
+
1446
+  .under_line_two::after {
1447
+    content: "\00A0";
1448
+  }
1449
+
1388 1450
   .flex {
1389 1451
     display: -webkit-box;
1390 1452
     display: -moz-box;

+ 24 - 14
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Ver arquivo

@@ -284,12 +284,16 @@
284 284
           <el-col :span="8">
285 285
             <el-form-item label="失衡综合症症状: ">
286 286
 
287
-              <el-select v-model="form.disequilibrium_syndrome_option">
288
-                <el-option :key="0" label="请选择" :value="0"></el-option>
287
+              <!--<el-select v-model="form.disequilibrium_syndrome_option">-->
288
+                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
289
+
290
+                <!--<el-option v-for="item in this.$store.getters.disequilibrium_syndrome_option" :label="item.name" :value="item.id"-->
291
+                           <!--:key="item.id"></el-option>-->
292
+              <!--</el-select>-->
293
+
294
+              <el-input v-model="form.disequilibrium_syndrome_option" readonly @focus="showDialog('8')"></el-input>
295
+
289 296
 
290
-                <el-option v-for="item in this.$store.getters.disequilibrium_syndrome_option" :label="item.name" :value="item.id"
291
-                           :key="item.id"></el-option>
292
-              </el-select>
293 297
             </el-form-item>
294 298
           </el-col>
295 299
 
@@ -535,11 +539,6 @@
535 539
           this.loading = false
536 540
           return false
537 541
         }
538
-        if (this.record_date.length != 10) {
539
-          this.$message.error('无效的日期')
540
-          this.loading = false
541
-          return false
542
-        }
543 542
 
544 543
         ParamsQuery['patient'] = this.patient.id
545 544
         ParamsQuery['record_date'] = this.record_date
@@ -666,6 +665,13 @@
666 665
             this.InnerDialogProps.selected = this.form.in_advance_reason
667 666
             this.InnerDialogProps.isShowTextArea = false
668 667
             break
668
+          case '8':
669
+            this.InnerDialogProps.values = this.$store.getters.disequilibrium_syndrome_option
670
+            this.InnerDialogProps.titles = '失衡综合症症状'
671
+            this.InnerDialogProps.type = 'disequilibrium_syndrome_option'
672
+            this.InnerDialogProps.selected = this.form.disequilibrium_syndrome_option
673
+            this.InnerDialogProps.isShowTextArea = false
674
+            break
669 675
         }
670 676
       },
671 677
       selectActualTreatmentHour(val) {
@@ -697,7 +703,9 @@
697 703
           case 'in_advance_reason':
698 704
             this.form.in_advance_reason = val.value.join(',')
699 705
             break
700
-
706
+          case 'disequilibrium_syndrome_option':
707
+            this.form.disequilibrium_syndrome_option = val.value.join(',')
708
+            break
701 709
           default:
702 710
             break
703 711
         }
@@ -715,7 +723,11 @@
715 723
         this.isVisibility = false
716 724
       }
717 725
     },
726
+
718 727
     created() {
728
+      var date = this.$route.query && this.$route.query.date
729
+      console.log(date)
730
+      this.record_date = uParseTime(date, '{y}-{m}-{d}')
719 731
       this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
720 732
       this.symptomsOptions = getDataConfig('hemodialysis', 'symptoms')
721 733
       this.internalFistulaOptions = getDataConfig('hemodialysis', 'internal_fistula')
@@ -727,10 +739,8 @@
727 739
       this.patientGoseOptions = this.$store.getters.patient_gose
728 740
       this.observationContentOptions = this.$store.getters.observation_content
729 741
 
730
-      console.log(this.patient)
731 742
 
732
-      var date = this.$route.query && this.$route.query.date
733
-      this.record_date = uParseTime(date, '{y}-{m}-{d}')
743
+
734 744
     },
735 745
     components: {
736 746
       MultiSelectBox

+ 60 - 13
src/xt_pages/dialysis/dialysisPrintOrder.vue Ver arquivo

@@ -1073,7 +1073,7 @@
1073 1073
                 </div>
1074 1074
               </td>
1075 1075
             </tr>
1076
-            <tr><td width="40">诊 断:</td><td colspan="14" width="400px" style="text-align:left;"><div class="under-line">&nbsp;{{patientInfo.diagnose}}</div></td></tr>
1076
+            <tr><td width="40">诊 断:</td><td colspan="14" width="400px" style="text-align:left;"><div class="under-line-two">&nbsp;{{patientInfo.diagnose}}</div></td></tr>
1077 1077
             </tbody>
1078 1078
           </table>
1079 1079
           <table class="print-table" border="1">
@@ -1501,14 +1501,14 @@
1501 1501
               <td width="80">血流量<br>ml/min</td>
1502 1502
               <td width="80">超滤量累计L</td>
1503 1503
               <td width="80">钠浓度<br/>mmol/L</td>
1504
-
1505 1504
               <td width="">病情特殊情况、处理<br/>及专科护理措施记录</td>
1506 1505
               <td width="100">护士签名<br/></td>
1507 1506
             </tr>
1508
-            <tr v-for="monitor in monitors" :key="monitor.id">
1509
-              <td>&nbsp;
1510
-                {{getTime(monitor.operate_time,'{h}:{i}')}}
1507
+            <tr v-for="monitor,index in monitors" :key="monitor.id">
1508
+              <td v-if="(index == 0&&monitor.systolic_blood_pressure&&monitor.diastolic_blood_pressure)||(index == 0&&monitor.result)">&nbsp;
1509
+                {{'透析前'}}
1511 1510
               </td>
1511
+              <td v-else>{{getTime(monitor.operate_time,'{h}:{i}')}}</td>
1512 1512
               <td>&nbsp;{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}} /
1513 1513
                 {{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}
1514 1514
               </td>
@@ -1920,7 +1920,7 @@
1920 1920
                   <tr>
1921 1921
                     <td width="40">诊 断:</td>
1922 1922
                     <td width="">
1923
-                      <div class="under-line">&nbsp;{{patientInfo.diagnose}}</div>
1923
+                      <div class="under-line-two">&nbsp;{{patientInfo.diagnose}}</div>
1924 1924
                     </td>
1925 1925
                     <td width="70">治疗方式:</td>
1926 1926
                     <td width="50">
@@ -1977,7 +1977,7 @@
1977 1977
                     </td>
1978 1978
                     <td width="80">透析器型号:</td>
1979 1979
                     <td width="200">
1980
-                      <div class="under-line">&nbsp;{{prescription.dialyzer_perfusion_apparatus}}</div>
1980
+                      <div class="under-line-two">&nbsp;{{prescription.dialyzer_perfusion_apparatus}}</div>
1981 1981
                     </td>
1982 1982
                     <td></td>
1983 1983
 
@@ -2034,20 +2034,20 @@
2034 2034
                     <td width="45">Ca<sup>2+</sup>:</td>
2035 2035
                     <td width="80">
2036 2036
                       <div class="under-line">
2037
-                        <span v-if="prescription.calcium">{{prescription.calcium}}mol/l</span>
2037
+                        <span v-if="prescription.calcium">{{getFloat(prescription.calcium)}}mol/l</span>
2038 2038
                       </div>
2039 2039
                     </td>
2040 2040
                     <td width="45">Na<sup>+</sup>:</td>
2041 2041
                     <td width="80">
2042 2042
                       <div class="under-line">
2043
-                        <span v-if="prescription.sodium">{{prescription.sodium}}mol/l</span>
2043
+                        <span v-if="prescription.sodium">{{getFloat(prescription.sodium)}}mol/l</span>
2044 2044
                       </div>
2045 2045
                     </td>
2046 2046
 
2047 2047
                     <td width="45">K<sup>+</sup>:</td>
2048 2048
                     <td width="80">
2049 2049
                       <div class="under-line">
2050
-                        <span v-if="prescription.kalium">{{prescription.kalium}}mol/l</span>
2050
+                        <span v-if="prescription.kalium">{{getFloat(prescription.kalium)}}mol/l</span>
2051 2051
                       </div>
2052 2052
                     </td>
2053 2053
 
@@ -2123,7 +2123,7 @@
2123 2123
                     <td width="80">实际超滤量:</td>
2124 2124
                     <td width="40">
2125 2125
                       <div class="under-line">
2126
-                        &nbsp;{{prescription.ultrafiltration?prescription.ultrafiltration:''}}
2126
+                        {{afterdialysis&&afterdialysis.actual_ultrafiltration?afterdialysis.actual_ultrafiltration:''}}
2127 2127
                       </div>
2128 2128
                     </td>
2129 2129
                     <td width="10">L</td>
@@ -2358,7 +2358,7 @@
2358 2358
         var ptime = Math.round(new Date().getTime() / 1000)
2359 2359
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
2360 2360
 
2361
-        const style = '@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 .print-table-no 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: 0px 0px;} .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;}'
2361
+        const style = '@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 .under-line-two{border-bottom:1px solid #999;width:95%;text-align:left;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 .print-table-no 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: 0px 0px;} .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;}'
2362 2362
 
2363 2363
         if (this.org_template_info.template_id != 2) {
2364 2364
           printJS({
@@ -2414,6 +2414,24 @@
2414 2414
           return ''
2415 2415
         }
2416 2416
       },
2417
+      getFloat: function(x) {
2418
+        if (x != '.') {
2419
+          var f = Math.round(x * 100) / 100;
2420
+          var s = f.toString();
2421
+          var rs = s.indexOf('.');
2422
+          if (rs <= 0) {
2423
+            rs = s.length;
2424
+            s += '.';
2425
+          }
2426
+          while (s.length <= rs + 1) {
2427
+            s += '0';
2428
+          }
2429
+          return s;
2430
+        } else {
2431
+          return '0.0';
2432
+        }
2433
+
2434
+      },
2417 2435
       modeName(mode_id) {
2418 2436
         return typeof (this.modeOptions[mode_id]) !== 'undefined' && typeof (this.modeOptions[mode_id].name) !== 'undefined' ? this.modeOptions[mode_id].name : ''
2419 2437
       },
@@ -2520,6 +2538,28 @@
2520 2538
 
2521 2539
             this.advice_jilurow = this.advices.length + 1
2522 2540
 
2541
+            if(this.$store.getters.xt_user.template_info.template_id == 2){
2542
+                if((this.predialysis.systolic_blood_pressure != 0 && this.predialysis.diastolic_blood_pressure != 0) || this.predialysis.remark.length > 0){
2543
+                  let records = {
2544
+                    id : -1,
2545
+                    systolic_blood_pressure: this.predialysis.systolic_blood_pressure,
2546
+                    diastolic_blood_pressure: this.predialysis.diastolic_blood_pressure,
2547
+                    pulse_frequency: 0,
2548
+                    breathing_rate: 0,
2549
+                    venous_pressure: 0,
2550
+                    blood_flow_volume: 0,
2551
+                    ultrafiltration_volume: 0,
2552
+                    sodium_concentration: 0,
2553
+                    symptom: '',
2554
+                    dispose: '',
2555
+                    result: this.predialysis.remark,
2556
+                    monitoring_nurse: 0,
2557
+                  }
2558
+                  this.monitors.splice(0,0,records)
2559
+                }
2560
+            }
2561
+            console.log(this.monitors)
2562
+
2523 2563
             var childMap = {}
2524 2564
             for (const index in this.advices) {
2525 2565
               if (this.advices[index].parent_id == 0) {
@@ -2590,7 +2630,6 @@
2590 2630
 
2591 2631
                 if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
2592 2632
                   new_advice_index = index + this.doctor_advices[index].children.length + 1
2593
-
2594 2633
                   var doctor_advice = {
2595 2634
                     delivery_way: this.doctor_advices[index].delivery_way,
2596 2635
                     execution_frequency: this.doctor_advices[index].execution_frequency,
@@ -2602,9 +2641,11 @@
2602 2641
                     execution_staff: this.doctor_advices[index].execution_staff,
2603 2642
                     checker: this.doctor_advices[index].checker,
2604 2643
                     advice_doctor: this.doctor_advices[index].advice_doctor,
2644
+                    execution_time: this.doctor_advices[index].execution_time,
2605 2645
 
2606 2646
                   }
2607 2647
                   doctor_advice['isShow'] = 1
2648
+                  console.log(doctor_advice)
2608 2649
                   this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
2609 2650
                   // this.doctor_advices.push(doctor_advice)
2610 2651
                 }
@@ -2812,7 +2853,13 @@
2812 2853
     text-align: center;
2813 2854
     margin-left: 2px;
2814 2855
 
2856
+  }
2815 2857
 
2858
+  .dialysis-print-order .under-line-two {
2859
+    border-bottom: 1px solid #999;
2860
+    width: 95%;
2861
+    text-align: left;
2862
+    margin-left: 2px;
2816 2863
 
2817 2864
   }
2818 2865