浏览代码

修改打印

csx 6 年前
父节点
当前提交
e051b2e681

+ 78 - 16
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue 查看文件

45
 
45
 
46
             <div class="inline_block">
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
             </div>
49
             </div>
50
 
50
 
51
           </div>
51
           </div>
78
                     <div class="inline_block" style="margin-left: 30px;">
78
                     <div class="inline_block" style="margin-left: 30px;">
79
                       透析机编号:
79
                       透析机编号:
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>
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
                       <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>
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
                     </div>
83
                     </div>
84
 
84
 
337
                     <!-- </thead>
337
                     <!-- </thead>
338
                     <tbody> -->
338
                     <tbody> -->
339
                     <tr v-for="(monitor_record, index) in record.monitor_records" :key="index">
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
                       <td>{{monitor_record.systolic_blood_pressure?monitor_record.systolic_blood_pressure:''}} /
344
                       <td>{{monitor_record.systolic_blood_pressure?monitor_record.systolic_blood_pressure:''}} /
342
                         {{monitor_record.diastolic_blood_pressure?monitor_record.diastolic_blood_pressure:''}}
345
                         {{monitor_record.diastolic_blood_pressure?monitor_record.diastolic_blood_pressure:''}}
343
                       </td>
346
                       </td>
645
             <div class="row flex">
648
             <div class="row flex">
646
               <div class="inline_block">
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
               </div>
652
               </div>
650
             </div>
653
             </div>
651
             <table class="proj_table">
654
             <table class="proj_table">
703
 
706
 
704
                       <div class="inline_block">
707
                       <div class="inline_block">
705
                         &emsp;透析器型号:
708
                         &emsp;透析器型号:
706
-                        <div class="under_line" style="width: 200px">
709
+                        <div class="under_line_two" style="width: 200px">
707
                           {{record.prescription?record.prescription.dialyzer_perfusion_apparatus:''}}
710
                           {{record.prescription?record.prescription.dialyzer_perfusion_apparatus:''}}
708
                         </div>
711
                         </div>
709
                       </div>
712
                       </div>
753
                     <div class="inline_block">
756
                     <div class="inline_block">
754
                       透析液(mol/l):
757
                       透析液(mol/l):
755
                       &emsp;Ca<sup>2+</sup>:
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
                       </div>
761
                       </div>
759
                       mol/l
762
                       mol/l
760
                       &emsp;Na<sup>+</sup>:
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
                       </div>
766
                       </div>
764
                       mol/l
767
                       mol/l
765
                       &emsp;K<sup>+</sup>:
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
                       </div>
771
                       </div>
769
                       mol/l
772
                       mol/l
770
                     </div>
773
                     </div>
845
                     </div>
848
                     </div>
846
                     <div class="inline_block">
849
                     <div class="inline_block">
847
                       &emsp;实际超滤量:
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
                       </div>
853
                       </div>
851
                       L
854
                       L
852
                     </div>
855
                     </div>
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
             var childMap = {}
1090
             var childMap = {}
