see999 3 years ago
parent
commit
50df6cd785
1 changed files with 28 additions and 19 deletions
  1. 28 19
      src/xt_pages/dialysis/details/index.vue

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

268
         :his_is_open="his_is_open"
268
         :his_is_open="his_is_open"
269
         :lastAssessment="lastAssessment"
269
         :lastAssessment="lastAssessment"
270
         :stockType="stockType"
270
         :stockType="stockType"
271
-        :dialysis_prescription="dialysis_prescription"
272
       >
271
       >
273
       </nav-igation>
272
       </nav-igation>
274
 
273
 
598
       patient: { id: 0 }, // 患者信息
597
       patient: { id: 0 }, // 患者信息
599
       schedual: { id: 0 }, // 患者排班信息
598
       schedual: { id: 0 }, // 患者排班信息
600
       prescription: { id: 0 }, // 透析处方
599
       prescription: { id: 0 }, // 透析处方
601
-      dialysis_prescription:{id:0},
602
       solution: { id: 0 }, // 透析方案
600
       solution: { id: 0 }, // 透析方案
603
       system_prescribe: { id: 0 },
601
       system_prescribe: { id: 0 },
604
       receiver_treatment_access: { id: 0 }, // 接诊评估
602
       receiver_treatment_access: { id: 0 }, // 接诊评估
792
         { title: '透后评估', finish: false },
790
         { title: '透后评估', finish: false },
793
         { title: '治疗小结', finish: false }
791
         { title: '治疗小结', finish: false }
794
       ]
792
       ]
795
-     
793
+
796
       steps[0].finish = this.prescription.id && this.prescription.creater > 0
794
       steps[0].finish = this.prescription.id && this.prescription.creater > 0
797
       steps[1].finish = this.receiver_treatment_access.id > 0
795
       steps[1].finish = this.receiver_treatment_access.id > 0
798
-      steps[2].finish = this.predialysis_evaluation.id > 0 && this.predialysis_evaluation.creater > 0
796
+      steps[2].finish =
797
+        this.predialysis_evaluation.id > 0 &&
798
+        this.predialysis_evaluation.creater > 0
799
       steps[3].finish = this.doctor_advices.length > 0
799
       steps[3].finish = this.doctor_advices.length > 0
800
       steps[5].finish = this.dialysis_order.id > 0
800
       steps[5].finish = this.dialysis_order.id > 0
801
-      steps[4].finish = this.double_check.id > 0 && this.double_check.creater > 0 &&this.double_check.modifier > 0
802
-      steps[7].finish = this.dialysis_order.id > 0 && this.dialysis_order.stage == 2
803
-      
801
+      steps[7].finish =
802
+        this.dialysis_order.id > 0 && this.dialysis_order.stage == 2
803
+
804
+      steps[4].finish =
805
+        this.double_check.id > 0 &&
806
+        this.double_check.creater > 0 &&
807
+        this.double_check.modifier > 0
804
       steps[6].finish = this.monitor_records.length > 0
808
       steps[6].finish = this.monitor_records.length > 0
805
-      steps[8].finish = this.assessment_after_dislysis.id > 0 &&this.assessment_after_dislysis.creater > 0
809
+      steps[8].finish =
810
+        this.assessment_after_dislysis.id > 0 &&
811
+        this.assessment_after_dislysis.creater > 0
806
       steps[9].finish = this.treatment_summary.id > 0
812
       steps[9].finish = this.treatment_summary.id > 0
807
 
813
 
808
       return steps
814
       return steps
968
 
974
 
969
       this.doctor_advices = []
975
       this.doctor_advices = []
970
       getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
976
       getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
977
+
971
         var resp = rs.data
978
         var resp = rs.data
