|
@@ -64,8 +64,10 @@
|
64
|
64
|
:hisPatientInfo="hisPatientInfo"
|
65
|
65
|
v-if="titleType == '处方'" style="flex:1;"></desk-prescription>
|
66
|
66
|
<desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
|
67
|
|
- :hisPatientInfo="hisPatientInfo" v-if="titleType == '病历'"></desk-record>
|
68
|
|
- <medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord>
|
|
67
|
+ :hisPatientInfo="hisPatientInfo" v-if="titleType == '病历'" ref="child"></desk-record>
|
|
68
|
+
|
|
69
|
+ <!-- <medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord> -->
|
|
70
|
+ <medicalRecord ref='medicalRecord' ></medicalRecord>
|
69
|
71
|
<saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
|
70
|
72
|
</div>
|
71
|
73
|
|
|
@@ -306,53 +308,57 @@
|
306
|
308
|
// }
|
307
|
309
|
},
|
308
|
310
|
opentwo(index) {
|
309
|
|
- console.log("index",index)
|
|
311
|
+ console.log("index===",index)
|
310
|
312
|
if (index == 1) {
|
311
|
313
|
if(this.patientInfo.id == undefined){
|
312
|
314
|
this.$message.error("请先选择病人")
|
313
|
315
|
return
|
314
|
316
|
}
|
315
|
|
- if(this.case_history.is_infect == true){
|
316
|
|
- this.case_history.is_infect = 1
|
317
|
|
- }
|
318
|
|
- if(this.case_history.is_infect == false){
|
319
|
|
- this.case_history.is_infect = 2
|
320
|
|
- }
|
321
|
|
- let params = {
|
322
|
|
- "his_patient_id":this.hisPatientInfo.id,
|
323
|
|
- "delivery_way":this.delivery_way?"":0,
|
324
|
|
- "patient_id":this.patientInfo.id,
|
325
|
|
- "temperature":this.case_history.temperature,
|
326
|
|
- "blood_sugar":this.case_history.blood_sugar,
|
327
|
|
- "pulse":this.case_history.pulse,
|
328
|
|
- "sbp":this.case_history.sbp,
|
329
|
|
- "dbp":this.case_history.dbp,
|
330
|
|
- "blood_fat":this.case_history.blood_fat,
|
331
|
|
- "height":this.case_history.height,
|
332
|
|
- "sick_type":this.case_history.sick_type,
|
333
|
|
- "symptom":this.case_history.symptom,
|
334
|
|
- "sick_date":this.start_time,
|
335
|
|
- "is_infect":this.case_history.is_infect,
|
336
|
|
- "chief_conplaint":this.case_history.chief_conplaint,
|
337
|
|
- "history_of_present_illness":this.case_history.history_of_present_illness,
|
338
|
|
- "past_history":this.case_history.past_history,
|
339
|
|
- "personal_history":this.case_history.personal_history,
|
340
|
|
- "family_history":this.case_history.family_history,
|
341
|
|
- "record_date":this.record_date,
|
342
|
|
- "diagnostic":this.case_history.diagnostic,
|
343
|
|
- "breathing":this.case_history.breathing,
|
344
|
|
- "doctor_advice":this.doctor_advice,
|
345
|
|
- "remark":this.remark
|
346
|
|
- }
|
347
|
|
-
|
348
|
|
- createCaseHistory(params).then(response => {
|
349
|
|
- if (response.data.state == 0) {
|
350
|
|
- this.$message.error("患者病历已存在")
|
351
|
|
- return false
|
352
|
|
- } else {
|
353
|
|
- this.$message.success("保存成功")
|
354
|
|
- }
|
355
|
|
- })
|
|
317
|
+ this.$refs.child.createCaseHistory()
|
|
318
|
+ // if(this.case_history.is_infect == true){
|
|
319
|
+ // this.case_history.is_infect = 1
|
|
320
|
+ // }
|
|
321
|
+ // if(this.case_history.is_infect == false){
|
|
322
|
+ // this.case_history.is_infect = 2
|
|
323
|
+ // }
|
|
324
|
+ // let params = {
|
|
325
|
+ // "his_patient_id":this.hisPatientInfo.id,
|
|
326
|
+ // "delivery_way":this.delivery_way?"":0,
|
|
327
|
+ // "patient_id":this.patientInfo.id,
|
|
328
|
+ // "temperature":this.case_history.temperature,
|
|
329
|
+ // "blood_sugar":this.case_history.blood_sugar,
|
|
330
|
+ // "pulse":this.case_history.pulse,
|
|
331
|
+ // "sbp":this.case_history.sbp,
|
|
332
|
+ // "dbp":this.case_history.dbp,
|
|
333
|
+ // "blood_fat":this.case_history.blood_fat,
|
|
334
|
+ // "height":this.case_history.height,
|
|
335
|
+ // "sick_type":this.case_history.sick_type,
|
|
336
|
+ // "symptom":this.case_history.symptom,
|
|
337
|
+ // "sick_date":this.start_time,
|
|
338
|
+ // "is_infect":this.case_history.is_infect,
|
|
339
|
+ // "chief_conplaint":this.case_history.chief_conplaint,
|
|
340
|
+ // "history_of_present_illness":this.case_history.history_of_present_illness,
|
|
341
|
+ // "past_history":this.case_history.past_history,
|
|
342
|
+ // "personal_history":this.case_history.personal_history,
|
|
343
|
+ // "family_history":this.case_history.family_history,
|
|
344
|
+ // "record_date":this.record_date,
|
|
345
|
+ // "diagnostic":this.case_history.diagnostic,
|
|
346
|
+ // "breathing":this.case_history.breathing,
|
|
347
|
+ // // "doctor_advice":this.doctor_advice,
|
|
348
|
+ // // "remark":this.remark
|
|
349
|
+ // "doctor_advice":this.$ref.doctor_advice,
|
|
350
|
+ // // "remark":this.remark
|
|
351
|
+ // }
|
|
352
|
+ // console.log("params",params)
|
|
353
|
+ // return
|
|
354
|
+ // createCaseHistory(params).then(response => {
|
|
355
|
+ // if (response.data.state == 0) {
|
|
356
|
+ // this.$message.error("患者病历已存在")
|
|
357
|
+ // return false
|
|
358
|
+ // } else {
|
|
359
|
+ // this.$message.success("保存成功")
|
|
360
|
+ // }
|
|
361
|
+ // })
|
356
|
362
|
} else if (index == 2) {
|
357
|
363
|
this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date)
|
358
|
364
|
} else if (index == 3) {
|