Browse Source

透析监测新增字段

XMLWAN 4 years ago
parent
commit
69a64e9cf4
1 changed files with 14 additions and 3 deletions
  1. 14 3
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue

+ 14 - 3
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

556
             </el-form-item>
556
             </el-form-item>
557
           </el-col>
557
           </el-col>
558
 
558
 
559
+         <el-col :span="8" v-if="isShow('血糖')">
560
+            <el-form-item label="血糖(mmol/L):">
561
+              <el-input v-model="form.blood_sugar"></el-input>
562
+            </el-form-item>
563
+          </el-col>
564
+
559
           <el-col :span="8" v-if="isShow('肝素用量余量')">
565
           <el-col :span="8" v-if="isShow('肝素用量余量')">
560
             <el-form-item label="肝素用量余量(ml):">
566
             <el-form-item label="肝素用量余量(ml):">
561
               <el-input v-model="form.heparin"></el-input>
567
               <el-input v-model="form.heparin"></el-input>
748
         dispose: '', // 处理
754
         dispose: '', // 处理
749
         result: '', // 结果,
755
         result: '', // 结果,
750
         blood_oxygen_saturation: '',
756
         blood_oxygen_saturation: '',
751
-        urr:'' // 血氧饱和度
757
+        urr:'', 
758
+        blood_sugar:'',//血糖
752
       },
759
       },
753
 
760
 
754
       table_current_row: null,
761
       table_current_row: null,
935
         this.form.dispose =  resp.monitor.dispose ? resp.monitor.dispose : '' // this.last_monitor_record.dispose;
942
         this.form.dispose =  resp.monitor.dispose ? resp.monitor.dispose : '' // this.last_monitor_record.dispose;
936
         this.form.result =  resp.monitor.result ? resp.monitor.result : '' // this.last_monitor_record.result;
943
         this.form.result =  resp.monitor.result ? resp.monitor.result : '' // this.last_monitor_record.result;
937
         this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation ? resp.monitor.blood_oxygen_saturation : ''
944
         this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation ? resp.monitor.blood_oxygen_saturation : ''
938
-
939
-
945
+        this.form.urr = resp.monitor.urr?resp.monitor.urr:''
946
+        this.form.blood_sugar = resp.monitor.blood_sugar?resp.monitor.blood_sugar:''
940
       })
947
       })
941
     },
948
     },
942
 
949
 
997
         this.dispose_selecteds = []
1004
         this.dispose_selecteds = []
998
         this.result_selecteds = []
1005
         this.result_selecteds = []
999
         this.form.urr = ''
1006
         this.form.urr = ''
1007
+        this.form.blood_sugar = ''
1000
       } else {
1008
       } else {
1001
         (this.form.id = monitor.id),
1009
         (this.form.id = monitor.id),
1002
         // this.form.operate_date = monitor.operate_date
1010
         // this.form.operate_date = monitor.operate_date
1031
         this.form.result = monitor.result
1039
         this.form.result = monitor.result
1032
         this.form.blood_oxygen_saturation = monitor.blood_oxygen_saturation
1040
         this.form.blood_oxygen_saturation = monitor.blood_oxygen_saturation
1033
         this.form.urr = monitor.urr?monitor.urr:''
1041
         this.form.urr = monitor.urr?monitor.urr:''
1042
+        this.form.blood_sugar = monitor.blood_sugar?monitor.blood_sugar:''
1034
         // 设置三个下拉框的值,直接调用事件偷懒
1043
         // 设置三个下拉框的值,直接调用事件偷懒
1035
         this.symptomTextareaBlur()
1044
         this.symptomTextareaBlur()
1036
         this.disposeTextareaBlur()
1045
         this.disposeTextareaBlur()
1067
       this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv)
1076
       this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv)
1068
       this.form.monitoring_date = parseInt(this.form.monitoring_date)
1077
       this.form.monitoring_date = parseInt(this.form.monitoring_date)
1069
       this.form.urr = this.form.urr
1078
       this.form.urr = this.form.urr
1079
+      this.form.blood_sugar = parseFloat(this.form.blood_sugar) == NaN ? 0 : parseFloat(this.form.blood_sugar)
1070
       let mode = '1'
1080
       let mode = '1'
1071
       if (this.form.id > 0) {
1081
       if (this.form.id > 0) {
1072
         mode = '2'
1082
         mode = '2'
1121
 
1131
 
1122
             this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv)
1132
             this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv)
1123
             this.form.urr = this.form.urr
1133
             this.form.urr = this.form.urr
1134
+            this.form.blood_sugar = parseFloat(this.form.blood_sugar) == NaN ? 0 : parseFloat(this.form.blood_sugar)
1124
             this.$message.error(resp.msg)
1135
             this.$message.error(resp.msg)
1125
           }
1136
           }
1126
         }
1137
         }