Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN 4 years ago
parent
commit
61f2862e96

+ 2 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -69,9 +69,9 @@
69 69
         <desk-prescription  :addtions_charge="addtions_charge" :diagnoses="diagnoses" :other_sick="other_sick" :record_date="record_date"
70 70
                           ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
71 71
                           :hisPatientInfo="hisPatientInfo" @event1="changetwo($event)"
72
-                          v-show="titleType == '电子处方'" style="flex:1;"></desk-prescription>
72
+                          v-if="titleType == '电子处方'" style="flex:1;"></desk-prescription>
73 73
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
74
-                    :hisPatientInfo="hisPatientInfo"   v-show="titleType == '电子病历'" :detalid="detalid" ref="child"></desk-record>
74
+                    :hisPatientInfo="hisPatientInfo"   v-if="titleType == '电子病历'" :detalid="detalid" ref="child"></desk-record>
75 75
 
76 76
         <medicalRecord ref='medicalRecord' @func="getMsgFormSon" ></medicalRecord>
77 77
         <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>

+ 10 - 11
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue View File

@@ -42,12 +42,12 @@
42 42
         <div class="printTitle">病历内容</div>
43 43
         <div class="recordTitle">
44 44
             <div>科别:{{hispatient.departments?hispatient.departments:''}}</div>
45
-            <div>姓名:{{hispatient.name?hispatient.name:''}}</div>
45
+            <div>姓名:{{patient.name?patient.name:''}}</div>
46 46
             <div>性别:
47
-                <span v-if="hispatient.gender == 1">男</span>
48
-                <span v-if="hispatient.gender == 2">女</span>
47
+                <span v-if="patient.gender == 1">男</span>
48
+                <span v-if="patient.gender == 2">女</span>
49 49
             </div>
50
-            <div>年龄:{{hispatient.age?hispatient.age:''}}岁</div>
50
+            <div>年龄:{{patient.age?patient.age:''}}岁</div>
51 51
         </div>
52 52
         <div class="otherInfo">
53 53
             <div class="otherName">主诉:</div>
@@ -100,19 +100,18 @@ export default {
100 100
       hispatient:Object,
101 101
       history:Object,
102 102
     },
103
-    return:{
104
-      educationOptions:[]
105
-    },
106 103
     data(){
107
-
104
+        return{
105
+            educationOptions:[]
106
+        }                   
108 107
     },
109 108
     methods:{
110 109
       getProfession(id){
111 110
         var name = ""
112 111
         for(let i=0;i<this.educationOptions.length;i++){
113
-           if(id == this.educationOptions[i].id){
114
-              name = this.educationOptions[i].name
115
-           }
112
+            if(id == this.educationOptions[i].id){
113
+                name = this.educationOptions[i].name
114
+            }
116 115
         }
117 116
         return name
118 117
       },