XMLWAN 4 лет назад
Родитель
Сommit
a34390c3de

+ 19 - 1
src/api/patient.js Просмотреть файл

@@ -446,11 +446,29 @@ export function getAllPassWayAssessmentList(params){
446 446
   })
447 447
 }
448 448
 
449
-export function getPassWayAssessmentById(id){
449
+export function getPassWayAssessmentById(id,params){
450 450
   
451 451
   return request({
452 452
     url:"/api/patient/getpasswayassmentbyid?id="+id,
453 453
     method:"Get",
454 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 Просмотреть файл

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

+ 11 - 2
src/xt_pages/dialysis/details/NavIgation.vue Просмотреть файл

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

+ 36 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Просмотреть файл

@@ -743,6 +743,12 @@
743 743
         default: () => {
744 744
           return []
745 745
         }
746
+      },
747
+      lastAssessment:{
748
+        type:Array,
749
+         default: () => {
750
+          return []
751
+        }
746 752
       }
747 753
 
748 754
     },
@@ -752,6 +758,7 @@
752 758
         this.lastDryWeightDislysis = lastDryWeightDislysis
753 759
       },
754 760
       isShow(name) {
761
+        
755 762
         var filedList = store.getters.xt_user.fileds
756 763
         for (let i = 0; i < filedList.length; i++) {
757 764
           if (filedList[i].module == 3 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
@@ -760,6 +767,7 @@
760 767
         }
761 768
         return false
762 769
       },
770
+
763 771
       show(assessment, lastDryWeightDislysis,last_predialysis_evaluation) {
764 772
         this.lastPredialysisEvaluation = last_predialysis_evaluation
765 773
        
@@ -812,6 +820,7 @@
812 820
 
813 821
           if (lastDryWeightDislysis != null) {
814 822
             this.weight_adjust.weight = lastDryWeightDislysis.dry_weight
823
+           
815 824
             this.$set(
816 825
               this.assessmentBeforeDislysis,
817 826
               'dry_weight',
@@ -825,6 +834,9 @@
825 834
             }
826 835
           }
827 836
 
837
+
838
+
839
+
828 840
           if (this.lastPredialysisEvaluation != null) {
829 841
             for (var key in this.lastPredialysisEvaluation){
830 842
               if (key != 'systolic_blood_pressure' && key != 'diastolic_blood_pressure' && key != 'pulse_frequency' && key != 'dry_weight' && key != 'weight_before'){
@@ -837,6 +849,30 @@
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 877
         } else {
842 878
          

+ 37 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Просмотреть файл

@@ -1161,7 +1161,13 @@
1161 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 1172
     computed: {
1167 1173
       dialysis_date: function() {
@@ -1832,6 +1838,7 @@
1832 1838
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1833 1839
       },
1834 1840
       show(pre,schedual,last,his_is_open) {
1841
+     
1835 1842
         if(his_is_open == 1){
1836 1843
           this.is_open = 0
1837 1844
         }
@@ -1904,6 +1911,8 @@
1904 1911
         } else {
1905 1912
           last_weight_after = this.last_record.weight_after
1906 1913
         }
1914
+        
1915
+ 
1907 1916
 
1908 1917
         if (this.predialysis == null || this.predialysis.id == 0) {
1909 1918
           if(last != null) {
@@ -1922,7 +1931,10 @@
1922 1931
             this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
1923 1932
             this.dialysisPrescription.package = last.package
1924 1933
             this.dialysisPrescription.a_liquid = last.a_liquid
1934
+
1925 1935
             weight_before = 0
1936
+
1937
+           
1926 1938
           }
1927 1939
 
1928 1940
         } else {
@@ -1930,6 +1942,30 @@
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 1970
         if (weight_before > 0 && last_weight_after > 0) {
1935 1971
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(

+ 19 - 16
src/xt_pages/dialysis/details/index.vue Просмотреть файл

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

+ 10 - 5
src/xt_pages/user/components/PatientSidebar.vue Просмотреть файл

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

+ 1 - 0
src/xt_pages/user/dialysisRecord.vue Просмотреть файл

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

+ 81 - 42
src/xt_pages/user/vascularAccess.vue Просмотреть файл

@@ -4,9 +4,9 @@
4 4
     <div class="patient-app-container advice-container app-container">
5 5
       <div class="cell clearfix">
6 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 8
       </div>
9
-      <el-table  :data="tableData" border style="width:100%" @row-click="rowClick">
9
+      <el-table  :data="tableData" border style="width:100%">
10 10
       <el-table-column  prop="start_time"   label="建立日期"  width="150"    align="center">
11 11
           <template  slot-scope="scope">
12 12
             <span>{{ getTime(scope.row.start_time, "{y}-{m}-{d}")}}</span>
@@ -14,7 +14,18 @@
14 14
      </el-table-column>
15 15
       <el-table-column   prop="blood_access_part_opera_id" label="血管通路"   align="center" width="200">
16 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 29
         </template>
19 30
      </el-table-column>
20 31
       <el-table-column     prop="inflow_pass"    label="流入-流出道"    align="center">
@@ -118,7 +129,7 @@
118 129
                     value-format="yyyy-MM-dd"
119 130
                     placeholder="选择时间"
120 131
                     v-model="form.start_time"
121
-                    style="width:130px">
132
+                    style="width:150px">
122 133
                  </el-date-picker>
123 134
                </el-form-item>
124 135
             </el-col>
@@ -137,14 +148,7 @@
137 148
             </el-col>
138 149
              <el-col :span="8">
139 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 152
                </el-form-item>
149 153
             </el-col>
150 154
          </el-row>
@@ -169,7 +173,7 @@
169 173
                     value-format="yyyy-MM-dd"
170 174
                     placeholder="选择时间"
171 175
                     v-model="form.first_start_time"
172
-                    style="width:130px">
176
+                    style="width:150px">
173 177
                  </el-date-picker>
174 178
                </el-form-item>
175 179
             </el-col>
@@ -266,14 +270,16 @@
266 270
             </el-col>
267 271
              <el-col :span="8">
268 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 274
                     <el-option
271 275
                         v-for="item in blood_access_part"
272 276
                         :key="item.id"
273 277
                         :label="item.name"
274 278
                         :value="item.id">
275 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 283
                </el-form-item>
278 284
             </el-col>
279 285
          </el-row>
@@ -352,6 +358,12 @@
352 358
      </el-dialog>
353 359
 
354 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 367
   </div>
356 368
 </template>
357 369
 <script>
@@ -362,10 +374,13 @@
362 374
 
363 375
   import { jsGetAge, uParseTime } from '@/utils/tools'
364 376
   import { getDataConfig } from '@/utils/data'
377
+  import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
378
+    
365 379
   export default {
366 380
     name: 'doctorAdvice',
367 381
     components: {
368 382
       PatientSidebar,
383
+      multiSelectBox
369 384
     },
370 385
     data() {
371 386
       return {
@@ -394,7 +409,7 @@
394 409
          start_time:moment(new Date()).format('YYYY-MM-DD'),
395 410
          first_start_time:moment(new Date()).format('YYYY-MM-DD'),
396 411
          stop_reason:"",
397
-         user_status:"",
412
+         user_status:1,
398 413
          remark:"",
399 414
          stop_time:"",
400 415
         },
@@ -409,7 +424,15 @@
409 424
         blood_access_part_opera:[],
410 425
         blood_access_part:[],
411 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 438
     methods: {
@@ -451,24 +474,20 @@
451 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 477
               var inflow_pass = ""
461 478
               for(let i=0;i<this.optionsPass.length;i++){
462 479
                  if(this.optionsPass[i].id == this.form.inflow_pass){
463 480
                      inflow_pass = this.optionsPass[i].name
464 481
                  }
465 482
               }
483
+              console.log("params",this.form.blood_access_part_id)
484
+              
466 485
               var params = {
467 486
                 patient_id:this.patientID,
468 487
                 access_project:parseInt(this.form.access_project),
469 488
                 start_time:this.form.start_time,
470 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 491
                 inflow_pass:inflow_pass,
473 492
                 first_start_time:this.form.first_start_time,
474 493
                 user_status:this.form.user_status,
@@ -531,18 +550,12 @@
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 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 561
              this.form.blood_access_part_opera_id = blood_part
@@ -608,12 +621,12 @@
608 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 630
               var inflow_pass = ""
618 631
               for(let i=0;i<this.optionsPass.length;i++){
619 632
                  if(this.optionsPass[i].id == this.form.inflow_pass){
@@ -626,7 +639,7 @@
626 639
                 access_project:parseInt(this.form.access_project),
627 640
                 start_time:this.form.start_time,
628 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 643
                 inflow_pass:inflow_pass,
631 644
                 first_start_time:this.form.first_start_time,
632 645
                 user_status:this.form.user_status,
@@ -650,7 +663,33 @@
650 663
      rowClick(row){
651 664
        console.log("row",row)
652 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 694
     created() {
656 695
       const id = this.$route.params && this.$route.params.id

+ 106 - 3
src/xt_pages/user/vascularAccessDetail.vue Просмотреть файл

@@ -134,19 +134,84 @@
134 134
      </span>
135 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 203
     </div>
204
+
205
+     
142 206
   </div>
143 207
 </template>
144 208
 <script>
145 209
   const moment = require('moment')
146 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 212
   import { uParseTime } from '@/utils/tools'
149 213
   import { getDataConfig } from '@/utils/data'
214
+ 
150 215
   export default {
151 216
     name: 'doctorAdvice',
152 217
     components: {
@@ -235,7 +300,7 @@
235 300
         type: "warning"
236 301
       })
237 302
         .then(() => {
238
-          DeleteVascularAccess(id).then(response => {
303
+          DeletePassWayAssessMent(id).then(response => {
239 304
             if(response.data.state == 1){
240 305
               var msg = response.data.data.msg
241 306
               this.tableData.splice(index, 1);
@@ -264,6 +329,9 @@
264 329
                if(response.data.state == 1){
265 330
                  var assessment =  response.data.data.assessment
266 331
                  console.log("assessment",assessment)
332
+                 this.form.blood_project = ""
333
+                 this.form.blood_result = ""
334
+                 this.form.blood_dealwith = ""
267 335
                  this.dialogVisible = false
268 336
                  this.$message.success("保存成功")
269 337
                  this.getlist()
@@ -292,14 +360,49 @@
292 360
     },
293 361
 
294 362
     handleUpdateAdviceTemplate(id){
363
+      console.log("id2222222",id)
295 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 404
     created() {
302
-      const id = this.$route.params && this.$route.params.id
405
+      const id = this.$route.params && this.$route.params.mid
303 406
       this.patientID = parseInt(id)
304 407
       const pid = this.$route.params&& this.$route.params.pid 
305 408
       this.parent_id = parseInt(pid)