Browse Source

中能建功能开发

张保健 5 years ago
parent
commit
9a244bbae4

+ 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) {

+ 9 - 5
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>
123
                      v-model="form.transmembrane_pressure">
124
                      v-model="form.transmembrane_pressure">
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>
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();
357
           this.today_last_monitor_record = resp.monitor
360
           this.today_last_monitor_record = resp.monitor
358
 
361
 
359
           
362
           
360
-          this.form.operate_time = Date.parse(new Date())
363
+          // this.form.operate_time = Date.parse(new Date())
364
+          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;
365
           this.form.pulse_frequency = '' //this.last_monitor_record.pulse_frequency;
362
           this.form.breathing_rated = resp.monitor.breathing_rate?resp.monitor.breathing_rate:'';
366
           this.form.breathing_rated = resp.monitor.breathing_rate?resp.monitor.breathing_rate:'';
363
           this.form.systolic_bp = '' //this.last_monitor_record.systolic_blood_pressure;
367
           this.form.systolic_bp = '' //this.last_monitor_record.systolic_blood_pressure;
367
           this.form.arterial_pressure = '' //this.last_monitor_record.arterial_pressure;
371
           this.form.arterial_pressure = '' //this.last_monitor_record.arterial_pressure;
368
           this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
372
           this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
369
           this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate?resp.monitor.ultrafiltration_rate:'';
373
           this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate?resp.monitor.ultrafiltration_rate:'';
370
-          this.form.ultrafiltration_volume = ''// this.last_monitor_record.ultrafiltration_volume;
374
+          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:'';
375
           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:'';
376
           this.form.dialysate_temperature =  resp.monitor.dialysate_temperature?resp.monitor.dialysate_temperature:'';
373
           this.form.temperature = resp.monitor.temperature?resp.monitor.temperature:'';
377
           this.form.temperature = resp.monitor.temperature?resp.monitor.temperature:'';

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

141
                        :device_numbers="device_numbers" :admin_map="admin_user_map"
141
                        :device_numbers="device_numbers" :admin_map="admin_user_map"
142
                        :special_premission="special_premission"
142
                        :special_premission="special_premission"
143
                        :device_number_map="device_number_map" @did_start="closeDialysisComputer"
143
                        :device_number_map="device_number_map" @did_start="closeDialysisComputer"
144
-                       @close="closeDialysisComputer" ref="computer_dialog"></computer-dialog>
144
+                        @did_add_monitor="didAddMonitor" @close="closeDialysisComputer" ref="computer_dialog"></computer-dialog>
145
     </van-popup>
145
     </van-popup>
146
 
146
 
147
     <van-popup title="透析监测" v-model="menuList[6].showPopup" :overlay="true" :close-on-click-overlay="false">
147
     <van-popup title="透析监测" v-model="menuList[6].showPopup" :overlay="true" :close-on-click-overlay="false">