1063
             for (const index in this.records[recordIndex].advices) {
1091
             for (const index in this.records[recordIndex].advices) {
1064
               if (this.records[recordIndex].advices[index].parent_id == 0) {
1092
               if (this.records[recordIndex].advices[index].parent_id == 0) {
1098
                 var new_advice_index = 0
1126
                 var new_advice_index = 0
1099
                 if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
1127
                 if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
1100
                   new_advice_index = index + this.doctor_advices[index].children.length + 1
1128
                   new_advice_index = index + this.doctor_advices[index].children.length + 1
1101
-                  console.log(new_advice_index)
1129
+
1130
+
1102
                   var doctor_advice = {
1131
                   var doctor_advice = {
1103
                     delivery_way: this.doctor_advices[index].delivery_way,
1132
                     delivery_way: this.doctor_advices[index].delivery_way,
1104
                     execution_frequency: this.doctor_advices[index].execution_frequency,
1133
                     execution_frequency: this.doctor_advices[index].execution_frequency,
1107
                     parent_id: this.doctor_advices[index].parent_id,
1136
                     parent_id: this.doctor_advices[index].parent_id,
1108
                     children: this.doctor_advices[index].children,
1137
                     children: this.doctor_advices[index].children,
1109
                     remark: this.doctor_advices[index].remark,
1138
                     remark: this.doctor_advices[index].remark,
1110
-
1111
                     execution_staff: this.doctor_advices[index].execution_staff,
1139
                     execution_staff: this.doctor_advices[index].execution_staff,
1112
                     checker: this.doctor_advices[index].checker,
1140
                     checker: this.doctor_advices[index].checker,
1113
                     advice_doctor: this.doctor_advices[index].advice_doctor,
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
     },
1219
     },
1191
     methods: {
1220
     methods: {
1192
       printAction: function() {
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
           '    width: 100%;\n' +
1223
           '    width: 100%;\n' +
1195
           '    text-align: center;\n' +
1224
           '    text-align: center;\n' +
1196
           '    border-collapse: collapse;\n' +
1225
           '    border-collapse: collapse;\n' +
1277
         } else {
1306
         } else {
1278
           return ''
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
       getAdminUser(key, id) {
1327
       getAdminUser(key, id) {
1282
         if (typeof (key) === 'undefined' || key == null || typeof (key[id]) === 'undefined') {
1328
         if (typeof (key) === 'undefined' || key == null || typeof (key[id]) === 'undefined') {
1385
     content: "\00A0";
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
   .flex {
1450
   .flex {
1389
     display: -webkit-box;
1451
     display: -webkit-box;
1390
     display: -moz-box;
1452
     display: -moz-box;

+ 24 - 14
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 查看文件

284
           <el-col :span="8">
284
           <el-col :span="8">
285
             <el-form-item label="失衡综合症症状: ">
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
             </el-form-item>
297
             </el-form-item>
294
           </el-col>
298
           </el-col>
295
 
299
 
535
           this.loading = false
539
           this.loading = false
536
           return false
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
         ParamsQuery['patient'] = this.patient.id
543
         ParamsQuery['patient'] = this.patient.id
545
         ParamsQuery['record_date'] = this.record_date
544
         ParamsQuery['record_date'] = this.record_date
666
             this.InnerDialogProps.selected = this.form.in_advance_reason
665
             this.InnerDialogProps.selected = this.form.in_advance_reason
667
             this.InnerDialogProps.isShowTextArea = false
666
             this.InnerDialogProps.isShowTextArea = false
668
             break
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
       selectActualTreatmentHour(val) {
677
       selectActualTreatmentHour(val) {
697
           case 'in_advance_reason':
703
           case 'in_advance_reason':
698
             this.form.in_advance_reason = val.value.join(',')
704
             this.form.in_advance_reason = val.value.join(',')
699
             break
705
             break
700
-
706
+          case 'disequilibrium_syndrome_option':
707
+            this.form.disequilibrium_syndrome_option = val.value.join(',')
708
+            break
701
           default:
709
           default:
702
             break
710
             break
703
         }
711
         }
715
         this.isVisibility = false
723
         this.isVisibility = false
716
       }
724
       }
717
     },
725
     },
726
+
718
     created() {
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
       this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
731
       this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
720
       this.symptomsOptions = getDataConfig('hemodialysis', 'symptoms')
732
       this.symptomsOptions = getDataConfig('hemodialysis', 'symptoms')
721
       this.internalFistulaOptions = getDataConfig('hemodialysis', 'internal_fistula')
733
       this.internalFistulaOptions = getDataConfig('hemodialysis', 'internal_fistula')
727
       this.patientGoseOptions = this.$store.getters.patient_gose
739
       this.patientGoseOptions = this.$store.getters.patient_gose
728
       this.observationContentOptions = this.$store.getters.observation_content
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
     components: {
745
     components: {
736
       MultiSelectBox
746
       MultiSelectBox

+ 60 - 13
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

1073
                 </div>
1073
                 </div>
1074
               </td>
1074
               </td>
1075
             </tr>
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
             </tbody>
1077
             </tbody>
1078
           </table>
1078
           </table>
1079
           <table class="print-table" border="1">
1079
           <table class="print-table" border="1">
1501
               <td width="80">血流量<br>ml/min</td>
1501
               <td width="80">血流量<br>ml/min</td>
1502
               <td width="80">超滤量累计L</td>
1502
               <td width="80">超滤量累计L</td>
1503
               <td width="80">钠浓度<br/>mmol/L</td>
1503
               <td width="80">钠浓度<br/>mmol/L</td>
1504
-
1505
               <td width="">病情特殊情况、处理<br/>及专科护理措施记录</td>
1504
               <td width="">病情特殊情况、处理<br/>及专科护理措施记录</td>
1506
               <td width="100">护士签名<br/></td>
1505
               <td width="100">护士签名<br/></td>
1507
             </tr>
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
               </td>
1510
               </td>
1511
+              <td v-else>{{getTime(monitor.operate_time,'{h}:{i}')}}</td>
1512
               <td>&nbsp;{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}} /
1512
               <td>&nbsp;{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}} /
1513
                 {{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}
1513
                 {{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}
1514
               </td>
1514
               </td>
1920
                   <tr>
1920
                   <tr>
1921
                     <td width="40">诊 断:</td>
1921
                     <td width="40">诊 断:</td>
1922
                     <td width="">
1922
                     <td width="">
1923
-                      <div class="under-line">&nbsp;{{patientInfo.diagnose}}</div>
1923
+                      <div class="under-line-two">&nbsp;{{patientInfo.diagnose}}</div>
1924
                     </td>
1924
                     </td>
1925
                     <td width="70">治疗方式:</td>
1925
                     <td width="70">治疗方式:</td>
1926
                     <td width="50">
1926
                     <td width="50">
1977
                     </td>
1977
                     </td>
1978
                     <td width="80">透析器型号:</td>
1978
                     <td width="80">透析器型号:</td>
1979
                     <td width="200">
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
                     </td>
1981
                     </td>
1982
                     <td></td>
1982
                     <td></td>
1983
 
1983
 
2034
                     <td width="45">Ca<sup>2+</sup>:</td>
2034
                     <td width="45">Ca<sup>2+</sup>:</td>
2035
                     <td width="80">
2035
                     <td width="80">
2036
                       <div class="under-line">
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
                       </div>
2038
                       </div>
2039
                     </td>
2039
                     </td>
2040
                     <td width="45">Na<sup>+</sup>:</td>
2040
                     <td width="45">Na<sup>+</sup>:</td>
2041
                     <td width="80">
2041
                     <td width="80">
2042
                       <div class="under-line">
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
                       </div>
2044
                       </div>
2045
                     </td>
2045
                     </td>
2046
 
2046
 
2047
                     <td width="45">K<sup>+</sup>:</td>
2047
                     <td width="45">K<sup>+</sup>:</td>
2048
                     <td width="80">
2048
                     <td width="80">
2049
                       <div class="under-line">
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
                       </div>
2051
                       </div>
2052
                     </td>
2052
                     </td>
2053
 
2053
 
2123
                     <td width="80">实际超滤量:</td>
2123
                     <td width="80">实际超滤量:</td>
2124
                     <td width="40">
2124
                     <td width="40">
2125
                       <div class="under-line">
2125
                       <div class="under-line">
2126
-                        &nbsp;{{prescription.ultrafiltration?prescription.ultrafiltration:''}}
2126
+                        {{afterdialysis&&afterdialysis.actual_ultrafiltration?afterdialysis.actual_ultrafiltration:''}}
2127
                       </div>
2127
                       </div>
2128
                     </td>
2128
                     </td>
2129
                     <td width="10">L</td>
2129
                     <td width="10">L</td>
2358
         var ptime = Math.round(new Date().getTime() / 1000)
2358
         var ptime = Math.round(new Date().getTime() / 1000)
2359
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
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
         if (this.org_template_info.template_id != 2) {
2363
         if (this.org_template_info.template_id != 2) {
2364
           printJS({
2364
           printJS({
2414
           return ''
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
       modeName(mode_id) {
2435
       modeName(mode_id) {
2418
         return typeof (this.modeOptions[mode_id]) !== 'undefined' && typeof (this.modeOptions[mode_id].name) !== 'undefined' ? this.modeOptions[mode_id].name : ''
2436
         return typeof (this.modeOptions[mode_id]) !== 'undefined' && typeof (this.modeOptions[mode_id].name) !== 'undefined' ? this.modeOptions[mode_id].name : ''
2419
       },
2437
       },
2520
 
2538
 
2521
             this.advice_jilurow = this.advices.length + 1
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
             var childMap = {}
2563
             var childMap = {}
2524
             for (const index in this.advices) {
2564
             for (const index in this.advices) {
2525
               if (this.advices[index].parent_id == 0) {
2565
               if (this.advices[index].parent_id == 0) {
2590
 
2630
 
2591
                 if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
2631
                 if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
2592
                   new_advice_index = index + this.doctor_advices[index].children.length + 1
2632
                   new_advice_index = index + this.doctor_advices[index].children.length + 1
2593
-
2594
                   var doctor_advice = {
2633
                   var doctor_advice = {
2595
                     delivery_way: this.doctor_advices[index].delivery_way,
2634
                     delivery_way: this.doctor_advices[index].delivery_way,
2596
                     execution_frequency: this.doctor_advices[index].execution_frequency,
2635
                     execution_frequency: this.doctor_advices[index].execution_frequency,
2602
                     execution_staff: this.doctor_advices[index].execution_staff,
2641
                     execution_staff: this.doctor_advices[index].execution_staff,
2603
                     checker: this.doctor_advices[index].checker,
2642
                     checker: this.doctor_advices[index].checker,
2604
                     advice_doctor: this.doctor_advices[index].advice_doctor,
2643
                     advice_doctor: this.doctor_advices[index].advice_doctor,
2644
+                    execution_time: this.doctor_advices[index].execution_time,
2605
 
2645
 
2606
                   }
2646
                   }
2607
                   doctor_advice['isShow'] = 1
2647
                   doctor_advice['isShow'] = 1
2648
+                  console.log(doctor_advice)
2608
                   this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
2649
                   this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
2609
                   // this.doctor_advices.push(doctor_advice)
2650
                   // this.doctor_advices.push(doctor_advice)
2610
                 }
2651
                 }
2812
     text-align: center;
2853
     text-align: center;
2813
     margin-left: 2px;
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