972
         if (resp.state == 1) {
979
         if (resp.state == 1) {
973
           var patient = resp.data.patient // 患者信息
980
           var patient = resp.data.patient // 患者信息
974
           var schedual = resp.data.schedual // 患者排班信息
981
           var schedual = resp.data.schedual // 患者排班信息
975
           console.log("排班22222222222",schedual)
982
           console.log("排班22222222222",schedual)
976
           var prescription = resp.data.prescription // 透析处方
983
           var prescription = resp.data.prescription // 透析处方
977
-        
978
           if (prescription != null) {
984
           if (prescription != null) {
979
             if (prescription.body_fluid == -2) {
985
             if (prescription.body_fluid == -2) {
980
               prescription.body_fluid = 0
986
               prescription.body_fluid = 0
987
                prescription.plasma_separator  = ""
993
                prescription.plasma_separator  = ""
988
             }
994
             }
989
           }
995
           }
990
-         this.prescription = prescription == null ? { id: 0 } : prescription
991
-         
992
-         this.dialysis_prescription = prescription
993
-         this.dialysis_prescription.mode_id = schedual.mode_id
994
-         console.log("巴以建军2323223233232323232323332",prescription)
996
+
995
           var solution = resp.data.solution // 透析方案
997
           var solution = resp.data.solution // 透析方案
996
-          // console.log("透析方案22223333333333",solution)
998
+          console.log("透析方案22223333333333",solution)
997
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
999
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
998
 
1000
 
999
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
1001
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
1000
-          //  console.log("透器评估",predialysis_evaluation)
1002
+           console.log("透器评估",predialysis_evaluation)
1001
           if (predialysis_evaluation != null) {
1003
           if (predialysis_evaluation != null) {
1002
             if (predialysis_evaluation.blood_access_part_id == -2) {
1004
             if (predialysis_evaluation.blood_access_part_id == -2) {
1003
               predialysis_evaluation.blood_access_part_id = 0
1005
               predialysis_evaluation.blood_access_part_id = 0
1038
           }
1040
           }
1039
           var lastMonitorRecord = resp.data.lastMonitorRecord
1041
           var lastMonitorRecord = resp.data.lastMonitorRecord
1040
           var lastAssessmentAfterDislysis = resp.data.lastAssessmentAfterDislysis
1042
           var lastAssessmentAfterDislysis = resp.data.lastAssessmentAfterDislysis
1041
-       
1043
+          // if(lastAssessmentAfterDislysis.hypertenison!=""){
1044
+          //   lastAssessmentAfterDislysis.hypertenison = lastAssessmentAfterDislysis.hypertenison.toString()
1045
+          // }
1046
+          //  if(lastAssessmentAfterDislysis.hypopiesia!=""){
1047
+          //   lastAssessmentAfterDislysis.hypopiesia = lastAssessmentAfterDislysis.hypopiesia.toString()
1048
+          // }
1042
           var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
1049
           var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
1043
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
1050
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
1044
 
1051
 
1069
           this.headNurses = headNurses
1076
           this.headNurses = headNurses
1070
           this.system_prescribe = system_prescribe
1077
           this.system_prescribe = system_prescribe
1071
 
1078
 
1079
+
1080
+
1072
           this.niprocart_info = []
1081
           this.niprocart_info = []
1073
           this.jms_info = []
1082
           this.jms_info = []
1074
           this.fistula_needle_set_info = []
1083
           this.fistula_needle_set_info = []
1106
 
1115
 
1107
           this.patient = patient
1116
           this.patient = patient
1108
           this.schedual = schedual == null ? { id: 0 } : schedual
1117
           this.schedual = schedual == null ? { id: 0 } : schedual
1109
-          
1118
+          this.prescription = prescription == null ? { id: 0 } : prescription
1110
           this.solution = solution == null ? { id: 0 } : solution
1119
           this.solution = solution == null ? { id: 0 } : solution
1111
           this.receiver_treatment_access =
1120
           this.receiver_treatment_access =
1112
             receiver_treatment_access == null
1121
             receiver_treatment_access == null
1329
         var resp = rs.data
1338
         var resp = rs.data
1330
         if (resp.state == 1) {
1339
         if (resp.state == 1) {
1331
           var schedules = resp.data.schedules
1340
           var schedules = resp.data.schedules
1332
-        
1341
+          console.log("当前排班信息4444444444444444",schedules)
1333
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1342
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1334
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1343
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1335
           if (this.activeName == 'first') {
1344
           if (this.activeName == 'first') {