Browse Source

修改中能建bug和需求

张保健 5 years ago
parent
commit
04053baffc

+ 19 - 10
src/pages/main/dialog/MonitDialog.vue View File

115
             </div>
115
             </div>
116
             <div class="cell">
116
             <div class="cell">
117
               <label>静脉压(mmHg)</label>
117
               <label>静脉压(mmHg)</label>
118
-              <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
119
-                     v-model="form.venous_pressure">
118
+              <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox" v-model="form.venous_pressure" style="width:60%">
119
+               <button style="width:30%;padding: 0.18rem 0; color: #fff; background: #409eff;" @click="venousPressureChange(1)" >转换</button>
120
             </div>
120
             </div>
121
             <div class="cell" v-if="isShow('跨膜压')">
121
             <div class="cell" v-if="isShow('跨膜压')">
122
               <label>跨膜压(mmHg)</label>
122
               <label>跨膜压(mmHg)</label>
123
-              <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
124
-                     v-model="form.transmembrane_pressure">
123
+              <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox" v-model="form.transmembrane_pressure" style="width:60%">
124
+              <button style="width:30%;padding: 0.18rem 0; color: #fff; background: #409eff;" @click="venousPressureChange(2)" >转换</button>
125
             </div>
125
             </div>
126
             <div class="cell" v-if="isShow('超滤量')">
126
             <div class="cell" v-if="isShow('超滤量')">
127
               <label v-if="template_id == 6">超滤量(ml)</label>
127
               <label v-if="template_id == 6">超滤量(ml)</label>
136
             </div>
136
             </div>
137
             <div class="cell">
137
             <div class="cell">
138
               <label>动脉压(mmHg)</label>
138
               <label>动脉压(mmHg)</label>
139
-              <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
140
-                     v-model="form.arterial_pressure">
139
+              <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox" v-model="form.arterial_pressure" style="width:60%">
140
+              <button style="width:30%;padding: 0.18rem 0; color: #fff; background: #409eff;" @click="venousPressureChange(3)" >转换</button>
141
             </div>
141
             </div>
142
             <div class="cell" v-if="isShow('钠浓度')">
142
             <div class="cell" v-if="isShow('钠浓度')">
143
               <label>钠浓度(mmol/L)</label>
143
               <label>钠浓度(mmol/L)</label>
340
       this.form.operate_time = this.pickertime.getTime()
340
       this.form.operate_time = this.pickertime.getTime()
341
     },
341
     },
342
     methods: {
342
     methods: {
343
+      venousPressureChange(type){
344
+        if (type == 1) {
345
+          this.form.venous_pressure = this.form.venous_pressure * 7.5
346
+        } else if(type == 2) {
347
+          this.form.transmembrane_pressure = this.form.transmembrane_pressure * 7.5
348
+        } else {
349
+          this.form.arterial_pressure = this.form.arterial_pressure * 7.5
350
+        }
351
+      },
343
       isShow (name) {
352
       isShow (name) {
344
         var filedList = this.$store.getters.user.fileds
353
         var filedList = this.$store.getters.user.fileds
345
 
354
 
922
               this.form.conductivity = ''
931
               this.form.conductivity = ''
923
               this.form.displacement_flow_quantity = ''
932
               this.form.displacement_flow_quantity = ''
924
 
933
 
925
-              this.last_monitor_record.sodium_concentration =
926
-                monitor.sodium_concentration
927
-              this.last_monitor_record.dialysate_temperature =
928
-                monitor.dialysate_temperature
934
+              // this.last_monitor_record.sodium_concentration =
935
+              //   monitor.sodium_concentration
936
+              // this.last_monitor_record.dialysate_temperature =
937
+              //   monitor.dialysate_temperature
929
 
938
 
930
               Toast.success('新增成功')
939
               Toast.success('新增成功')
931
               this.formPanel = false
940
               this.formPanel = false

+ 9 - 6
src/pages/main/dialog/PlaneDialog.vue View File

83
     special_premission: {
83
     special_premission: {
84
       type: Array,
84
       type: Array,
85
     },
85
     },
86
+    last_monitor_record: {
87
+      type: Object,
88
+    }
86
   },mounted() {
89
   },mounted() {
87
-      if(this.record.id == 0){
90
+      if(this.last_monitor_record.id == 0){
88
         this.end_time_str = parseTime(this.end_time, "{y}-{m}-{d} {h}:{i}") + ":00";
91
         this.end_time_str = parseTime(this.end_time, "{y}-{m}-{d} {h}:{i}") + ":00";
89
       }else{
92
       }else{
90
-        if(this.record.end_time == 0){
91
-          this.end_time_str = parseTime(this.end_time, "{y}-{m}-{d} {h}:{i}") + ":00";
92
-        }else{
93
-          this.end_time_str = parseTime(this.record.end_time, "{y}-{m}-{d} {h}:{i}") + ":00";
94
-        }
93
+        this.end_time_str = parseTime(this.last_monitor_record.operate_time, "{y}-{m}-{d} {h}:{i}") + ":00";
95
       }
94
       }
96
     },
95
     },
97
   created(){
96
   created(){
138
 
137
 
139
   },
138
   },
140
   methods: {
139
   methods: {
140
+    set_last_monitor_record(monitor) {
141
+      this.last_monitor_record = monitor
142
+      this.end_time_str = parseTime(this.last_monitor_record.operate_time, "{y}-{m}-{d} {h}:{i}") + ":00";
143
+    },
141
     modify(){
144
     modify(){
142
       let ParamsQuery = {}
145
       let ParamsQuery = {}
143
       ParamsQuery['id'] = this.record.id
146
       ParamsQuery['id'] = this.record.id

+ 3 - 2
src/pages/main/today/TodayTab.vue View File

153
     </van-popup>
153
     </van-popup>
154
 
154
 
155
     <van-popup title="透析下机" v-model="menuList[7].showPopup" :overlay="true" :close-on-click-overlay="false">
155
     <van-popup title="透析下机" v-model="menuList[7].showPopup" :overlay="true" :close-on-click-overlay="false">
156
-      <plane-dialog :patient_prop="patient" :record="dialysis_order" :admins="admin_users" :admin_map="admin_user_map"
157
-                    :special_premission="special_premission"
156
+      <plane-dialog :patient_prop="patient" :record="dialysis_order" :last_monitor_record="last_monitor_record" :admins="admin_users" :admin_map="admin_user_map"
157
+                    :special_premission="special_premission" 
158
                     @did_off="closeDialysisOff" @close="closeDialysisOff" ref="plane_dialog"></plane-dialog>
158
                     @did_off="closeDialysisOff" @close="closeDialysisOff" ref="plane_dialog"></plane-dialog>
159
     </van-popup>
159
     </van-popup>
160
 
160
 
418
         // }
418
         // }
419
         this.monitor_records.reverse()
419
         this.monitor_records.reverse()
420
         this.last_monitor_record = monitor
420
         this.last_monitor_record = monitor
421
+        this.$refs.plane_dialog.set_last_monitor_record(monitor)
421
       },
422
       },
422
 
423
 
423
       didEditMonitor (monitor) {
424
       didEditMonitor (monitor) {