28169 1 周之前
父節點
當前提交
b4c0c1767a

+ 27 - 0
src/api/patient.js 查看文件

@@ -1194,4 +1194,31 @@ export function getPatientLapeso(params){
1194 1194
     method:"Get",
1195 1195
     params:params,
1196 1196
   })
1197
+}
1198
+
1199
+export function addDeathSummary(data){
1200
+  
1201
+  return request({
1202
+    url:"/api/patient/adddeathsummary",
1203
+    method:"post",
1204
+    data:data,
1205
+  })
1206
+}
1207
+
1208
+export function getPatientDeathSummary(params){
1209
+ 
1210
+  return request({
1211
+    url:"/api/patient/getpatientdeathsummary",
1212
+    method:"get",
1213
+    params:params,
1214
+  })
1215
+}
1216
+
1217
+export function deletePatientDeathSummary(params){
1218
+
1219
+  return request({
1220
+    url:"/api/patient/deletepatientdeathsummary",
1221
+    method:"get",
1222
+    params:params
1223
+  })
1197 1224
 }

+ 11 - 0
src/router/modules/patient.js 查看文件

@@ -191,6 +191,17 @@ export default {
191 191
       noCache: true
192 192
     }
193 193
   },
194
+  {
195
+    path: '/patient/patient/:id/deathSummary',
196
+    component: () => import('@/xt_pages/user/deathSummary'),
197
+    hidden: true,
198
+    is_menu: false,
199
+    name: 'deathSummary',
200
+    meta: {
201
+      title: 'deathSummary',
202
+      noCache: true
203
+    }
204
+  },
194 205
   {
195 206
     path: '/patients/course',
196 207
     component: () => import('@/xt_pages/user/courseOfDisease'),

+ 31 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -2640,11 +2640,19 @@ mu
2640 2640
           if(this.predialysis!=undefined){
2641 2641
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
2642 2642
               this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(1)
2643
+              if(this.dialysisPrescription.target_ultrafiltration == "NaN"){
2644
+                 this.dialysisPrescription.target_ultrafiltration = 0
2645
+             }
2646
+
2643 2647
             }
2644 2648
 
2645 2649
             if(this.dialysisPrescription.prescription_water==0 || this.dialysisPrescription.prescription_water==""){
2646 2650
               if((this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(1)>0){
2647 2651
                 this.dialysisPrescription.prescription_water = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(1)
2652
+                if(this.dialysisPrescription.prescription_water == "NaN"){
2653
+                     this.dialysisPrescription.prescription_water = 0
2654
+                }
2655
+
2648 2656
               }
2649 2657
 
2650 2658
             }
@@ -3247,6 +3255,10 @@ mu
3247 3255
 
3248 3256
              this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
3249 3257
 
3258
+             if(this.dialysisPrescription.target_ultrafiltration == "NaN"){
3259
+               this.dialysisPrescription.target_ultrafiltration = 0
3260
+             }
3261
+
3250 3262
           }
3251 3263
         }
3252 3264
 
@@ -3306,6 +3318,15 @@ mu
3306 3318
          }
3307 3319
         }
3308 3320
 
