|
|
@ -330,7 +330,8 @@ export default { |
|
|
|
// 切换病史总览时间轴 |
|
|
|
tabClick(type) { |
|
|
|
this.timeAxisType = type.name |
|
|
|
this.timeAxisNodeInfo = [] |
|
|
|
if (this.timeAxisType === '病史总览' || this.timeAxisType === '门诊病历' || this.timeAxisType === '常规检查' || this.timeAxisType === '特殊检查' || this.timeAxisType === '视光档案' || this.timeAxisType === '随访记录') return |
|
|
|
this.searchAxisData() |
|
|
|
}, |
|
|
|
selectType(type) { |
|
|
|
this.dataType = type |
|
|
@ -347,9 +348,7 @@ export default { |
|
|
|
eventBus.$off('sendForData') |
|
|
|
eventBus.$on('sendForData', data => { |
|
|
|
const arr = this.foreList.concat(data) |
|
|
|
// const id = 'id' |
|
|
|
this.foreList = this.unique(arr) |
|
|
|
// this.foreList = arr.reduce((all, next) => all.some((item) => item[id] == next[id]) ? all : [...all, next], []) |
|
|
|
this.openDataDrink() |
|
|
|
}) |
|
|
|
}, |
|
|
@ -409,8 +408,8 @@ export default { |
|
|
|
// 360浏览器 |
|
|
|
handlePacs() { |
|
|
|
// const baseUrl = 'http://z1.huimucloud.com:8085' |
|
|
|
// const baseUrl = 'http://10.80.5.32:8026' |
|
|
|
const baseUrl = 'http://192.168.0.85:8001' |
|
|
|
const baseUrl = 'http://10.80.5.32:8026' |
|
|
|
// const baseUrl = 'http://192.168.0.85:8001' |
|
|
|
const href = `${baseUrl}/EXAMINE_Report/InterFace?PatID=${this.patientId}&DoctorID=${this.employeeId}&PatIdKey=&ExamNo=` |
|
|
|
window.open(href, '_blank') |
|
|
|
// const { href } = this.$router.resolve({ |
|
|
@ -466,13 +465,11 @@ export default { |
|
|
|
this.$message.error(res.msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 获取时间轴节点信息--点击左侧时间轴获取患者具体信息 |
|
|
|
async getTimeAxisNodeInfo(item) { |
|
|
|
this.timeAxisType = item.groupName |
|
|
|
async searchAxisData() { |
|
|
|
const { data: res } = await this.$http.get('/patient/view/getTimeAxisNodeInfo', { |
|
|
|
params: { |
|
|
|
date: item.opDate, |
|
|
|
groupName: item.groupName, |
|
|
|
date: this.date, |
|
|
|
groupName: this.timeAxisType, |
|
|
|
patientId: this.patientId || this.$route.query.patientId |
|
|
|
} |
|
|
|
}) |
|
|
@ -481,6 +478,16 @@ export default { |
|
|
|
} else { |
|
|
|
this.$message.error(res.msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 获取时间轴节点信息--点击左侧时间轴获取患者具体信息 |
|
|
|
async getTimeAxisNodeInfo(item) { |
|
|
|
this.date = item.opDate |
|
|
|
if (item.groupName === '特检') { |
|
|
|
this.timeAxisType = '特殊检查' |
|
|
|
} else { |
|
|
|
this.timeAxisType = item.groupName |
|
|
|
} |
|
|
|
await this.searchAxisData() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|