export default { data() { return { } }, methods: { // 青光眼的数据获取不在crf/getFlowForm下的firstVisit中,需要单独调取此接口获取 getQgyCRFData() { this.$http.get('/view/out/patient/getVisitOutPatientForHis', { params: { patientIdNumber: this.patientIdNumber, patientId: this.patientId ? this.patientId : '', visitDate: this.realVisitTime ? this.realVisitTime : '', realVisitType: this.realVisitType ? this.realVisitType : '' } }) .then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } if (res.data) { setTimeout(() => { if (this.$refs.crfComponent) { const ifr = this.$refs.crfComponent.$el const ifrWin = ifr.contentWindow console.log(ifr.contentWindow) ifrWin.dataFill(res.data) } }, 800) } }).catch(() => { }) } } }