Browse Source

解决bug

csx 5 years ago
parent
commit
695971b072

+ 29 - 12
src/pages/main/DialysisArea.vue View File

139
       user_id: 0,
139
       user_id: 0,
140
       networkStates: true,
140
       networkStates: true,
141
       timer: null,
141
       timer: null,
142
-      ismypatient: false,
142
+      ismypatient: this.$store.getters.app.dialysis_area.ismypatient,
143
       selected_date: this.$store.getters.app.dialysis_area.schedule_date, // new Date(),
143
       selected_date: this.$store.getters.app.dialysis_area.schedule_date, // new Date(),
144
       schedual_types: [
144
       schedual_types: [
145
         { value: 0, text: '全部班', select: true },
145
         { value: 0, text: '全部班', select: true },
204
         return schedules
204
         return schedules
205
       }
205
       }
206
       if (this.ismypatient) {
206
       if (this.ismypatient) {
207
+        var zone_selected = this.zone_selected
207
         var timetype_selected = this.schedual_type_selected
208
         var timetype_selected = this.schedual_type_selected
209
+        var zone_name = zone_selected == 0 ? '' : this.zones[zone_selected].text
208
         var schedules = []
210
         var schedules = []
209
         for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
211
         for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
210
           const scheduleInfo = this.dialysis_scheduals[o_i]
212
           const scheduleInfo = this.dialysis_scheduals[o_i]
215
           var filtedSchedules = []
217
           var filtedSchedules = []
216
           for (let s_i = 0; s_i < originSchedules.length; s_i++) {
218
           for (let s_i = 0; s_i < originSchedules.length; s_i++) {
217
             const schedule = originSchedules[s_i]
219
             const schedule = originSchedules[s_i]
218
-            if (schedule.dialysis_order.start_nurse == this.user_id) {
219
-              if (timetype_selected == 0 || schedule.schedule_type == timetype_selected) {
220
-                filtedSchedules.push(schedule)
220
+            if (schedule.dialysis_order.start_nurse == this.user_id ) {
221
+              if (zone_name.length == 0 || (zone_name.length > 0 && zone_name == schedule.device_number.zone.name)) {
222
+                if (timetype_selected == 0 || schedule.schedule_type == timetype_selected) {
223
+                  filtedSchedules.push(schedule)
224
+                }
221
               }
225
               }
222
               // break;
226
               // break;
223
             }
227
             }
247
         for (let s_i = 0; s_i < originSchedules.length; s_i++) {
251
         for (let s_i = 0; s_i < originSchedules.length; s_i++) {
248
           const schedule = originSchedules[s_i]
252
           const schedule = originSchedules[s_i]
249
           if (this.ismypatient) {
253
           if (this.ismypatient) {
250
-            console.log("22222222222222")
251
 
254
 
252
             if (schedule.dialysis_order.creator == this.user_id) {
255
             if (schedule.dialysis_order.creator == this.user_id) {
253
               filtedSchedules.push(schedule)
256
               filtedSchedules.push(schedule)
335
   methods: {
338
   methods: {
336
     mypatient () {
339
     mypatient () {
337
       this.search_keyword = ''
340
       this.search_keyword = ''
338
-      this.zone_selected = 0
339
-      this.schedual_type_selected = 0
340
       this.ismypatient = true
341
       this.ismypatient = true
342
+      this.$emit('clear_search_keyword')
343
+      this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
344
+        zone: this.zone_selected,
345
+        schedule_type: this.schedual_type_selected,
346
+        schedule_date: this.selected_date,
347
+        ismypatient:   this.ismypatient,
348
+      })
341
     },
349
     },
342
     reloads: function () {
350
     reloads: function () {
343
       this.reload()
351
       this.reload()
352
       this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
360
       this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
353
         zone: this.zone_selected,
361
         zone: this.zone_selected,
354
         schedule_type: this.schedual_type_selected,
362
         schedule_type: this.schedual_type_selected,
355
-        schedule_date: this.selected_date
363
+        schedule_date: this.selected_date,
364
+        ismypatient:   this.ismypatient,
365
+
356
       })
366
       })
357
     },
367
     },
358
     handleZoneChange: function (index) {
368
     handleZoneChange: function (index) {
359
-      this.ismypatient = false
369
+      if(!this.ismypatient){
370
+        this.ismypatient = false
371
+      }
360
       this.zone_options_visible = false
372
       this.zone_options_visible = false
361
       this.zone_selected = index
373
       this.zone_selected = index
362
       this.$emit('clear_search_keyword')
374
       this.$emit('clear_search_keyword')
363
       this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
375
       this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
364
         zone: this.zone_selected,
376
         zone: this.zone_selected,
365
         schedule_type: this.schedual_type_selected,
377
         schedule_type: this.schedual_type_selected,
366
-        schedule_date: this.selected_date
378
+        schedule_date: this.selected_date,
379
+        ismypatient:   this.ismypatient,
367
       })
380
       })
368
     },
381
     },
369
     handleScheduleDateChange: function (date) {
382
     handleScheduleDateChange: function (date) {
370
-      this.ismypatient = false
383
+      if(!this.ismypatient){
384
+        this.ismypatient = false
385
+      }
371
       this.zone_selected = 0
386
       this.zone_selected = 0
372
       this.schedual_type_selected = 0
387
       this.schedual_type_selected = 0
373
       this.$emit('clear_search_keyword')
388
       this.$emit('clear_search_keyword')
374
       this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
389
       this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
375
         zone: this.zone_selected,
390
         zone: this.zone_selected,
376
         schedule_type: this.schedual_type_selected,
391
         schedule_type: this.schedual_type_selected,
377
-        schedule_date: this.selected_date
392
+        schedule_date: this.selected_date,
393
+        ismypatient:   this.ismypatient,
394
+
378
       })
395
       })
