xiaoming_global 5 年之前
父節點
當前提交
0e8ed23b48

+ 148 - 8
src/pages/main/DialysisArea.vue 查看文件

59
             {{ selected_date_str }}
59
             {{ selected_date_str }}
60
             <span class="iconfont">&#xe74a;</span>
60
             <span class="iconfont">&#xe74a;</span>
61
           </li>
61
           </li>
62
+          <li @click="mypatient()">
63
+            我的病人
64
+            <span class="iconfont">&#xe74a;</span>
65
+          </li>
62
         </ul>
66
         </ul>
63
       </div>
67
       </div>
64
       <div class="stateBox">
68
       <div class="stateBox">
128
   data () {
132
   data () {
129
     return {
133
     return {
130
       loading: false,
134
       loading: false,
131
-
135
+      user_id: 0,
132
       networkStates: true,
136
       networkStates: true,
133
       timer: null,
137
       timer: null,
138
+<<<<<<< .mine
134
       selected_date: this.$store.getters.app.dialysis_area.schedule_date, // new Date(),
139
       selected_date: this.$store.getters.app.dialysis_area.schedule_date, // new Date(),
140
+
141
+=======
142
+      ismypatient: false,
143
+      selected_date: this.$store.getters.app.dialysis_area.schedule_date, //new Date(),
144
+>>>>>>> .theirs
135
       schedual_types: [
145
       schedual_types: [
136
         { value: 0, text: '全部班', select: true },
146
         { value: 0, text: '全部班', select: true },
137
         { value: 1, text: '上午', select: false },
147
         { value: 1, text: '上午', select: false },
195
         return schedules
205
         return schedules
196
       }
206
       }
197
 
207
 
208
+<<<<<<< .mine
198
       var zone_selected = this.zone_selected
209
       var zone_selected = this.zone_selected
199
       var timetype_selected = this.schedual_type_selected
210
       var timetype_selected = this.schedual_type_selected
200
-      if (
201
-        (zone_selected == 0 && timetype_selected == 0) ||
202
-        this.zones.length <= 1
203
-      ) {
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+=======
238
+       if (this.ismypatient) {
239
+        var schedules = [];
240
+        for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
241
+          const scheduleInfo = this.dialysis_scheduals[o_i];
242
+          var originSchedules = scheduleInfo.scheduals;
243
+          if (originSchedules.length == 0) {
244
+            continue;
245
+          }
246
+          var filtedSchedules = [];
247
+          for (let s_i = 0; s_i < originSchedules.length; s_i++) {
248
+            const schedule = originSchedules[s_i];
249
+            if (schedule.dialysis_order.start_nurse == this.user_id ) {
250
+              filtedSchedules.push(schedule);
251
+              // break;
252
+            }
253
+          }
254
+          if (filtedSchedules.length > 0) {
255
+            schedules.push({
256
+              zone_name: scheduleInfo.zone_name,
257
+              scheduals: filtedSchedules
258
+            });
259
+          }
260
+        }
261
+        return schedules;
262
+      }
263
+
264
+      var zone_selected = this.zone_selected;
265
+      var timetype_selected = this.schedual_type_selected;
266
+>>>>>>> .theirs
267
+      if ( (zone_selected == 0 && timetype_selected == 0) || this.zones.length <= 1 ) {
204
         return this.dialysis_scheduals
268
         return this.dialysis_scheduals
205
       }
269
       }
206
 
270
 
212
         var filtedSchedules = []
276
         var filtedSchedules = []
213
         for (let s_i = 0; s_i < originSchedules.length; s_i++) {
277
         for (let s_i = 0; s_i < originSchedules.length; s_i++) {
214
           const schedule = originSchedules[s_i]
278
           const schedule = originSchedules[s_i]
279
+<<<<<<< .mine
215
           if (
280
           if (
216
             zone_name.length == 0 ||
281
             zone_name.length == 0 ||
217
             (zone_name.length > 0 &&
282
             (zone_name.length > 0 &&
222
               schedule.schedule_type == timetype_selected
287
               schedule.schedule_type == timetype_selected
223
             ) {
288
             ) {
224
               filtedSchedules.push(schedule)
289
               filtedSchedules.push(schedule)
290
+=======
291
+           if(this.ismypatient){
292
+             if ( schedule.dialysis_order.creator == this.user_id){
293
+               filtedSchedules.push(schedule);
294
+             }
295
+           }
296
+          else {
297
+            if  ( zone_name.length == 0 || (zone_name.length > 0 && zone_name == schedule.device_number.zone.name) ) {
298
+              if ( timetype_selected == 0 || schedule.schedule_type == timetype_selected ) {
299
+                filtedSchedules.push(schedule);
300
+              }
301
+>>>>>>> .theirs
225
             }
302
             }
226
           }
303
           }
227
         }
304
         }
232
           })
309
           })
233
         }
