XMLWAN 4 years ago
parent
commit
a34390c3de

+ 19 - 1
src/api/patient.js View File

446
   })
446
   })
447
 }
447
 }
448
 
448
 
449
-export function getPassWayAssessmentById(id){
449
+export function getPassWayAssessmentById(id,params){
450
   
450
   
451
   return request({
451
   return request({
452
     url:"/api/patient/getpasswayassmentbyid?id="+id,
452
     url:"/api/patient/getpasswayassmentbyid?id="+id,
453
     method:"Get",
453
     method:"Get",
454
     params:params,
454
     params:params,
455
   })
455
   })
456
+}
457
+
458
+export function updatePasswayAssessment(params){
459
+  
460
+  return request({
461
+    url:"/api/patient/updatepasswayassesment",
462
+    method:"get",
463
+    params:params
464
+  })
465
+}
466
+
467
+export function DeletePassWayAssessMent(id,params){
468
+  
469
+  return request({
470
+    url:"/api/patient/deletepasswayassessment?id="+id,
471
+    method:"get",
472
+    params:params
473
+  })
456
 }
474
 }

+ 1 - 1
src/router/modules/patient.js View File

75
     }
75
     }
76
   },
76
   },
77
   {
77
   {
78
-    path: '/patients/patient/:id/vascularAccessDetail/:pid',
78
+    path: '/patients/patient/:mid/vascularAccessDetail/:pid',
79
     component: () => import('@/xt_pages/user/vascularAccessDetail'),
79
     component: () => import('@/xt_pages/user/vascularAccessDetail'),
80
     hidden: true,
80
     hidden: true,
81
     is_menu: false,
81
     is_menu: false,

+ 11 - 2
src/xt_pages/dialysis/details/NavIgation.vue View File

88
       :last_prescription="last_dialysis_prescribe"
88
       :last_prescription="last_dialysis_prescribe"
89
       :dry_weight="last_dryWeight_dislysis"
89
       :dry_weight="last_dryWeight_dislysis"
90
       :schedual="temp_schedual"
90
       :schedual="temp_schedual"
91
+      :lastAssessment="lastAssessment"
91
     ></dialysis-prescription-dialog>
92
     ></dialysis-prescription-dialog>
92
 
93
 
93
     <double-check-dialog
94
     <double-check-dialog
113
       :predialysis_evaluation="predialysis_evaluation"
114
       :predialysis_evaluation="predialysis_evaluation"
114
       :admin_users="admin_users"
115
       :admin_users="admin_users"
115
       :dry_weight="last_dryWeight_dislysis"
116
       :dry_weight="last_dryWeight_dislysis"
117
+      :lastAssessment="lastAssessment"
116
     ></assessment-before-dislysis-dialog>
118
     ></assessment-before-dislysis-dialog>
117
 
119
 
118
     <treatment-summary-dialog
120
     <treatment-summary-dialog
506
       default: () => {
508
       default: () => {
507
         return [];
509
         return [];
508
       }
510
       }
511
+    },
512
+    lastAssessment:{
513
+     // 最后一条血管通路(处理今天录的)
514
+     type: Object,
515
+      default: () => {
516
+        return { id: 0 };
517
+      }
509
     }
518
     }
510
   },
519
   },
511
   methods: {
520
   methods: {
542
       lastDialysisPrescribe,
551
       lastDialysisPrescribe,
543
       lastDryWeightDislysis,
552
       lastDryWeightDislysis,
544
       schedual,
553
       schedual,
545
-      system_prescribe
554
+      system_prescribe,
546
     ) {
555
     ) {
547
 
556
 
548
       this.$refs.assessmentBefore.setLastRecord(
557
       this.$refs.assessmentBefore.setLastRecord(
598
     showAssessmentBefore: function() {
607
     showAssessmentBefore: function() {
599
       console.log(this.last_predialysis_evaluation)
608
       console.log(this.last_predialysis_evaluation)
600
 
609
 
601
-      this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation);
610
+      this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment);
602
     },
611
     },
603
     showDoubleCheck: function() {
612
     showDoubleCheck: function() {
604
       this.$refs.doubleCheck.show();
613
       this.$refs.doubleCheck.show();

+ 36 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

743
         default: () => {
743
         default: () => {
744
           return []
744
           return []
745
         }
745
         }
746
+      },
747
+      lastAssessment:{
748
+        type:Array,
749
+         default: () => {
750
+          return []
751
+        }
746
       }
752
       }
747
 
753
 
748
     },
754
     },
752
         this.lastDryWeightDislysis = lastDryWeightDislysis
758
         this.lastDryWeightDislysis = lastDryWeightDislysis
753
       },
759
       },
