Explorar el Código

中能建问题修改

张保健 hace 5 años
padre
commit
5f8c855e94

+ 1 - 1
src/pages/main/dialog/ComputerDialog.vue Ver fichero

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 Ver fichero

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

+ 48 - 2
src/pages/main/dialog/PrescriptionDialog.vue Ver fichero

175
             <input type="tel" @focus="inputFocus" id="dtl" v-model="dialysisPrescription.conductivity"/>
175
             <input type="tel" @focus="inputFocus" id="dtl" v-model="dialysisPrescription.conductivity"/>
176
           </div>
176
           </div>
177
         </div>
177
         </div>
178
-        <div class="item" v-if="isShow('透析器/灌流器')">
178
+        <div @click="showSubMenu('dialyzer_perfusion_apparatus')" class="item" ref="dialyzer_perfusion_apparatus" v-if="isShow('透析器/灌流器') && template_id == 6">
179
+          <label class="name" for="dt1">透析器/灌流器</label>
180
+          <div class="content">
181
+            <span class="text" id="dt">{{dialysisPrescription.dialyzer_perfusion_apparatus}}</span>
182
+            <span class="iconfont">&#xe6f9;</span>
183
+          </div>
184
+        </div>
185
+
186
+        <div class="item" v-if="isShow('透析器/灌流器') && template_id != 6">
179
           <label class="name" for="dtl">透析器/灌流器</label>
187
           <label class="name" for="dtl">透析器/灌流器</label>
180
           <div class="content">
188
           <div class="content">
181
 
189
 
407
     data () {
415
     data () {
408
       return {
416
       return {
409
         is_pre: 0,
417
         is_pre: 0,
418
+        template_id: 0,
410
         loading: false,
419
         loading: false,
411
         signUrl: '',
420
         signUrl: '',
412
         isShowDesc: true,
421
         isShowDesc: true,
722
             this.propForm.selectId = this.dialysisPrescription.blood_access
731
             this.propForm.selectId = this.dialysisPrescription.blood_access
723
             this.propForm.click_ref = 'blood_access'
732
             this.propForm.click_ref = 'blood_access'
724
             break
733
             break
734
+          case 'dialyzer_perfusion_apparatus':
735
+            // this.propForm.type = 11
736
+            // this.isShowDialog = false
737
+            // this.propForm.title = '透析器/灌流器'
738
+            // this.visibility = true
739
+            // this.propForm.list = []
740
+            // this.propForm.optionList = this.bloodAccessOptions
741
+            // this.propForm.isMultiple = 1
742
+            // this.propForm.selectId = this.dialysisPrescription.dialyzer_perfusion_apparatus
743
+            // this.propForm.click_ref = 'dialyzer_perfusion_apparatus'
744
+            // break
745
+
746
+            this.propForm.result = []
747
+            this.isHasOther = 2
748
+            this.propForm.type = 11
749
+            this.isShowDialog = false
750
+            this.propForm.title = '透析器/灌流器'
751
+            this.visibility = true
752
+            this.propForm.list = []
753
+            this.propForm.list = getDataConfig('hemodialysis', 'dialyzer_perfusion_apparatus')
754
+            this.propForm.optionList = []
755
+            this.propForm.isMultiple = 2
756
+            // this.propForm.result = typeof(this.formValue.hemorrhage) == "string"? this.formValue.hemorrhage.split(","):[]
757
+            if (this.dialysisPrescription.dialyzer_perfusion_apparatus != undefined || this.dialysisPrescription.dialyzer_perfusion_apparatus != null) {
758
+              if (this.dialysisPrescription.dialyzer_perfusion_apparatus.length > 0) {
759
+                this.propForm.result = this.dialysisPrescription.dialyzer_perfusion_apparatus.split(',')
760
+              } else {
761
+                this.propForm.result = []
762
+              }
763
+            } else {
764
+              this.propForm.result = []
765
+            }
766
+            this.propForm.click_ref = 'dialyzer_perfusion_apparatus'
767
+            break
725
 
768
 
726
         }
769
         }
727
       },
770
       },
946
           case 10:
989
           case 10:
947
             this.dialysisPrescription.blood_access = val.selectId
990
             this.dialysisPrescription.blood_access = val.selectId
948
             break
991
             break
992
+          case 11:
993
+            this.dialysisPrescription.dialyzer_perfusion_apparatus = val.result.join(',')
994
+            break
949
         }
995
         }
950
       },
996
       },
951
       GetModeByModeId: function (val) {
997
       GetModeByModeId: function (val) {
960
         for (let keys in treatment_mode) {
1006
         for (let keys in treatment_mode) {
961
           if (treatment_mode[keys].id == val) {
1007
           if (treatment_mode[keys].id == val) {
962
             treatment_mode_name = treatment_mode[keys].name
1008
             treatment_mode_name = treatment_mode[keys].name
963
-            console.log('这是什么', treatment_mode[keys].name)
964
             if (treatment_mode_name == 'HD') {
1009
             if (treatment_mode_name == 'HD') {
965
               this.zhiShow = false
1010
               this.zhiShow = false
966
               this.totalShow = false
1011
               this.totalShow = false
1777
       }
1822
       }
1778
     },
1823
     },
1779
     created () {
1824
     created () {
1825
+      this.template_id = this.$store.getters.user.template_info.template_id
1780
       if (this.$store.getters.user.user.user_type == 2) {
1826
       if (this.$store.getters.user.user.user_type == 2) {
1781
         this.isShowSign = true
1827
         this.isShowSign = true
1782
 
1828
 

+ 2 - 2
src/pages/main/today/TodayTab.vue Ver fichero

431
     //   this.show_fixed_nav = scrollTop > 160;
431
     //   this.show_fixed_nav = scrollTop > 160;
432
     // },
432
     // },
433
 
433
 
434
-    didAddMonitor (monitor) {
434
+    didAddMonitor (monitor) {debugger
435
       this.monitor_records.push(monitor)
435
       this.monitor_records.push(monitor)
436
 
436
 
437
       this.monitor_records.sort((a, b) => b.operate_time - a.operate_time)
437
       this.monitor_records.sort((a, b) => b.operate_time - a.operate_time)
445
       // }
445
       // }
446
       this.monitor_records.reverse()
446
       this.monitor_records.reverse()
447
       this.last_monitor_record = monitor
447
       this.last_monitor_record = monitor
448
-      this.$refs.plane_dialog.set_last_monitor_record(monitor)
448
+      // this.$refs.plane_dialog.set_last_monitor_record(monitor)
449
     },
449
     },
450
 
450
 
451
     didEditMonitor (monitor) {
451
     didEditMonitor (monitor) {