310
         }
234
       }
311
       }
312
+<<<<<<< .mine
235
       return schedules
313
       return schedules
314
+
315
+=======
316
+      this.ismypatient = false
317
+      return schedules;
318
+>>>>>>> .theirs
236
     }
319
     }
237
   },
320
   },
321
+<<<<<<< .mine
238
   methods: {
322
   methods: {
239
     myPatients () {
323
     myPatients () {
240
       alert('aaa')
324
       alert('aaa')
241
     }
325
     }
326
+=======
327
+  created() {
328
+    this.user_id = this.$store.getters.user.user.id;
329
+    this.requestDialysisScheduals();
330
+
331
+>>>>>>> .theirs
242
   },
332
   },
243
   created () {
333
   created () {
244
     this.requestDialysisScheduals()
334
     this.requestDialysisScheduals()
245
   },
335
   },
246
   mounted () {
336
   mounted () {
247
-    // this.timer = window.setInterval(() => {
248
-    //   setTimeout(this.requestDialysisScheduals(), 0);
249
-    // }, 30000);
337
+    this.timer = window.setInterval(() => {
338
+      setTimeout(this.requestDialysisScheduals(), 0);
339
+    }, 30000);
250
   },
340
   },
251
   beforeDestroy () {
341
   beforeDestroy () {
252
     clearInterval(this.timer)
342
     clearInterval(this.timer)
253
     this.timer = null
343
     this.timer = null
254
   },
344
   },
255
   methods: {
345
   methods: {
346
+<<<<<<< .mine
256
     reloads: function () {
347
     reloads: function () {
257
       this.reload()
348
       this.reload()
349
+
350
+
351
+
352
+
353
+
354
+
355
+=======
356
+    mypatient(){
357
+      this.search_keyword = '';
358
+      this.zone_selected = 0;
359
+      this.schedual_type_selected = 0;
360
+      this.ismypatient = true;
361
+    },
362
+    reloads: function() {
363
+      this.reload();
364
+>>>>>>> .theirs
258
     },
365
     },
366
+<<<<<<< .mine
259
     handletimeType: function (index) {
367
     handletimeType: function (index) {
260
       this.sch_type_options_visible = false
368
       this.sch_type_options_visible = false
261
       this.schedual_type_selected = index
369
       this.schedual_type_selected = index
262
       this.$emit('clear_search_keyword')
370
       this.$emit('clear_search_keyword')
263
       this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
371
       this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
372
+
373
+=======
374
+    handletimeType: function(index) {
375
+      this.ismypatient = false
376
+      this.sch_type_options_visible = false;
377
+      this.schedual_type_selected = index;
378
+      this.$emit("clear_search_keyword");
379
+      this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
380
+>>>>>>> .theirs
264
         zone: this.zone_selected,
381
         zone: this.zone_selected,
265
         schedule_type: this.schedual_type_selected,
382
         schedule_type: this.schedual_type_selected,
266
         schedule_date: this.selected_date
383
         schedule_date: this.selected_date
267
       })
384
       })
268
     },
385
     },
386
+<<<<<<< .mine
269
     handleZoneChange: function (index) {
387
     handleZoneChange: function (index) {
270
       this.zone_options_visible = false
388
       this.zone_options_visible = false
271
       this.zone_selected = index
389
       this.zone_selected = index
272
       this.$emit('clear_search_keyword')
390
       this.$emit('clear_search_keyword')
273
       this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
391
       this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
392
+
393
+=======
394
+    handleZoneChange: function(index) {
395
+      this.ismypatient = false
396
+      this.zone_options_visible = false;
397
+      this.zone_selected = index;
398
+      this.$emit("clear_search_keyword");
399
+      this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
400
+>>>>>>> .theirs
274
         zone: this.zone_selected,
401
         zone: this.zone_selected,
275
         schedule_type: this.schedual_type_selected,
402
         schedule_type: this.schedual_type_selected,
276
         schedule_date: this.selected_date
403
         schedule_date: this.selected_date
277
       })
404
       })
