Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/hir-web into main
commit
c2f5c2238f
|
@ -160,3 +160,13 @@ export function getSubjectProgress_Export(param) {
|
||||||
data: param
|
data: param
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 下载阅片报告
|
||||||
|
export function downLoadReadReport(data) {
|
||||||
|
return requestDownload({
|
||||||
|
url: `/ReadingImageTask/downLoadReadReport`,
|
||||||
|
method: 'post',
|
||||||
|
responseType: 'blob',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
@ -1,40 +0,0 @@
|
||||||
<template>
|
|
||||||
<el-dialog
|
|
||||||
:visible.sync="visible"
|
|
||||||
:title="fileData.name"
|
|
||||||
:fullscreen="true"
|
|
||||||
append-to-body
|
|
||||||
custom-class="base-dialog-wrapper"
|
|
||||||
>
|
|
||||||
<div class="base-modal-body" style="border: 2px solid #ccc; padding: 10px">
|
|
||||||
<PreviewFile
|
|
||||||
v-if="visible"
|
|
||||||
:file-path="fileData.path"
|
|
||||||
:file-type="fileData.name"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</el-dialog>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
import PreviewFile from "@/components/PreviewFile/index";
|
|
||||||
export default {
|
|
||||||
name: "PreviewFileDialog",
|
|
||||||
components: { PreviewFile },
|
|
||||||
props: {
|
|
||||||
fileData: {
|
|
||||||
required: true,
|
|
||||||
type: Object,
|
|
||||||
default: () => {
|
|
||||||
return {};
|
|
||||||
},
|
|
||||||
},
|
|
||||||
visible: {
|
|
||||||
required: true,
|
|
||||||
type: Boolean,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
</style>
|
|
|
@ -219,7 +219,6 @@
|
||||||
hasPermi(['trials:trials-panel:hirVisit:edit']) ||
|
hasPermi(['trials:trials-panel:hirVisit:edit']) ||
|
||||||
hasPermi(['trials:trials-panel:hirVisit:submit']) ||
|
hasPermi(['trials:trials-panel:hirVisit:submit']) ||
|
||||||
hasPermi(['trials:trials-panel:hirVisit:remove']) ||
|
hasPermi(['trials:trials-panel:hirVisit:remove']) ||
|
||||||
hasPermi(['trials:trials-panel:hirVisit:result']) ||
|
|
||||||
hasPermi(['trials:trials-panel:hirVisit:downlaod'])
|
hasPermi(['trials:trials-panel:hirVisit:downlaod'])
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
|
@ -254,53 +253,15 @@
|
||||||
:disabled="Number(scope.row.SubmitState) > 0"
|
:disabled="Number(scope.row.SubmitState) > 0"
|
||||||
:title="$t('common:button:delete')"
|
:title="$t('common:button:delete')"
|
||||||
/>
|
/>
|
||||||
<el-dropdown
|
<!--下载报告-->
|
||||||
style="margin-left: 10px"
|
<el-button
|
||||||
v-if="
|
v-hasPermi="['trials:trials-panel:hirVisit:download']"
|
||||||
hasPermi(['trials:trials-panel:hirVisit:result']) ||
|
circle
|
||||||
hasPermi(['trials:trials-panel:hirVisit:downlaod'])
|
icon="el-icon-download"
|
||||||
"
|
:disabled="Number(scope.row.SubmitState) !== 2"
|
||||||
@command="(command) => handleCommand(command, scope.row)"
|
:title="$t('trials:reading:button:download')"
|
||||||
>
|
@click="downloadImage(scope.row)"
|
||||||
<el-button
|
/>
|
||||||
class="el-dropdown-link"
|
|
||||||
circle
|
|
||||||
icon="el-icon-more"
|
|
||||||
:title="$t('common:action:action')"
|
|
||||||
>
|
|
||||||
</el-button>
|
|
||||||
<el-dropdown-menu slot="dropdown">
|
|
||||||
<!--影像数据-->
|
|
||||||
<!-- <el-dropdown-item
|
|
||||||
v-hasPermi="['trials:trials-panel:hirVisit:result']"
|
|
||||||
disabled
|
|
||||||
command="result"
|
|
||||||
>{{
|
|
||||||
$t("trials:trials-panel:hirVisit:ImageData")
|
|
||||||
}}</el-dropdown-item
|
|
||||||
> -->
|
|
||||||
<!--评估报告disabled-->
|
|
||||||
<el-dropdown-item
|
|
||||||
v-hasPermi="['trials:trials-panel:hirVisit:result']"
|
|
||||||
command="showReport"
|
|
||||||
>{{
|
|
||||||
$t("trials:trials-panel:hirVisit:EvaluationReport")
|
|
||||||
}}</el-dropdown-item
|
|
||||||
>
|
|
||||||
<!--数据导出-->
|
|
||||||
<el-dropdown-item
|
|
||||||
v-hasPermi="['trials:trials-panel:hirVisit:download']"
|
|
||||||
command="downloadImage"
|
|
||||||
:disabled="
|
|
||||||
Number(scope.row.SubmitState) === 0 ||
|
|
||||||
!scope.row.VisitLatestStudyTime
|
|
||||||
"
|
|
||||||
>{{
|
|
||||||
$t("trials:reading:button:uploadImages")
|
|
||||||
}}</el-dropdown-item
|
|
||||||
>
|
|
||||||
</el-dropdown-menu>
|
|
||||||
</el-dropdown>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -327,11 +288,6 @@
|
||||||
:visible.sync="visitVisible"
|
:visible.sync="visitVisible"
|
||||||
:rowData="rowData"
|
:rowData="rowData"
|
||||||
/>
|
/>
|
||||||
<!--评估报告-->
|
|
||||||
<PreviewFileDialog
|
|
||||||
:visible.sync="previewFileVisible"
|
|
||||||
:fileData="fileData"
|
|
||||||
/>
|
|
||||||
</BaseContainer>
|
</BaseContainer>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -339,7 +295,6 @@ import BaseContainer from "@/components/BaseContainer";
|
||||||
import Pagination from "@/components/Pagination";
|
import Pagination from "@/components/Pagination";
|
||||||
import editStudyList from "./components/edit-study-list.vue";
|
import editStudyList from "./components/edit-study-list.vue";
|
||||||
import visitInfo from "./components/visit-info.vue";
|
import visitInfo from "./components/visit-info.vue";
|
||||||
import PreviewFileDialog from "@/components/PreviewFileDialog/PreviewFileDialog.vue";
|
|
||||||
import { deleteSubjectVisit } from "@/api/trials";
|
import { deleteSubjectVisit } from "@/api/trials";
|
||||||
import { getPatientSubejctVisitList } from "@/api/trials/visit.js";
|
import { getPatientSubejctVisitList } from "@/api/trials/visit.js";
|
||||||
import { submitVisitStudyBinding } from "@/api/inspection.js";
|
import { submitVisitStudyBinding } from "@/api/inspection.js";
|
||||||
|
@ -368,7 +323,6 @@ export default {
|
||||||
Pagination,
|
Pagination,
|
||||||
editStudyList,
|
editStudyList,
|
||||||
visitInfo,
|
visitInfo,
|
||||||
PreviewFileDialog,
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -386,19 +340,12 @@ export default {
|
||||||
// 访视详情
|
// 访视详情
|
||||||
visitVisible: false,
|
visitVisible: false,
|
||||||
rowData: {},
|
rowData: {},
|
||||||
// 评估报告
|
|
||||||
previewFileVisible: false,
|
|
||||||
fileData: {},
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 下拉菜单操作
|
|
||||||
handleCommand(command, item) {
|
|
||||||
this[command](item);
|
|
||||||
},
|
|
||||||
// 查询
|
// 查询
|
||||||
handleSearch() {
|
handleSearch() {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
@ -512,23 +459,10 @@ export default {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 评估结果
|
|
||||||
result() {},
|
|
||||||
// 下载报告
|
|
||||||
downloadReport() {},
|
|
||||||
// 下载影像
|
// 下载影像
|
||||||
async downloadImage(item) {
|
async downloadImage(item) {
|
||||||
downloadImage(item.SubjectId, item.SubjectVisitId);
|
downloadImage(item.SubjectId, item.SubjectVisitId);
|
||||||
},
|
},
|
||||||
// 评估报告
|
|
||||||
showReport(item) {
|
|
||||||
this.fileData = item;
|
|
||||||
// this.fileData = {
|
|
||||||
// path: "/System/DocumentToSign/1709623358162_测试pdf111.pdf1709623358161",
|
|
||||||
// name: "111111111111111111.pdf",
|
|
||||||
// };
|
|
||||||
this.previewFileVisible = true;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -234,13 +234,28 @@
|
||||||
@click="readResult(scope.row)"
|
@click="readResult(scope.row)"
|
||||||
:disabled="scope.row.ReadingTaskState !== 2"
|
:disabled="scope.row.ReadingTaskState !== 2"
|
||||||
/>
|
/>
|
||||||
<!--下载报告-->
|
<el-dropdown
|
||||||
<el-button
|
style="margin-left: 10px"
|
||||||
circle
|
@command="(command) => handleCommand(command, scope.row)"
|
||||||
icon="el-icon-download"
|
>
|
||||||
:title="$t('trials:reading:button:download')"
|
<el-button
|
||||||
@click="downloadReport(scope.row)"
|
class="el-dropdown-link"
|
||||||
/>
|
circle
|
||||||
|
icon="el-icon-more"
|
||||||
|
:title="$t('common:action:action')"
|
||||||
|
>
|
||||||
|
</el-button>
|
||||||
|
<el-dropdown-menu slot="dropdown">
|
||||||
|
<!--评估报告disabled-->
|
||||||
|
<el-dropdown-item command="showReport">{{
|
||||||
|
$t("trials:trials-panel:hirVisit:EvaluationReport")
|
||||||
|
}}</el-dropdown-item>
|
||||||
|
<!--数据导出-->
|
||||||
|
<el-dropdown-item command="downloadImage">{{
|
||||||
|
$t("trials:reading:button:uploadImages")
|
||||||
|
}}</el-dropdown-item>
|
||||||
|
</el-dropdown-menu>
|
||||||
|
</el-dropdown>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -262,6 +277,7 @@ import Pagination from "@/components/Pagination";
|
||||||
import { getPatientVisitTaskList } from "@/api/readManagenent.js";
|
import { getPatientVisitTaskList } from "@/api/readManagenent.js";
|
||||||
import { getToken } from "@/utils/auth";
|
import { getToken } from "@/utils/auth";
|
||||||
import { getSystemConfirmedCreiterionList } from "@/api/trials";
|
import { getSystemConfirmedCreiterionList } from "@/api/trials";
|
||||||
|
import { downLoadReadReport } from "@/api/export";
|
||||||
import { downloadImage } from "@/utils/uploadZip.js";
|
import { downloadImage } from "@/utils/uploadZip.js";
|
||||||
const defaultSearchData = () => {
|
const defaultSearchData = () => {
|
||||||
return {
|
return {
|
||||||
|
@ -307,6 +323,21 @@ export default {
|
||||||
this.getSystemConfirmedCreiterionList();
|
this.getSystemConfirmedCreiterionList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 下拉菜单操作
|
||||||
|
handleCommand(command, item) {
|
||||||
|
this[command](item);
|
||||||
|
},
|
||||||
|
// 评估报告
|
||||||
|
async showReport(item) {
|
||||||
|
let data = {
|
||||||
|
VisitTaskId: item.Id,
|
||||||
|
};
|
||||||
|
try {
|
||||||
|
let res = await downLoadReadReport(data);
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err);
|
||||||
|
}
|
||||||
|
},
|
||||||
// 获取阅片标准
|
// 获取阅片标准
|
||||||
async getSystemConfirmedCreiterionList() {
|
async getSystemConfirmedCreiterionList() {
|
||||||
try {
|
try {
|
||||||
|
@ -376,8 +407,8 @@ export default {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 下载报告
|
// 下载影像
|
||||||
downloadReport(item) {
|
async downloadImage(item) {
|
||||||
downloadImage(item.SubjectId, item.SourceSubjectVisitId);
|
downloadImage(item.SubjectId, item.SourceSubjectVisitId);
|
||||||
},
|
},
|
||||||
// 阅片结果
|
// 阅片结果
|
||||||
|
|
Loading…
Reference in New Issue