28169 4 days ago
parent
commit
b4c0c1767a

+ 27 - 0
src/api/patient.js View File

1194
     method:"Get",
1194
     method:"Get",
1195
     params:params,
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 View File

191
       noCache: true
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
     path: '/patients/course',
206
     path: '/patients/course',
196
     component: () => import('@/xt_pages/user/courseOfDisease'),
207
     component: () => import('@/xt_pages/user/courseOfDisease'),

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

2640
           if(this.predialysis!=undefined){
2640
           if(this.predialysis!=undefined){
2641
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
2641
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
2642
               this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(1)
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
             if(this.dialysisPrescription.prescription_water==0 || this.dialysisPrescription.prescription_water==""){
2649
             if(this.dialysisPrescription.prescription_water==0 || this.dialysisPrescription.prescription_water==""){
2646
               if((this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(1)>0){
2650
               if((this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(1)>0){
2647
                 this.dialysisPrescription.prescription_water = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(1)
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
 
3255
 
3248
              this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
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
          }
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
         this.$refs[formName].validate((valid)=>{
3330
         this.$refs[formName].validate((valid)=>{
3310
           if(valid){
3331
           if(valid){
3311
             if(!this.isLoading){
3332
             if(!this.isLoading){
3860
           if(this.dialysisPrescription.target_ultrafiltration==0){
3881
           if(this.dialysisPrescription.target_ultrafiltration==0){
3861
              this.$message.error("目标超滤量不能为空")
3882
              this.$message.error("目标超滤量不能为空")
3862
              return false
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
         this.$refs[formName].validate((valid)=>{
3895
         this.$refs[formName].validate((valid)=>{
3866
           if(valid){
3896
           if(valid){
3867
             if(!this.isLoading){
3897
             if(!this.isLoading){

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

284
           name: '7',
284
           name: '7',
285
           label: '转归记录',
285
           label: '转归记录',
286
         },
286
         },
287
+        {
288
+          name: '8',
289
+          label: '死亡记录',
290
+        },
287
 
291
 
288
       ],
292
       ],
289
       name:""
293
       name:""
291
   },
295
   },
292
   methods: {
296
   methods: {
293
     handleNodeClick(data) {
297
     handleNodeClick(data) {
294
-     
298
+
295
       var name = data.name
299
       var name = data.name
296
       this.name = data.name
300
       this.name = data.name
297
       window.sessionStorage.setItem('patientKey',data.name)
301
       window.sessionStorage.setItem('patientKey',data.name)
391
         this.$router.push({path: '/patients/patient/' + this.id+ '/Informedconsent'})
395
         this.$router.push({path: '/patients/patient/' + this.id+ '/Informedconsent'})
392
       }else if(name == '7'){
396
       }else if(name == '7'){
393
         this.$router.push({path:'/patient/patient/'+this.id+'/lapsoSummary'})
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
         this.$router.push({ path: '/patients/sickhistory?id=' + this.id })
562
         this.$router.push({ path: '/patients/sickhistory?id=' + this.id })
556
       }else if(patientKey == '7'){
563
       }else if(patientKey == '7'){
557
         this.$router.push({path:'/patient/patient/'+this.id+'/lapsoSummary'})
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
       }else if(patientKey == '4-12'){
567
       }else if(patientKey == '4-12'){
559
         this.$router.push({path:'/patients/newInspection?id='+this.id})
568
         this.$router.push({path:'/patients/newInspection?id='+this.id})
560
       }
569
       }

+ 63 - 7
src/xt_pages/user/lapsoSummary.vue View File

482
             <el-button type="primary" @click="updatePatientLapse('form')">保存</el-button>
482
             <el-button type="primary" @click="updatePatientLapse('form')">保存</el-button>
483
         </span>
483
         </span>
484
         </el-dialog>
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
       </div>
507
       </div>
487
       
508
       
491
     const moment = require('moment')
512
     const moment = require('moment')
492
     import PatientSidebar from './components/PatientSidebar'
513
     import PatientSidebar from './components/PatientSidebar'
493
     import { savePatientLapse,getAllDoctor,deletePatientLapsoRrecord,getPatientById,getPatientLapseRecord,getPatientLapsoSummary,updatePatientLapseRecord,getPatientLapsoList} from '@/api/patient'
514
     import { savePatientLapse,getAllDoctor,deletePatientLapsoRrecord,getPatientById,getPatientLapseRecord,getPatientLapsoSummary,updatePatientLapseRecord,getPatientLapsoList} from '@/api/patient'
494
-  
495
     import { jsGetAge, uParseTime } from '@/utils/tools'
515
     import { jsGetAge, uParseTime } from '@/utils/tools'
496
     import { getDataConfig } from '@/utils/data'
516
     import { getDataConfig } from '@/utils/data'
497
     import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
517
     import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
606
           patient_address:"",
626
           patient_address:"",
607
           start_time_one:"",
627
           start_time_one:"",
608
           end_time_one:"",
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
       methods: {
637
       methods: {
746
             end_time:this.end_time,
772
             end_time:this.end_time,
747
             start_time_one:this.start_time_one,
773
             start_time_one:this.start_time_one,
748
             end_time_one:this.end_time_one,
774
             end_time_one:this.end_time_one,
775
+            is_check:2,
749
           }
776
           }
777
+          this.objParams = params
750
           console.log("params=====",params)
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
              var record = response.data.data.record
784
              var record = response.data.data.record
754
              this.$message.success("保存成功!")
785
              this.$message.success("保存成功!")
755
              this.dialogVisible = false
786
              this.dialogVisible = false
757
              this.lapse_reason = ""
788
              this.lapse_reason = ""
758
              this.getlist()
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
       getlist(){
820
       getlist(){
764
          var params = {
821
          var params = {
849
      
906
      
850
       },
907
       },
851
       created() {
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
         const id = this.$route.params && this.$route.params.id
910
         const id = this.$route.params && this.$route.params.id
855
         console.log('id是设么', id)
911
         console.log('id是设么', id)
856
          this.patientID = parseInt(id)
912
          this.patientID = parseInt(id)