278
     },
405
     },
406
+<<<<<<< .mine
279
     handleScheduleDateChange: function (date) {
407
     handleScheduleDateChange: function (date) {
280
       this.zone_selected = 0
408
       this.zone_selected = 0
281
       this.schedual_type_selected = 0
409
       this.schedual_type_selected = 0
282
 
410
 
411
+=======
412
+    handleScheduleDateChange: function(date) {
413
+      this.ismypatient = false
414
+      this.zone_selected = 0;
415
+      this.schedual_type_selected = 0;
416
+>>>>>>> .theirs
417
+
283
       this.$emit('clear_search_keyword')
418
       this.$emit('clear_search_keyword')
284
       this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
419
       this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
285
         zone: this.zone_selected,
420
         zone: this.zone_selected,
291
 
426
 
292
     requestDialysisScheduals () {
427
     requestDialysisScheduals () {
293
       // this.$toast.loading({forbidClick: true, duration: 0})
428
       // this.$toast.loading({forbidClick: true, duration: 0})
429
+<<<<<<< .mine
294
       this.loading = true
430
       this.loading = true
295
       var type = 0
431
       var type = 0
432
+=======
433
+      // this.loading = true;
434
+      var type = 0;
435
+>>>>>>> .theirs
296
       getDialysisScheduals({ type: type, date: this.selected_date_str })
436
       getDialysisScheduals({ type: type, date: this.selected_date_str })
297
         .then(rs => {
437
         .then(rs => {
298
           this.networkStates = true
438
           this.networkStates = true

+ 13 - 13
src/pages/main/WaitingArea.vue 查看文件

254
           var scheduals = [];
254
           var scheduals = [];
255
           for (let index = 0; index < this.scheduals.length; index++) {
255
           for (let index = 0; index < this.scheduals.length; index++) {
256
             const schedual = this.scheduals[index];
256
             const schedual = this.scheduals[index];
257
-            if (schedual.assessment_before_dislysis == null) {
257
+            if (schedual.assessment_before_dislysis == null || schedual.assessment_before_dislysis.weighing_before == 0) {
258
               if(this.cur_zone_selected > 0 && schedual.device_number.zone.id != this.cur_zone_selected) {
258
               if(this.cur_zone_selected > 0 && schedual.device_number.zone.id != this.cur_zone_selected) {
259
                 continue
259
                 continue
260
               }
260
               }
270
           var scheduals = [];
270
           var scheduals = [];
271
           for (let index = 0; index < this.scheduals.length; index++) {
271
           for (let index = 0; index < this.scheduals.length; index++) {
272
             const schedual = this.scheduals[index];
272
             const schedual = this.scheduals[index];
273
-            if (schedual.assessment_before_dislysis == null && schedual.prescription == null) {
273
+            if (schedual.prescription == null || schedual.prescription.creater == 0) {
274
               if(this.cur_zone_selected > 0 && schedual.device_number.zone.id != this.cur_zone_selected) {
274
               if(this.cur_zone_selected > 0 && schedual.device_number.zone.id != this.cur_zone_selected) {
275
                 continue
275
                 continue
276
               }
276
               }
306
         var scheduals = [];
306
         var scheduals = [];
307
         for (let index = 0; index < this.scheduals.length; index++) {
307
         for (let index = 0; index < this.scheduals.length; index++) {
308
           const schedual = this.scheduals[index];
308
           const schedual = this.scheduals[index];
309
-          if (schedual.assessment_before_dislysis == null) {
309
+          if (schedual.assessment_before_dislysis == null || schedual.assessment_before_dislysis.weighing_before == 0) {
310
             scheduals.push(schedual);
310
             scheduals.push(schedual);
311
           }
311
           }
312
         }
312
         }
316
         var scheduals = [];
316
         var scheduals = [];
317
         for (let index = 0; index < this.scheduals.length; index++) {
317
         for (let index = 0; index < this.scheduals.length; index++) {
318
           const schedual = this.scheduals[index];
318
           const schedual = this.scheduals[index];
319
-          if (schedual.assessment_before_dislysis == null && schedual.prescription == null) {
319
+          if (schedual.prescription == null || schedual.prescription.creater == 0) {
320
             scheduals.push(schedual);
320
             scheduals.push(schedual);
321
           }
321
           }
322
         }
322
         }
358
     this.requestScheduals();
358
     this.requestScheduals();
359
   },
359
   },
360
   mounted() {
360
   mounted() {
361
-    // this.timer = window.setInterval(() => {
362
-    //   setTimeout(this.requestScheduals(), 0);
363
-    // }, 30000);
361
+    this.timer = window.setInterval(() => {
362
+      setTimeout(this.requestScheduals(), 0);
363
+    }, 30000);
364
   },
364
   },
365
   beforeDestroy() {
365
   beforeDestroy() {
366
     clearInterval(this.timer);
366
     clearInterval(this.timer);
367
     this.timer = null;
367
     this.timer = null;
368
-    // this.$once('hook:beforeDestroy', () => {
369
-    //   clearInterval(this.timer);
370
-    // })
368
+    this.$once('hook:beforeDestroy', () => {
369
+      clearInterval(this.timer);
370
+    })
371
   },
371
   },
372
   methods: {
372
   methods: {
373
     processScheduals: function(scheduals) {
373
     processScheduals: function(scheduals) {
381
           schedualMap[schedual.device_number.zone.id] = [];
381
           schedualMap[schedual.device_number.zone.id] = [];
382
         }
382
         }
383
         if (this.select_index == 1) {
383
         if (this.select_index == 1) {
384
-            if(schedual.assessment_before_dislysis == null && schedual.prescription == null){
384
+            if(schedual.prescription == null || schedual.prescription.creater == 0){
385
             schedualMap[schedual.device_number.zone.id].push(schedual);
385
             schedualMap[schedual.device_number.zone.id].push(schedual);
386
             prescription_count++
386
             prescription_count++
387
           }
387
           }
388
         } else if (this.select_index == 2){
388
         } else if (this.select_index == 2){
389
-            if(schedual.assessment_before_dislysis == null ){
389
+            if(schedual.assessment_before_dislysis == null || schedual.assessment_before_dislysis.weighing_before == 0){
390
             schedualMap[schedual.device_number.zone.id].push(schedual);
390
             schedualMap[schedual.device_number.zone.id].push(schedual);
391
             assessment_before_dislysis_count++
391
             assessment_before_dislysis_count++
392
           }
392
           }
464
     },
464
     },
465
 
465
 
466
     requestScheduals() {
466
     requestScheduals() {
467
-      this.loading = true;
467
+      // this.loading = true;
468
       var date = parseTime(Date.parse(new Date()), "{y}-{m}-{d}");
468
       var date = parseTime(Date.parse(new Date()), "{y}-{m}-{d}");
469
       getWaitingScheduals({ date: date })
469
       getWaitingScheduals({ date: date })
470
         .then(rs => {
470
         .then(rs => {

+ 44 - 7
src/pages/main/dialog/PrescriptionDialog.vue 查看文件

5
       <div class="DialogTit">
5
       <div class="DialogTit">
6
         <span @click="close()" class="iconfont">&#xe6e9;</span>
6
         <span @click="close()" class="iconfont">&#xe6e9;</span>
7
         <h1 class="name">透析处方</h1>
7
         <h1 class="name">透析处方</h1>
8
+        <botton @click="showmsgtip">{{patient.name}}  [透析号 {{patient.dialysis_no}} ]</botton>
8
         <span @click="commitInfo" class="success" v-if="isPermission()">完成</span>
9
         <span @click="commitInfo" class="success" v-if="isPermission()">完成</span>
9
         <span @click="commitInfo" class="success" v-if="!isPermission()"></span>
10
         <span @click="commitInfo" class="success" v-if="!isPermission()"></span>
10
 
11
 
309
     <long-advice-sub-menu :visibility="advice_visibility" v-on:menu-cancle-three="menuCancleThree"
310
     <long-advice-sub-menu :visibility="advice_visibility" v-on:menu-cancle-three="menuCancleThree"
310
                           v-on:menu-comfirm-three="menuComfirmThree" :propsForm="advicePropForm"></long-advice-sub-menu>
311
                           v-on:menu-comfirm-three="menuComfirmThree" :propsForm="advicePropForm"></long-advice-sub-menu>
311
 
312
 
313
+    <msg-tip style="width:500px;" :visibility="msgtip_visibility" :predialysis="predialysis"
314
+                           :last_predialysis="last_predialysis"
315
+                           :record="record"
316
+                           :last_record="last_record"
317
+                           :patient_prop="patient"
318
+                           :prescription_prop="prescription_prop" 
319
+                           v-on:menu-msg-tip="menuMsgTip"></msg-tip>
320
+
312
   </div>
321
   </div>
313
 </template>
322
 </template>
314
 
323
 
322
 
331
 
323
 import {parseTime} from '@/utils'
332
 import {parseTime} from '@/utils'
324
 import LongAdviceSubMenu from './subMenu/LongAdviceSubMenu'
333
 import LongAdviceSubMenu from './subMenu/LongAdviceSubMenu'
334
+import MsgTip from './subMenu/MsgTip'
325
 
335
 
326
 export default {
336
 export default {
327
   name: 'PrescriptionDialog',
337
   name: 'PrescriptionDialog',
332
         return new Array()
342
         return new Array()
333
       }
343
       }
334
     },
344
     },
345
+    predialysis:{
346
+      type:Object
347
+    },
348
+    last_predialysis: {
349
+      type:Object
350
+    },
351
+    record:{
352
+      type:Object
353
+    },
354
+    last_record: {
355
+      type:Object
356
+    },
335
     patient_prop: {
357
     patient_prop: {
336
       type: Object
358
       type: Object
337
     },
359
     },
383
         return new Array()
405
         return new Array()
384
       }
406
       }
385
     }
407
     }
408
+  },
409
+   components: {
410
+    LongAdviceSubMenu,
411
+    MsgTip,
412
+    MultipleSubMenu,
413
+
414
+    // MultipleSubMenu,
415
+    CheckBoxSubMenu
386
   },
416
   },
387
   data () {
417
   data () {
388
     return {
418
     return {
391
       signUrl: '',
421
       signUrl: '',
392
       isShowDesc: true,
422
       isShowDesc: true,
393
       advice_visibility: false,
423
       advice_visibility: false,
424
+      msgtip_visibility: false,
394
       time: '03:00',
425
       time: '03:00',
395
       timeValue: '',
426
       timeValue: '',
396
       isShowSign: false,
427
       isShowSign: false,
508
     }
539
     }
509
   },
540
   },
510
 
541
 
542
+
511
   methods: {
543
   methods: {
544
+    showmsgtip(){
545
+        this.msgtip_visibility = true
546
+        this.isShowDialog = false
547
+      
548
+    },
512
     isPermission () {
549
     isPermission () {
513
       if (this.$store.getters.user.user.user_type == 3 && (this.$store.getters.user.template_info.template_id == 2 || this.$store.getters.user.template_info.template_id == 6)) {
550
       if (this.$store.getters.user.user.user_type == 3 && (this.$store.getters.user.template_info.template_id == 2 || this.$store.getters.user.template_info.template_id == 6)) {
514
         return false
551
         return false
710
       this.advice_visibility = false
747
       this.advice_visibility = false
711
       this.isShowDialog = true
748
       this.isShowDialog = true
712
     },
749
     },
750
+    menuMsgTip: function () {
751
+      this.msgtip_visibility = false
752
+      this.isShowDialog = true
753
+    },
754
+
713
     menuComfirmThree: function (targetAdvices) {
755
     menuComfirmThree: function (targetAdvices) {
714
       let params = {
756
       let params = {
715
         advices: targetAdvices,
757
         advices: targetAdvices,
1347
     }
1389
     }
1348
   },
1390
   },
1349
   created () {
1391
   created () {
1392
+    // this.$refs.computer_dialog.open()
1350
     if (this.$store.getters.user.user.user_type == 2) {
1393
     if (this.$store.getters.user.user.user_type == 2) {
1351
       this.isShowSign = true
1394
       this.isShowSign = true
1352
     }
1395
     }
1423
     this.dialysisPrescription.ultrafiltration = this.getFloat(this.dialysisPrescription.ultrafiltration)
1466
     this.dialysisPrescription.ultrafiltration = this.getFloat(this.dialysisPrescription.ultrafiltration)
1424
     this.dialysisPrescription.target_ultrafiltration = this.getFloat(this.dialysisPrescription.target_ultrafiltration)
1467
     this.dialysisPrescription.target_ultrafiltration = this.getFloat(this.dialysisPrescription.target_ultrafiltration)
1425
   },
1468
   },
1426
-
1427
-  components: {
1428
-    LongAdviceSubMenu,
1429
-    MultipleSubMenu,
1430
-    // MultipleSubMenu,
1431
-    CheckBoxSubMenu
1432
-  },
1433
   watch: {
1469
   watch: {
1434
     isShowDialog (val) {
1470
     isShowDialog (val) {
1435
       if (val) {
1471
       if (val) {
1436
         this.advice_visibility = false
1472
         this.advice_visibility = false
1473
+    
1437
       }
1474
       }
1438
     }
1475
     }
1439
   }
1476
   }

+ 211 - 0
src/pages/main/dialog/subMenu/MsgTip.vue 查看文件

1
+<template>
2
+  <div v-if="visibility" class="Dialog">
3
+    <div class="DialogTit">
4
+      <div class="back" @click="cancle()">
5
+        <span class="iconfont">&#xe720; </span>返回
6
+      </div>
7
+      <h1 class="name">{{patient_prop.name}} [透析号 {{patient_prop.dialysis_no}} ]</h1>
8
+      <span @click="comfirm" class="success" >确定</span
9
+      >
10
+    </div>
11
+
12
+    <div class="DialogContent">
13
+        <div class="item">
14
+          <label class="name" for="txms">本次透析日期</label>
15
+          <div class="content">
16
+            <span class="text" id="txms"> {{dialysis_date}}</span>
17
+            
18
+          </div>
19
+        </div>
20
+        <div class="item">
21
+          <label class="name" for="txms">透前体重(kg)</label>
22
+          <div class="content">
23
+            <span class="text" id="txms">{{predialysis.weighing_before}}</span>
24
+            
25
+          </div>
26
+        </div>
27
+        <div class="item">
28
+          <label class="name" for="txms">干体重(kg)</label>
29
+          <div class="content">
30
+            <span class="text" id="txms">{{predialysis.dry_weight}}</span>
31
+            
32
+          </div>
33
+        </div>
34
+        <div class="item">
35
+          <label class="name" for="txms">衣物重(kg)</label>
36
+          <div class="content">
37
+            <span class="text" id="txms">{{predialysis.additional_weight}}</span>
38
+            
39
+          </div>
40
+        </div>
41
+        <div class="item">
42
+          <label class="name" for="txms">体重增加(kg)</label>
43
+          <div class="content">
44
+            <span class="text" id="txms">{{prescription_prop.dewater_amount}}</span>
45
+            
46
+          </div>
47
+        </div>
48
+        <div class="item">
49
+          <label class="name" for="txms">透后体重(kg)</label>
50
+          <div class="content">
51
+            <span class="text" id="txms">{{record.weight_after}}</span>
52
+            
53
+          </div>
54
+        </div>
55
+        <div class="item">
56
+          <label class="name" for="txms">体重减少(kg)</label>
57
+          <div class="content">
58
+            <span class="text" id="txms">{{record.weight_loss}}</span>
59
+            
60
+          </div>
61
+        </div>
62
+        <div class="item">
63
+          <label class="name" for="txms">上次透后体重(kg)</label>
64
+          <div class="content">
65
+            <span class="text" id="txms">{{predialysis.weight_after_last_transparency}}</span>
66
+            
67
+          </div>
68
+        </div>
69
+    </div>
70
+  </div>
71
+</template>
72
+
73
+<script>
74
+  import {parseTime} from '@/utils'
75
+
76
+  export default {
77
+    name: 'LongAdviceSubMenu',
78
+    created () {
79
+    },
80
+    data () {
81
+      return {
82
+        result: [],
83
+        id: 0,
84
+        selectName: ''
85
+      }
86
+    },
87
+    props: {
88
+      predialysis: {
89
+        type: Object
90
+      },
91
+      visibility: {
92
+        type: Boolean,
93
+        default: false
94
+      },
95
+      last_predialysis: {
96
+        type: Object
97
+      },
98
+      record: {
99
+        type: Object
100
+      },
101
+      last_record: {
102
+        type: Object
103
+      },
104
+      patient_prop: {
105
+        type: Object
106
+      },
107
+      prescription_prop: {
108
+        type: Object
109
+      },
110
+    },
111
+    computed: {
112
+    dialysis_date: function () {
113
+      return parseTime(this.$route.query.date, '{y}/{m}/{d}')
114
+      }
115
+    },
116
+    methods: {
117
+
118
+
119
+      cancle: function () {
120
+        this.$emit('menu-msg-tip')
121
+      },
122
+      comfirm: function () {
123
+        this.$emit('menu-msg-tip')
124
+      },
125
+      getValue: function () {
126
+        let form = {}
127
+
128
+        let results = []
129
+
130
+        for (let i = 0; i < this.propsForm.list.length; i++){
131
+          for (let a = 0; a < this.propsForm.result.length; a++){
132
+            if( this.propsForm.list[i].id == this.propsForm.result[a]){
133
+              results.push(this.propsForm.list[i])
134
+            }
135
+          }
136
+        }
137
+
138
+        var obj5={}
139
+        results = results.reduce((cur, next) => {
140
+          obj5[next.id] ? '' : obj5[next.id] = true && cur.push(next)
141
+          return cur
142
+        }, [])
143
+
144
+        results
145
+
146
+        return results
147
+      },
148
+
149
+    },
150
+    watch: {
151
+      visibility (val) {
152
+        //初始化数据操作
153
+      }
154
+    }
155
+  }
156
+</script>
157
+
158
+<style style="stylesheet/scss" lang="scss" scoped>
159
+  .optionsBox {
160
+  background: #fff;
161
+  max-height: 10rem;
162
+  min-height: 5rem;
163
+  @media only screen and (max-width: 812px) {
164
+  min-height: 8rem !important;
165
+  }
166
+  ul {
167
+  overflow-y: scroll;
168
+  max-height: 9rem;
169
+  li {
170
+  height: 1.1rem;
171
+  line-height: 1.1rem;
172
+  border-bottom: 1px #e5e5e5 solid;
173
+  padding: 0 0.38rem;
174
+  font-size: 0.36rem;
175
+  color: $title-color;
176
+  }
177
+  .tick {
178
+  position: relative;
179
+  &::before {
180
+  content: "";
181
+  display: inline-block;
182
+  border: 2px solid $main-color;
183
+  border-top-width: 0;
184
+  border-right-width: 0;
185
+  width: 0.3rem;
186
+  height: 0.15rem;
187
+  -webkit-transform: rotate(-50deg);
188
+  position: absolute;
189
+  top: 0.38rem;
190
+  right: 0.44rem;
191
+  }
192
+  }
193
+  }
194
+  }
195
+  .CheckBox {
196
+  background: #fff;
197
+  max-height: 6.8rem;
198
+  min-height: 5rem;
199
+  overflow-y: scroll;
200
+  @media only screen and (max-width: 812px) {
201
+  max-height: 8rem !important;
202
+  min-height: 8rem !important;
203
+  }
204
+
205
+  ul {
206
+  li {
207
+  line-height: 1rem;
208
+  }
209
+  }
210
+  }
211
+</style>

+ 15 - 11
src/pages/main/today/TodayTab.vue 查看文件

63
                   :step_data="stepData"></details-info>
63
                   :step_data="stepData"></details-info>
64
 
64
 
65
     <div class="blueBorder"></div>
65
     <div class="blueBorder"></div>
66
-    <dialysis-prescription id="prescription" :prescription="prescription" :solution="solution" title="透析处方"
66
+    <dialysis-prescription id="prescription"  :prescription="prescription" :solution="solution" title="透析处方"
67
                            :device_number_map="device_map"></dialysis-prescription>
67
                            :device_number_map="device_map"></dialysis-prescription>
68
 
68
 
69
     <div class="blueBorder"></div>
69
     <div class="blueBorder"></div>
113
                            :waitUploadAdvices="waitUploadAdvices" :is_open="is_open"
113
                            :waitUploadAdvices="waitUploadAdvices" :is_open="is_open"
114
                            @close="closePrescriptionDialog" @prescription="prescriptionFunc"
114
                            @close="closePrescriptionDialog" @prescription="prescriptionFunc"
115
                            :admin_users_prop="admin_users" @advice="adviceFunc"
115
                            :admin_users_prop="admin_users" @advice="adviceFunc"
116
+                           :predialysis="predialysis_evaluation"
117
+                           :last_predialysis="last_predialysis_evaluation"
118
+                           :record="assessment_after_dislysis"
119
+                           :last_record="last_assessment_after_dislysis"
116
                            @longSolution="longSolutionFunc" ref="prescription_dialog"></prescription-dialog>
120
                            @longSolution="longSolutionFunc" ref="prescription_dialog"></prescription-dialog>
117
     </van-popup>
121
     </van-popup>
118
 
122
 
1049
       ,
1053
       ,
1050
       closePrescriptionDialog: function () {
1054
       closePrescriptionDialog: function () {
1051
         this.closeDialog(1)
1055
         this.closeDialog(1)
1052
-        this.scrollToView('prescription')
1056
+        // this.scrollToView('prescription')
1053
       }
1057
       }
1054
       ,
1058
       ,
1055
       closeAcceptsAssessment: function () {
1059
       closeAcceptsAssessment: function () {
1056
         this.closeDialog(2)
1060
         this.closeDialog(2)
1057
-        this.scrollToView('accepts_assessment')
1061
+        // this.scrollToView('accepts_assessment')
1058
       }
1062
       }
1059
       ,
1063
       ,
1060
       closeAssessmentBefore: function () {
1064
       closeAssessmentBefore: function () {
1061
         this.closeDialog(3)
1065
         this.closeDialog(3)
1062
-        this.scrollToView('assessment_before')
1066
+        // this.scrollToView('assessment_before')
1063
       }
1067
       }
1064
       ,
1068
       ,
1065
       update_evaluation: function (evaluation) {
1069
       update_evaluation: function (evaluation) {
1070
       closeStatOrder: function () {
1074
       closeStatOrder: function () {
1071
         this.closeDialog(4)
1075
         this.closeDialog(4)
1072
         this.doctor_advices.push([])
1076
         this.doctor_advices.push([])
1073
-        this.scrollToView('stat_order')
1077
+        // this.scrollToView('stat_order')
1074
       }
1078
       }
1075
       ,
1079
       ,
1076
       closeDialysisComputer: function (dialysis_order) {
1080
       closeDialysisComputer: function (dialysis_order) {
1077
         this.closeDialog(0)
1081
         this.closeDialog(0)
1078
-        this.scrollToView('dialysis_computer')
1082
+        // this.scrollToView('dialysis_computer')
1079
       }
1083
       }
1080
       ,
1084
       ,
1081
       closeDoubleCheck: function () {
1085
       closeDoubleCheck: function () {
1082
         this.closeDialog(5)
1086
         this.closeDialog(5)
1083
-        this.scrollToView('double_check')
1087
+        // this.scrollToView('double_check')
1084
       }
1088
       }
1085
       ,
1089
       ,
1086
       closeMonitoring: function () {
1090
       closeMonitoring: function () {
1087
         this.closeDialog(6)
1091
         this.closeDialog(6)
1088
-        this.scrollToView('monitoring')
1092
+        // this.scrollToView('monitoring')
1089
       }
1093
       }
1090
       ,
1094
       ,
1091
       closeDialysisOff: function () {
1095
       closeDialysisOff: function () {
1092
         this.closeDialog(7)
1096
         this.closeDialog(7)
1093
-        this.scrollToView('dialysis_off')
1097
+        // this.scrollToView('dialysis_off')
1094
       }
1098
       }
1095
       ,
1099
       ,
1096
       closeAssessmentAfter: function (assessment_after_dislysis) {
1100
       closeAssessmentAfter: function (assessment_after_dislysis) {
1097
         this.closeDialog(8)
1101
         this.closeDialog(8)
1098
-        this.scrollToView('assessment_after')
1102
+        // this.scrollToView('assessment_after')
1099
         if (assessment_after_dislysis != undefined) {
1103
         if (assessment_after_dislysis != undefined) {
1100
           this.assessment_after_dislysis = assessment_after_dislysis
1104
           this.assessment_after_dislysis = assessment_after_dislysis
1101
         }
1105
         }
1103
       ,
1107
       ,
1104
       closeTreatmentOf: function () {
1108
       closeTreatmentOf: function () {
1105
         this.closeDialog(9)
1109
         this.closeDialog(9)
1106
-        this.scrollToView('treatment_of')
1110
+        // this.scrollToView('treatment_of')
1107
       }
1111
       }
1108
       ,
1112
       ,
1109
       scrollToView: function (id) {
1113
       scrollToView: function (id) {