浏览代码

HIS 系统提交

XMLWAN 4 年前
父节点
当前提交
df05b05837

+ 8 - 0
src/xt_pages/outpatientDoctorStation/components/additionalCharges.vue 查看文件

@@ -28,6 +28,9 @@
28 28
 <script>
29 29
  import { saveCharges } from "@/api/project/project"
30 30
 export default {
31
+    props:{
32
+     paitent_id:Number,   
33
+    },
31 34
     data(){
32 35
         return{
33 36
             visible:false,
@@ -79,6 +82,11 @@ export default {
79 82
              }
80 83
           })      
81 84
         }
85
+    },
86
+    watch:{
87
+       paitent_id:function(val){
88
+         console.log("患者ID=====",val)  
89
+       }
82 90
     }
83 91
 }
84 92
 </script>

+ 8 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

@@ -200,7 +200,7 @@
200 200
         </template>
201 201
       </div>
202 202
     </div>
203
-    <additionalCharges ref='additionalCharges'></additionalCharges>
203
+    <additionalCharges ref='additionalCharges' :paitent_id="paitent_id"></additionalCharges>
204 204
     <select-template ref='selectTemplate'></select-template>
205 205
     <save-template ref='saveTemplate'></save-template>
206 206
   </div>
@@ -221,7 +221,7 @@
221 221
     props: {
222 222
       patientInfo: Object,
223 223
       hisPatientInfo: Object,
224
-      prescriptions: Array
224
+      prescriptions: Array,
225 225
     },
226 226
     components: {
227 227
       selectTemplate,
@@ -511,8 +511,12 @@
511 511
       this.getlist()
512 512
       //获取所以项目组套
513 513
       this.getAllProjectTeam()
514
-
515
-   
514
+    },
515
+    watch:{
516
+      hisPatientInfo:function(val){
517
+        console.log("333333333",this.hisPatientInfo)
518
+        deep:true
519
+      }
516 520
     }
517 521
   }
518 522
 </script>

+ 4 - 3
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

@@ -45,8 +45,8 @@
45 45
             <el-radio-button label="病历"></el-radio-button>
46 46
           </el-radio-group>
47 47
         </div>
48
-        <desk-prescription ref="prescriptions"  :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"
49
-                           v-if="titleType == '处方'" style="flex:1;"></desk-prescription>
48
+        <desk-prescription ref="prescriptions"   :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"
49
+                   v-if="titleType == '处方'" style="flex:1;"></desk-prescription>
50 50
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
51 51
                      :hisPatientInfo="hisPatientInfo" v-if="titleType == '病历'"></desk-record>
52 52
       </div>
@@ -216,7 +216,8 @@
216 216
       },
217 217
       changePatient(val){
218 218
         console.log("患者val",val)
219
-        this.patient_id = val.id
219
+        this.hisPatientInfo = val.his_patient
220
+        console.log("333333",this.hisPatientInfo)
220 221
       }
221 222
     }, created() {
222 223
       var nowDate = new Date()