28169 пре 9 месеци
родитељ
комит
b1c89def8b

+ 62 - 9
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue Прегледај датотеку

@@ -236,7 +236,7 @@
236 236
         </el-select>
237 237
       </el-form-item>
238 238
 
239
-      <el-form-item label="发病日期: " prop="name" style="width: 49%">
239
+      <el-form-item label="就诊日期: " prop="name" style="width: 49%">
240 240
         <el-date-picker
241 241
           style="width: 100%"
242 242
           v-model="start_time"
@@ -429,6 +429,8 @@ export default {
429 429
     hisPatientInfo: Object,
430 430
     record_date: String,
431 431
     detalid: Number,
432
+    befor:Object,
433
+    LastCaseHistory:Object,
432 434
   },
433 435
   components: {
434 436
     medicalRecord,
@@ -597,8 +599,7 @@ export default {
597 599
           var templatedetail = response.data.data.templateDetail;
598 600
           console.log("templatedetail", templatedetail);
599 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 603
           this.case_history.past_history = templatedetail.past_history;
603 604
           this.case_history.personal_history = templatedetail.personal_history;
604 605
           this.case_history.family_history = templatedetail.family_history;
@@ -798,12 +799,38 @@ export default {
798 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 835
   watch: {
809 836
     detalid: function (val) {
@@ -831,12 +858,38 @@ export default {
831 858
 
832 859
     patientInfo: {
833 860
       handler(newval, oldval) {
861
+
834 862
         this.primary_disease = this.patientInfo.primary_disease;
835 863
         this.confirm_failure_date = this.patientInfo.confirm_failure_date;
836 864
         this.drug_allergy_history = this.patientInfo.drug_allergy_history;
837 865
         this.physical_examination = this.patientInfo.physical_examination;
838 866
         this.special_inspection = this.patientInfo.special_inspection;
839 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 894
       deep: true,
842 895
     },

+ 8 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Прегледај датотеку

@@ -182,7 +182,8 @@
182 182
 
183 183
 
184 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 187
                      ref="child"></desk-record>
187 188
         <medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord>
188 189
         <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
@@ -784,6 +785,8 @@ export default {
784 785
       anticoagulants_confit: null,
785 786
       patient_diagnoses: [],
786 787
       // zuobiao_project:[],
788
+      befor:{},
789
+      LastCaseHistory:{}
787 790
     }
788 791
   },
789 792
 
@@ -1850,6 +1853,10 @@ export default {
1850 1853
           this.doctors = response.data.data.doctors
1851 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 1860
           for (let i = 0; i < this.doctors.length; i++) {
1854 1861
             if (this.doctors[i].user_type == 1) {
1855 1862
               this.doctors.splice(i, 1)