|
@@ -81,7 +81,7 @@
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
prop="orderName"
|
|
|
- label="检验名称"
|
|
|
+ :label="reportCategory === 'JY' ? '检验名称' : '检查名称'"
|
|
|
width="170"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
@@ -114,7 +114,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="reportCategory === 'JC'">
|
|
|
- <div v-if="jcbg.reportUrl">
|
|
|
+ <div v-if="jcbg.reportUrlllllllllllllll">
|
|
|
<el-image :src="jcbg.reportUrl"></el-image>
|
|
|
</div>
|
|
|
<div v-else>
|
|
@@ -130,25 +130,25 @@
|
|
|
{{ env.VITE_HOSPITAL_NAME }}检查报告单
|
|
|
</h3>
|
|
|
<div style="display: flex">
|
|
|
- <div style="width: 32%">姓名:{{ jcbg.patientName }}</div>
|
|
|
+ <div style="width: 32%">姓名:{{ base.pname }}</div>
|
|
|
<div style="width: 32%">
|
|
|
{{ ptntType }}:
|
|
|
- {{ jcbg.patNo }}
|
|
|
+ {{ base.patientId }}
|
|
|
</div>
|
|
|
<div style="width: 32%">
|
|
|
- <div>申请项目:{{ jcbg.examPurpose.substring(0, 13) }}</div>
|
|
|
- <div>{{ jcbg.examPurpose.substring(13) }}</div>
|
|
|
+ <div>申请项目:{{ jcbg.orderName }}</div>
|
|
|
+<!-- <div>{{ jcbg.examPurpose }}</div>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="display: flex">
|
|
|
- <div style="width: 32%">医生姓名:{{ jcbg.doctorName }}</div>
|
|
|
- <div style="width: 32%">检查时间:{{ jcbg.reportTime }}</div>
|
|
|
- <div style="width: 32%">报告时间:{{ jcbg.trscDate }}</div>
|
|
|
+ <div style="width: 32%">医生姓名:{{ base.doctorName }}</div>
|
|
|
+ <div style="width: 32%">检查时间:{{ base.chargeDate }}</div>
|
|
|
+ <div style="width: 32%">报告时间:{{ base.transDt }}</div>
|
|
|
</div>
|
|
|
<el-divider content-position="left">检查所见</el-divider>
|
|
|
<div v-html="jcbg.examinationSee"></div>
|
|
|
<el-divider content-position="left">检查结论</el-divider>
|
|
|
- <div v-html="jcbg.examinationreSult"></div>
|
|
|
+ <div v-html="jcbg.examinationResult"></div>
|
|
|
<div v-if="jcbg.reportUrl" style="margin-top: 30px">
|
|
|
<el-button type="primary" size="large" link @click="showJcImage"
|
|
|
>查看图像</el-button
|
|
@@ -171,8 +171,8 @@ import {
|
|
|
checkExamDetail,
|
|
|
checkIndexByCategory,
|
|
|
checkTestDetail,
|
|
|
- getMzJyReqByPatientId,
|
|
|
- getMzJyReqDetail,
|
|
|
+ getMzYjReqByPatientId,
|
|
|
+ getCheckData,
|
|
|
getLabRpt
|
|
|
} from "@/api/inspections";
|
|
|
import router from "@/router";
|
|
@@ -250,14 +250,18 @@ const queryIndex = () => {
|
|
|
/*checkIndexByCategory(params).then(res => {
|
|
|
inspectionIndex.value = res;
|
|
|
});*/
|
|
|
- getMzJyReqByPatientId(patNo.value).then(res => {
|
|
|
+ let reqType = reportCategory.value === "JC" ? '3' : '2';
|
|
|
+ getMzYjReqByPatientId(patNo.value, reqType).then(res => {
|
|
|
inspectionIndex.value = res;
|
|
|
});
|
|
|
};
|
|
|
|
|
|
const blxdUrl = ref("");
|
|
|
-
|
|
|
+const jcbg = ref({
|
|
|
+});
|
|
|
+const base = ref({})
|
|
|
function beforeQueryDetail(row) {
|
|
|
+ base.value = row;
|
|
|
if (reportCategory.value === "JY") {
|
|
|
queryJyDetail(row, true);
|
|
|
} else if (reportCategory.value === "JC") {
|
|
@@ -267,25 +271,25 @@ function beforeQueryDetail(row) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-const jcbg = ref({
|
|
|
- examPurpose: "",
|
|
|
-});
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
function queryJcDetail(row) {
|
|
|
- checkTestDetail({
|
|
|
- reportId: row.patientUid,
|
|
|
- }).then(res => {
|
|
|
- jcbg.value = res;
|
|
|
- });
|
|
|
+ if(row.reportId) {
|
|
|
+ getCheckData(row.reportId).then(res => {
|
|
|
+ jcbg.value = res;
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ ElMessage({
|
|
|
+ message: "当前检查还未生成报告",
|
|
|
+ type: "warning",
|
|
|
+ duration: 2000,
|
|
|
+ showClose: true,
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const queryJyDetail = (row, clear) => {
|
|
|
if (clear) {
|
|
|
jyDataList.value = [];
|
|
|
}
|
|
|
- console.log("row", row)
|
|
|
return new Promise((resolve, reject) => {
|
|
|
getLabRpt(row.reportId, row.patientId).then(res => {
|
|
|
const halfBacSize = res ? Math.ceil(res.length / 2) : 1;
|
|
@@ -296,7 +300,6 @@ const queryJyDetail = (row, clear) => {
|
|
|
halfBacSize: halfBacSize
|
|
|
}
|
|
|
jyDataList.value.push(jyData);
|
|
|
- console.log("jyData.value=", jyData.value)
|
|
|
});
|
|
|
/*checkExamDetail({
|
|
|
reportId: row.reportId,
|
|
@@ -433,7 +436,7 @@ const reportTypes = [
|
|
|
label: "检查报告",
|
|
|
value: "JC",
|
|
|
},
|
|
|
- {
|
|
|
+ /*{
|
|
|
label: "病理报告",
|
|
|
value: "BL",
|
|
|
},
|
|
@@ -441,7 +444,7 @@ const reportTypes = [
|
|
|
{
|
|
|
label: "心电报告",
|
|
|
value: "XD",
|
|
|
- },
|
|
|
+ },*/
|
|
|
],
|
|
|
},
|
|
|
];
|