Browse Source

Merge branch 'update' of http://git.shengws.com/zhangbj/xt_pad into update

csx 5 years ago
parent
commit
a3a9d53f0c

+ 33 - 0
src/pages/main/dialog/ComputerDialog.vue View File

33
           </div>
33
           </div>
34
         </div>
34
         </div>
35
 
35
 
36
+        <div class="item" v-if="template_id == 6">
37
+          <label class="name" for="xll">引血(ml/min)</label>
38
+          <div class="content">
39
+            <input type="tel" @focus="inputFocus"  id="xll" v-model="blood_drawing"/>
40
+          </div>
41
+        </div>
36
 
42
 
37
         <div class="item">
43
         <div class="item">
38
           <h2 class="name">上机时间</h2>
44
           <h2 class="name">上机时间</h2>
42
           </div>
48
           </div>
43
         </div>
49
         </div>
44
 
50
 
51
+        
52
+
45
 
53
 
46
         <div class="perform">
54
         <div class="perform">
47
           <button @click="commitInfo" v-if="(record == null || record.id == '')">执行上机</button>
55
           <button @click="commitInfo" v-if="(record == null || record.id == '')">执行上机</button>
83
         isPremission: false,
91
         isPremission: false,
84
         zone_beds: [], // 该排班的区里的床位
92
         zone_beds: [], // 该排班的区里的床位
85
         creator: 0,
93
         creator: 0,
94
+        template_id: 0,
95
+        blood_drawing:100
86
       }
96
       }
87
     },
97
     },
88
     props: {
98
     props: {
124
       }
134
       }
125
     },
135
     },
126
     created () {
136
     created () {
137
+    
138
+      this.template_id = this.$store.getters.user.template_info.template_id;
127
       var date = this.$route.query && this.$route.query.date
139
       var date = this.$route.query && this.$route.query.date
128
       date *= 1000
140
       date *= 1000
129
       var newDate = new Date(date)
141
       var newDate = new Date(date)
177
         }
189
         }
178
       }
190
       }
179
 
191
 
192
+
193
+
180
     },
194
     },
