|
@@ -51,10 +51,10 @@
|
51
|
51
|
<el-button size="small" @click="open(5)" type="primary">存模板</el-button>
|
52
|
52
|
</div>
|
53
|
53
|
<div class="mainCell fixedCell" style="float:right" v-if="titleType == '病历'">
|
54
|
|
- <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
|
55
|
|
- <el-button size="small" @click="open(2)" type="primary">打印</el-button>
|
56
|
|
- <el-button size="small" @click="open(3)" type="primary">病历调用</el-button>
|
57
|
|
- <el-button size="small" @click="open(4)" type="primary">存模板</el-button>
|
|
54
|
+ <el-button size="small" @click="opentwo(1)" type="primary" style="margin-left:10px;">保存</el-button>
|
|
55
|
+ <el-button size="small" @click="opentwo(2)" type="primary">打印</el-button>
|
|
56
|
+ <el-button size="small" @click="opentwo(3)" type="primary">病历调用</el-button>
|
|
57
|
+ <el-button size="small" @click="opentwo(4)" type="primary">存模板</el-button>
|
58
|
58
|
</div>
|
59
|
59
|
</div>
|
60
|
60
|
<!--<desk-prescription ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"-->
|
|
@@ -65,6 +65,8 @@
|
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
|
67
|
:hisPatientInfo="hisPatientInfo" v-if="titleType == '病历'"></desk-record>
|
|
68
|
+ <medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord>
|
|
69
|
+ <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
|
68
|
70
|
</div>
|
69
|
71
|
|
70
|
72
|
</div>
|
|
@@ -75,16 +77,19 @@
|
75
|
77
|
import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
76
|
78
|
import deskPrescription from './components/deskPrescription'
|
77
|
79
|
import deskRecord from './components/deskRecord'
|
78
|
|
- import { getPatientInfo, getSchedulePatientList } from '@/api/his/his'
|
|
80
|
+ import { getPatientInfo, getSchedulePatientList,createCaseHistory } from '@/api/his/his'
|
79
|
81
|
import { getDictionaryDataConfig } from '@/utils/data'
|
80
|
|
-
|
|
82
|
+ import medicalRecord from './components/medicalRecord'
|
|
83
|
+ import saveRecordTemplate from './components/saveRecordTemplate'
|
81
|
84
|
import { uParseTime } from '@/utils/tools'
|
82
|
85
|
|
83
|
86
|
export default {
|
84
|
87
|
components: {
|
85
|
88
|
BreadCrumb,
|
86
|
89
|
deskPrescription,
|
87
|
|
- deskRecord
|
|
90
|
+ deskRecord,
|
|
91
|
+ medicalRecord,
|
|
92
|
+ saveRecordTemplate
|
88
|
93
|
},
|
89
|
94
|
data() {
|
90
|
95
|
return {
|
|
@@ -299,13 +304,71 @@
|
299
|
304
|
// psn_name:"杨美英",
|
300
|
305
|
// age:60.7
|
301
|
306
|
// }
|
302
|
|
- }
|
|
307
|
+ },
|
|
308
|
+ opentwo(index) {
|
|
309
|
+ console.log("index",index)
|
|
310
|
+ if (index == 1) {
|
|
311
|
+ if(this.patientInfo.id == undefined){
|
|
312
|
+ this.$message.error("请先选择病人")
|
|
313
|
+ return
|
|
314
|
+ }
|
|
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
|
+ })
|
|
356
|
+ } else if (index == 2) {
|
|
357
|
+ this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date)
|
|
358
|
+ } else if (index == 3) {
|
|
359
|
+ this.$refs.medicalRecord.show()
|
|
360
|
+ } else if (index == 4) {
|
|
361
|
+ this.$refs.saveRecordTemplate.show(this.case_history)
|
|
362
|
+ }
|
|
363
|
+
|
|
364
|
+ },
|
303
|
365
|
// changePatient(val){
|
304
|
366
|
// console.log("患者val",val)
|
305
|
367
|
// this.hisPatientInfo = val.hisPatientInfo
|
306
|
368
|
// console.log("333333",this.hisPatientInfo)
|
307
|
369
|
// }
|
308
|
|
- }, created() {
|
|
370
|
+ },
|
|
371
|
+ created() {
|
309
|
372
|
var nowDate = new Date()
|
310
|
373
|
var nowYear = nowDate.getFullYear()
|
311
|
374
|
var nowMonth = nowDate.getMonth() + 1
|