浏览代码

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 11 个月前
父节点
当前提交
d6c22941b6

+ 61 - 8
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue 查看文件

429
     hisPatientInfo: Object,
429
     hisPatientInfo: Object,
430
     record_date: String,
430
     record_date: String,
431
     detalid: Number,
431
     detalid: Number,
432
+    befor:Object,
433
+    LastCaseHistory:Object,
432
   },
434
   },
433
   components: {
435
   components: {
434
     medicalRecord,
436
     medicalRecord,
597
           var templatedetail = response.data.data.templateDetail;
599
           var templatedetail = response.data.data.templateDetail;
598
           console.log("templatedetail", templatedetail);
600
           console.log("templatedetail", templatedetail);
599
           this.case_history.chief_conplaint = templatedetail.chief_conplaint;
601
           this.case_history.chief_conplaint = templatedetail.chief_conplaint;
600
-          this.case_history.history_of_present_illness =
601
-            templatedetail.history_of_present_illness;
602
+          this.case_history.history_of_present_illness = templatedetail.history_of_present_illness;
602
           this.case_history.past_history = templatedetail.past_history;
603
           this.case_history.past_history = templatedetail.past_history;
603
           this.case_history.personal_history = templatedetail.personal_history;
604
           this.case_history.personal_history = templatedetail.personal_history;
604
           this.case_history.family_history = templatedetail.family_history;
605
           this.case_history.family_history = templatedetail.family_history;
798
       this.patientInfo.first_dialysis_date
799
       this.patientInfo.first_dialysis_date
799
     );
800
     );
800
    
801
    
801
-    this.primary_disease = this.case_history.primary_disease
802
-    this.confirm_failure_date = this.case_history.confirm_failure_date
803
-    this.drug_allergy_history = this.case_history.drug_allergy_history
804
-    this.physical_examination = this.case_history.physical_examination
805
-    this.special_inspection = this.case_history.special_inspection
806
-    this.lab_apparatus = this.case_history.lab_apparatus
802
+    if(this.case_history!=undefined){
803
+      if(this.case_history.id == 0){
804
+        this.primary_disease = this.LastCaseHistory.primary_disease
805
+        this.confirm_failure_date = this.LastCaseHistory.confirm_failure_date
806
+        this.drug_allergy_history = this.LastCaseHistory.drug_allergy_history
807
+        this.physical_examination = this.LastCaseHistory.physical_examination
808
+        this.special_inspection = this.LastCaseHistory.special_inspection
809
+        this.lab_apparatus = this.LastCaseHistory.lab_apparatus
810
+        this.case_history.sick = this.LastCaseHistory.sick
811
+        this.case_history.diagnose = this.LastCaseHistory.diagnose
812
+        this.allergic_history = this.LastCaseHistory.allergic_history
813
+        this.case_history.family_history = this.LastCaseHistory.family_history
814
+        this.case_history.doctor_advice = this.LastCaseHistory.doctor_advice
815
+        this.case_history.remark = this.LastCaseHistory.remark
816
+        this.case_history.past_history = this.LastCaseHistory.past_history
817
+        this.case_history.personal_history = this.LastCaseHistory.personal_history
818
+        this.case_history.chief_conplaint = this.LastCaseHistory.chief_conplaint
819
+        this.case_history.history_of_present_illness = this.LastCaseHistory.history_of_present_illness
820
+        this.case_history.diagnostic = this.LastCaseHistory.diagnostic
821
+       
822
+      
823
+      }   
824
+      if(this.case_history.id > 0){
825
+        this.primary_disease = this.case_history.primary_disease
826
+        this.confirm_failure_date = this.case_history.confirm_failure_date
827
+        this.drug_allergy_history = this.case_history.drug_allergy_history
828
+        this.physical_examination = this.case_history.physical_examination
829
+        this.special_inspection = this.case_history.special_inspection
830
+        this.lab_apparatus = this.case_history.lab_apparatus
831
+      }
832
+    }
833
+   
807
   },
834
   },
