阅片管理接口调试对接

main
wangxiaoshuang 2024-04-07 17:44:11 +08:00
parent bb04e1bc1d
commit d24bb92c07
10 changed files with 131 additions and 52 deletions

View File

@ -3524,3 +3524,11 @@ export function getTrialListHir(param) {
data: param
})
}
// 获取项目详情
export function getTrialInfoHir(id) {
return request({
url: `/Patient/getTrialInfo/${id}`,
method: 'get',
})
}

View File

@ -148,6 +148,7 @@
type="text"
@click.stop="detail(scope.row)"
class="detail"
disabled
>{{ $t("trials:trials-list:action:panel") }}</el-button
>
</template>
@ -404,10 +405,9 @@ export default {
console.log(err);
}
},
//
//
formatData() {
if (this.tableSelectData.length <= 0) {
console.log(1111111111111111);
this.$message.warning(
this.$t("trials:inspection:formatData:notCheckStudy")
);

View File

@ -60,10 +60,10 @@
show-overflow-tooltip
min-width="140"
></el-table-column>
<!--受试者编号-->
<!--访视数-->
<el-table-column
prop="Code"
:label="$t('trials:crcQuestion:table:subjectId')"
:label="$t('trials:selftConsistencyAnalysis:table:visitNum')"
show-overflow-tooltip
min-width="140"
></el-table-column>

View File

@ -109,7 +109,7 @@
$t("trials:inspection:button:image")
}}</el-button>
<!-- 报告 -->
<el-button type="text" @click.stop="report(scope.row)">{{
<el-button type="text" @click.stop="report(scope.row)" disabled>{{
$t("trials:inspection:button:report")
}}</el-button>
</template>

View File

@ -32,9 +32,10 @@
<el-menu-item
v-if="!hasPermi(['role:zys'])"
index="2"
:disabled="TotalNeedSignSystemDocCount !== 0"
>
<i class="el-icon-box" />
<!-- 我的项目:disabled="TotalNeedSignSystemDocCount !== 0" -->
<!-- 我的项目 -->
<span slot="title">
{{ $t("trials:tab:trials") }}
</span>

View File

@ -124,6 +124,7 @@ export default {
.sign-form-footer{
margin-top: 10px;
text-align: right;
position: absolute;
}
}
</style>

View File

@ -148,12 +148,14 @@
:label="$t('trials:trials-list:table:durationAuthorized')"
prop="AuthorizationYear"
>
<div style="position: relative;">
<el-input
v-model="trialForm.AuthorizationYear"
type="number"
clearable
/>
<span style="position: absolute;right:-20px;top:0"></span>
</div>
</el-form-item>
<!-- 授权时间 -->
<el-form-item
@ -214,7 +216,7 @@
<script>
// import store from "@/store";
import { mapGetters, mapState } from "vuex";
import { getTrialInfo, addOrUpdateTrialHir } from "@/api/trials";
import { getTrialInfoHir, addOrUpdateTrialHir } from "@/api/trials";
import { getBasicDataSelects } from "@/api/dictionary/dictionary";
export default {
name: "TrialForm",
@ -368,7 +370,7 @@ export default {
methods: {
initForm() {
this.loading = true;
getTrialInfo(this.trialId)
getTrialInfoHir(this.trialId)
.then((res) => {
this.loading = false;
if (res.IsSuccess) {

View File

@ -93,6 +93,7 @@
stripe
height="100"
@sort-change="handleSortByColumn"
:default-sort="{ prop: 'SubmitTime', order: 'descending' }"
>
<el-table-column width="40">
<template>
@ -132,7 +133,7 @@
<!-- 患者姓名 -->
<el-table-column
prop="SubjectShortName"
:label="$t('trials:uploadDicomList:table:patientName')"
:label="$t('trials:researchStaff:table:Name')"
show-overflow-tooltip
/>
<!-- 性别 -->
@ -226,6 +227,7 @@
type="text"
v-hasPermi="['trials:trials-panel:hirVisit:remove']"
@click.stop="remove(scope.row)"
disabled
>{{ $t("common:button:delete") }}</el-button
>
<!--评估结果-->
@ -233,6 +235,7 @@
type="text"
v-hasPermi="['trials:trials-panel:hirVisit:result']"
@click.stop="result(scope.row)"
disabled
>{{ $t("trials:adReview:title:result") }}</el-button
>
<!--下载影像-->
@ -247,6 +250,7 @@
type="text"
v-hasPermi="['trials:trials-panel:hirVisit:download']"
@click.stop="downloadReport(scope.row)"
disabled
>{{ $t("trials:reading:button:uploadReport") }}</el-button
>
</template>

View File

@ -40,7 +40,7 @@
style="width: 150px"
>
<el-option
v-for="item of visitOptions"
v-for="item of $d.TaskState"
:key="item.id"
:label="item.label"
:value="item.value"
@ -56,7 +56,7 @@
style="width: 150px"
>
<el-option
v-for="item of visitOptions"
v-for="item of $d.ReadModuleEnum"
:key="item.id"
:label="item.label"
:value="item.value"
@ -100,40 +100,57 @@
stripe
height="100"
@sort-change="handleSortByColumn"
ref="redManagenentTable"
:default-sort="{ prop: 'CreateTime', order: 'descending' }"
>
<el-table-column type="index" width="40" />
<!-- 受试者编号 -->
<el-table-column
prop="StudyCode"
prop="SubjectCode"
:label="$t('trials:uploadMonitor:table:subjectId')"
show-overflow-tooltip
/>
<!-- 患者编号 -->
<el-table-column
prop="StudyCode"
:label="$t('trials:uploadMonitor:table:subjectId')"
:label="$t('trials:uploadDicomList:table:pId')"
show-overflow-tooltip
/>
>
<template slot-scope="scope">
<span
v-for="(item, index) in scope.row.PatientList"
:key="`${index}${item.PatientId}`"
>
{{
index === scope.row.PatientList.length - 1
? item.PatientIdStr
: `${item.PatientIdStr}, `
}}
</span>
</template></el-table-column
>
<!-- 患者姓名 -->
<el-table-column
prop="StudyCode"
:label="$t('trials:uploadDicomList:table:patientName')"
:label="$t('trials:researchStaff:table:Name')"
show-overflow-tooltip
/>
<!-- 访视名称 -->
<!-- 任务名称 -->
<el-table-column
prop="StudyCode"
:label="$t('trials:uploadMonitor:table:visitName')"
prop="TaskBlindName"
:label="$t('trials:auditRecord:table:taskName')"
show-overflow-tooltip
/>
<!-- 任务创建时间 -->
<el-table-column
prop="StudyCode"
prop="CreateTime"
:label="$t('trials:reviewTrack:table:createTime')"
show-overflow-tooltip
sortable="custom"
/>
<!-- 任务状态 -->
<el-table-column
prop="StudyCode"
prop="TaskState"
:label="$t('trials:readTask:table:taskState')"
show-overflow-tooltip
sortable="custom"
@ -147,18 +164,18 @@
/>
<!-- 阅片标准 -->
<el-table-column
prop="StudyCode"
prop="TrialReadingCriterionName"
:label="$t('trials:processCfg:form:criterion')"
show-overflow-tooltip
sortable="custom"
/>
<!-- 建议完成时间 -->
<el-table-column
<!-- <el-table-column
prop="StudyCode"
:label="$t('trials:consistencyAnalysis:table:suggesteFinishedTime')"
show-overflow-tooltip
sortable="custom"
/>
/> -->
<!--操作-->
<el-table-column
:label="$t('common:action:action')"
@ -167,13 +184,16 @@
>
<template slot-scope="scope">
<!--阅片结果-->
<el-button type="text" @click="readResult(scope.row)">{{
<el-button type="text" @click="readResult(scope.row)" disabled>{{
$t("trials:auditRecord:table:readingResult")
}}</el-button>
<!--下载报告-->
<el-button type="text" @click="downloadReport(scope.row)">{{
$t("trials:reading:button:uploadReport")
}}</el-button>
<el-button
type="text"
@click="downloadReport(scope.row)"
disabled
>{{ $t("trials:reading:button:uploadReport") }}</el-button
>
</template>
</el-table-column>
</el-table>
@ -197,12 +217,12 @@ const defaultSearchData = () => {
return {
SubjectCode: null,
ReadingCategory: 1,
ReadingTaskState: 0,
TaskState: 0,
ReadingTaskState: null,
TaskState: null,
BeginSignTime: null,
EndSignTime: null,
PageIndex: 0,
PageSize: 0,
PageIndex: 1,
PageSize: 20,
Asc: false,
SortField: "CreateTime",
};
@ -213,29 +233,69 @@ export default {
data() {
return {
//
searchData: {},
visitOptions: [],
searchData: defaultSearchData(),
dateValue: [],
//
list: [
{
StudyCode: 1,
},
],
list: [],
loading: false,
total: 0,
//
editStudyVisible: false,
};
},
created() {
this.getList();
},
methods: {
//
handleSearch() {},
handleSearch() {
this.getList();
},
//
handleSearch() {},
handleReset() {
this.reset();
this.getList();
},
//
reset() {
this.searchData = defaultSearchData();
this.dateValue = [];
this.$refs.redManagenentTable.clearSort();
},
//
handleSortByColumn() {},
handleSortByColumn(sort) {
this.searchData.SortField = sort.prop;
if (sort.order === "ascending") this.searchData.Asc = true;
if (sort.order === "descending") this.searchData.Asc = false;
if (!sort.order) this.searchData.SortField = null;
this.getList();
},
//
async getList() {},
async getList() {
try {
let data = {};
Object.keys(this.searchData).forEach((key) => {
data[key] = this.searchData[key];
});
data.TrialId = this.$route.query.trialId;
if (this.dateValue[0] && this.dateValue[1]) {
data.earliestStudyTime = this.dateValue[0].toISOString();
data.latestStudyTime = this.dateValue[1].toISOString();
} else {
data.EarliestStudyTime = null;
data.LatestStudyTime = null;
}
this.loading = true;
let res = await getPatientVisitTaskList(data);
this.loading = false;
if (res.IsSuccess) {
this.list = res.Result.CurrentPageData;
this.total = res.Result.TotalCount;
}
} catch (err) {
this.loading = false;
console.log(err);
}
},
//
downloadReport() {},
//

View File

@ -202,9 +202,12 @@
>
<template slot-scope="scope">
<!-- 查看 -->
<el-button type="text" @click="handleViewStudy(scope.row)">{{
$t("trials:studyList:button:view")
}}</el-button>
<el-button
type="text"
@click="handleViewStudy(scope.row)"
disabled
>{{ $t("trials:studyList:button:view") }}</el-button
>
<!-- 修改访视 -->
<el-button
type="text"