379
       this.requestDialysisScheduals()
396
       this.requestDialysisScheduals()
380
     },
397
     },

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

268
           } else {
268
           } else {
269
             Toast.success('上机成功')
269
             Toast.success('上机成功')
270
             var monitor = response.data.data.monitor
270
             var monitor = response.data.data.monitor
271
-            this.$emit('did_add_monitor', monitor)
271
+            // this.$emit('did_add_monitor', monitor)
272
             this.$emit('did_start', response.data.data.dialysis_order)
272
             this.$emit('did_start', response.data.data.dialysis_order)
273
             var record = this.record
273
             var record = this.record
274
             for (const key in response.data.data.dialysis_order) {
274
             for (const key in response.data.data.dialysis_order) {

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

906
             var monitor = resp.data.monitor
906
             var monitor = resp.data.monitor
907
             this.$emit('did_add_monitor', monitor)
907
             this.$emit('did_add_monitor', monitor)
908
 
908
 
909
-            // this.monitor_records.unshift(monitor)
909
+            this.monitor_records.unshift(monitor)
910
 
910
 
911
-            // this.monitor_records= this.quickSort(this.monitor_records,"operate_time",false)
911
+            this.monitor_records= this.quickSort(this.monitor_records,"operate_time",false)
912
 
912
 
913
             this.form.pulse_frequency = ''
913
             this.form.pulse_frequency = ''
914
             this.form.breathing_rated = ''
914
             this.form.breathing_rated = ''

+ 62 - 16
src/pages/main/dialog/PrescriptionDialog.vue View File

176
             <input type="tel" @focus="inputFocus" id="dtl" v-model="dialysisPrescription.conductivity"/>
176
             <input type="tel" @focus="inputFocus" id="dtl" v-model="dialysisPrescription.conductivity"/>
177
           </div>
177
           </div>
178
         </div>
178
         </div>
179
-        <div class="item" v-if="isShow('透析器/灌流器')">
179
+        <div @click="showSubMenu('dialyzer_perfusion_apparatus')" class="item" ref="dialyzer_perfusion_apparatus" v-if="isShow('透析器/灌流器') && template_id == 6">
180
+          <label class="name" for="dt1">透析器/灌流器</label>
181
+          <div class="content">
182
+            <span class="text" id="dt">{{dialysisPrescription.dialyzer_perfusion_apparatus}}</span>
183
+            <span class="iconfont">&#xe6f9;</span>
184
+          </div>
185
+        </div>
186
+
187
+        <div class="item" v-if="isShow('透析器/灌流器') && template_id != 6">
180
           <label class="name" for="dtl">透析器/灌流器</label>
188
           <label class="name" for="dtl">透析器/灌流器</label>
181
           <div class="content">
189
           <div class="content">
182
 
190
 
409
     data () {
417
     data () {
410
       return {
418
       return {
411
         is_pre: 0,
419
         is_pre: 0,
420
+        template_id: 0,
412
         loading: false,
421
         loading: false,
413
         signUrl: '',
422
         signUrl: '',
414
         isShowDesc: true,
423
         isShowDesc: true,
725
             this.propForm.selectId = this.dialysisPrescription.blood_access
734
             this.propForm.selectId = this.dialysisPrescription.blood_access
726
             this.propForm.click_ref = 'blood_access'
735
             this.propForm.click_ref = 'blood_access'
727
             break
736
             break
737
+          case 'dialyzer_perfusion_apparatus':
738
+            // this.propForm.type = 11
739
+            // this.isShowDialog = false
740
+            // this.propForm.title = '透析器/灌流器'
741
+            // this.visibility = true
742
+            // this.propForm.list = []
743
+            // this.propForm.optionList = this.bloodAccessOptions
744
+            // this.propForm.isMultiple = 1
745
+            // this.propForm.selectId = this.dialysisPrescription.dialyzer_perfusion_apparatus
746
+            // this.propForm.click_ref = 'dialyzer_perfusion_apparatus'
747
+            // break
748
+
749
+            this.propForm.result = []
750
+            this.isHasOther = 2
751
+            this.propForm.type = 11
752
+            this.isShowDialog = false
753
+            this.propForm.title = '透析器/灌流器'
754
+            this.visibility = true
755
+            this.propForm.list = []
756
+            this.propForm.list = getDataConfig('hemodialysis', 'dialyzer_perfusion_apparatus')
757
+            this.propForm.optionList = []
758
+            this.propForm.isMultiple = 2
759
+            // this.propForm.result = typeof(this.formValue.hemorrhage) == "string"? this.formValue.hemorrhage.split(","):[]
760
+            if (this.dialysisPrescription.dialyzer_perfusion_apparatus != undefined || this.dialysisPrescription.dialyzer_perfusion_apparatus != null) {
761
+              if (this.dialysisPrescription.dialyzer_perfusion_apparatus.length > 0) {
762
+                this.propForm.result = this.dialysisPrescription.dialyzer_perfusion_apparatus.split(',')
763
+              } else {
764
+                this.propForm.result = []
765
+              }
766
+            } else {
767
+              this.propForm.result = []
768
+            }
769
+            this.propForm.click_ref = 'dialyzer_perfusion_apparatus'
770
+            break
728
 
771
 
729
         }
772
         }
730
       },
773
       },
925
             break
968
             break
926
           case 4:
969
           case 4:
927
             this.dialysisPrescription.replacement_way = val.selectId
970
             this.dialysisPrescription.replacement_way = val.selectId
928
-            console.log(this.dialysisPrescription.replacement_way)
929
             break
971
             break
930
           case 5:
972
           case 5:
931
             this.dialysisPrescription.anticoagulant = val.selectId
973
             this.dialysisPrescription.anticoagulant = val.selectId
950
           case 10:
992
           case 10:
951
             this.dialysisPrescription.blood_access = val.selectId
993
             this.dialysisPrescription.blood_access = val.selectId
952
             break
994
             break
995
+          case 11:
996
+            this.dialysisPrescription.dialyzer_perfusion_apparatus = val.result.join(',')
997
+            break
953
         }
998
         }
954
       },