808
   watch: {
835
   watch: {
809
     detalid: function (val) {
836
     detalid: function (val) {
831
 
858
 
832
     patientInfo: {
859
     patientInfo: {
833
       handler(newval, oldval) {
860
       handler(newval, oldval) {
861
+
834
         this.primary_disease = this.patientInfo.primary_disease;
862
         this.primary_disease = this.patientInfo.primary_disease;
835
         this.confirm_failure_date = this.patientInfo.confirm_failure_date;
863
         this.confirm_failure_date = this.patientInfo.confirm_failure_date;
836
         this.drug_allergy_history = this.patientInfo.drug_allergy_history;
864
         this.drug_allergy_history = this.patientInfo.drug_allergy_history;
837
         this.physical_examination = this.patientInfo.physical_examination;
865
         this.physical_examination = this.patientInfo.physical_examination;
838
         this.special_inspection = this.patientInfo.special_inspection;
866
         this.special_inspection = this.patientInfo.special_inspection;
839
         this.lab_apparatus = this.patientInfo.lab_apparatus;
867
         this.lab_apparatus = this.patientInfo.lab_apparatus;
868
+        console.log("WOWOWOWOOWOWOWWO",this.patientInfo)
869
+        console.log("透气那数据阿道夫阿道夫阿道夫低分安抚",this.LastCaseHistory)
870
+
871
+
872
+        if(this.befor!=undefined){
873
+          if(this.case_history.temperature == 0){
874
+            this.case_history.temperature =  this.befor.temperature?this.befor.temperature:""
875
+          }
876
+
877
+          if(this.case_history.pulse == 0){
878
+            this.case_history.pulse =  this.befor.pulse_frequency?this.befor.pulse_frequency:""
879
+          }
880
+
881
+          if(this.case_history.breathing == 0){
882
+            this.case_history.breathing = this.befor.breathing_rate?this.befor.breathing_rate:""
883
+          }
884
+        
885
+          if(this.case_history.sbp==0){
886
+            this.case_history.sbp = this.befor.systolic_blood_pressure?this.befor.systolic_blood_pressure:""
887
+          }
888
+
889
+          if(this.case_history.dbp == 0){
890
+            this.case_history.dbp = this.befor.diastolic_blood_pressure?this.befor.diastolic_blood_pressure:""
891
+          }   
892
+        }
840
       },
893
       },
841
       deep: true,
894
       deep: true,
842
     },
895
     },

+ 8 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

182
 
182
 
183
 
183
 
184
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
184
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
185
-                     :hisPatientInfo="hisPatientInfo" v-if="titleType == '电子病历'" :detalid="detalid"
185
+                     :hisPatientInfo="hisPatientInfo" v-if="titleType == '电子病历'" :detalid="detalid" :befor="befor"
186
+                     :LastCaseHistory="LastCaseHistory"
186
                      ref="child"></desk-record>
187
                      ref="child"></desk-record>
187
         <medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord>
188
         <medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord>
188
         <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
189
         <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
784
       anticoagulants_confit: null,
785
       anticoagulants_confit: null,
785
       patient_diagnoses: [],
786
       patient_diagnoses: [],
786
       // zuobiao_project:[],
787
       // zuobiao_project:[],
788
+      befor:{},
789
+      LastCaseHistory:{}
787
     }
790
     }
788
   },
791
   },
789
 
792
 
1850
           this.doctors = response.data.data.doctors
1853
           this.doctors = response.data.data.doctors
1851
           this.department = response.data.data.department
1854
           this.department = response.data.data.department
1852
 
1855
 
1856
+          this.befor = response.data.data.befor
1857
+
1858
+          this.LastCaseHistory= response.data.data.LastCaseHistory
1859
+
1853
           for (let i = 0; i < this.doctors.length; i++) {
1860
           for (let i = 0; i < this.doctors.length; i++) {
1854
             if (this.doctors[i].user_type == 1) {
1861
             if (this.doctors[i].user_type == 1) {
1855
               this.doctors.splice(i, 1)
1862
               this.doctors.splice(i, 1)