|
@@ -49,7 +49,7 @@
|
49
|
49
|
<div v-if='add_index == 0'>
|
50
|
50
|
<el-button type="primary" size="small" @click="showEdit">修改</el-button>
|
51
|
51
|
<el-button size="small" type="danger" @click="deleteAction">删除</el-button>
|
52
|
|
- <el-button type="primary" size="small" @click="prints">打印</el-button>
|
|
52
|
+ <el-button type="primary" size="small" @click="printOne">打印</el-button>
|
53
|
53
|
</div>
|
54
|
54
|
<div v-if="add_index == 1">
|
55
|
55
|
<el-button type="primary" size="small" @click="createAction">保存</el-button>
|
|
@@ -408,6 +408,7 @@ export default {
|
408
|
408
|
wayOptions: null,
|
409
|
409
|
patientVascularAccessOne:{},
|
410
|
410
|
orgname:'',
|
|
411
|
+ ids:[]
|
411
|
412
|
}
|
412
|
413
|
},
|
413
|
414
|
created() {
|
|
@@ -461,6 +462,13 @@ export default {
|
461
|
462
|
|
462
|
463
|
},
|
463
|
464
|
methods: {
|
|
465
|
+ printOne(){
|
|
466
|
+ if(this.ids.length == 0){
|
|
467
|
+ this.$message.error('请选择要打印的病程')
|
|
468
|
+ return
|
|
469
|
+ }
|
|
470
|
+ this.$router.push({ path: "/sickhistory/print?ids="+this.ids+"&patient_id="+this.patient_id});
|
|
471
|
+ },
|
464
|
472
|
template_dele(){
|
465
|
473
|
console.log("hahhahahah",this.template_id)
|
466
|
474
|
deleteSickHistoryTempalte(this.template_id).then(response=>{
|
|
@@ -947,7 +955,9 @@ export default {
|
947
|
955
|
|
948
|
956
|
},
|
949
|
957
|
getCurrentChange(val){
|
950
|
|
- console.log("val--------------",val)
|
|
958
|
+
|
|
959
|
+ this.ids = []
|
|
960
|
+ this.ids.push(val.id)
|
951
|
961
|
this.$refs.editor.contents = val.content
|
952
|
962
|
this.record_time = this.getTime(val.record_time)
|
953
|
963
|
this.id = val.id
|