3321
+        if(this.dialysisPrescription.target_ultrafiltration == "NaN"){
3322
+           this.dialysisPrescription.target_ultrafiltration = 0
3323
+        }
3324
+
3325
+        if(this.dialysisPrescription.prescription_water == "NaN"){
3326
+           this.dialysisPrescription.prescription_water = 0
3327
+        }
3328
+
3329
+
3309 3330
         this.$refs[formName].validate((valid)=>{
3310 3331
           if(valid){
3311 3332
             if(!this.isLoading){
@@ -3860,8 +3881,17 @@ mu
3860 3881
           if(this.dialysisPrescription.target_ultrafiltration==0){
3861 3882
              this.$message.error("目标超滤量不能为空")
3862 3883
              return false
3863
-         }
3884
+          }
3885
+         
3864 3886
         }
3887
+        
3888
+        if(this.dialysisPrescription.target_ultrafiltration == "NaN"){
3889
+           this.dialysisPrescription.target_ultrafiltration = 0
3890
+          }
3891
+
3892
+         if(this.dialysisPrescription.prescription_water == "NaN"){
3893
+           this.dialysisPrescription.prescription_water = 0
3894
+         }
3865 3895
         this.$refs[formName].validate((valid)=>{
3866 3896
           if(valid){
3867 3897
             if(!this.isLoading){

+ 10 - 1
src/xt_pages/user/components/PatientSidebar.vue 查看文件

@@ -284,6 +284,10 @@ export default {
284 284
           name: '7',
285 285
           label: '转归记录',
286 286
         },
287
+        {
288
+          name: '8',
289
+          label: '死亡记录',
290
+        },
287 291
 
288 292
       ],
289 293
       name:""
@@ -291,7 +295,7 @@ export default {
291 295
   },
292 296
   methods: {
293 297
     handleNodeClick(data) {
294
-     
298
+
295 299
       var name = data.name
296 300
       this.name = data.name
297 301
       window.sessionStorage.setItem('patientKey',data.name)
@@ -391,6 +395,9 @@ export default {
391 395
         this.$router.push({path: '/patients/patient/' + this.id+ '/Informedconsent'})
392 396
       }else if(name == '7'){
393 397
         this.$router.push({path:'/patient/patient/'+this.id+'/lapsoSummary'})
398
+      }else if(name == '8'){
399
+        console.log("hhhhhhhhhhhhhhhhhhhhhhhhhhhhh")
400
+       this.$router.push({path:'/patient/patient/'+this.id+'/deathSummary'})
394 401
       }
395 402
 
396 403
     },
@@ -555,6 +562,8 @@ export default {
555 562
         this.$router.push({ path: '/patients/sickhistory?id=' + this.id })
556 563
       }else if(patientKey == '7'){
557 564
         this.$router.push({path:'/patient/patient/'+this.id+'/lapsoSummary'})
565
+      }else if(patientKey == '8'){
566
+       this.$router.push({path:'/patient/patient/'+this.id+'/deathSummary'})
558 567
       }else if(patientKey == '4-12'){
559 568
         this.$router.push({path:'/patients/newInspection?id='+this.id})
560 569
       }

+ 63 - 7
src/xt_pages/user/lapsoSummary.vue 查看文件

@@ -482,6 +482,27 @@
482 482
             <el-button type="primary" @click="updatePatientLapse('form')">保存</el-button>
483 483
         </span>
484 484
         </el-dialog>
485
+
486
+
487
+        <el-dialog
488
+          title="转出提示"
489
+          :visible.sync="laspDialogVisible"
490
+          width="50%">
491
+          <span>
492
+            <div>
493
+              患者转出后,系统会将今日之后的排班清除,透析方案停用,长期医嘱停用,确定转出吗?如不需要清除排班,请先勾选下方选项,再点击确认。
494
+            </div>
495
+            <div>
496
+              <el-checkbox-group v-model="check_status">
497
+                   <el-checkbox v-for="city in cityList" :label="city" :key="city">{{city}}</el-checkbox>
498
+              </el-checkbox-group>
499
+            </div>
500
+          </span>
501
+          <span slot="footer" class="dialog-footer">
502
+          <el-button @click="laspDialogVisible = false">取 消</el-button>
503
+          <el-button type="primary" @click="saveLapseSummary">确 定</el-button>
504
+         </span>
505
+         </el-dialog>
485 506
   
486 507
       </div>
487 508
       
@@ -491,7 +512,6 @@
491 512
     const moment = require('moment')
492 513
     import PatientSidebar from './components/PatientSidebar'
493 514
     import { savePatientLapse,getAllDoctor,deletePatientLapsoRrecord,getPatientById,getPatientLapseRecord,getPatientLapsoSummary,updatePatientLapseRecord,getPatientLapsoList} from '@/api/patient'
494
-  
495 515
     import { jsGetAge, uParseTime } from '@/utils/tools'
496 516
     import { getDataConfig } from '@/utils/data'
497 517
     import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
@@ -606,6 +626,12 @@
606 626
           patient_address:"",
607 627
           start_time_one:"",
608 628
           end_time_one:"",
629
+          laspDialogVisible:false,
630
+          check_status:false,
631
+          cityOneList:["不清除排班","不停用方案","不停用医嘱","不清除患者绑定"],
632
+          cityList:["不清除排班"],
633
+          city_check:2, 
634
+          objParams:{}
609 635
         }
610 636
       },
611 637
       methods: {
@@ -746,10 +772,15 @@
746 772
             end_time:this.end_time,
747 773
             start_time_one:this.start_time_one,
748 774
             end_time_one:this.end_time_one,
775
+            is_check:2,
749 776
           }
777
+          this.objParams = params
750 778
           console.log("params=====",params)
751
-        savePatientLapse(params).then(response=>{
752
-          if(response.data.state==1){
779
+         if(this.lapse_type == 2 || this.lapse_type == 3){
780
+          this.laspDialogVisible = true
781
+        }else{
782
+          savePatientLapse(params).then(response=>{
783
+           if(response.data.state==1){
753 784
              var record = response.data.data.record
754 785
              this.$message.success("保存成功!")
755 786
              this.dialogVisible = false
@@ -757,8 +788,34 @@
757 788
              this.lapse_reason = ""
758 789
              this.getlist()
759 790
 
760
-          }
761
-        })
791
+           }
792
+         })
793
+        }
794
+       
795
+      },
796
+      saveLapseSummary(){
797
+        var is_check = 2
798
+        if(this.check_status == true){
799
+          is_check =1
800
+        }      
801
+        if(this.check_status == false){
802
+          is_check = 2
803
+        }
804
+        this.objParams.is_check = is_check
805
+        console.log("params======",this.objParams)
806
+        
807
+        savePatientLapse(this.objParams).then(response=>{
808
+           if(response.data.state==1){
809
+             var record = response.data.data.record
810
+             this.$message.success("保存成功!")
811
+             this.dialogVisible = false
812
+             this.remark = ""
813
+             this.lapse_reason = ""
814
+             this.getlist()
815
+
816
+           }
817
+         })
818
+
762 819
       },
763 820
       getlist(){
764 821
          var params = {
@@ -849,8 +906,7 @@
849 906
      
850 907
       },
851 908
       created() {
852
-        this.record_date =  moment(new Date()).format('YYYY-MM-DD')
853
-       
909
+        this.record_date =  moment(new Date()).format('YYYY-MM-DD')      
854 910
         const id = this.$route.params && this.$route.params.id
855 911
         console.log('id是设么', id)
856 912
          this.patientID = parseInt(id)