569 lines
21 KiB
Plaintext
569 lines
21 KiB
Plaintext
/* eslint-disable */
|
|
<template>
|
|
<BaseContainer>
|
|
<template slot="search-container">
|
|
<el-form :inline="true">
|
|
<el-form-item :label="$t('trials:consistencyCheck:table:siteId')">
|
|
<el-select v-model="searchData.SiteId" clearable filterable style="width:120px;">
|
|
<el-option
|
|
v-for="(item,index) of siteOptions"
|
|
:key="index"
|
|
:label="item.TrialSiteCode"
|
|
:value="item.SiteId"
|
|
/>
|
|
</el-select>
|
|
</el-form-item>
|
|
<!-- 受试者编号 -->
|
|
<el-form-item :label="$t('trials:consistencyCheck:table:subjectId')">
|
|
<el-input v-model="searchData.SubjectCode" style="width:100px;" />
|
|
</el-form-item>
|
|
<el-form-item style="margin-bottom:10px" label="访视/阅片期名称">
|
|
<el-input
|
|
v-model="searchData.TaskName"
|
|
style="width:100px;"
|
|
clearable
|
|
/>
|
|
</el-form-item>
|
|
<el-form-item style="margin-bottom:10px" label="阅片人">
|
|
<el-select v-model="searchData.DoctorUserId" clearable style="width:120px;">
|
|
<el-option v-for="item of DoctorUserList" :key="'DoctorUserId' + item.DoctorUserId" :value="item.DoctorUserId" :label="item.UserName" />
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item style="margin-bottom:10px" label="是否加急">
|
|
<el-select v-model="searchData.IsUrgent" clearable style="width:120px;">
|
|
<el-option v-for="item of $d.YesOrNo" :key="'IsUrgent' + item.label" :value="item.value" :label="item.label" />
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item style="margin-bottom:10px" label="任务类型">
|
|
<el-select v-model="searchData.ReadingCategory" clearable style="width:120px;">
|
|
<el-option v-for="item of $d.ReadingCategory" :key="'ReadingCategory' + item.label" :value="item.value" :label="item.label" />
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item style="margin-bottom:10px" label="阅片状态">
|
|
<el-select v-model="searchData.TaskAllocationState" clearable style="width:120px;">
|
|
<el-option v-for="item of $d.TaskAllocationState" :key="'TaskAllocationState' + item.label" :value="item.value" :label="item.label" />
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item style="margin-bottom:10px" label="审核状态">
|
|
<el-select v-model="searchData.TaskAllocationState" clearable style="width:120px;">
|
|
<el-option v-for="item of $d.TaskAllocationState" :key="'TaskAllocationState' + item.label" :value="item.value" :label="item.label" />
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item style="margin-bottom:10px">
|
|
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
|
{{ $t('common:button:search') }}
|
|
</el-button>
|
|
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
|
|
{{ $t('common:button:reset') }}
|
|
</el-button>
|
|
<el-button type="primary" @click="openTaskConsistentRule(true)">
|
|
自身一致性分析
|
|
</el-button>
|
|
<el-button type="primary" @click="openTaskConsistentRule(false)">
|
|
组间一致性分析
|
|
</el-button>
|
|
</el-form-item>
|
|
</el-form>
|
|
</template>
|
|
<template slot="main-container">
|
|
<el-table
|
|
v-adaptive="{bottomOffset:60}"
|
|
v-loading="loading"
|
|
:data="list"
|
|
stripe
|
|
height="100"
|
|
@sort-change="handleSortChange"
|
|
>
|
|
<el-table-column
|
|
prop="IsUrgent"
|
|
:label="$t('trials:consistencyCheck:table:isUrgent')"
|
|
show-overflow-tooltip
|
|
min-width="100"
|
|
sortable="custom"
|
|
>
|
|
<template slot-scope="scope">
|
|
<el-tag v-if="scope.row.IsUrgent" type="danger">{{ $fd('YesOrNo', scope.row.IsUrgent) }}</el-tag>
|
|
<el-tag v-else type="primary">{{ $fd('YesOrNo', scope.row.IsUrgent) }}</el-tag>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="TaskCode"
|
|
label="任务编号"
|
|
min-width="100"
|
|
sortable="custom"
|
|
show-overflow-tooltip
|
|
/>
|
|
<el-table-column
|
|
prop="TrialSiteCode"
|
|
label="中心编号"
|
|
min-width="100"
|
|
sortable="custom"
|
|
show-overflow-tooltip
|
|
/>
|
|
<el-table-column
|
|
prop="SubjectCode"
|
|
label="受试者编号"
|
|
min-width="120"
|
|
sortable="custom"
|
|
show-overflow-tooltip
|
|
/>
|
|
<el-table-column
|
|
prop="TaskName"
|
|
label="访视/阅片期名称"
|
|
min-width="160"
|
|
sortable="custom"
|
|
show-overflow-tooltip
|
|
/>
|
|
<el-table-column
|
|
prop="TaskBlindName"
|
|
label="访视盲态名称"
|
|
min-width="140"
|
|
sortable="custom"
|
|
show-overflow-tooltip
|
|
/>
|
|
<el-table-column
|
|
prop="ReadingCategory"
|
|
label="阅片类别"
|
|
min-width="100"
|
|
sortable="custom"
|
|
show-overflow-tooltip
|
|
>
|
|
<template slot-scope="scope">
|
|
<el-tag v-if="scope.row.ReadingCategory === 1" type="primary">{{ $fd('ReadingCategory', scope.row.ReadingCategory) }}</el-tag>
|
|
<el-tag v-if="scope.row.ReadingCategory === 2" type="info">{{ $fd('ReadingCategory', scope.row.ReadingCategory) }}</el-tag>
|
|
<el-tag v-if="scope.row.ReadingCategory === 4" type="danger">{{ $fd('ReadingCategory', scope.row.ReadingCategory) }}</el-tag>
|
|
<el-tag v-if="scope.row.ReadingCategory === 5" type="warning">{{ $fd('ReadingCategory', scope.row.ReadingCategory) }}</el-tag>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="role"
|
|
label="角色"
|
|
min-width="80"
|
|
show-overflow-tooltip
|
|
>
|
|
<template slot-scope="scope">
|
|
<el-tag v-if="scope.row.ArmEnum === 1" type="primary">{{$fd('ArmEnum', scope.row.ArmEnum)}}</el-tag>
|
|
<el-tag v-if="scope.row.ArmEnum === 2" type="success">{{$fd('ArmEnum', scope.row.ArmEnum)}}</el-tag>
|
|
<el-tag v-if="scope.row.ArmEnum === 3" type="info">{{$fd('ArmEnum', scope.row.ArmEnum)}}</el-tag>
|
|
<el-tag v-if="scope.row.ArmEnum === 4" type="danger">{{$fd('ArmEnum', scope.row.ArmEnum)}}</el-tag>
|
|
<el-tag v-if="scope.row.ArmEnum === 5" type="warning">{{$fd('ArmEnum', scope.row.ArmEnum)}}</el-tag>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="DoctorUser.UserName"
|
|
label="阅片人"
|
|
min-width="100"
|
|
sortable="custom"
|
|
show-overflow-tooltip
|
|
>
|
|
<template slot-scope="scope" v-if="scope.row.DoctorUser.UserName">
|
|
{{scope.row.DoctorUser.UserName}}({{scope.row.DoctorUser.FullName}})
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="SignTime"
|
|
label="阅片完成时间"
|
|
min-width="140"
|
|
sortable="custom"
|
|
show-overflow-tooltip
|
|
/>
|
|
<el-table-column
|
|
prop="TaskState"
|
|
label="任务状态"
|
|
min-width="100"
|
|
sortable="custom"
|
|
show-overflow-tooltip
|
|
>
|
|
<template slot-scope="scope">
|
|
<el-tag v-if="scope.row.TaskState === 0" type="primary">{{ $fd('TaskState', scope.row.TaskState) }}</el-tag>
|
|
<el-tag v-if="scope.row.TaskState === 1" type="info">{{ $fd('TaskState', scope.row.TaskState) }}</el-tag>
|
|
<el-tag v-if="scope.row.TaskState === 3" type="danger">{{ $fd('TaskState', scope.row.TaskState) }}</el-tag>
|
|
<el-tag v-if="scope.row.TaskState === 4" type="warning">{{ $fd('TaskState', scope.row.TaskState) }}</el-tag>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="MedicalManagerUser.UserName"
|
|
label="医学经理"
|
|
min-width="100"
|
|
sortable="custom"
|
|
show-overflow-tooltip
|
|
>
|
|
<template slot-scope="scope" v-if="scope.row.MedicalManagerUser">
|
|
{{scope.row.MedicalManagerUser.UserName}}({{scope.row.MedicalManagerUser.FullName}})
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="AllocateTime"
|
|
label="审核分配时间"
|
|
min-width="140"
|
|
sortable="custom"
|
|
show-overflow-tooltip
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="AuditState"
|
|
label="审核状态"
|
|
min-width="100"
|
|
sortable="custom"
|
|
show-overflow-tooltip
|
|
>
|
|
<template slot-scope="scope">
|
|
<el-tag type="warning" v-if="scope.row.AuditState === 0">{{$fd('MedicalReviewAuditState', scope.row.AuditState)}}</el-tag>
|
|
<el-tag type="primary" v-if="scope.row.AuditState === 1">{{$fd('MedicalReviewAuditState', scope.row.AuditState)}}</el-tag>
|
|
<el-tag type="danger" v-if="scope.row.AuditState === 2">{{$fd('MedicalReviewAuditState', scope.row.AuditState)}}</el-tag>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="AuditSignTime"
|
|
label="审核签名时间"
|
|
min-width="140"
|
|
sortable="custom"
|
|
show-overflow-tooltip
|
|
/>
|
|
<el-table-column
|
|
prop="AuditSuggestion"
|
|
label="审核建议"
|
|
min-width="100"
|
|
sortable="custom"
|
|
show-overflow-tooltip
|
|
>
|
|
<template slot-scope="scope">
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="DoctorUserIdeaEnum"
|
|
label="阅片人是否认同"
|
|
min-width="160"
|
|
sortable="custom"
|
|
show-overflow-tooltip
|
|
>
|
|
<template slot-scope="scope">
|
|
<el-tag type="primary" v-if="scope.row.DoctorUserIdeaEnum === 1"> {{$fd('MedicalReviewDoctorUserIdea', scope.row.DoctorUserIdeaEnum)}} </el-tag>
|
|
<el-tag type="danger" v-if="scope.row.DoctorUserIdeaEnum === 2"> {{$fd('MedicalReviewDoctorUserIdea', scope.row.DoctorUserIdeaEnum)}} </el-tag>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
fixed="right"
|
|
label="操作"
|
|
width="210"
|
|
>
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
:disabled="!scope.row.MedicalManagerUserId"
|
|
icon="el-icon-close"
|
|
circle
|
|
title="取消分配"
|
|
@click="assignMedicalReviewTask(scope.row,3)"
|
|
/>
|
|
<el-button
|
|
:disabled="!scope.row.MedicalManagerUserId"
|
|
icon="el-icon-refresh-left"
|
|
circle
|
|
title="重新分配"
|
|
@click="assignMedicalReviewTask(scope.row,2)"
|
|
/>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<!-- 分页组件 -->
|
|
<pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize" @pagination="getList" />
|
|
<el-dialog
|
|
v-if="ReaderRulesVisible"
|
|
:title="title"
|
|
:visible.sync="ReaderRulesVisible"
|
|
width="1200px"
|
|
append-to-body
|
|
:close-on-click-modal="false"
|
|
custom-class="base-dialog-wrapper"
|
|
>
|
|
<el-button size="small" type="primary" style="position: absolute;right: 20px;top: 60px;z-index: 100;" :loading="btnLoading" @click="addReaderRulesForm">
|
|
添加阅片人{{ title }}规则
|
|
</el-button>
|
|
<div class="base-dialog-body" style="margin-top: 32px;">
|
|
<el-table
|
|
v-loading="loading"
|
|
:data="TaskConsistentRuleList"
|
|
stripe
|
|
>
|
|
<el-table-column
|
|
prop="TaskCode"
|
|
label="阅片人"
|
|
min-width="140"
|
|
show-overflow-tooltip
|
|
>
|
|
<template slot-scope="scope">
|
|
{{scope.row.AnalysisDoctorUser.UserName}}({{scope.row.AnalysisDoctorUser.FullName}})
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="TaskCode"
|
|
label="对比阅片人"
|
|
min-width="140"
|
|
show-overflow-tooltip
|
|
v-if="!IsSelfAnalysis"
|
|
>
|
|
<template slot-scope="scope">
|
|
{{scope.row.CompareDoctorUser.UserName}}({{scope.row.CompareDoctorUser.FullName}})
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="PlanSubjectCount"
|
|
label="计划受试者数"
|
|
min-width="120"
|
|
show-overflow-tooltip
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="GeneratedSubjectCount"
|
|
label="已生成受试者数"
|
|
min-width="130"
|
|
show-overflow-tooltip
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="PlanVisitCount"
|
|
label="访视数"
|
|
min-width="90"
|
|
show-overflow-tooltip
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="IntervalWeeks"
|
|
label="间隔周期"
|
|
min-width="100"
|
|
show-overflow-tooltip
|
|
v-if="IsSelfAnalysis"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="IsHaveReadingPeriod"
|
|
label="所选访视是否有阅片期"
|
|
min-width="180"
|
|
show-overflow-tooltip
|
|
>
|
|
<template slot-scope="scope">
|
|
<el-tag v-if="scope.row.IsHaveReadingPeriod" size="success">{{$fd('YesOrNo', scope.row.IsHaveReadingPeriod)}}</el-tag>
|
|
<el-tag v-else size="danger">{{$fd('YesOrNo', scope.row.IsHaveReadingPeriod)}}</el-tag>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="IsGenerateGlobalTask"
|
|
label="是否生成全局阅片任务"
|
|
min-width="180"
|
|
show-overflow-tooltip
|
|
>
|
|
<template slot-scope="scope">
|
|
<el-tag v-if="scope.row.IsGenerateGlobalTask" size="success">{{$fd('YesOrNo', scope.row.IsGenerateGlobalTask)}}</el-tag>
|
|
<el-tag v-else size="danger">{{$fd('YesOrNo', scope.row.IsGenerateGlobalTask)}}</el-tag>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
fixed="right"
|
|
label="操作"
|
|
width="140"
|
|
>
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
circle
|
|
icon="el-icon-s-check"
|
|
title="选择"
|
|
@click="openDoctorConsistentRuleSubjectTable(scope.row)"
|
|
/>
|
|
<el-button
|
|
circle
|
|
icon="el-icon-edit-outline"
|
|
title="编辑"
|
|
@click="editReaderRulesForm(scope.row)"
|
|
/>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
</div>
|
|
<div slot="footer" class="dialog-footer">
|
|
<!-- 取消 -->
|
|
<el-button :disabled="btnLoading" size="small" type="primary" @click="ReaderRulesVisible = false">
|
|
{{ $t('common:button:cancel') }}
|
|
</el-button>
|
|
<!-- 保存 -->
|
|
<el-button :loading="btnLoading" size="small" type="primary">
|
|
应用
|
|
</el-button>
|
|
</div>
|
|
</el-dialog>
|
|
<el-dialog
|
|
v-if="ReaderRulesFormVisible"
|
|
title="分配医学经理"
|
|
:visible.sync="ReaderRulesFormVisible"
|
|
width="500px"
|
|
:close-on-click-modal="false"
|
|
>
|
|
<ReaderRulesForm :data="rowData" :select-list="SelectList" :doctor-user-list="DoctorUserList" :is-self-analysis="IsSelfAnalysis" @close="() => {ReaderRulesFormVisible = false; rowData = {}}" @getList="openTaskConsistentRule(IsSelfAnalysis)" />
|
|
</el-dialog>
|
|
<el-dialog
|
|
v-if="DoctorConsistentRuleSubjectTableVisible"
|
|
title="选择受试者"
|
|
:visible.sync="DoctorConsistentRuleSubjectTableVisible"
|
|
width="1000px"
|
|
:close-on-click-modal="false"
|
|
>
|
|
<DoctorConsistentRuleSubjectTable :data="rowData" @close="() => {DoctorConsistentRuleSubjectTableVisible = false; ; rowData = {}}" @getList="openTaskConsistentRule(IsSelfAnalysis)" />
|
|
</el-dialog>
|
|
</template>
|
|
</BaseContainer>
|
|
</template>
|
|
<script>
|
|
import { getTrialSiteSelect } from '@/api/trials'
|
|
import { getDoctorUserSelectList, getAnalysisTaskList, getDoctorConsistentRuleSubjectList, confirmGenerateConsistentTask, getTaskConsistentRuleList, addOrUpdateTaskConsistentRule, deleteTaskConsistentRule } from '@/api/trials/reading'
|
|
import ReaderRulesForm from './components/ReaderRulesForm'
|
|
import DoctorConsistentRuleSubjectTable from './components/DoctorConsistentRuleSubjectTable'
|
|
import BaseContainer from '@/components/BaseContainer'
|
|
import Pagination from '@/components/Pagination'
|
|
const searchDataDefault = () => {
|
|
return {
|
|
PageIndex: 1,
|
|
PageSize: 20,
|
|
Asc: true,
|
|
SortField: '',
|
|
TrialId: null,
|
|
SiteId: null,
|
|
SubjectId: null,
|
|
SubjectCode: null,
|
|
IsUrgent: null,
|
|
TaskName: null,
|
|
DoctorUserId: null,
|
|
ReadingCategory: null,
|
|
TaskAllocationState: null,
|
|
BeginAllocateDate: null,
|
|
EndAllocateDate: null,
|
|
}
|
|
}
|
|
export default {
|
|
name: 'TrialsNotice',
|
|
components: { BaseContainer, Pagination, ReaderRulesForm, DoctorConsistentRuleSubjectTable },
|
|
data() {
|
|
return {
|
|
searchData: searchDataDefault(),
|
|
maxLength: 0,
|
|
list: [],
|
|
siteOptions: [],
|
|
total: 0,
|
|
loading: false,
|
|
ReaderRulesVisible: false,
|
|
DoctorConsistentRuleSubjectTableVisible: false,
|
|
trialId: this.$route.query.trialId,
|
|
currentData: {},
|
|
param: {},
|
|
DoctorUserList: [],
|
|
btnLoading: false,
|
|
rowData: {},
|
|
OtherInfo: null,
|
|
title: null,
|
|
SelectList: [],
|
|
TaskConsistentRuleList: [],
|
|
ReaderRulesFormVisible: false,
|
|
IsSelfAnalysis: true
|
|
}
|
|
},
|
|
mounted() {
|
|
this.getList()
|
|
this.getSite()
|
|
this.getDoctorUserSelectList()
|
|
},
|
|
methods: {
|
|
editReaderRulesForm(row) {
|
|
this.rowData = {...row}
|
|
this.ReaderRulesFormVisible = true
|
|
},
|
|
openDoctorConsistentRuleSubjectTable(row) {
|
|
this.rowData = {...row}
|
|
this.DoctorConsistentRuleSubjectTableVisible = true
|
|
},
|
|
addReaderRulesForm() {
|
|
this.ReaderRulesFormVisible = true
|
|
},
|
|
openTaskConsistentRule(IsSelfAnalysis) {
|
|
if (IsSelfAnalysis) {
|
|
this.title = '自身一致性分析'
|
|
} else {
|
|
this.title = '组间一致性分析'
|
|
}
|
|
getTaskConsistentRuleList({
|
|
IsSelfAnalysis: IsSelfAnalysis,
|
|
TrialId: this.trialId
|
|
}).then(res => {
|
|
this.ReaderRulesFormVisible = false
|
|
this.DoctorConsistentRuleSubjectTableVisible = false
|
|
this.TaskConsistentRuleList = res.Result
|
|
this.IsSelfAnalysis = IsSelfAnalysis
|
|
this.ReaderRulesVisible = true
|
|
})
|
|
},
|
|
getDoctorUserSelectList() {
|
|
getDoctorUserSelectList(this.$route.query.trialId).then(res => {
|
|
this.DoctorUserList = res.Result
|
|
if (this.DoctorUserList.length > 0) {
|
|
this.ReadingType = this.DoctorUserList[0].ReadingType
|
|
} else {
|
|
this.$alert('请先去选择项目阅片人')
|
|
}
|
|
})
|
|
},
|
|
getList() {
|
|
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.AssignMedicalReviewTaskVisible = false
|
|
}).catch(() => { this.loading = false })
|
|
},
|
|
handleSearch() {
|
|
this.searchData.PageIndex = 1
|
|
this.getList()
|
|
},
|
|
handleReset() {
|
|
this.searchData = searchDataDefault()
|
|
this.getList()
|
|
},
|
|
getSite() {
|
|
getTrialSiteSelect(this.trialId).then(res => {
|
|
this.siteOptions = res.Result
|
|
})
|
|
},
|
|
// 排序
|
|
handleSortChange(column) {
|
|
if (column.order === 'ascending') {
|
|
this.searchData.Asc = true
|
|
} else {
|
|
this.searchData.Asc = false
|
|
}
|
|
this.searchData.SortField = column.prop
|
|
this.searchData.PageIndex = 1
|
|
this.getList()
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
>>>.hidden-row{
|
|
display: none;
|
|
}
|
|
>>>.el-dialog__body {
|
|
padding: 15px 20px;
|
|
}
|
|
|
|
>>>.el-tag--danger.el-tag--dark {
|
|
// background-color: #f56c6c!important;
|
|
border-color: none!important;
|
|
// color: #fff!important;
|
|
}
|
|
>>>#TaskAllocationRuleList thead .el-checkbox__inner{
|
|
display: none;
|
|
}
|
|
>>>.el-descriptions-item__label.has-colon:after{
|
|
display: none;
|
|
}
|
|
</style>
|