999
       },
955
       GetModeByModeId: function (val) {
1000
       GetModeByModeId: function (val) {
961
             treatment_mode_name = treatment_mode[keys].name
1006
             treatment_mode_name = treatment_mode[keys].name
962
           }
1007
           }
963
         }
1008
         }
964
-        // for (let keys in treatment_mode) {
965
-        //   if (treatment_mode[keys].id == val) {
966
-        //     treatment_mode_name = treatment_mode[keys].name
967
-        //     if (treatment_mode_name == 'HD') {
968
-        //       this.zhiShow = false
969
-        //       this.totalShow = false
970
-        //       this.huShow = false
971
-        //     } else {
972
-        //       this.zhiShow = true
973
-        //       this.totalShow = true
974
-        //       this.huShow = true
975
-        //     }
976
-        //   }
977
-        // }
1009
+        for (let keys in treatment_mode) {
1010
+          if (treatment_mode[keys].id == val) {
1011
+            treatment_mode_name = treatment_mode[keys].name
1012
+            if (treatment_mode_name == 'HD') {
1013
+              this.zhiShow = false
1014
+              this.totalShow = false
1015
+              this.huShow = false
1016
+            } else {
1017
+              this.zhiShow = true
1018
+              this.totalShow = true
1019
+              this.huShow = true
1020
+            }
1021
+          }
1022
+        }
978
 
