You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

36 lines
1.4 KiB

export default {
data() {
return {
}
},
methods: {
// 智能填充
getFirstFeedbackData(title, id, patientId) {
console.log(this.dataForm)
this.$http.get('/hz_quguang/from/data/getFirstFeedbackData', {
params: {
formName: this.dataForm.formName,
patientIdNumber: this.dataForm.patientIdNumber,
patientId: patientId,
formId: id,
operaId: this.dataForm.operaId ? this.dataForm.operaId : ''
}
}).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
if (res.data && title === 'H5') {
if (this.dataForm.formName === '谈话记录' || this.dataForm.formName === '告知书' || this.dataForm.formName === '基因检测同意书') {
this.dataForm.isWrite === 0 ? (this.patientInifoH5 = res.data, this.H5FormList = {}) : ''
} else if (this.dataForm.formName === '眼科病史问卷调查' || this.dataForm.formName === '屈光手术心理评估表') {
console.log(res.data)
this.H5FormList = res.data
} else {
this.H5FormList = Array.isArray(res.data) ? res.data : res.data.data
this.dataForm.formName.includes('手术护理记录单') ? (this.$refs.operationNursingRecordRef.getLife(1), this.$refs.operationNursingRecordRef.getLife(2)) : ''
}
}
}).catch(() => { })
}
}
}