181
     methods: {
195
     methods: {
196
+      inputFocus: function (event) {
197
+        var input = event.target
198
+        setTimeout(function () {
199
+          input.scrollIntoView()
200
+        }, 0)
201
+
202
+        if (input.setSelectionRange) {
203
+          setTimeout(function () {
204
+            input.setSelectionRange(0, input.value.length)
205
+          }, 0)
206
+        } else if (input.createTextRange) {
207
+          var rng = input.createTextRange()
208
+          rng.move('character', input.value.length)
209
+          rng.select()
210
+        }
211
+      },
182
       modify(){
212
       modify(){
183
         let ParamsQuery = {}
213
         let ParamsQuery = {}
184
         ParamsQuery['id'] = this.record.id
214
         ParamsQuery['id'] = this.record.id
229
         ParamsQuery['bed'] = this.bed_id
259
         ParamsQuery['bed'] = this.bed_id
230
         ParamsQuery['start_time'] = this.start_time_str
260
         ParamsQuery['start_time'] = this.start_time_str
231
         ParamsQuery['puncture_nurse'] = this.puncture_nurse_id
261
         ParamsQuery['puncture_nurse'] = this.puncture_nurse_id
262
+        ParamsQuery['blood_drawing'] = this.blood_drawing
232
 
263
 
233
         startDialysis(ParamsQuery).then(response => {
264
         startDialysis(ParamsQuery).then(response => {
234
           if (response.data.state == 0) {
265
           if (response.data.state == 0) {
236
             return false
267
             return false
237
           } else {
268
           } else {
238
             Toast.success('上机成功')
269
             Toast.success('上机成功')
270
+            var monitor = response.data.data.monitor
271
+            this.$emit('did_add_monitor', monitor)
239
             this.$emit('did_start', response.data.data.dialysis_order)
272
             this.$emit('did_start', response.data.data.dialysis_order)
240
             var record = this.record
273
             var record = this.record
241
             for (const key in response.data.data.dialysis_order) {
274
             for (const key in response.data.data.dialysis_order) {

+ 28 - 15
src/pages/main/dialog/MonitDialog.vue View File

26
                 <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
26
                 <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
27
                 <th width="76px">静脉压/动脉压(mmHg)</th>
27
                 <th width="76px">静脉压/动脉压(mmHg)</th>
28
                 <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmHg)</th>
28
                 <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmHg)</th>
29
-                <th v-if="isShow('超滤量')" width="76px">超滤量(L)</th>
29
+                <th v-if="isShow('超滤量') && template_id ==6" width="76px">超滤量(ml)</th>
30
+                <th v-if="isShow('超滤量') && template_id !=6" width="76px">超滤量(L)</th>
30
                 <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
31
                 <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
31
                 <th v-if="isShow('透析液温度')" width="82px">透析液温度(℃)</th>
32
                 <th v-if="isShow('透析液温度')" width="82px">透析液温度(℃)</th>
32
                 <th v-if="isShow('置换率')" width="92px">置换率(L/h)</th>
33
                 <th v-if="isShow('置换率')" width="92px">置换率(L/h)</th>
114
             </div>
115
             </div>
115
             <div class="cell">
116
             <div class="cell">
116
               <label>静脉压(mmHg)</label>
117
               <label>静脉压(mmHg)</label>
117
-              <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
118
-                     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>
119
             </div>
120
             </div>
120
             <div class="cell" v-if="isShow('跨膜压')">
121
             <div class="cell" v-if="isShow('跨膜压')">
121
               <label>跨膜压(mmHg)</label>
122
               <label>跨膜压(mmHg)</label>
122
-              <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
123
-                     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>
124
             </div>
125
             </div>
125
             <div class="cell" v-if="isShow('超滤量')">
126
             <div class="cell" v-if="isShow('超滤量')">
126
-              <label>超滤量(L)</label>
127
+              <label v-if="template_id == 6">超滤量(ml)</label>
128
+              <label v-else>超滤量(L)</label>
127
               <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
129
               <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
128
                      v-model="form.ultrafiltration_volume">
130
                      v-model="form.ultrafiltration_volume">
129
             </div>
131
             </div>
134
             </div>
136
             </div>
135
             <div class="cell">
137
             <div class="cell">
136
               <label>动脉压(mmHg)</label>
138
               <label>动脉压(mmHg)</label>
137
-              <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
138
-                     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>
139
             </div>
141
             </div>
140
             <div class="cell" v-if="isShow('钠浓度')">
142
             <div class="cell" v-if="isShow('钠浓度')">
141
               <label>钠浓度(mmol/L)</label>
143
               <label>钠浓度(mmol/L)</label>
262
         currentIndex: -1,
264
         currentIndex: -1,
263
         currentRow: null,
265
         currentRow: null,
264
         rowClass: 'row-class-active',
266
         rowClass: 'row-class-active',
265
-
267
+        template_id: 0,
266
         visibility: false,
268
         visibility: false,
267
         today_last_monitor_record : {},
269
         today_last_monitor_record : {},
268
         propForm: {
270
         propForm: {
309
     },
311
     },
310
     created () {
312
     created () {
311
       var date = this.$route.query && this.$route.query.date
313
       var date = this.$route.query && this.$route.query.date
314
+      this.template_id = this.$store.getters.user.template_info.template_id;
312
       // date *= 1000;
315
       // date *= 1000;
313
       // var newDate = new Date(date);
316
       // var newDate = new Date(date);
314
       // var cDate = new Date();
317
       // var cDate = new Date();
337
       this.form.operate_time = this.pickertime.getTime()
340
       this.form.operate_time = this.pickertime.getTime()
338
     },
341
     },
339
     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
+      },
340
       isShow (name) {
352
       isShow (name) {
341
         var filedList = this.$store.getters.user.fileds
353
         var filedList = this.$store.getters.user.fileds
342
 
354
 
357
           this.today_last_monitor_record = resp.monitor
369
           this.today_last_monitor_record = resp.monitor
358
 
370
 
359
           
371
           
360
-          this.form.operate_time = Date.parse(new Date())
372
+          // this.form.operate_time = Date.parse(new Date())
373
+          this.form.operate_time = resp.monitor.operate_time ? (resp.monitor.operate_time+3600)* 1000 : Date.parse(new Date())
361
           this.form.pulse_frequency = '' //this.last_monitor_record.pulse_frequency;
374
           this.form.pulse_frequency = '' //this.last_monitor_record.pulse_frequency;
362
           this.form.breathing_rated = resp.monitor.breathing_rate?resp.monitor.breathing_rate:'';
375
           this.form.breathing_rated = resp.monitor.breathing_rate?resp.monitor.breathing_rate:'';
363
           this.form.systolic_bp = '' //this.last_monitor_record.systolic_blood_pressure;
376
           this.form.systolic_bp = '' //this.last_monitor_record.systolic_blood_pressure;
367
           this.form.arterial_pressure = '' //this.last_monitor_record.arterial_pressure;
380
           this.form.arterial_pressure = '' //this.last_monitor_record.arterial_pressure;
368
           this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
381
           this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
369
           this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate?resp.monitor.ultrafiltration_rate:'';
382
           this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate?resp.monitor.ultrafiltration_rate:'';
370
-          this.form.ultrafiltration_volume = ''// this.last_monitor_record.ultrafiltration_volume;
383
+          this.form.ultrafiltration_volume =  resp.monitor.ultrafiltration_volume?resp.monitor.ultrafiltration_volume:'';
371
           this.form.sodium_concentration = resp.monitor.sodium_concentration?resp.monitor.sodium_concentration:'';
384
           this.form.sodium_concentration = resp.monitor.sodium_concentration?resp.monitor.sodium_concentration:'';
372
           this.form.dialysate_temperature =  resp.monitor.dialysate_temperature?resp.monitor.dialysate_temperature:'';
385
           this.form.dialysate_temperature =  resp.monitor.dialysate_temperature?resp.monitor.dialysate_temperature:'';
373
           this.form.temperature = resp.monitor.temperature?resp.monitor.temperature:'';
386
           this.form.temperature = resp.monitor.temperature?resp.monitor.temperature:'';
918
               this.form.conductivity = ''
931
               this.form.conductivity = ''
919
               this.form.displacement_flow_quantity = ''
932
               this.form.displacement_flow_quantity = ''
920
 
933
 
921
-              this.last_monitor_record.sodium_concentration =
922
-                monitor.sodium_concentration
923
-              this.last_monitor_record.dialysate_temperature =
924
-                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
925
 
938
 
926
               Toast.success('新增成功')
939
               Toast.success('新增成功')
927
               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

+ 17 - 8
src/pages/main/dialog/ThorougDialog.vue View File

1246
       let tempHour = ''
1246
       let tempHour = ''
1247
       let tempMinute = ''
1247
       let tempMinute = ''
1248
 
1248
 
1249
-      if (this.record != null && this.record.id != '') {
1249
+      if (this.record != null && this.record.id != '' && this.record.assessment_doctor != 0) {
1250
         for (const key in this.formValue) {
1250
         for (const key in this.formValue) {
1251
           // console.log(key, this.record[key]);
1251
           // console.log(key, this.record[key]);
1252
           this.formValue[key] = this.record[key];
1252
           this.formValue[key] = this.record[key];
1253
         }
1253
         }
1254
-      } else if (this.last_record != null && this.last_record.id != "") {
1255
-        this.$set(this.formValue, "patient_gose", this.last_record.patient_gose)
1256
-        this.$set(this.formValue, "blood_access_part_id", this.last_record.blood_access_part_id)
1257
-        this.$set(this.formValue, "blood_access_part_opera_id", this.last_record.blood_access_part_opera_id)
1258
-        this.$set(this.formValue, "internal_fistula", this.last_record.internal_fistula)
1259
-        this.$set(this.formValue, "internal_fistula_tremor_ac", this.last_record.internal_fistula_tremor_ac)
1260
-      }
1254
+      }else if (this.last_record != null && this.last_record.id != "") {
1255
+        for (const key in this.formValue) {
1256
+          // console.log(key, this.record[key]);
1257
+          this.formValue[key] = this.last_record[key];
1258
+        }
1259
+        if (this.record != null && this.record.id != '' && this.record.assessment_doctor == 0){
1260
+          this.$set(this.formValue, "actual_ultrafiltration", this.record.actual_ultrafiltration)
1261
+          this.$set(this.formValue, "weight_after", this.record.weight_after)
1262
+          this.$set(this.formValue, "weight_loss", this.record.weight_loss)
1263
+        } else {
1264
+          this.$set(this.formValue, "actual_ultrafiltration", '')
1265
+          this.$set(this.formValue, "weight_after", '')
1266
+          this.$set(this.formValue, "weight_loss", '')
1267
+        }
1268
+      } 
1269
+  
1261
 
1270
 
1262
 
1271
 
1263
 
1272
 

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

143
                        :device_numbers="device_numbers" :admin_map="admin_user_map"
143
                        :device_numbers="device_numbers" :admin_map="admin_user_map"
144
                        :special_premission="special_premission"
144
                        :special_premission="special_premission"
145
                        :device_number_map="device_number_map" @did_start="closeDialysisComputer"
145
                        :device_number_map="device_number_map" @did_start="closeDialysisComputer"
146
-                       @close="closeDialysisComputer" ref="computer_dialog"></computer-dialog>
146
+                        @did_add_monitor="didAddMonitor" @close="closeDialysisComputer" ref="computer_dialog"></computer-dialog>
147
     </van-popup>
147
     </van-popup>
148
 
148
 
149
     <van-popup title="透析监测" v-model="menuList[6].showPopup" :overlay="true" :close-on-click-overlay="false">
149
     <van-popup title="透析监测" v-model="menuList[6].showPopup" :overlay="true" :close-on-click-overlay="false">
155
     </van-popup>
155
     </van-popup>
156
 
156
 
157
     <van-popup title="透析下机" v-model="menuList[7].showPopup" :overlay="true" :close-on-click-overlay="false">
157
     <van-popup title="透析下机" v-model="menuList[7].showPopup" :overlay="true" :close-on-click-overlay="false">
158
-      <plane-dialog :patient_prop="patient" :record="dialysis_order" :admins="admin_users" :admin_map="admin_user_map"
159
-                    :special_premission="special_premission"
158
+      <plane-dialog :patient_prop="patient" :record="dialysis_order" :last_monitor_record="last_monitor_record" :admins="admin_users" :admin_map="admin_user_map"
159
+                    :special_premission="special_premission" 
160
                     @did_off="closeDialysisOff" @close="closeDialysisOff" ref="plane_dialog"></plane-dialog>
160
                     @did_off="closeDialysisOff" @close="closeDialysisOff" ref="plane_dialog"></plane-dialog>
161
     </van-popup>
161
     </van-popup>
162
 
162
 
422
         // }
422
         // }
423
         this.monitor_records.reverse()
423
         this.monitor_records.reverse()
424
         this.last_monitor_record = monitor
424
         this.last_monitor_record = monitor
425
+        this.$refs.plane_dialog.set_last_monitor_record(monitor)
425
       },
426
       },
426
 
427
 
427
       didEditMonitor (monitor) {
428
       didEditMonitor (monitor) {