一致性分析导出

uat_us
wangxiaoshuang 2024-11-01 10:09:45 +08:00
parent fadd24480d
commit 3f9edfa2a0
3 changed files with 288 additions and 254 deletions

View File

@ -239,3 +239,12 @@ export function GetInternationalizationList_Export(data) {
data
})
}
// 导出一致性分析
export function GetAnalysisTaskList_Export(data) {
return requestDownload({
url: `/ExcelExport/GetAnalysisTaskList_Export`,
responseType: 'blob',
method: 'post',
data
})
}

View File

@ -1,18 +1,37 @@
<template>
<div style="text-align: left">
<el-tabs type="border-card" v-model="TrialReadingCriterionId" style="height:300px">
<el-tab-pane :label="i.TrialReadingCriterionName" :name="i.TrialReadingCriterionId" v-for="i of trialCriterionList" :key="i.TrialReadingCriterionId">
<el-tabs
type="border-card"
v-model="TrialReadingCriterionId"
style="height: 300px"
>
<el-tab-pane
:label="i.TrialReadingCriterionName"
:name="i.TrialReadingCriterionId"
v-for="i of trialCriterionList"
:key="i.TrialReadingCriterionId"
>
<div class="message">
<span>{{$t('trials:consistencyAnalysis:button:exportSelf')}}</span>
<el-button type="primary" icon="el-icon-download" @click="handleExport(1)" size="mini">
{{$t('common:button:export')}}
</el-button>
<span>{{ $t('trials:consistencyAnalysis:button:exportSelf') }}</span>
<el-button
type="primary"
icon="el-icon-download"
@click="handleExport(9)"
size="mini"
>
{{ $t('common:button:export') }}
</el-button>
</div>
<div class="message">
<span>{{$t('trials:consistencyAnalysis:button:exportGroup')}}</span>
<el-button type="primary" icon="el-icon-download" @click="handleExport(2)" size="mini">
{{$t('common:button:export')}}
</el-button>
<span>{{ $t('trials:consistencyAnalysis:button:exportGroup') }}</span>
<el-button
type="primary"
icon="el-icon-download"
@click="handleExport(10)"
size="mini"
>
{{ $t('common:button:export') }}
</el-button>
</div>
</el-tab-pane>
</el-tabs>
@ -23,7 +42,7 @@
import { getTrialCriterionList } from '@/api/trials/reading'
export default {
name: "exportList",
name: 'exportList',
data() {
return {
TrialReadingCriterionId: null,
@ -31,30 +50,33 @@ name: "exportList",
}
},
mounted() {
this.trialId =this.$route.query.trialId
this.trialId = this.$route.query.trialId
this.getTrialCriterionList()
},
methods: {
handleExport(type) {
this.$emit("handleExport",type,this.TrialReadingCriterionId)
this.$emit('handleExport', type, this.TrialReadingCriterionId)
},
getTrialCriterionList() {
getTrialCriterionList(this.trialId).then(res => {
this.trialCriterionList = res.Result
this.TrialReadingCriterionId = this.trialCriterionList[0].TrialReadingCriterionId
}).catch(() => {})
}
}
getTrialCriterionList(this.trialId)
.then((res) => {
this.trialCriterionList = res.Result
this.TrialReadingCriterionId =
this.trialCriterionList[0].TrialReadingCriterionId
})
.catch(() => {})
},
},
}
</script>
<style scoped>
.message{
display:flex;
align-items:center;
line-height:60px;
.message {
display: flex;
align-items: center;
line-height: 60px;
}
.message span{
margin-right:20px;
.message span {
margin-right: 20px;
}
</style>

View File

@ -214,14 +214,14 @@
</el-form-item>
<el-form-item style="margin-bottom: 10px">
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t("common:button:search") }}
{{ $t('common:button:search') }}
</el-button>
<el-button
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t("common:button:reset") }}
{{ $t('common:button:reset') }}
</el-button>
<!-- <el-button type="primary" icon="el-icon-download" @click="handleExport(1)">
{{$t('trials:consistencyAnalysis:button:exportSelf')}}
@ -239,7 +239,7 @@
"
@click="openTaskConsistentRule(true)"
>
{{ $t("trials:consistencyAnalysis:button:self") }}
{{ $t('trials:consistencyAnalysis:button:self') }}
</el-button>
<!-- 组间一致性分析 -->
<el-button
@ -252,7 +252,7 @@
"
@click="openTaskConsistentRule(false)"
>
{{ $t("trials:consistencyAnalysis:button:group") }}
{{ $t('trials:consistencyAnalysis:button:group') }}
</el-button>
<!-- 虚拟中心编号 -->
<el-button
@ -264,7 +264,7 @@
"
@click="openSite()"
>
{{ $t("trials:consistencyAnalysis:button:site") }}
{{ $t('trials:consistencyAnalysis:button:site') }}
</el-button>
<!--导出-->
<el-button
@ -272,7 +272,7 @@
icon="el-icon-download"
@click="openExport()"
>
{{ $t("common:button:export") }}
{{ $t('common:button:export') }}
</el-button>
</el-form-item>
</el-form>
@ -296,10 +296,10 @@
>
<template slot-scope="scope">
<el-tag v-if="scope.row.IsUrgent" type="danger">{{
$fd("YesOrNo", scope.row.IsUrgent)
$fd('YesOrNo', scope.row.IsUrgent)
}}</el-tag>
<el-tag v-else type="primary">{{
$fd("YesOrNo", scope.row.IsUrgent)
$fd('YesOrNo', scope.row.IsUrgent)
}}</el-tag>
</template>
</el-table-column>
@ -334,7 +334,7 @@
class="status-primary-circle"
>
<!-- -->
{{ $t("trials:consistencyAnalysis:table:impact") }}
{{ $t('trials:consistencyAnalysis:table:impact') }}
</span>
</template>
</el-table-column>
@ -384,16 +384,16 @@
>
<template slot-scope="scope">
<el-tag v-if="scope.row.ReadingCategory === 1" type="primary">{{
$fd("ReadingCategory", scope.row.ReadingCategory)
$fd('ReadingCategory', scope.row.ReadingCategory)
}}</el-tag>
<el-tag v-if="scope.row.ReadingCategory === 2" type="info">{{
$fd("ReadingCategory", scope.row.ReadingCategory)
$fd('ReadingCategory', scope.row.ReadingCategory)
}}</el-tag>
<el-tag v-if="scope.row.ReadingCategory === 4" type="danger">{{
$fd("ReadingCategory", scope.row.ReadingCategory)
$fd('ReadingCategory', scope.row.ReadingCategory)
}}</el-tag>
<el-tag v-if="scope.row.ReadingCategory === 5" type="warning">{{
$fd("ReadingCategory", scope.row.ReadingCategory)
$fd('ReadingCategory', scope.row.ReadingCategory)
}}</el-tag>
</template>
</el-table-column>
@ -419,24 +419,24 @@
>
<template slot-scope="scope">
<el-tag v-if="scope.row.ArmEnum === 1" type="primary">{{
$fd("ArmEnum", scope.row.ArmEnum)
$fd('ArmEnum', scope.row.ArmEnum)
}}</el-tag>
<el-tag v-if="scope.row.ArmEnum === 2" type="success">{{
$fd("ArmEnum", scope.row.ArmEnum)
$fd('ArmEnum', scope.row.ArmEnum)
}}</el-tag>
<el-tag v-if="scope.row.ArmEnum === 3" type="info">{{
$fd("ArmEnum", scope.row.ArmEnum)
$fd('ArmEnum', scope.row.ArmEnum)
}}</el-tag>
<el-tag v-if="scope.row.ArmEnum === 4" type="danger">{{
$fd("ArmEnum", scope.row.ArmEnum)
$fd('ArmEnum', scope.row.ArmEnum)
}}</el-tag>
<el-tag v-if="scope.row.ArmEnum === 5" type="warning">{{
$fd("ArmEnum", scope.row.ArmEnum)
$fd('ArmEnum', scope.row.ArmEnum)
}}</el-tag>
<el-tag
v-if="scope.row.ArmEnum === 8"
style="border-color: #4c2791; color: #4c2791"
>{{ $fd("ArmEnum", scope.row.ArmEnum) }}</el-tag
>{{ $fd('ArmEnum', scope.row.ArmEnum) }}</el-tag
>
</template>
</el-table-column>
@ -458,10 +458,10 @@
>
<template slot-scope="scope">
<el-tag v-if="scope.row.IsSelfAnalysis" type="primary">{{
$fd("IsSelfAnalysis", scope.row.IsSelfAnalysis)
$fd('IsSelfAnalysis', scope.row.IsSelfAnalysis)
}}</el-tag>
<el-tag v-else type="warning">{{
$fd("IsSelfAnalysis", scope.row.IsSelfAnalysis)
$fd('IsSelfAnalysis', scope.row.IsSelfAnalysis)
}}</el-tag>
</template>
</el-table-column>
@ -475,10 +475,10 @@
>
<template slot-scope="scope">
<el-tag v-if="scope.row.ReadingTaskState === 2" type="primary">{{
$fd("ReadingTaskState", scope.row.ReadingTaskState)
$fd('ReadingTaskState', scope.row.ReadingTaskState)
}}</el-tag>
<el-tag v-else type="danger">{{
$fd("ReadingTaskState", scope.row.ReadingTaskState)
$fd('ReadingTaskState', scope.row.ReadingTaskState)
}}</el-tag>
</template>
</el-table-column>
@ -519,19 +519,19 @@
>
<template slot-scope="scope">
<el-tag v-if="scope.row.TaskState === 0" type="primary">{{
$fd("TaskState", scope.row.TaskState)
$fd('TaskState', scope.row.TaskState)
}}</el-tag>
<el-tag v-if="scope.row.TaskState === 1" type="info">{{
$fd("TaskState", scope.row.TaskState)
$fd('TaskState', scope.row.TaskState)
}}</el-tag>
<el-tag v-if="scope.row.TaskState === 3" type="danger">{{
$fd("TaskState", scope.row.TaskState)
$fd('TaskState', scope.row.TaskState)
}}</el-tag>
<el-tag v-if="scope.row.TaskState === 4" type="warning">{{
$fd("TaskState", scope.row.TaskState)
$fd('TaskState', scope.row.TaskState)
}}</el-tag>
<el-tag v-if="scope.row.TaskState === 5" type="danger">{{
$fd("TaskState", scope.row.TaskState)
$fd('TaskState', scope.row.TaskState)
}}</el-tag>
</template>
</el-table-column>
@ -648,11 +648,11 @@
<!-- 已设置访视基准日期末次访视失访PDPD进展入组确认 -->
<span class="status-primary-circle">
<!-- -->
{{ $t("trials:consistencyAnalysis:table:impact") }}
{{ $t('trials:consistencyAnalysis:table:impact') }}
</span>
<!-- 受到退回影响 -->
<span
>: {{ $t("trials:consistencyAnalysis:title:impactInfluence") }}</span
>: {{ $t('trials:consistencyAnalysis:title:impactInfluence') }}</span
>
</div>
<!-- 自身一致性分析 -->
@ -684,7 +684,7 @@
:loading="btnLoading"
@click="addReaderRulesForm()"
>
{{ $t("trials:selftConsistencyAnalysis:button:config") }}
{{ $t('trials:selftConsistencyAnalysis:button:config') }}
</el-button>
<div
class="base-dialog-body"
@ -745,11 +745,11 @@
v-if="scope.row.IsHaveReadingPeriod"
size="success"
>{{
$fd("YesOrNo", scope.row.IsHaveReadingPeriod)
$fd('YesOrNo', scope.row.IsHaveReadingPeriod)
}}</el-tag
>
<el-tag v-else size="danger">{{
$fd("YesOrNo", scope.row.IsHaveReadingPeriod)
$fd('YesOrNo', scope.row.IsHaveReadingPeriod)
}}</el-tag>
</template>
</el-table-column>
@ -769,11 +769,11 @@
v-if="scope.row.IsGenerateGlobalTask"
size="success"
>{{
$fd("YesOrNo", scope.row.IsGenerateGlobalTask)
$fd('YesOrNo', scope.row.IsGenerateGlobalTask)
}}</el-tag
>
<el-tag v-else size="danger">{{
$fd("YesOrNo", scope.row.IsGenerateGlobalTask)
$fd('YesOrNo', scope.row.IsGenerateGlobalTask)
}}</el-tag>
</template>
</el-table-column>
@ -864,7 +864,7 @@
type="primary"
@click="ReaderRulesVisible = false"
>
{{ $t("common:button:cancel") }}
{{ $t('common:button:cancel') }}
</el-button>
<!-- 保存 -->
</div>
@ -894,13 +894,13 @@
@click="addReaderRulesForm('g')"
>
<!-- 配置组间一致性分析规则 -->
{{ $t("trials:grouptConsistencyAnalysis:button:config") }}
{{ $t('trials:grouptConsistencyAnalysis:button:config') }}
</el-button>
<GroupConsistentRuleSubjectTable
@setReaderRulesFormVisible="
(v) => {
ReaderRulesFormVisible = v;
isDisable = false;
ReaderRulesFormVisible = v
isDisable = false
}
"
v-if="TrialReadingCriterionId === item.TrialReadingCriterionId"
@ -912,8 +912,8 @@
:other-info="RuleOtherInfo"
@close="
() => {
ReaderRulesVisible2 = false;
rowData = {};
ReaderRulesVisible2 = false
rowData = {}
}
"
@getList="getList()"
@ -940,8 +940,8 @@
:is-self-analysis="IsSelfAnalysis"
@close="
() => {
ReaderRulesFormVisible = false;
rowData = {};
ReaderRulesFormVisible = false
rowData = {}
}
"
@getList="openTaskConsistentRule(IsSelfAnalysis)"
@ -964,8 +964,8 @@
:other-info="RuleOtherInfo"
@close="
() => {
DoctorConsistentRuleSubjectTableVisible = false;
rowData = {};
DoctorConsistentRuleSubjectTableVisible = false
rowData = {}
}
"
@getList="openTaskConsistentRule(IsSelfAnalysis)"
@ -1024,11 +1024,11 @@
<el-radio-group v-model="ApplyforReasonForm.Type">
<!-- 图像重传 -->
<el-radio :label="1">{{
$t("trials:consistencyAnalysis:applyReread:imageReload")
$t('trials:consistencyAnalysis:applyReread:imageReload')
}}</el-radio>
<!-- 其他 -->
<el-radio :label="2">{{
$t("trials:consistencyAnalysis:applyReread:other")
$t('trials:consistencyAnalysis:applyReread:other')
}}</el-radio>
</el-radio-group>
</el-form-item>
@ -1056,11 +1056,11 @@
size="small"
type="primary"
@click="
ApplyforReasonVisible = false;
ApplyforReasonForm = { Type: null, RequestReReadingReason: null };
ApplyforReasonVisible = false
ApplyforReasonForm = { Type: null, RequestReReadingReason: null }
"
>
{{ $t("common:button:cancel") }}
{{ $t('common:button:cancel') }}
</el-button>
<!-- 保存 -->
<el-button
@ -1069,7 +1069,7 @@
type="primary"
@click="applyReReading"
>
{{ $t("common:button:save") }}
{{ $t('common:button:save') }}
</el-button>
</div>
</el-dialog>
@ -1116,27 +1116,28 @@ import {
getDoctorUserSelectList,
getAnalysisTaskList,
applyReReading,
} from "@/api/trials/reading";
import { setTaskValid } from "@/api/trials";
import ClinicalData from "@/views/trials/trials-panel/subject/reading-period/components/ClinicalData";
} from '@/api/trials/reading'
import { setTaskValid } from '@/api/trials'
import ClinicalData from '@/views/trials/trials-panel/subject/reading-period/components/ClinicalData'
import {
getSelfAnalysisTaskList_Export,
getGroupAnalysisTaskList_Export,
} from "@/api/export";
import ReaderRulesForm from "./components/ReaderRulesForm";
import DoctorConsistentRuleSubjectTable from "./components/DoctorConsistentRuleSubjectTable";
import GroupConsistentRuleSubjectTable from "./components/GroupConsistentRuleSubjectTable";
import VirtualCenter from "./components/VirtualCenter";
import BaseContainer from "@/components/BaseContainer";
import Pagination from "@/components/Pagination";
import { getToken } from "@/utils/auth";
import exportList from "./components/exportList.vue";
GetAnalysisTaskList_Export,
} from '@/api/export'
import ReaderRulesForm from './components/ReaderRulesForm'
import DoctorConsistentRuleSubjectTable from './components/DoctorConsistentRuleSubjectTable'
import GroupConsistentRuleSubjectTable from './components/GroupConsistentRuleSubjectTable'
import VirtualCenter from './components/VirtualCenter'
import BaseContainer from '@/components/BaseContainer'
import Pagination from '@/components/Pagination'
import { getToken } from '@/utils/auth'
import exportList from './components/exportList.vue'
const searchDataDefault = () => {
return {
PageIndex: 1,
PageSize: 20,
Asc: true,
SortField: "",
SortField: '',
TrialId: null,
TrialSiteId: null,
SubjectId: null,
@ -1153,10 +1154,10 @@ const searchDataDefault = () => {
TrialReadingCriterionId: null,
BeginSignTime: null,
EndSignTime: null,
};
};
}
}
export default {
name: "TrialsNotice",
name: 'TrialsNotice',
components: {
exportList,
BaseContainer,
@ -1205,15 +1206,15 @@ export default {
Type: [
{
required: true,
message: this.$t("common:ruleMessage:specify"),
trigger: "blur",
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
],
RequestReReadingReason: [
{
required: true,
message: this.$t("common:ruleMessage:specify"),
trigger: "blur",
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
],
},
@ -1224,17 +1225,17 @@ export default {
exportVisible: false,
clinicalDataVisible: false,
};
}
},
mounted() {
this.getList();
this.getSite();
this.getDoctorUserSelectList();
this.getTrialCriterionList();
this.getList()
this.getSite()
this.getDoctorUserSelectList()
this.getTrialCriterionList()
},
beforeDestroy() {
if (this.openWindow) {
this.openWindow.close();
this.openWindow.close()
}
},
methods: {
@ -1242,35 +1243,35 @@ export default {
async handleSetState(row) {
try {
let confirm = await this.$confirm(
this.$t("trials:reading:consistencyAnalysis:message:setState"),
this.$t('trials:reading:consistencyAnalysis:message:setState'),
{
type: "warning",
type: 'warning',
distinguishCancelAndClose: true,
}
);
if (!confirm) return;
)
if (!confirm) return
let data = {
visitTaskId: row.Id,
};
let res = await setTaskValid(data);
}
let res = await setTaskValid(data)
if (res.IsSuccess) {
this.$message.success(
this.$t("trials:reading:consistencyAnalysis:setStateSuccess")
);
this.getList();
this.$t('trials:reading:consistencyAnalysis:setStateSuccess')
)
this.getList()
}
} catch (err) {
console.log(err);
console.log(err)
}
},
//
handleView(row) {
this.currentData = row;
this.currentData.TrialId = this.$route.query.trialId;
this.clinicalDataVisible = true;
this.currentData = row
this.currentData.TrialId = this.$route.query.trialId
this.clinicalDataVisible = true
},
openSite() {
this.isOpenSite = true;
this.isOpenSite = true
},
handleExport(type, TrialReadingCriterionId) {
// if (!this.searchData.TrialReadingCriterionId) {
@ -1279,89 +1280,91 @@ export default {
// }
if (!TrialReadingCriterionId) {
this.$alert(
this.$t("trials:consistencyAnalysis:message:selectCriterion")
); //''
return;
this.$t('trials:consistencyAnalysis:message:selectCriterion')
) //''
return
}
let obj = JSON.parse(JSON.stringify(this.searchData));
obj.TrialReadingCriterionId = TrialReadingCriterionId;
let obj = JSON.parse(JSON.stringify(this.searchData))
obj.TrialReadingCriterionId = TrialReadingCriterionId
obj.ReadingExportType = type
return GetAnalysisTaskList_Export(obj)
if (type === 1) {
getSelfAnalysisTaskList_Export(obj)
.then((res) => {})
.catch(() => {
this.loading = false;
});
this.loading = false
})
} else {
getGroupAnalysisTaskList_Export(obj)
.then((res) => {})
.catch(() => {
this.loading = false;
});
this.loading = false
})
}
},
getTrialCriterionList() {
this.loading = true;
this.loading = true
getTrialCriterionList(this.trialId)
.then((res) => {
this.trialCriterionList = res.Result;
this.trialCriterionList = res.Result
this.TrialReadingCriterionId =
this.trialCriterionList[0].TrialReadingCriterionId;
this.loading = false;
this.trialCriterionList[0].TrialReadingCriterionId
this.loading = false
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
setAnalysisTaskInvalid(row) {
// ''
this.$confirm(
this.$t("trials:consistencyAnalysis:applyReread:msg1")
this.$t('trials:consistencyAnalysis:applyReread:msg1')
).then(() => {
this.loading = true;
this.loading = true
setAnalysisTaskInvalid([row.Id])
.then((res) => {
//
this.$message.success(
this.$t("trials:consistencyAnalysis:applyReread:msg2")
);
this.getList();
this.loading = false;
this.$t('trials:consistencyAnalysis:applyReread:msg2')
)
this.getList()
this.loading = false
})
.catch(() => {
this.loading = false;
});
});
this.loading = false
})
})
},
changeTimeList() {
if (this.timeList) {
this.searchData.BeginAllocateDate = this.timeList[0];
this.searchData.EndAllocateDate = this.timeList[1];
this.searchData.BeginAllocateDate = this.timeList[0]
this.searchData.EndAllocateDate = this.timeList[1]
} else {
this.searchData.BeginAllocateDate = null;
this.searchData.EndAllocateDate = null;
this.searchData.BeginAllocateDate = null
this.searchData.EndAllocateDate = null
}
},
changeTimeList2() {
if (this.timeList2) {
this.searchData.BeginSignTime = this.timeList2[0];
this.searchData.EndSignTime = this.timeList2[1];
this.searchData.BeginSignTime = this.timeList2[0]
this.searchData.EndSignTime = this.timeList2[1]
} else {
this.searchData.BeginSignTime = null;
this.searchData.EndSignTime = null;
this.searchData.BeginSignTime = null
this.searchData.EndSignTime = null
}
},
//
reReadingHistory(row) {
this.$router.push({
path: `/trials/trials-panel/reading/reReadingTracking?trialId=${this.$route.query.trialId}&trialCode=${this.$route.query.trialCode}&researchProgramNo=${this.$route.query.researchProgramNo}&TrialSiteId=${row.TrialSiteId}&SubjectCode=${row.SubjectCode}&TaskName=${row.TaskName}&DoctorUserId=${row.DoctorUserId}`,
});
})
},
//
applyReReading() {
this.$refs.reasonForm.validate((valid) => {
if (!valid) return;
this.loading = true;
this.btnLoading = true;
if (!valid) return
this.loading = true
this.btnLoading = true
var params = {
TaskIdList: [this.rowData.Id],
TrialId: this.$route.query.trialId,
@ -1369,28 +1372,28 @@ export default {
RequestReReadingReason:
this.ApplyforReasonForm.Type === 2
? this.ApplyforReasonForm.RequestReReadingReason
: this.$t("trials:consistencyAnalysis:applyReread:imageReload"), //''
};
: this.$t('trials:consistencyAnalysis:applyReread:imageReload'), //''
}
applyReReading(params)
.then((res) => {
this.loading = false;
this.btnLoading = false;
this.loading = false
this.btnLoading = false
//
this.$message.success(
this.$t("trials:consistencyAnalysis:applyReread:msg3")
);
this.getList();
this.ApplyforReasonVisible = false;
this.$t('trials:consistencyAnalysis:applyReread:msg3')
)
this.getList()
this.ApplyforReasonVisible = false
})
.catch(() => {
this.loading = false;
this.btnLoading = false;
});
});
this.loading = false
this.btnLoading = false
})
})
},
lookReadingResults(row) {
if (this.openWindow) {
this.openWindow.close();
this.openWindow.close()
}
// var token = getToken()
// const routeData = this.$router.resolve({
@ -1398,38 +1401,38 @@ export default {
// })
// window.open(routeData.href, '_blank')
window.localStorage.setItem(
"TrialReadingCriterionId",
'TrialReadingCriterionId',
this.TrialReadingCriterionId
);
var token = getToken();
var path = "";
)
var token = getToken()
var path = ''
if (row.ReadingTool === 0) {
path = `/readingDicoms?TrialReadingCriterionId=${row.TrialReadingCriterionId}&trialId=${row.TrialId}&subjectCode=${row.SubjectCode}&subjectId=${row.SubjectId}&visitTaskId=${row.Id}&isReadingTaskViewInOrder=${row.IsReadingTaskViewInOrder}&criterionType=${row.CriterionType}&readingTool=${row.ReadingTool}&TokenKey=${token}`;
path = `/readingDicoms?TrialReadingCriterionId=${row.TrialReadingCriterionId}&trialId=${row.TrialId}&subjectCode=${row.SubjectCode}&subjectId=${row.SubjectId}&visitTaskId=${row.Id}&isReadingTaskViewInOrder=${row.IsReadingTaskViewInOrder}&criterionType=${row.CriterionType}&readingTool=${row.ReadingTool}&TokenKey=${token}`
} else {
path = `/noneDicomReading?TrialReadingCriterionId=${row.TrialReadingCriterionId}&trialId=${row.TrialId}&subjectCode=${row.SubjectCode}&subjectId=${row.SubjectId}&visitTaskId=${row.Id}&isReadingTaskViewInOrder=${row.IsReadingTaskViewInOrder}&criterionType=${row.CriterionType}&readingTool=${row.ReadingTool}&TokenKey=${token}`;
path = `/noneDicomReading?TrialReadingCriterionId=${row.TrialReadingCriterionId}&trialId=${row.TrialId}&subjectCode=${row.SubjectCode}&subjectId=${row.SubjectId}&visitTaskId=${row.Id}&isReadingTaskViewInOrder=${row.IsReadingTaskViewInOrder}&criterionType=${row.CriterionType}&readingTool=${row.ReadingTool}&TokenKey=${token}`
}
var routeData = this.$router.resolve({ path });
this.openWindow = window.open(routeData.href, "_blank");
var routeData = this.$router.resolve({ path })
this.openWindow = window.open(routeData.href, '_blank')
},
openApplyReReading(row) {
this.rowData = { ...row };
this.ApplyforReasonVisible = true;
this.rowData = { ...row }
this.ApplyforReasonVisible = true
this.ApplyforReasonForm = {
Type: null,
Remake: null,
};
}
},
editReaderRulesForm(row) {
this.rowData = { ...row };
this.ReaderRulesFormVisible = true;
this.rowData = { ...row }
this.ReaderRulesFormVisible = true
},
openDoctorConsistentRuleSubjectTable(row, IsAutoAllocateGenerateTask) {
this.rowData = { ...row };
this.DoctorConsistentRuleSubjectTableVisible = true;
this.rowData.IsAutoAllocateGenerateTask = IsAutoAllocateGenerateTask;
this.rowData = { ...row }
this.DoctorConsistentRuleSubjectTableVisible = true
this.rowData.IsAutoAllocateGenerateTask = IsAutoAllocateGenerateTask
},
addReaderRulesForm(isg) {
this.isDisable = false;
this.isDisable = false
if (isg) {
if (
this.$refs[
@ -1440,115 +1443,115 @@ export default {
`GroupConsistentRuleSubjectTable${this.TrialReadingCriterionId}`
][0].list.forEach((v) => {
if (v.IsHaveGeneratedTask) {
this.isDisable = true;
this.isDisable = true
}
});
})
}
} else {
if (this.TaskConsistentRuleList.length > 0) {
this.rowData = { ...this.TaskConsistentRuleList[0] };
this.rowData = { ...this.TaskConsistentRuleList[0] }
this.TaskConsistentRuleList.forEach((v) => {
if (v.GeneratedSubjectCount) {
this.isDisable = true;
this.isDisable = true
}
});
})
} else {
this.rowData = {};
this.rowData = {}
}
}
this.ReaderRulesFormVisible = true;
this.ReaderRulesFormVisible = true
},
clickTab(tab, event) {
this.loading = true;
this.loading = true
this.title = `${this.$t(
"trials:selftConsistencyAnalysis:button:config"
'trials:selftConsistencyAnalysis:button:config'
)}(${
this.trialCriterionList.find(
(v) => v.TrialReadingCriterionId === this.TrialReadingCriterionId
).TrialReadingCriterionName
})`;
})`
getSelfConsistentDoctorStatList({
TrialId: this.trialId,
TrialReadingCriterionId: tab.name,
})
.then((res) => {
if (res.OtherInfo) {
this.ReaderRulesFormVisible = false;
this.RuleOtherInfo = res.OtherInfo;
this.ReaderRulesFormVisible = false
this.RuleOtherInfo = res.OtherInfo
} else {
this.ReaderRulesFormVisible = true;
this.ReaderRulesFormVisible = true
}
// this.ReaderRulesFormVisible = false
// this.DoctorConsistentRuleSubjectTableVisible = false
this.TaskConsistentRuleList = res.Result;
this.TaskConsistentRuleList = res.Result
// this.IsSelfAnalysis = true
// this.ReaderRulesVisible = true
// this.getList()
this.loading = false;
this.loading = false
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
openExport() {
if (this.trialCriterionList.length === 0) {
this.$alert(
this.$t(
"trials:trials-panel:consistency-analysis:trialCriterionListLength"
'trials:trials-panel:consistency-analysis:trialCriterionListLength'
)
);
return;
)
return
}
this.exportVisible = true;
this.exportVisible = true
},
openTaskConsistentRule(IsSelfAnalysis) {
if (this.trialCriterionList.length === 0) {
this.$alert(
this.$t(
"trials:trials-panel:consistency-analysis:trialCriterionListLength"
'trials:trials-panel:consistency-analysis:trialCriterionListLength'
)
);
return;
)
return
}
this.loading = true;
this.loading = true
if (IsSelfAnalysis) {
// ''
this.title = `${this.$t(
"trials:selftConsistencyAnalysis:button:config"
'trials:selftConsistencyAnalysis:button:config'
)}(${
this.trialCriterionList.find(
(v) => v.TrialReadingCriterionId === this.TrialReadingCriterionId
).TrialReadingCriterionName
})`;
})`
getSelfConsistentDoctorStatList({
TrialId: this.trialId,
TrialReadingCriterionId: this.TrialReadingCriterionId,
})
.then((res) => {
if (res.OtherInfo) {
this.ReaderRulesFormVisible = false;
this.RuleOtherInfo = res.OtherInfo;
this.ReaderRulesFormVisible = false
this.RuleOtherInfo = res.OtherInfo
} else {
this.ReaderRulesFormVisible = true;
this.ReaderRulesFormVisible = true
}
this.DoctorConsistentRuleSubjectTableVisible = false;
this.TaskConsistentRuleList = res.Result;
this.IsSelfAnalysis = IsSelfAnalysis;
this.ReaderRulesVisible = true;
this.getList();
this.loading = false;
this.DoctorConsistentRuleSubjectTableVisible = false
this.TaskConsistentRuleList = res.Result
this.IsSelfAnalysis = IsSelfAnalysis
this.ReaderRulesVisible = true
this.getList()
this.loading = false
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
} else {
this.changeNum++;
this.ReaderRulesFormVisible = false;
this.changeNum++
this.ReaderRulesFormVisible = false
// ''
this.title = this.$t("trials:grouptConsistencyAnalysis:button:config");
this.IsSelfAnalysis = IsSelfAnalysis;
this.ReaderRulesVisible2 = true;
this.loading = false;
this.title = this.$t('trials:grouptConsistencyAnalysis:button:config')
this.IsSelfAnalysis = IsSelfAnalysis
this.ReaderRulesVisible2 = true
this.loading = false
}
// getTaskConsistentRuleList({
// IsSelfAnalysis: IsSelfAnalysis,
@ -1563,57 +1566,57 @@ export default {
},
getDoctorUserSelectList() {
getDoctorUserSelectList(this.$route.query.trialId).then((res) => {
this.DoctorUserList = res.Result;
this.DoctorUserList = res.Result
if (this.DoctorUserList.length > 0) {
this.ReadingType = this.DoctorUserList[0].ReadingType;
this.ReadingType = this.DoctorUserList[0].ReadingType
} else {
}
});
})
},
getList() {
this.searchData.TrialId = this.$route.query.trialId;
this.loading = true;
this.searchData.TrialId = this.$route.query.trialId
this.loading = true
getAnalysisTaskList(this.searchData)
.then((res) => {
this.loading = false;
this.OtherInfo = res.OtherInfo;
this.list = res.Result.CurrentPageData;
this.total = res.Result.TotalCount;
this.ReaderRulesVisible2 = false;
this.AssignMedicalReviewTaskVisible = false;
this.loading = false
this.OtherInfo = res.OtherInfo
this.list = res.Result.CurrentPageData
this.total = res.Result.TotalCount
this.ReaderRulesVisible2 = false
this.AssignMedicalReviewTaskVisible = false
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
handleSearch() {
this.searchData.PageIndex = 1;
this.getList();
this.searchData.PageIndex = 1
this.getList()
},
handleReset() {
this.timeList = null;
this.timeList2 = null;
this.searchData = searchDataDefault();
this.getList();
this.timeList = null
this.timeList2 = null
this.searchData = searchDataDefault()
this.getList()
},
getSite() {
getTrialSiteCodeSelect(this.trialId).then((res) => {
this.siteOptions = res.Result;
});
this.siteOptions = res.Result
})
},
//
handleSortChange(column) {
if (column.order === "ascending") {
this.searchData.Asc = true;
if (column.order === 'ascending') {
this.searchData.Asc = true
} else {
this.searchData.Asc = false;
this.searchData.Asc = false
}
this.searchData.SortField = column.prop;
this.searchData.PageIndex = 1;
this.getList();
this.searchData.SortField = column.prop
this.searchData.PageIndex = 1
this.getList()
},
},
};
}
</script>
<style lang="scss" scoped>
.consistency-analysis-wrapper {