754
       isShow(name) {
760
       isShow(name) {
761
+        
755
         var filedList = store.getters.xt_user.fileds
762
         var filedList = store.getters.xt_user.fileds
756
         for (let i = 0; i < filedList.length; i++) {
763
         for (let i = 0; i < filedList.length; i++) {
757
           if (filedList[i].module == 3 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
764
           if (filedList[i].module == 3 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
760
         }
767
         }
761
         return false
768
         return false
762
       },
769
       },
770
+
763
       show(assessment, lastDryWeightDislysis,last_predialysis_evaluation) {
771
       show(assessment, lastDryWeightDislysis,last_predialysis_evaluation) {
764
         this.lastPredialysisEvaluation = last_predialysis_evaluation
772
         this.lastPredialysisEvaluation = last_predialysis_evaluation
765
        
773
        
812
 
820
 
813
           if (lastDryWeightDislysis != null) {
821
           if (lastDryWeightDislysis != null) {
814
             this.weight_adjust.weight = lastDryWeightDislysis.dry_weight
822
             this.weight_adjust.weight = lastDryWeightDislysis.dry_weight
823
+           
815
             this.$set(
824
             this.$set(
816
               this.assessmentBeforeDislysis,
825
               this.assessmentBeforeDislysis,
817
               'dry_weight',
826
               'dry_weight',
825
             }
834
             }
826
           }
835
           }
827
 
836
 
837
+
838
+
839
+
828
           if (this.lastPredialysisEvaluation != null) {
840
           if (this.lastPredialysisEvaluation != null) {
829
             for (var key in this.lastPredialysisEvaluation){
841
             for (var key in this.lastPredialysisEvaluation){
830
               if (key != 'systolic_blood_pressure' && key != 'diastolic_blood_pressure' && key != 'pulse_frequency' && key != 'dry_weight' && key != 'weight_before'){
842
               if (key != 'systolic_blood_pressure' && key != 'diastolic_blood_pressure' && key != 'pulse_frequency' && key != 'dry_weight' && key != 'weight_before'){
837
               }
849
               }
838
             }
850
             }
839
           }
851
           }
852
+          
853
+         //最后一次血管通路
854
+
855
+         if(this.lastAssessment!=null){
856
+           var blood_id = 0
857
+           for(let i= 0;i<this.blood_access_part_opera.length;i++){
858
+              if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_part_opera[i].name){
859
+                 blood_id = this.blood_access_part_opera[i].id
860
+              }
861
+           }
862
+            this.assessmentBeforeDislysis.blood_access_part_opera_id = blood_id
863
+            this.assessmentBeforeDislysis.blood_access_part_id = this.lastAssessment.blood_access_part_id
864
+          } else {
865
+            if (this.lastPredialysisEvaluation != null) {
866
+               var blood_id = 0
867
+                for(let i= 0;i<this.blood_access_part_opera.length;i++){
868
+                    if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_part_opera[i].name){
869
+                      blood_id = this.blood_access_part_opera[i].id
870
+                    }
871
+                }
872
+              this.assessmentBeforeDislysis.blood_access_part_opera_id = blood_id
873
+              this.assessmentBeforeDislysis.blood_access_part_id = this.lastPredialysisEvaluation.blood_access_part_id
874
+            }
875
+          }
840
 
876
 
841
         } else {
877
         } else {
842
          
878
          

+ 37 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

1161
           return { id: 0 }
1161
           return { id: 0 }
1162
         }
1162
         }
1163
       },
1163
       },
1164
-      scheudle_mode:Number
1164
+      scheudle_mode:Number,
1165
+      lastAssessment: {
1166
+        type: Object,
1167
+        default: () => {
1168
+          return { id: 0 }
1169
+        }
1170
+      },
1165
     },
1171
     },
