|
@@ -95,7 +95,7 @@
|
95
|
95
|
import print from "print-js";
|
96
|
96
|
// import Editor from '@/components/Editor'
|
97
|
97
|
import Editor from '@/components/Uedtior'
|
98
|
|
-import { getPatientDetailInformedconsent,savePatientCritaicalInformed } from '@/api/patient'
|
|
98
|
+import { getPatientDetailInformedconsent,savePatientDeathRecord } from '@/api/patient'
|
99
|
99
|
import { jsGetAge, uParseTime } from "@/utils/tools";
|
100
|
100
|
const content=`<p style="display: flex;margin-bottom: 5px;">
|
101
|
101
|
<span style="flex:1">讨论目期:</span>
|
|
@@ -123,8 +123,8 @@ export default{
|
123
|
123
|
props: {
|
124
|
124
|
patient_id: {
|
125
|
125
|
type: Number,
|
126
|
|
- },
|
127
|
|
- patientCritaicalInformedPrint:{
|
|
126
|
+ },
|
|
127
|
+ patientDeathPlan:{
|
128
|
128
|
type:Object,
|
129
|
129
|
}
|
130
|
130
|
},
|
|
@@ -138,6 +138,7 @@ export default{
|
138
|
138
|
dialogVisible:false,
|
139
|
139
|
content:content,
|
140
|
140
|
orgname:'',
|
|
141
|
+
|
141
|
142
|
}
|
142
|
143
|
},
|
143
|
144
|
methods:{
|
|
@@ -183,6 +184,7 @@ export default{
|
183
|
184
|
return age
|
184
|
185
|
},
|
185
|
186
|
show(val){
|
|
187
|
+ console.log("val--------------",val)
|
186
|
188
|
if(val!=null){
|
187
|
189
|
if(val.content!=""){
|
188
|
190
|
this.content = ""
|
|
@@ -192,28 +194,28 @@ export default{
|
192
|
194
|
},
|
193
|
195
|
bianji(){
|
194
|
196
|
this.dialogVisible=true
|
195
|
|
- this.$refs.editor.content = this.content
|
196
|
197
|
},
|
197
|
198
|
savePatientCritaicalInformed(){
|
198
|
|
- console.log('1111',this.$refs.editor.content);
|
199
|
|
- // var params = {
|
200
|
|
- // content:this.$refs.editor.content
|
201
|
|
- // }
|
202
|
|
- // savePatientCritaicalInformed(params).then(response=>{
|
203
|
|
- // if(response.data.state ==1){
|
204
|
|
- // var patientCritical = response.data.data.patientCritical
|
205
|
|
- // this.$message.success("保存成功!")
|
206
|
|
- // this.dialogVisible = false
|
207
|
|
- // this.$emit("getPatientCriticalList","");
|
208
|
|
- // }
|
209
|
|
- // })
|
|
199
|
+ console.log('1111',this.$refs);
|
|
200
|
+ var params = {
|
|
201
|
+ content:this.$refs.editor.contents,
|
|
202
|
+ }
|
|
203
|
+ savePatientDeathRecord(params).then(response=>{
|
|
204
|
+ if(response.data.state ==1){
|
|
205
|
+ var list = response.data.data.list
|
|
206
|
+ this.$message.success("保存成功!")
|
|
207
|
+ this.dialogVisible = false
|
|
208
|
+ this.$emit("getPatientDeathRecord","");
|
|
209
|
+ }
|
|
210
|
+ })
|
210
|
211
|
}
|
211
|
212
|
},
|
212
|
213
|
created(){
|
213
|
214
|
this.orgname = this.$store.getters.xt_user.org.org_name;
|
214
|
|
- if(this.patientCritaicalInformedPrint!=null && this.patientCritaicalInformedPrint.id >0){
|
|
215
|
+ console.log("patientDeathPlan-------------",this.patientDeathPlan)
|
|
216
|
+ if(this.patientDeathPlan!=null && this.patientDeathPlan.id >0){
|
215
|
217
|
this.content = ""
|
216
|
|
- this.content = this.patientCritaicalInformedPrint.content
|
|
218
|
+ this.content = this.patientDeathPlan.content
|
217
|
219
|
}
|
218
|
220
|
this.getlist()
|
219
|
221
|
}
|