1023
 
979
         return treatment_mode_name
1024
         return treatment_mode_name
980
       },
1025
       },
1798
       }
1843
       }
1799
     },
1844
     },
1800
     created () {
1845
     created () {
1846
+      this.template_id = this.$store.getters.user.template_info.template_id
1801
       if (this.$store.getters.user.user.user_type == 2) {
1847
       if (this.$store.getters.user.user.user_type == 2) {
1802
         this.isShowSign = true
1848
         this.isShowSign = true
1803
 
1849
 

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

398
         }
398
         }
399
         if (
399
         if (
400
           !isNaN(this.assessment_after_dislysis.id) &&
400
           !isNaN(this.assessment_after_dislysis.id) &&
401
-          this.assessment_after_dislysis.id > 0
401
+          this.assessment_after_dislysis.id  &&  this.assessment_after_dislysis.creater > 0
402
         ) {
402
         ) {
403
           steps[8].value = 1
403
           steps[8].value = 1
404
         }
404
         }
446
 
446
 
447
         this.monitor_records.sort((a, b) => b.operate_time - a.operate_time)
447
         this.monitor_records.sort((a, b) => b.operate_time - a.operate_time)
448
 
448
 
449
-        // for (let index = 0; index < this.monitor_records.length; index++) {
450
-        //   const record = this.monitor_records[index];
451
-        //   if (record.operate_time <= monitor.operate_time) {
452
-        //     this.monitor_records.splice(index, 0, monitor)
453
-        //     break
454
-        //   }
455
-        // }
456
-        this.monitor_records.reverse()
457
-        this.last_monitor_record = monitor
458
-        this.$refs.plane_dialog.set_last_monitor_record(monitor)
459
-      },
449
+      // for (let index = 0; index < this.monitor_records.length; index++) {
450
+      //   const record = this.monitor_records[index];
451
+      //   if (record.operate_time <= monitor.operate_time) {
452
+      //     this.monitor_records.splice(index, 0, monitor)
453
+      //     break
454
+      //   }
455
+      // }
456
+      this.monitor_records.reverse()
457
+      this.last_monitor_record = monitor
458
+      // this.$refs.plane_dialog.set_last_monitor_record(monitor)
459
+    },
460
 
460
 
461
       didEditMonitor (monitor) {
461
       didEditMonitor (monitor) {
462
         var mrl = this.monitor_records.length
462
         var mrl = this.monitor_records.length
468
           }
468
           }
469
         }
469
         }
470
 
470
 
471
-        console.log(monitor)
472
-        console.log(this.monitor_records[monitor_index])
471
+      console.log(monitor)
472
+      console.log(this.monitor_records[monitor_index])
473
 
473
 
474
         this.monitor_records[monitor_index].arterial_pressure =
474
         this.monitor_records[monitor_index].arterial_pressure =
475
           monitor.arterial_pressure
475
           monitor.arterial_pressure
517
           monitor.displacement_flow_quantity
517
           monitor.displacement_flow_quantity
518
         this.monitor_records.sort((a, b) => a.operate_time - b.operate_time)
518
         this.monitor_records.sort((a, b) => a.operate_time - b.operate_time)
519
 
519
 
520
-        // if (monitor_index >= 0) {
521
-        //   var record = this.monitor_records[monitor_index]
522
-        //
523
-        //   this.monitor_records.splice(monitor_index, 1)
524
-        //   if(this.monitor_records.length == 0){
525
-        //     this.monitor_records.splice(0, 0, monitor)
526
-        //   }else {
527
-        //
528
-        //     for (let index = 0; index < this.monitor_records.length; index++) {
529
-        //       const temp = this.monitor_records[index];
530
-        //       if (temp.operate_time <= monitor.operate_time) {
531
-        //         this.monitor_records.splice(index, 0, monitor)
532
-        //         break
533
-        //       }
534
-        //     }
535
-        //   }
536
-        // }
537
-      },
538
-      didDelMonitor (record_id) {
539
-        var mrl = this.monitor_records.length
540
-        for (let index = 0; index < mrl; index++) {
541
-          if (this.monitor_records[index].id == record_id) {
542
-            this.monitor_records.splice(index, 1)
543
-            break
544
-          }
520
+      // if (monitor_index >= 0) {
521
+      //   var record = this.monitor_records[monitor_index]
522
+      //
523
+      //   this.monitor_records.splice(monitor_index, 1)
524
+      //   if(this.monitor_records.length == 0){
525
+      //     this.monitor_records.splice(0, 0, monitor)
526
+      //   }else {
527
+      //
528
+      //     for (let index = 0; index < this.monitor_records.length; index++) {
529
+      //       const temp = this.monitor_records[index];
530
+      //       if (temp.operate_time <= monitor.operate_time) {
531
+      //         this.monitor_records.splice(index, 0, monitor)
532
+      //         break
533
+      //       }
534
+      //     }
535
+      //   }
536
+      // }
537
+    },
538
+    didDelMonitor (record_id) {
539
+      var mrl = this.monitor_records.length
540
+      for (let index = 0; index < mrl; index++) {
541
+        if (this.monitor_records[index].id == record_id) {
542
+          this.monitor_records.splice(index, 1)
543
+          break
545
         }
544
         }
546
-      },
545
+      }
546
+    },
547
 
