|
@ -4,23 +4,27 @@ |
|
|
<i class="el-icon-refresh refresh" @click="getSpecialItem"></i> |
|
|
<i class="el-icon-refresh refresh" @click="getSpecialItem"></i> |
|
|
<el-table |
|
|
<el-table |
|
|
:data="tableData" |
|
|
:data="tableData" |
|
|
|
|
|
v-loading="loading" |
|
|
@row-click="handleData" |
|
|
@row-click="handleData" |
|
|
style="width: 100%;margin-top: 16px" |
|
|
style="width: 100%;margin-top: 16px" |
|
|
> |
|
|
> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="examTime" |
|
|
prop="examTime" |
|
|
label="时间" |
|
|
label="时间" |
|
|
width="160" |
|
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
width="165" |
|
|
/> |
|
|
/> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="examineItem" |
|
|
prop="examineItem" |
|
|
label="检查项目" |
|
|
label="检查项目" |
|
|
width="180" |
|
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
width="195" |
|
|
/> |
|
|
/> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="name" |
|
|
prop="name" |
|
|
label="检查报告" |
|
|
label="检查报告" |
|
|
width="200" |
|
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
width="180" |
|
|
> |
|
|
> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-button type="text" size="small" @click.native.stop="handleRecord(scope.row)"> |
|
|
<el-button type="text" size="small" @click.native.stop="handleRecord(scope.row)"> |
|
@ -34,7 +38,7 @@ |
|
|
</el-table> |
|
|
</el-table> |
|
|
</div> |
|
|
</div> |
|
|
<div class="examineData"> |
|
|
<div class="examineData"> |
|
|
<i class="el-icon-refresh refresh-r" @click="getSpecialItem"></i> |
|
|
|
|
|
|
|
|
<i class="el-icon-refresh refresh-r" @click="getItemData"></i> |
|
|
<div style="display: flex;justify-content: space-between"> |
|
|
<div style="display: flex;justify-content: space-between"> |
|
|
<span style="font-size: 16px;font-weight: 500;color: rgba(0, 0, 0, 0.88);margin-top: 4px">提取数据</span> |
|
|
<span style="font-size: 16px;font-weight: 500;color: rgba(0, 0, 0, 0.88);margin-top: 4px">提取数据</span> |
|
|
<div v-if="!onlyRead" size="small" style="display:inline-block;margin-left:10px;width: 32px;height: 32px;line-height:32px;text-align:center;background-color: #1e79ff;border-radius: 4px;vertical-align: middle" @click="addDataList"> |
|
|
<div v-if="!onlyRead" size="small" style="display:inline-block;margin-left:10px;width: 32px;height: 32px;line-height:32px;text-align:center;background-color: #1e79ff;border-radius: 4px;vertical-align: middle" @click="addDataList"> |
|
@ -44,6 +48,7 @@ |
|
|
<el-table |
|
|
<el-table |
|
|
class="tableBox" |
|
|
class="tableBox" |
|
|
:data="extractData" |
|
|
:data="extractData" |
|
|
|
|
|
v-loading="loadingFlag" |
|
|
style="width: 100%;margin-top: 16px" |
|
|
style="width: 100%;margin-top: 16px" |
|
|
@selection-change="handleSelectionChange" |
|
|
@selection-change="handleSelectionChange" |
|
|
> |
|
|
> |
|
@ -114,6 +119,8 @@ export default { |
|
|
tableData: [], |
|
|
tableData: [], |
|
|
extractData: [], |
|
|
extractData: [], |
|
|
patientBaseData: {}, |
|
|
patientBaseData: {}, |
|
|
|
|
|
loading: false, |
|
|
|
|
|
loadingFlag: false, |
|
|
isActive: false |
|
|
isActive: false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -121,21 +128,22 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
|
|
|
|
|
|
this.getPatientData() |
|
|
this.getPatientData() |
|
|
this.getSpecialItem() |
|
|
this.getSpecialItem() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
// 获取特殊检查项 |
|
|
// 获取特殊检查项 |
|
|
async getSpecialItem() { |
|
|
async getSpecialItem() { |
|
|
|
|
|
this.loading = true |
|
|
const { data: res } = await this.$http.get('/patient/view/getExamineItem', { |
|
|
const { data: res } = await this.$http.get('/patient/view/getExamineItem', { |
|
|
params: { |
|
|
params: { |
|
|
// patientId: '2553716' |
|
|
|
|
|
patientId: '1693275' |
|
|
|
|
|
|
|
|
// patientId: '1693275' |
|
|
|
|
|
patientId: this.patientId |
|
|
// date: this.date |
|
|
// date: this.date |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if (res.code === 0) { |
|
|
if (res.code === 0) { |
|
|
|
|
|
this.loading = false |
|
|
this.tableData = res.data || [] |
|
|
this.tableData = res.data || [] |
|
|
if (res.data.length) { |
|
|
if (res.data.length) { |
|
|
this.examNo = res.data[0].examNo |
|
|
this.examNo = res.data[0].examNo |
|
@ -148,18 +156,18 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
async getItemData() { |
|
|
async getItemData() { |
|
|
|
|
|
this.loadingFlag = true |
|
|
const { data: res } = await this.$http.get('/patient/view/getExtractData', { |
|
|
const { data: res } = await this.$http.get('/patient/view/getExtractData', { |
|
|
params: { |
|
|
params: { |
|
|
examNo: this.examNo, |
|
|
examNo: this.examNo, |
|
|
// examNo: 'MZ17345997_0', |
|
|
|
|
|
examineItem: this.examineItem |
|
|
examineItem: this.examineItem |
|
|
// examineItem: '眼部B超' |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if (res.code === 0) { |
|
|
if (res.code === 0) { |
|
|
|
|
|
this.loadingFlag = false |
|
|
this.extractData = res.data || [] |
|
|
this.extractData = res.data || [] |
|
|
} else { |
|
|
} else { |
|
|
// this.$message.error(res.msg) |
|
|
|
|
|
|
|
|
this.loadingFlag = false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
handleSelectionChange(val) { |
|
|
handleSelectionChange(val) { |
|
@ -189,7 +197,6 @@ export default { |
|
|
this.getItemData() |
|
|
this.getItemData() |
|
|
}, |
|
|
}, |
|
|
handleRecord(item) { |
|
|
handleRecord(item) { |
|
|
console.log(item) |
|
|
|
|
|
const patientInfo = { |
|
|
const patientInfo = { |
|
|
examDate: item.examTime ? item.examTime.substring(0, 11) : '', |
|
|
examDate: item.examTime ? item.examTime.substring(0, 11) : '', |
|
|
itemCode: item.examineItem, |
|
|
itemCode: item.examineItem, |
|
@ -204,10 +211,6 @@ export default { |
|
|
}) |
|
|
}) |
|
|
window.open(href, '_blank') |
|
|
window.open(href, '_blank') |
|
|
}, |
|
|
}, |
|
|
// 查看报告 |
|
|
|
|
|
// handleRecord() { |
|
|
|
|
|
// this.isActive = true |
|
|
|
|
|
// }, |
|
|
|
|
|
// 关闭360弹框 |
|
|
// 关闭360弹框 |
|
|
closePacs() { |
|
|
closePacs() { |
|
|
this.isActive = false |
|
|
this.isActive = false |
|
@ -234,7 +237,7 @@ export default { |
|
|
|
|
|
|
|
|
.refresh{ |
|
|
.refresh{ |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
right: 20px; |
|
|
|
|
|
|
|
|
right: 18px; |
|
|
top: 35px; |
|
|
top: 35px; |
|
|
z-index: 999; |
|
|
z-index: 999; |
|
|
cursor: pointer; |
|
|
cursor: pointer; |
|
|