|
@@ -45,10 +45,10 @@
|
45
|
45
|
<el-radio-button label="病历"></el-radio-button>
|
46
|
46
|
</el-radio-group>
|
47
|
47
|
<div class="mainCell fixedCell" style="float:right" v-if="titleType == '处方'">
|
48
|
|
- <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
|
49
|
|
- <el-button size="small" @click="open(2)" type="primary">打印</el-button>
|
50
|
|
- <el-button size="small" @click="open(4)" type="primary">选择模板</el-button>
|
51
|
|
- <el-button size="small" @click="open(5)" type="primary">存模板</el-button>
|
|
48
|
+ <el-button size="small" ref="button_one" @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
|
|
49
|
+ <el-button size="small" ref="button_two" @click="open(2)" type="primary">打印</el-button>
|
|
50
|
+ <el-button size="small" ref="button_three" @click="open(4)" type="primary">选择模板</el-button>
|
|
51
|
+ <el-button size="small" ref="button_four" @click="open(5)" type="primary">存模板</el-button>
|
52
|
52
|
</div>
|
53
|
53
|
<div class="mainCell fixedCell" style="float:right" v-if="titleType == '病历'">
|
54
|
54
|
<el-button size="small" @click="opentwo(1)" type="primary" style="margin-left:10px;">保存</el-button>
|
|
@@ -62,9 +62,9 @@
|
62
|
62
|
<desk-prescription :diagnoses="diagnoses" :other_sick="other_sick" :record_date="record_date"
|
63
|
63
|
ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
|
64
|
64
|
:hisPatientInfo="hisPatientInfo"
|
65
|
|
- v-if="titleType == '处方'" style="flex:1;"></desk-prescription>
|
|
65
|
+ v-show="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>
|
|
67
|
+ :hisPatientInfo="hisPatientInfo" v-show="titleType == '病历'"></desk-record>
|
68
|
68
|
<medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord>
|
69
|
69
|
<saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
|
70
|
70
|
</div>
|
|
@@ -180,7 +180,6 @@
|
180
|
180
|
this.$message.error(response.data.msg)
|
181
|
181
|
return false
|
182
|
182
|
} else {
|
183
|
|
- console.log("999888811111")
|
184
|
183
|
|
185
|
184
|
this.prescriptions = []
|
186
|
185
|
// this.$refs.prescriptions.clearData()
|
|
@@ -276,7 +275,8 @@
|
276
|
275
|
id: prescription.id,
|
277
|
276
|
name: '处方' + index,
|
278
|
277
|
advices: tempAdvice,
|
279
|
|
- project: tempProject
|
|
278
|
+ project: tempProject,
|
|
279
|
+ orderStatus:prescription.order_status
|
280
|
280
|
}
|
281
|
281
|
this.prescriptions.push(obj)
|
282
|
282
|
}
|
|
@@ -285,10 +285,12 @@
|
285
|
285
|
id:0,
|
286
|
286
|
name: '处方' + 1,
|
287
|
287
|
advices: [],
|
288
|
|
- project: []
|
|
288
|
+ project: [],
|
|
289
|
+ orderStatus:0,
|
289
|
290
|
}
|
290
|
291
|
this.prescriptions.push(obj)
|
291
|
292
|
}
|
|
293
|
+ console.log(this.prescriptions)
|
292
|
294
|
|
293
|
295
|
this.$refs.prescriptions.setData(this.prescriptions,this.info)
|
294
|
296
|
}
|
|
@@ -304,7 +306,18 @@
|
304
|
306
|
// psn_name:"杨美英",
|
305
|
307
|
// age:60.7
|
306
|
308
|
// }
|
|
309
|
+ },open(index) {
|
|
310
|
+ if (index == 1) {
|
|
311
|
+ this.$refs.prescriptions.open(1)
|
|
312
|
+ } else if (index == 2) {
|
|
313
|
+ this.$refs.prescriptions.open(2)
|
|
314
|
+ } else if (index == 3) {
|
|
315
|
+ this.$refs.prescriptions.open(3)
|
|
316
|
+ } else if (index == 4) {
|
|
317
|
+ this.$refs.prescriptions.open(4)
|
|
318
|
+ }
|
307
|
319
|
},
|
|
320
|
+
|
308
|
321
|
opentwo(index) {
|
309
|
322
|
console.log("index",index)
|
310
|
323
|
if (index == 1) {
|
|
@@ -344,7 +357,7 @@
|
344
|
357
|
"doctor_advice":this.doctor_advice,
|
345
|
358
|
"remark":this.remark
|
346
|
359
|
}
|
347
|
|
-
|
|
360
|
+
|
348
|
361
|
createCaseHistory(params).then(response => {
|
349
|
362
|
if (response.data.state == 0) {
|
350
|
363
|
this.$message.error("患者病历已存在")
|
|
@@ -367,7 +380,7 @@
|
367
|
380
|
// this.hisPatientInfo = val.hisPatientInfo
|
368
|
381
|
// console.log("333333",this.hisPatientInfo)
|
369
|
382
|
// }
|
370
|
|
- },
|
|
383
|
+ },
|
371
|
384
|
created() {
|
372
|
385
|
var nowDate = new Date()
|
373
|
386
|
var nowYear = nowDate.getFullYear()
|