547
 
548
-      menuClick: function (popupIndex) {
549
-        this.index = popupIndex
550
-        if (popupIndex >= 0) {
551
-          this.menuList[popupIndex].showPopup = true
552
-        }
553
-        if (
554
-          popupIndex == 1 &&
555
-          typeof this.$refs.prescription_dialog != 'undefined'
556
-        ) {
557
-          this.$refs.prescription_dialog.open()
558
-        } else if (
559
-          popupIndex == 3 &&
560
-          typeof this.$refs.assessment_dialog != 'undefined'
561
-        ) {
562
-          this.$refs.assessment_dialog.open()
563
-        } else if (
564
-          popupIndex == 4 &&
565
-          typeof this.$refs.orders_dialog != 'undefined'
566
-        ) {
567
-          // this.$refs.orders_dialog.open();
568
-        } else if (
569
-          popupIndex == 0 &&
570
-          typeof this.$refs.computer_dialog != 'undefined'
571
-        ) {
572
-          this.$refs.computer_dialog.open()
573
-        } else if (
574
-          popupIndex == 6 &&
575
-          typeof this.$refs.monit_dialog != 'undefined'
576
-        ) {
577
-          this.$refs.monit_dialog.open()
578
-        } else if (
579
-          popupIndex == 7 &&
580
-          typeof this.$refs.plane_dialog != 'undefined'
581
-        ) {
582
-          this.$refs.plane_dialog.open()
583
-        } else if (
584
-          popupIndex == 8 &&
585
-          typeof this.$refs.thoroug_dialog != 'undefined'
586
-        ) {
587
-          this.$refs.thoroug_dialog.open()
588
-        } else if (
589
-          popupIndex == 9 &&
590
-          typeof this.$refs.treatment_dialog != 'undefined'
591
-        ) {
592
-          this.$refs.treatment_dialog.open()
593
-        }
594
-      },
595
-      popupDidHide: function (popupIndex) {
596
-        this.index = -1
597
-      },
598
-      closeDialog (index) {
599
-        this.index = -1
600
-        this.menuList[index].showPopup = false
601
-      },
602
-      refresh () {
603
-        var dateStr = parseTime(this.$route.query.date, '{y}-{m}-{d}')
604
-        var params = {
605
-          patient_id: this.$route.query.patient_id,
606
-          date: dateStr
607
-        }
608
-        getDialysisRecord(params).then(rs => {
609
-          var resp = rs.data
610
-          console.log(resp)
611
-          if (resp.state == 1) {
612
-            var patient = resp.data.patient // 患者信息
613
-            var schedual = resp.data.schedual // 患者排班信息
614
-            var prescription = resp.data.prescription // 透析处方
615
-            var solution = resp.data.solution // 透析方案
616
-            var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
617
-            var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
618
-            var doctor_advices = resp.data.doctor_advices // 临时医嘱
619
-            this.dryWeight = resp.data.dry_weight
548
+    menuClick: function (popupIndex) {
549
+      this.index = popupIndex
550
+      if (popupIndex >= 0) {
551
+        this.menuList[popupIndex].showPopup = true
552
+      }
553
+      if (
554
+        popupIndex == 1 &&
555
+          typeof this.$refs.prescription_dialog !== 'undefined'
556
+      ) {
557
+        this.$refs.prescription_dialog.open()
558
+      } else if (
559
+        popupIndex == 3 &&
560
+          typeof this.$refs.assessment_dialog !== 'undefined'
561
+      ) {
562
+        this.$refs.assessment_dialog.open()
563
+      } else if (
564
+        popupIndex == 4 &&
565
+          typeof this.$refs.orders_dialog !== 'undefined'
566
+      ) {
567
+        // this.$refs.orders_dialog.open();
568
+      } else if (
569
+        popupIndex == 0 &&
570
+          typeof this.$refs.computer_dialog !== 'undefined'
571
+      ) {
572
+        this.$refs.computer_dialog.open()
573
+      } else if (
574
+        popupIndex == 6 &&
575
+          typeof this.$refs.monit_dialog !== 'undefined'
576
+      ) {
577
+        this.$refs.monit_dialog.open()
578
+      } else if (
579
+        popupIndex == 7 &&
580
+          typeof this.$refs.plane_dialog !== 'undefined'
581
+      ) {
582
+        this.$refs.plane_dialog.open()
583
+      } else if (
584
+        popupIndex == 8 &&
585
+          typeof this.$refs.thoroug_dialog !== 'undefined'
586
+      ) {
587
+        this.$refs.thoroug_dialog.open()
588
+      } else if (
589
+        popupIndex == 9 &&
590
+          typeof this.$refs.treatment_dialog !== 'undefined'
591
+      ) {
592
+        this.$refs.treatment_dialog.open()
593
+      }
594
+    },
595
+    popupDidHide: function (popupIndex) {
596
+      this.index = -1
597
+    },
598
+    closeDialog (index) {
599
+      this.index = -1
600
+      this.menuList[index].showPopup = false
601
+    },
602
+    refresh () {
603
+      var dateStr = parseTime(this.$route.query.date, '{y}-{m}-{d}')
604
+      var params = {
605
+        patient_id: this.$route.query.patient_id,
606
+        date: dateStr
607
+      }
608
+      getDialysisRecord(params).then(rs => {
609
+        var resp = rs.data
610
+        console.log(resp)
611
+        if (resp.state == 1) {
612
+          var patient = resp.data.patient // 患者信息
613
+          var schedual = resp.data.schedual // 患者排班信息
614
+          var prescription = resp.data.prescription // 透析处方
615
+          var solution = resp.data.solution // 透析方案
616
+          var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
617
+          var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
618
+          var doctor_advices = resp.data.doctor_advices // 临时医嘱
619
+          this.dryWeight = resp.data.dry_weight
620
 
620
 
621
             for (let i = 0; i < doctor_advices.length; i++) {
621
             for (let i = 0; i < doctor_advices.length; i++) {
622
               doctor_advices[i]['is_selected'] = 0
622
               doctor_advices[i]['is_selected'] = 0

+ 3 - 1
src/store/app/app.js View File

4
             zone_select_index: 0,
4
             zone_select_index: 0,
5
             schedule_type_select_index: 0,
5
             schedule_type_select_index: 0,
6
             schedule_date: new Date(),
6
             schedule_date: new Date(),
7
+            ismypatient:false,
7
         }
8
         }
8
     },
9
     },
9
     mutations: {
10
     mutations: {
11
             state.dialysis_area.zone_select_index = selects.zone
12
             state.dialysis_area.zone_select_index = selects.zone
12
             state.dialysis_area.schedule_type_select_index = selects.schedule_type
13
             state.dialysis_area.schedule_type_select_index = selects.schedule_type
13
             state.dialysis_area.schedule_date = selects.schedule_date
14
             state.dialysis_area.schedule_date = selects.schedule_date
15
+            state.dialysis_area.ismypatient = selects.ismypatient
14
         }
16
         }
15
     },
17
     },
16
     actions: {
18
     actions: {
17
         SaveDialysisAreaSelectIndexs({commit}, selects) { // selects: {zone: zone_index, schedule_type: schedule_type_index, schedule_date: Date}
19
         SaveDialysisAreaSelectIndexs({commit}, selects) { // selects: {zone: zone_index, schedule_type: schedule_type_index, schedule_date: Date}
18
-            commit('UPDATE_DIALYSIS_AREA_SELECT', {zone: selects.zone, schedule_type: selects.schedule_type, schedule_date: selects.schedule_date})
20
+            commit('UPDATE_DIALYSIS_AREA_SELECT', {zone: selects.zone, schedule_type: selects.schedule_type, schedule_date: selects.schedule_date,ismypatient:selects.ismypatient})
19
         }
21
         }
20
     }
22
     }
21
 }
23
 }