1166
     computed: {
1172
     computed: {
1167
       dialysis_date: function() {
1173
       dialysis_date: function() {
1832
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1838
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1833
       },
1839
       },
1834
       show(pre,schedual,last,his_is_open) {
1840
       show(pre,schedual,last,his_is_open) {
1841
+     
1835
         if(his_is_open == 1){
1842
         if(his_is_open == 1){
1836
           this.is_open = 0
1843
           this.is_open = 0
1837
         }
1844
         }
1904
         } else {
1911
         } else {
1905
           last_weight_after = this.last_record.weight_after
1912
           last_weight_after = this.last_record.weight_after
1906
         }
1913
         }
1914
+        
1915
+ 
1907
 
1916
 
1908
         if (this.predialysis == null || this.predialysis.id == 0) {
1917
         if (this.predialysis == null || this.predialysis.id == 0) {
1909
           if(last != null) {
1918
           if(last != null) {
1922
             this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
1931
             this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
1923
             this.dialysisPrescription.package = last.package
1932
             this.dialysisPrescription.package = last.package
1924
             this.dialysisPrescription.a_liquid = last.a_liquid
1933
             this.dialysisPrescription.a_liquid = last.a_liquid
1934
+
1925
             weight_before = 0
1935
             weight_before = 0
1936
+
1937
+           
1926
           }
1938
           }
1927
 
1939
 
1928
         } else {
1940
         } else {
1930
         }
1942
         }
1931
 
1943
 
1932
 
1944
 
1945
+          //获取最后一次血管通路
1946
+         if(this.predialysis!=null){
1947
+            if(this.lastAssessment!=null){
1948
+              var blood_id = 0
1949
+              for(let i= 0;i<this.blood_access_option.length;i++){
1950
+                  if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_option[i].name){
1951
+                    blood_id = this.blood_access_option[i].id
1952
+                  }
1953
+              }
1954
+               console.log("中国人名职员",this.lastAssessment)
1955
+               this.dialysisPrescription.blood_access = blood_id
1956
+            }else{
1957
+              if(this.last_prescription!=null){
1958
+                  var blood_id = 0
1959
+                  for(let i= 0;i<this.blood_access_option.length;i++){
1960
+                      if(this.last_prescription.blood_access_part_opera_id == this.blood_access_option[i].name){
1961
+                        blood_id = this.blood_access_option[i].id
1962
+                      }
1963
+                  }   
1964
+                   this.dialysisPrescription.blood_access = blood_id
1965
+              }
1966
+            }
1967
+           
1968
+         }
1933
 
1969
 
1934
         if (weight_before > 0 && last_weight_after > 0) {
1970
         if (weight_before > 0 && last_weight_after > 0) {
1935
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
1971
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(

+ 19 - 16
src/xt_pages/dialysis/details/index.vue View File

217
         <span v-if="newTime != ''">&nbsp;&nbsp;|&nbsp;&nbsp;</span>
217
         <span v-if="newTime != ''">&nbsp;&nbsp;|&nbsp;&nbsp;</span>
218
         <span v-if="newTime != ''">签到时间:{{ newTime }}</span>
218
         <span v-if="newTime != ''">签到时间:{{ newTime }}</span>
219
       </div>
219
       </div>
220
+
220
       <nav-igation
221
       <nav-igation
221
         ref="nav"
222
         ref="nav"
222
         title="弹窗导航"
223
         title="弹窗导航"
265
         @assessmentAfterDislysis="assessmentAfterDislysisFunc"
266
         @assessmentAfterDislysis="assessmentAfterDislysisFunc"
266
         :system_prescribe="system_prescribe"
267
         :system_prescribe="system_prescribe"
267
         :his_is_open="his_is_open"
268
         :his_is_open="his_is_open"
269
+        :lastAssessment="lastAssessment"
268
       >
270
       >
269
       </nav-igation>
271
       </nav-igation>
270
 
272
 
273
+
274
+
271
       <basic-infor
275
       <basic-infor
272
         :patient="patient"
276
         :patient="patient"
273
         :device_number="schedual.id == 0 ? '' : schedual.device_number.number"
277
         :device_number="schedual.id == 0 ? '' : schedual.device_number.number"
630
       lastMonitorRecord: { id: 0 },
634
       lastMonitorRecord: { id: 0 },
631
       lastAssessmentAfterDislysis: { id: 0 },
635
       lastAssessmentAfterDislysis: { id: 0 },
632
       lastDryWeightDislysis: { id: 0 },
636
       lastDryWeightDislysis: { id: 0 },
637
+      lastAssessment:{id:0},
633
       headNurses: [],
638
       headNurses: [],
634
       lastDialysisPrescribe: { id: 0 },
639
       lastDialysisPrescribe: { id: 0 },
635
       //
640
       //
971
         if (resp.state == 1) {
976
         if (resp.state == 1) {
972
           var patient = resp.data.patient // 患者信息
977
           var patient = resp.data.patient // 患者信息
973
           var schedual = resp.data.schedual // 患者排班信息
978
           var schedual = resp.data.schedual // 患者排班信息
974
-          // console.log("患者排班信息99999999",schedual)
979
+        
975
           var prescription = resp.data.prescription // 透析处方
980
           var prescription = resp.data.prescription // 透析处方
976
           if (prescription != null) {
981
           if (prescription != null) {
977
             if (prescription.body_fluid == -2) {
982
             if (prescription.body_fluid == -2) {
978
               prescription.body_fluid = 0
983
               prescription.body_fluid = 0
979
             }
984
             }
980
           }
985
           }
981
-          // console.log('透析处方', prescription)
986
+        
982
           var solution = resp.data.solution // 透析方案
987
           var solution = resp.data.solution // 透析方案
983
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
988
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
984
-          // console.log('receiver_treatment_access', receiver_treatment_access)
989
+         
985
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
990
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
986
          
991
          
987
-        
988
-
989
           if (predialysis_evaluation != null) {
992
           if (predialysis_evaluation != null) {
990
             if (predialysis_evaluation.blood_access_part_id == -2) {
993
             if (predialysis_evaluation.blood_access_part_id == -2) {
991
               predialysis_evaluation.blood_access_part_id = 0
994
               predialysis_evaluation.blood_access_part_id = 0
1015
           var aliquid_info = resp.data.aliquid_info
1018
           var aliquid_info = resp.data.aliquid_info
1016
 
1019
 
1017
           var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation
1020
           var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation
1018
-          // console.log('上次透前评估', lastPredialysisEvaluation)
1021
+        
1019
           if (lastPredialysisEvaluation != null) {
1022
           if (lastPredialysisEvaluation != null) {
1020
             if (lastPredialysisEvaluation.blood_access_part_id == -2) {
1023
             if (lastPredialysisEvaluation.blood_access_part_id == -2) {
1021
               lastPredialysisEvaluation.blood_access_part_id = 0
1024
               lastPredialysisEvaluation.blood_access_part_id = 0
1022
             }
1025
             }
1023
           }
1026
           }
1024
           var lastMonitorRecord = resp.data.lastMonitorRecord
1027
           var lastMonitorRecord = resp.data.lastMonitorRecord
1025
-          var lastAssessmentAfterDislysis =
1026
-            resp.data.lastAssessmentAfterDislysis
1028
+          var lastAssessmentAfterDislysis = resp.data.lastAssessmentAfterDislysis
1027
           var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
1029
           var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
1028
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
1030
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
1029
-          // console.log("最后一次干体重",lastDryWeightDislysis)
1031
+         
1030
           var system_prescribe = resp.data.system_prescribe
1032
           var system_prescribe = resp.data.system_prescribe
1031
-
1033
+           
1034
+          var lastAssessment =  resp.data.lastAssessment
1035
+          console.log("最后一次血管通路",lastAssessment)
1032
           this.$refs.nav.setLastRecord(
1036
           this.$refs.nav.setLastRecord(
1033
             lastPredialysisEvaluation,
1037
             lastPredialysisEvaluation,
1034
             lastMonitorRecord,
1038
             lastMonitorRecord,
1036
             lastDialysisPrescribe,
1040
             lastDialysisPrescribe,
1037
             lastDryWeightDislysis,
1041
             lastDryWeightDislysis,
1038
             schedual,
1042
             schedual,
1039
-            system_prescribe
1043
+            system_prescribe,
1044
+            lastAssessment,
1040
           )
1045
           )
1041
 
1046
 
1042
           var headNurses = resp.data.headNurse
1047
           var headNurses = resp.data.headNurse
1047
           this.lastAssessmentAfterDislysis = lastAssessmentAfterDislysis
1052
           this.lastAssessmentAfterDislysis = lastAssessmentAfterDislysis
1048
           this.lastDialysisPrescribe = lastDialysisPrescribe
1053
           this.lastDialysisPrescribe = lastDialysisPrescribe
1049
           this.lastDryWeightDislysis = lastDryWeightDislysis
1054
           this.lastDryWeightDislysis = lastDryWeightDislysis
1055
+          this.lastAssessment = lastAssessment
1050
           this.headNurses = headNurses
1056
           this.headNurses = headNurses
1051
           this.system_prescribe = system_prescribe
1057
           this.system_prescribe = system_prescribe
1052
 
1058
 
1109
           this.dialysis_order =
1115
           this.dialysis_order =
1110
             dialysis_order == null ? { id: 0 } : dialysis_order
1116
             dialysis_order == null ? { id: 0 } : dialysis_order
1111
 
1117
 
1112
-          // this.$refs.stat_order.setAdvices(this.doctor_advices)
1113
-          // this.$refs.monitoring.setRecords(this.monitor_records)
1118
+         
1114
 
1119
 
1115
           this.admin_users = resp.data.doctors
1120
           this.admin_users = resp.data.doctors
1116
           this.devices = resp.data.devices
1121
           this.devices = resp.data.devices
1121
           this.his_is_open = resp.data.is_open_config.is_open
1126
           this.his_is_open = resp.data.is_open_config.is_open
1122
           console.log(this.his_is_open)
1127
           console.log(this.his_is_open)
1123
           
1128
           
1124
-          // var stockType =  resp.data.stockType
1125
-          // this.stockType = stockType
1126
-          // console.log("stockTYPW",stockType)
1129
+      
1127
           
1130
           
1128
           for (let i = 0; i <  this.doctor_advices.length; i++){
1131
           for (let i = 0; i <  this.doctor_advices.length; i++){
1129
             this.doctor_advices[i]['origin'] = 1
1132
             this.doctor_advices[i]['origin'] = 1

+ 10 - 5
src/xt_pages/user/components/PatientSidebar.vue View File

94
               name: '1-6',
94
               name: '1-6',
95
               label: '干体重'
95
               label: '干体重'
96
             },
96
             },
97
-            // {
98
-            //   name:'1-7',
99
-            //   label:'血管通路'
100
-            // },
97
+            {
98
+              name:'1-7',
99
+              label:'血管通路'
100
+            },
101
             {
101
             {
102
               name: '1-2',
102
               name: '1-2',
103
               label: '病程管理'
103
               label: '病程管理'
222
       return sex
222
       return sex
223
     },
223
     },
224
     querySearchAsync(keyword, cb) {
224
     querySearchAsync(keyword, cb) {
225
+      
225
       let key = ''
226
       let key = ''
226
       if (keyword != undefined) {
227
       if (keyword != undefined) {
227
         key = keyword
228
         key = keyword
264
   },
265
   },
265
   created() {
266
   created() {
266
     var patientKey =  window.sessionStorage.getItem('patientKey')
267
     var patientKey =  window.sessionStorage.getItem('patientKey')
268
+  
267
     console.log("patient",patientKey)
269
     console.log("patient",patientKey)
268
     var query = this.$route.path
270
     var query = this.$route.path
271
+    console.log("query",this.$route.path)
269
     if(patientKey){
272
     if(patientKey){
270
      this.treeKey = patientKey
273
      this.treeKey = patientKey
271
      if(query.indexOf('edit') == -1){ 
274
      if(query.indexOf('edit') == -1){ 
283
         this.$router.push({
286
         this.$router.push({
284
           path: '/patients/patient/' + this.id + '/dryWeight'
287
           path: '/patients/patient/' + this.id + '/dryWeight'
285
         })
288
         })
286
-      } else if (patientKey == '1-5') {
289
+      }
290
+       else if (patientKey == '1-5') {
287
         this.$router.push({ path: '/patients/rescue?id=' + this.id })
291
         this.$router.push({ path: '/patients/rescue?id=' + this.id })
288
       }else if (patientKey == '2-1') {
292
       }else if (patientKey == '2-1') {
289
         this.$router.push({
293
         this.$router.push({
302
           path: '/patients/patient/' + this.id + '/proeducation'
306
           path: '/patients/patient/' + this.id + '/proeducation'
303
         })
307
         })
304
       }
308
       }
309
+    
305
      }else{
310
      }else{
306
        this.treeKey = "1-1"
311
        this.treeKey = "1-1"
307
        
312
        

+ 1 - 0
src/xt_pages/user/dialysisRecord.vue View File

413
       this.getPatientDialysisRecords();
413
       this.getPatientDialysisRecords();
414
     },
414
     },
415
     getPatientDialysisRecords() {
415
     getPatientDialysisRecords() {
416
+      console.log("prams",this.queryParams)
416
       getPatientDialysisRecords(this.queryParams).then(response => {
417
       getPatientDialysisRecords(this.queryParams).then(response => {
417
         if (response.data.state == 1) {
418
         if (response.data.state == 1) {
418
           this.total = response.data.data.total;
419
           this.total = response.data.data.total;

+ 81 - 42
src/xt_pages/user/vascularAccess.vue View File

4
     <div class="patient-app-container advice-container app-container">
4
     <div class="patient-app-container advice-container app-container">
5
       <div class="cell clearfix">
5
       <div class="cell clearfix">
6
          <span>血管通路列表</span>
6
          <span>血管通路列表</span>
7
-         <el-button size="medium" type="primary" @click="dialogVisible =true" style="margin-left:800px" >新增</el-button>
7
+         <el-button size="medium" type="primary" @click="dialogVisible =true" style="margin-left:850px" >新增</el-button>
8
       </div>
8
       </div>
9
-      <el-table  :data="tableData" border style="width:100%" @row-click="rowClick">
9
+      <el-table  :data="tableData" border style="width:100%">
10
       <el-table-column  prop="start_time"   label="建立日期"  width="150"    align="center">
10
       <el-table-column  prop="start_time"   label="建立日期"  width="150"    align="center">
11
           <template  slot-scope="scope">
11
           <template  slot-scope="scope">
12
             <span>{{ getTime(scope.row.start_time, "{y}-{m}-{d}")}}</span>
12
             <span>{{ getTime(scope.row.start_time, "{y}-{m}-{d}")}}</span>
14
      </el-table-column>
14
      </el-table-column>
15
       <el-table-column   prop="blood_access_part_opera_id" label="血管通路"   align="center" width="200">
15
       <el-table-column   prop="blood_access_part_opera_id" label="血管通路"   align="center" width="200">
16
         <template slot-scope="scope">
16
         <template slot-scope="scope">
17
-           <span>{{scope.row.blood_access_part_opera_id}}</span>  
17
+         
18
+           <router-link
19
+              :to="'/patients/patient/' + scope.row.patient_id+'/vascularAccessDetail/'+scope.row.id"
20
+              style="color:#409eff;width:100%;display:block;"
21
+            >{{ scope.row.blood_access_part_opera_id }}
22
+            </router-link
23
+            >
24
+        </template>
25
+     </el-table-column>
26
+     <el-table-column   prop="blood_access_part_id" label="血管通路部位"   align="center" width="200">
27
+        <template slot-scope="scope">
28
+           <span>{{scope.row.blood_access_part_id}}</span>  
18
         </template>
29
         </template>
19
      </el-table-column>
30
      </el-table-column>
20
       <el-table-column     prop="inflow_pass"    label="流入-流出道"    align="center">
31
       <el-table-column     prop="inflow_pass"    label="流入-流出道"    align="center">
118
                     value-format="yyyy-MM-dd"
129
                     value-format="yyyy-MM-dd"
119
                     placeholder="选择时间"
130
                     placeholder="选择时间"
120
                     v-model="form.start_time"
131
                     v-model="form.start_time"
121
-                    style="width:130px">
132
+                    style="width:150px">
122
                  </el-date-picker>
133
                  </el-date-picker>
123
                </el-form-item>
134
                </el-form-item>
124
             </el-col>
135
             </el-col>
137
             </el-col>
148
             </el-col>
138
              <el-col :span="8">
149
              <el-col :span="8">
139
                <el-form-item label="血管通路部位:" :required="true" prop="blood_access_part_id">
150
                <el-form-item label="血管通路部位:" :required="true" prop="blood_access_part_id">
140
-                 <el-select v-model="form.blood_access_part_id" placeholder="请选择" style="width:150px">
141
-                    <el-option
142
-                        v-for="item in blood_access_part"
143
-                        :key="item.id"
144
-                        :label="item.name"
145
-                        :value="item.id">
146
-                    </el-option>
147
-                  </el-select>
151
+                  <el-input v-model="form.blood_access_part_id" readonly @focus="showInnerDialog('17')" style="width:150px"></el-input>
148
                </el-form-item>
152
                </el-form-item>
149
             </el-col>
153
             </el-col>
150
          </el-row>
154
          </el-row>
169
                     value-format="yyyy-MM-dd"
173
                     value-format="yyyy-MM-dd"
170
                     placeholder="选择时间"
174
                     placeholder="选择时间"
171
                     v-model="form.first_start_time"
175
                     v-model="form.first_start_time"
172
-                    style="width:130px">
176
+                    style="width:150px">
173
                  </el-date-picker>
177
                  </el-date-picker>
174
                </el-form-item>
178
                </el-form-item>
175
             </el-col>
179
             </el-col>
266
             </el-col>
270
             </el-col>
267
              <el-col :span="8">
271
              <el-col :span="8">
268
                <el-form-item label="血管通路部位:" :required="true" prop="blood_access_part_id">
272
                <el-form-item label="血管通路部位:" :required="true" prop="blood_access_part_id">
269
-                 <el-select v-model="form.blood_access_part_id" placeholder="请选择" style="width:150px">
273
+                 <!-- <el-select v-model="form.blood_access_part_id" placeholder="请选择" style="width:150px">
270
                     <el-option
274
                     <el-option
271
                         v-for="item in blood_access_part"
275
                         v-for="item in blood_access_part"
272
                         :key="item.id"
276
                         :key="item.id"
273
                         :label="item.name"
277
                         :label="item.name"
274
                         :value="item.id">
278
                         :value="item.id">
275
                     </el-option>
279
                     </el-option>
276
-                  </el-select>
280
+                  </el-select> -->
281
+
282
+                   <el-input v-model="form.blood_access_part_id" readonly @focus="showInnerDialog('17')" style="width:150px"></el-input>
277
                </el-form-item>
283
                </el-form-item>
278
             </el-col>
284
             </el-col>
279
          </el-row>
285
          </el-row>
352
      </el-dialog>
358
      </el-dialog>
353
 
359
 
354
     </div>
360
     </div>
361
+
362
+     <multi-select-box
363
+        :propsForm="InnerDialogProps"
364
+        v-on:dialog-comfirm="innerDialogComfirm"
365
+        v-on:dialog-cancle="innerDialogCancle"
366
+      ></multi-select-box>
355
   </div>
367
   </div>
356
 </template>
368
 </template>
357
 <script>
369
 <script>
362
 
374
 
363
   import { jsGetAge, uParseTime } from '@/utils/tools'
375
   import { jsGetAge, uParseTime } from '@/utils/tools'
364
   import { getDataConfig } from '@/utils/data'
376
   import { getDataConfig } from '@/utils/data'
377
+  import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
378
+    
365
   export default {
379
   export default {
366
     name: 'doctorAdvice',
380
     name: 'doctorAdvice',
367
     components: {
381
     components: {
368
       PatientSidebar,
382
       PatientSidebar,
383
+      multiSelectBox
369
     },
384
     },
370
     data() {
385
     data() {
371
       return {
386
       return {
394
          start_time:moment(new Date()).format('YYYY-MM-DD'),
409
          start_time:moment(new Date()).format('YYYY-MM-DD'),
395
          first_start_time:moment(new Date()).format('YYYY-MM-DD'),
410
          first_start_time:moment(new Date()).format('YYYY-MM-DD'),
396
          stop_reason:"",
411
          stop_reason:"",
397
-         user_status:"",
412
+         user_status:1,
398
          remark:"",
413
          remark:"",
399
          stop_time:"",
414
          stop_time:"",
400
         },
415
         },
409
         blood_access_part_opera:[],
424
         blood_access_part_opera:[],
410
         blood_access_part:[],
425
         blood_access_part:[],
411
         show:false,
426
         show:false,
412
-        doctorList:[]
427
+        doctorList:[],
428
+        InnerDialogProps: {
429
+          values: [],
430
+          visibility: false,
431
+          isShowTextArea: true,
432
+          customContent: '',
433
+          titles: '',
434
+          type: '' // 不同弹框类型,用来匹配数据
435
+        },
413
       }
436
       }
414
     },
437
     },
415
     methods: {
438
     methods: {
451
                      blood_name = this.blood_access_part_opera[i].name
474
                      blood_name = this.blood_access_part_opera[i].name
452
                  }
475
                  }
453
               }
476
               }
454
-              var blood_part = ""
455
-              for(let i=0;i<this.blood_access_part.length;i++){
456
-                 if(this.form.blood_access_part_id == this.blood_access_part[i].id){
457
-                    blood_part = this.blood_access_part[i].name
458
-                 }
459
-              }
460
               var inflow_pass = ""
477
               var inflow_pass = ""
461
               for(let i=0;i<this.optionsPass.length;i++){
478
               for(let i=0;i<this.optionsPass.length;i++){
462
                  if(this.optionsPass[i].id == this.form.inflow_pass){
479
                  if(this.optionsPass[i].id == this.form.inflow_pass){
463
                      inflow_pass = this.optionsPass[i].name
480
                      inflow_pass = this.optionsPass[i].name
464
                  }
481
                  }
465
               }
482
               }
483
+              console.log("params",this.form.blood_access_part_id)
484
+              
466
               var params = {
485
               var params = {
467
                 patient_id:this.patientID,
486
                 patient_id:this.patientID,
468
                 access_project:parseInt(this.form.access_project),
487
                 access_project:parseInt(this.form.access_project),
469
                 start_time:this.form.start_time,
488
                 start_time:this.form.start_time,
470
                 blood_access_part_opera_id:blood_name,
489
                 blood_access_part_opera_id:blood_name,
471
-                blood_access_part_id:blood_part,
490
+                blood_access_part_id:this.form.blood_access_part_id,
472
                 inflow_pass:inflow_pass,
491
                 inflow_pass:inflow_pass,
473
                 first_start_time:this.form.first_start_time,
492
                 first_start_time:this.form.first_start_time,
474
                 user_status:this.form.user_status,
493
                 user_status:this.form.user_status,
531
              
550
              
532
             
551
             
533
 
552
 
534
-             var blood_name = 0
535
-              for(let i=0;i<this.blood_access_part_opera.length;i++){
536
-                 if(this.blood_access_part_opera[i].name == accessDetail.blood_access_part_opera_id){
537
-                     blood_name = this.blood_access_part_opera[i].id
538
-                 }
539
-              }
540
-             this.form.blood_access_part_id = blood_name
553
+             this.form.blood_access_part_id = accessDetail.blood_access_part_id
541
              
554
              
542
               var blood_part = 0
555
               var blood_part = 0
543
-              for(let i=0;i<this.blood_access_part.length;i++){
544
-                 if(accessDetail.blood_access_part_id == this.blood_access_part[i].name){
545
-                    blood_part = this.blood_access_part[i].id
556
+              for(let i=0;i<this.blood_access_part_opera.length;i++){
557
+                 if(accessDetail.blood_access_part_opera_id == this.blood_access_part_opera[i].name){
558
+                    blood_part = this.blood_access_part_opera[i].id
546
                  }
559
                  }
547
               }
560
               }
548
              this.form.blood_access_part_opera_id = blood_part
561
              this.form.blood_access_part_opera_id = blood_part
608
                      blood_name = this.blood_access_part_opera[i].name
621
                      blood_name = this.blood_access_part_opera[i].name
609
                  }
622
                  }
610
               }
623
               }
611
-              var blood_part = ""
612
-              for(let i=0;i<this.blood_access_part.length;i++){
613
-                 if(this.form.blood_access_part_id == this.blood_access_part[i].id){
614
-                    blood_part = this.blood_access_part[i].name
615
-                 }
616
-              }
624
+            //   var blood_part = ""
625
+            //   for(let i=0;i<this.blood_access_part.length;i++){
626
+            //      if(this.form.blood_access_part_id == this.blood_access_part[i].id){
627
+            //         blood_part = this.blood_access_part[i].name
628
+            //      }
629
+            //   }
617
               var inflow_pass = ""
630
               var inflow_pass = ""
618
               for(let i=0;i<this.optionsPass.length;i++){
631
               for(let i=0;i<this.optionsPass.length;i++){
619
                  if(this.optionsPass[i].id == this.form.inflow_pass){
632
                  if(this.optionsPass[i].id == this.form.inflow_pass){
626
                 access_project:parseInt(this.form.access_project),
639
                 access_project:parseInt(this.form.access_project),
627
                 start_time:this.form.start_time,
640
                 start_time:this.form.start_time,
628
                 blood_access_part_opera_id:blood_name,
641
                 blood_access_part_opera_id:blood_name,
629
-                blood_access_part_id:blood_part,
642
+                blood_access_part_id:this.form.blood_access_part_id,
630
                 inflow_pass:inflow_pass,
643
                 inflow_pass:inflow_pass,
631
                 first_start_time:this.form.first_start_time,
644
                 first_start_time:this.form.first_start_time,
632
                 user_status:this.form.user_status,
645
                 user_status:this.form.user_status,
650
      rowClick(row){
663
      rowClick(row){
651
        console.log("row",row)
664
        console.log("row",row)
652
        this.$router.push({path:'/patients/patient/'+this.patientID+'/vascularAccessDetail/'+row.id})
665
        this.$router.push({path:'/patients/patient/'+this.patientID+'/vascularAccessDetail/'+row.id})
653
-     }
666
+     },
667
+       showInnerDialog: function(val) {
668
+        this.InnerDialogProps.visibility = true
669
+        switch (val) {
670
+        
671
+          case '17': // 血管通路
672
+            this.InnerDialogProps.values = this.blood_access_part
673
+            this.InnerDialogProps.titles = '血管通路部位'
674
+            this.InnerDialogProps.type = 'blood_access_part_id'
675
+            this.InnerDialogProps.selected = this.form.blood_access_part_id
676
+            this.InnerDialogProps.isShowTextArea = false
677
+            break
678
+
679
+        
680
+        }
681
+      },
682
+       innerDialogComfirm: function(val) {
683
+         this.InnerDialogProps.visibility = false
684
+         switch (val.type) {
685
+           case 'blood_access_part_id':
686
+           this.form.blood_access_part_id = val.value.join(',')
687
+           break
688
+        }
689
+      },
690
+      innerDialogCancle: function() {
691
+        this.InnerDialogProps.visibility = false
692
+      },
654
     },
693
     },
655
     created() {
694
     created() {
656
       const id = this.$route.params && this.$route.params.id
695
       const id = this.$route.params && this.$route.params.id

+ 106 - 3
src/xt_pages/user/vascularAccessDetail.vue View File

134
      </span>
134
      </span>
135
      </el-dialog>
135
      </el-dialog>
136
 
136
 
137
+     
138
+       <el-dialog
139
+         title="编辑通路评估"
140
+         :visible.sync="editDialogVisible"
141
+         width="60%"
142
+         center>
143
+      <el-form label-width="120px" :model="form" ref="form" :rules="rules" >
144
+         <el-row :gutter="24">
145
+            <el-col :span="8">
146
+               <el-form-item label="建立日期:" :required="true" prop="start_time">
147
+                 <el-date-picker
148
+                    type="datetime"
149
+                    format="yyyy-MM-dd"
150
+                    value-format="yyyy-MM-dd"
151
+                    placeholder="选择时间"
152
+                    v-model="form.start_time"
153
+                    style="width:150px">
154
+                 </el-date-picker>
155
+               </el-form-item>
156
+            </el-col>
157
+             <el-col :span="8">
158
+               <el-form-item label="评估人:" :required="true" prop="creator">
159
+                 <el-select v-model="form.creator" placeholder="请选择"  style="width:150px">
160
+                    <el-option
161
+                        v-for="item in doctorList"
162
+                        :key="item.admin_user_id"
163
+                        :label="item.user_name"
164
+                        :value="item.admin_user_id"
165
+                        >
166
+                    </el-option>
167
+                  </el-select>
168
+               </el-form-item>
169
+            </el-col>
170
+         </el-row>
171
+       
172
+         <el-row>
173
+            <el-col>
174
+                <el-form-item label="项目:">
175
+                 <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.blood_project"></el-input>
176
+                </el-form-item>
177
+            </el-col>  
178
+         </el-row>
179
+          <el-row>
180
+            <el-col>
181
+                <el-form-item label="结果:">
182
+                 <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.blood_result"></el-input>
183
+                </el-form-item>
184
+            </el-col>  
185
+         </el-row>
186
+         <el-row>
187
+            <el-col>
188
+                <el-form-item label="处理:">
189
+                 <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.blood_dealwith"></el-input>
190
+                </el-form-item>
191
+            </el-col>  
192
+         </el-row>
193
+      </el-form>
137
 
194
 
195
+     <span slot="footer" class="dialog-footer">
196
+        <el-button @click="editDialogVisible = false">取 消</el-button>
197
+        <el-button type="primary" @click="updatePasswayAssessment('form')">保存</el-button>
198
+     </span>
199
+     </el-dialog>
138
 
200
 
139
       
201
       
140
 
202
 
141
     </div>
203
     </div>
204
+
205
+     
142
   </div>
206
   </div>
143
 </template>
207
 </template>
144
 <script>
208
 <script>
145
   const moment = require('moment')
209
   const moment = require('moment')
146
   import PatientSidebar from './components/PatientSidebar'
210
   import PatientSidebar from './components/PatientSidebar'
147
-  import {getVascularAccessByDetail,savePasswayAssessment,getAllPassWayAssessmentList,getPassWayAssessmentById} from '@/api/patient'
211
+  import {getVascularAccessByDetail,savePasswayAssessment,getAllPassWayAssessmentList,getPassWayAssessmentById,updatePasswayAssessment,DeletePassWayAssessMent} from '@/api/patient'
148
   import { uParseTime } from '@/utils/tools'
212
   import { uParseTime } from '@/utils/tools'
149
   import { getDataConfig } from '@/utils/data'
213
   import { getDataConfig } from '@/utils/data'
214
+ 
150
   export default {
215
   export default {
151
     name: 'doctorAdvice',
216
     name: 'doctorAdvice',
152
     components: {
217
     components: {
235
         type: "warning"
300
         type: "warning"
236
       })
301
       })
237
         .then(() => {
302
         .then(() => {
238
-          DeleteVascularAccess(id).then(response => {
303
+          DeletePassWayAssessMent(id).then(response => {
239
             if(response.data.state == 1){
304
             if(response.data.state == 1){
240
               var msg = response.data.data.msg
305
               var msg = response.data.data.msg
241
               this.tableData.splice(index, 1);
306
               this.tableData.splice(index, 1);
264
                if(response.data.state == 1){
329
                if(response.data.state == 1){
265
                  var assessment =  response.data.data.assessment
330
                  var assessment =  response.data.data.assessment
266
                  console.log("assessment",assessment)
331
                  console.log("assessment",assessment)
332
+                 this.form.blood_project = ""
333
+                 this.form.blood_result = ""
334
+                 this.form.blood_dealwith = ""
267
                  this.dialogVisible = false
335
                  this.dialogVisible = false
268
                  this.$message.success("保存成功")
336
                  this.$message.success("保存成功")
269
                  this.getlist()
337
                  this.getlist()
292
     },
360
     },
293
 
361
 
294
     handleUpdateAdviceTemplate(id){
362
     handleUpdateAdviceTemplate(id){
363
+      console.log("id2222222",id)
295
        getPassWayAssessmentById(id).then(response=>{
364
        getPassWayAssessmentById(id).then(response=>{
365
+           if(response.data.state == 1){
366
+              var assessment =  response.data.data.assessment
367
+              console.log("assesment",assessment)
368
+              this.editDialogVisible = true
369
+              this.form.id = assessment.id
370
+              this.form.start_time = this.getTime(assessment.start_time,"{y}-{m}-{d}")
371
+              this.form.creator = assessment.creator
372
+              this.form.blood_dealwith = assessment.blood_dealwith
373
+              this.form.blood_project = assessment.blood_project
374
+              this.form.blood_result = assessment.blood_result
375
+           }
376
+       })
377
+    },
296
 
378
 
379
+    updatePasswayAssessment(formName){
380
+       this.$refs[formName].validate((valid)=>{
381
+         if(valid){
382
+              var params = {
383
+                start_time:this.form.start_time,
384
+                creator:this.form.creator,
385
+                blood_project:this.form.blood_project,
386
+                blood_result:this.form.blood_result,
387
+                blood_dealwith:this.form.blood_dealwith,
388
+                id:this.form.id
389
+              }
390
+              console.log("parasm",params)  
391
+            updatePasswayAssessment(params).then(response=>{
392
+               if(response.data.state == 1){
393
+                  var assesment = response.data.data.assessment
394
+                  this.$message.success("保存成功")
395
+                  this.editDialogVisible = false
396
+                  this.getlist()
397
+               }
398
+            })
399
+         }
297
        })
400
        })
298
     }
401
     }
299
    
402
    
300
     },
403
     },
301
     created() {
404
     created() {
302
-      const id = this.$route.params && this.$route.params.id
405
+      const id = this.$route.params && this.$route.params.mid
303
       this.patientID = parseInt(id)
406
       this.patientID = parseInt(id)
304
       const pid = this.$route.params&& this.$route.params.pid 
407
       const pid = this.$route.params&& this.$route.params.pid 
305
       this.parent_id = parseInt(pid)
408
       this.parent_id = parseInt(pid)