Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing Details

main
caiyiling 2025-03-10 16:11:22 +08:00
commit c0588661ce
9 changed files with 1982 additions and 590 deletions

View File

@ -1241,3 +1241,11 @@ export function authorizedTrialTrianingRecord(data) {
data data
}) })
} }
// 项目文档-阅片人简历
export function getTrialDoctorList(data) {
return request({
url: `/DoctorList/getTrialDoctorList`,
method: 'post',
data
})
}

View File

@ -4,6 +4,7 @@
<el-col :span="24"> <el-col :span="24">
<div class="box"> <div class="box">
<div class="box-body"> <div class="box-body">
<slot name="title-container" />
<div class="search"> <div class="search">
<slot name="search-container" /> <slot name="search-container" />
</div> </div>
@ -24,42 +25,42 @@ export default {
props: { props: {
noTitle: { noTitle: {
type: Boolean, type: Boolean,
default: false default: false,
} },
}, },
computed: { computed: {
contentClass() { contentClass() {
return this.noTitle ? 'content-notitle' : 'content' return this.noTitle ? 'content-notitle' : 'content'
} },
} },
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.box-body{ .box-body {
padding: 0px; padding: 0px;
background-color: #fff; background-color: #fff;
.el-card__body { .el-card__body {
padding: 0px; padding: 0px;
} }
.search{ .search {
display: flex; display: flex;
padding: 5px; padding: 5px;
.mr5{ .mr5 {
margin-right:5px; margin-right: 5px;
}
.el-form-item{
margin-bottom: 10px;
}
} }
.page{ .el-form-item {
text-align: right; margin-bottom: 10px;
padding-top: 3px;
}
.el-button.is-circle {
padding: 9px;
font-weight: bold;
font-size: 14px;
} }
} }
.page {
text-align: right;
padding-top: 3px;
}
.el-button.is-circle {
padding: 9px;
font-weight: bold;
font-size: 14px;
}
}
</style> </style>

View File

@ -1,5 +1,10 @@
<template> <template>
<BaseContainer> <BaseContainer>
<template slot="title-container">
<div class="title" v-if="isDoc">
{{ TITLE }}
</div>
</template>
<!-- 搜索框 --> <!-- 搜索框 -->
<template slot="search-container"> <template slot="search-container">
<el-form :inline="true"> <el-form :inline="true">
@ -23,7 +28,10 @@
<el-input v-model="searchData.Name" style="width: 120px" /> <el-input v-model="searchData.Name" style="width: 120px" />
</el-form-item> </el-form-item>
<!-- 签署人 --> <!-- 签署人 -->
<el-form-item :label="$t('trials:signRecords:table:user')"> <el-form-item
:label="$t('trials:signRecords:table:user')"
v-if="!isDoc"
>
<el-select <el-select
v-model="searchData.UserId" v-model="searchData.UserId"
clearable clearable
@ -51,7 +59,10 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 用户类型 --> <!-- 用户类型 -->
<el-form-item :label="$t('trials:signRecords:table:userType')"> <el-form-item
:label="$t('trials:signRecords:table:userType')"
v-if="!isDoc"
>
<el-select <el-select
v-model="searchData.UserTypeId" v-model="searchData.UserTypeId"
clearable clearable
@ -69,7 +80,10 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('trials:signRecords:table:isSign')"> <el-form-item
:label="$t('trials:signRecords:table:isSign')"
v-if="!isDoc || !viewStatus"
>
<el-select <el-select
v-model="searchData.IsConfirmed" v-model="searchData.IsConfirmed"
clearable clearable
@ -83,7 +97,13 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('trials:signRecords:table:isDeleted')"> <el-form-item
:label="
isDoc
? $t('trials:signRecords:table:isDeletedFile')
: $t('trials:signRecords:table:isDeleted')
"
>
<el-select <el-select
v-model="searchData.IsDeleted" v-model="searchData.IsDeleted"
clearable clearable
@ -97,6 +117,25 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item
:label="$t('trials:signRecords:table:username')"
v-if="isDoc"
>
<el-input v-model="searchData.UserName" style="width: 120px" />
</el-form-item>
<el-form-item
:label="$t('trials:signRecords:table:confirmTime')"
v-if="isDoc"
>
<el-date-picker
v-model="timeList"
@change="changeTimeList"
value-format="yyyy-MM-dd HH:mm:ss"
:default-time="['00:00:00', '23:59:59']"
type="datetimerange"
>
</el-date-picker>
</el-form-item>
<el-form-item> <el-form-item>
<!-- 查询 --> <!-- 查询 -->
<el-button icon="el-icon-search" type="primary" @click="handleSearch"> <el-button icon="el-icon-search" type="primary" @click="handleSearch">
@ -170,7 +209,11 @@
<!-- 是否废除 --> <!-- 是否废除 -->
<el-table-column <el-table-column
prop="IsDeleted" prop="IsDeleted"
:label="$t('trials:signRecords:table:isDeleted')" :label="
isDoc
? $t('trials:signRecords:table:isDeletedFile')
: $t('trials:signRecords:table:isDeleted')
"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
> >
@ -213,6 +256,7 @@
:label="$t('trials:signRecords:table:user')" :label="$t('trials:signRecords:table:user')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
v-if="!isDoc || !viewStatus"
/> />
<!-- 用户名 --> <!-- 用户名 -->
<el-table-column <el-table-column
@ -302,6 +346,9 @@ import Pagination from '@/components/Pagination'
import PreviewFile from '@/components/PreviewFile/index' import PreviewFile from '@/components/PreviewFile/index'
const searchDataDefault = () => { const searchDataDefault = () => {
return { return {
UserName: null,
StartConfirmTime: null,
EndConfirmTime: null,
FileTypeId: '', FileTypeId: '',
Name: '', Name: '',
UserId: '', UserId: '',
@ -315,6 +362,20 @@ const searchDataDefault = () => {
export default { export default {
name: 'AttachmentsManagement', name: 'AttachmentsManagement',
components: { BaseContainer, Pagination, PreviewFile }, components: { BaseContainer, Pagination, PreviewFile },
props: {
isDoc: {
type: Boolean,
default: false,
},
TITLE: {
type: String,
default: '',
},
viewStatus: {
type: Boolean,
default: false,
},
},
data() { data() {
return { return {
searchData: searchDataDefault(), searchData: searchDataDefault(),
@ -331,15 +392,24 @@ export default {
typeOptions: [], typeOptions: [],
trialId: this.$route.query.trialId, trialId: this.$route.query.trialId,
exportLoading: false, exportLoading: false,
timeList: [],
} }
}, },
mounted() { mounted() {
this.getTypeOptions() this.getTypeOptions()
this.getUserSelect() this.getUserSelect()
this.getUserType() this.getUserType()
this.getList()
}, },
methods: { methods: {
changeTimeList() {
if (this.timeList) {
this.searchData.StartConfirmTime = this.timeList[0]
this.searchData.EndConfirmTime = this.timeList[1]
} else {
this.searchData.StartConfirmTime = null
this.searchData.EndConfirmTime = null
}
},
handleExport() { handleExport() {
this.exportLoading = true this.exportLoading = true
pMTrainingRecordList_Export(this.searchData) pMTrainingRecordList_Export(this.searchData)
@ -353,6 +423,13 @@ export default {
// //
getList() { getList() {
this.loading = true this.loading = true
if (this.viewStatus) {
this.searchData.IsConfirmed = true
let IR = this.userTypeOptions.find((item) => item.UserTypeEnum == 13)
if (IR) {
this.searchData.UserTypeId = IR.Id
}
}
this.searchData.TrialId = this.trialId this.searchData.TrialId = this.trialId
getDocumentConfirmList(this.searchData) getDocumentConfirmList(this.searchData)
.then(async (res) => { .then(async (res) => {
@ -379,9 +456,14 @@ export default {
}, },
// //
getUserType() { getUserType() {
getTrialUserTypeList().then((res) => { getTrialUserTypeList()
this.userTypeOptions = res.Result .then((res) => {
}) this.userTypeOptions = res.Result
this.getList()
})
.catch(() => {
this.getList()
})
}, },
// //
handlePreview(row) { handlePreview(row) {
@ -396,6 +478,7 @@ export default {
// //
handleReset() { handleReset() {
this.searchData = searchDataDefault() this.searchData = searchDataDefault()
this.timeList = []
this.getList() this.getList()
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.AttachmentsManagement.clearSort() this.$refs.AttachmentsManagement.clearSort()
@ -418,3 +501,10 @@ export default {
}, },
} }
</script> </script>
<style lang="scss" scoped>
.title {
line-height: 40px;
font-weight: bold;
margin-bottom: 10px;
}
</style>

View File

@ -1,19 +1,41 @@
/* eslint-disable */ /* eslint-disable */
<template> <template>
<BaseContainer> <BaseContainer>
<template slot="title-container">
<div class="title" v-if="isDoc">
{{ TITLE }}
</div>
</template>
<template slot="search-container"> <template slot="search-container">
<el-form :inline="true"> <el-form :inline="true">
<!-- 是否加急 --> <!-- 是否加急 -->
<el-form-item style="margin-bottom:10px" :label="$t('trials:pmMedicalReview:table:isUrgent')"> <el-form-item
<el-select v-model="searchData.IsUrgent" clearable style="width:120px;"> style="margin-bottom: 10px"
<el-option v-for="item of $d.YesOrNo" :key="'IsUrgent' + item.label" :value="item.value" :label="item.label" /> :label="$t('trials:pmMedicalReview:table:isUrgent')"
>
<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-select>
</el-form-item> </el-form-item>
<!-- 中心编号 --> <!-- 中心编号 -->
<el-form-item :label="$t('trials:pmMedicalReview:table:siteCode')"> <el-form-item :label="$t('trials:pmMedicalReview:table:siteCode')">
<el-select v-model="searchData.TrialSiteCode" clearable filterable style="width:120px;"> <el-select
v-model="searchData.TrialSiteCode"
clearable
filterable
style="width: 120px"
>
<el-option <el-option
v-for="(item,index) of siteOptions" v-for="(item, index) of siteOptions"
:key="index" :key="index"
:label="item" :label="item"
:value="item" :value="item"
@ -22,87 +44,202 @@
</el-form-item> </el-form-item>
<!-- 受试者编号 --> <!-- 受试者编号 -->
<el-form-item :label="$t('trials:pmMedicalReview:table:subjectCode')"> <el-form-item :label="$t('trials:pmMedicalReview:table:subjectCode')">
<el-input v-model="searchData.SubjectCode" style="width:100px;" /> <el-input v-model="searchData.SubjectCode" style="width: 100px" />
</el-form-item> </el-form-item>
<!-- 任务名称 --> <!-- 任务名称 -->
<el-form-item style="margin-bottom:10px" :label="$t('trials:pmMedicalReview:table:taskName')"> <el-form-item
style="margin-bottom: 10px"
:label="$t('trials:pmMedicalReview:table:taskName')"
>
<el-input <el-input
v-model="searchData.TaskName" v-model="searchData.TaskName"
style="width:100px;" style="width: 100px"
clearable clearable
/> />
</el-form-item> </el-form-item>
<!-- 任务类型 --> <!-- 任务类型 -->
<el-form-item style="margin-bottom:10px" :label="$t('trials:pmMedicalReview:table:taskType')"> <el-form-item
<el-select v-model="searchData.ReadingCategory" clearable style="width:120px;"> style="margin-bottom: 10px"
<el-option v-for="item of $d.ReadingCategory" :key="'ReadingCategory' + item.label" :value="item.value" :label="item.label" /> :label="$t('trials:pmMedicalReview:table:taskType')"
>
<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-select>
</el-form-item> </el-form-item>
<!-- 阅片人 --> <!-- 阅片人 -->
<el-form-item style="margin-bottom:10px" :label="$t('trials:pmMedicalReview:table:reader')"> <el-form-item
<el-select v-model="searchData.DoctorUserId" clearable style="width:120px;"> style="margin-bottom: 10px"
<el-option v-for="item of DoctorUserList" :key="'DoctorUserId' + item.DoctorUserId" :value="item.DoctorUserId" :label="`${item.UserName}(${item.FullName})`" /> :label="$t('trials:pmMedicalReview:table:reader')"
>
<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="
viewStatus
? `${item.UserName}`
: `${item.UserName}(${item.FullName})`
"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 角色 --> <!-- 角色 -->
<el-form-item style="margin-bottom:10px" :label="$t('trials:reviewTrack:table:role')"> <el-form-item
<el-select v-model="searchData.ArmEnum" clearable style="width:120px;"> style="margin-bottom: 10px"
<el-option v-for="item of $d.ArmEnum" :key="'ArmEnum' + item.label" :value="item.value" :label="item.label" /> :label="$t('trials:reviewTrack:table:role')"
>
<el-select
v-model="searchData.ArmEnum"
clearable
style="width: 120px"
>
<el-option
v-for="item of $d.ArmEnum"
:key="'ArmEnum' + item.label"
:value="item.value"
:label="item.label"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 审核人 --> <!-- 审核人 -->
<el-form-item style="margin-bottom:10px" :label="$t('trials:pmMedicalReview:table:mim')"> <el-form-item
style="margin-bottom: 10px"
:label="$t('trials:pmMedicalReview:table:mim')"
>
<el-select v-model="searchData.MedicalManagerUserId" clearable> <el-select v-model="searchData.MedicalManagerUserId" clearable>
<el-option v-for="item of MIMOptions" :label="`${item.UserName}(${item.FullName})`" :value="item.UserId" :key="item.UserId" /> <el-option
v-for="item of MIMOptions"
:label="`${item.UserName}(${item.FullName})`"
:value="item.UserId"
:key="item.UserId"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 审核状态 --> <!-- 审核状态 -->
<el-form-item style="margin-bottom:10px" :label="$t('trials:pmMedicalReview:table:auditState')"> <el-form-item
<el-select v-model="searchData.AuditState" clearable style="width:120px;"> style="margin-bottom: 10px"
<el-option v-for="item of $d.MedicalReviewAuditState" :key="'AuditState' + item.label" :value="item.value" :label="item.label" /> :label="$t('trials:pmMedicalReview:table:auditState')"
v-if="!viewStatus"
>
<el-select
v-model="searchData.AuditState"
clearable
style="width: 120px"
>
<el-option
v-for="item of $d.MedicalReviewAuditState"
:key="'AuditState' + item.label"
:value="item.value"
:label="item.label"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 审核结论 --> <!-- 审核结论 -->
<el-form-item style="margin-bottom:10px" :label="$t('trials:pmMedicalReview:table:IsHaveQuestion')"> <el-form-item
<el-select v-model="searchData.IsHaveQuestion" clearable style="width:120px;"> style="margin-bottom: 10px"
<el-option v-for="item of $d.IsPass" :key="'IsHaveQuestion' + item.label" :value="item.value" :label="item.label" /> :label="$t('trials:pmMedicalReview:table:IsHaveQuestion')"
>
<el-select
v-model="searchData.IsHaveQuestion"
clearable
style="width: 120px"
>
<el-option
v-for="item of $d.IsPass"
:key="'IsHaveQuestion' + item.label"
:value="item.value"
:label="item.label"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 审核建议 --> <!-- 审核建议 -->
<el-form-item style="margin-bottom:10px" :label="$t('trials:pmMedicalReview:table:auditAdvice')"> <el-form-item
<el-select v-model="searchData.AuditAdviceEnum" clearable style="width:120px;"> style="margin-bottom: 10px"
<el-option v-for="item of $d.AuditAdvice" :key="'AuditAdvice' + item.label" :value="item.value" :label="item.label" /> :label="$t('trials:pmMedicalReview:table:auditAdvice')"
>
<el-select
v-model="searchData.AuditAdviceEnum"
clearable
style="width: 120px"
>
<el-option
v-for="item of $d.AuditAdvice"
:key="'AuditAdvice' + item.label"
:value="item.value"
:label="item.label"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 阅片人认同 --> <!-- 阅片人认同 -->
<el-form-item style="margin-bottom:10px" :label="$t('trials:pmMedicalReview:table:whetherAgree')"> <el-form-item
<el-select v-model="searchData.DoctorUserIdeaEnum" clearable style="width:120px;"> style="margin-bottom: 10px"
<el-option v-for="item of $d.MedicalReviewDoctorUserIdea" :key="'DoctorUserIdeaEnum' + item.label" :value="item.value" :label="item.label" /> :label="$t('trials:pmMedicalReview:table:whetherAgree')"
>
<el-select
v-model="searchData.DoctorUserIdeaEnum"
clearable
style="width: 120px"
>
<el-option
v-for="item of $d.MedicalReviewDoctorUserIdea"
:key="'DoctorUserIdeaEnum' + item.label"
:value="item.value"
:label="item.label"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 阅片标准 --> <!-- 阅片标准 -->
<el-form-item style="margin-bottom:10px" :label="$t('trials:pmMedicalReview:table:criterionName')"> <el-form-item
<el-select v-model="searchData.TrialReadingCriterionId" clearable style="width:120px;"> style="margin-bottom: 10px"
<el-option v-for="item of trialCriterionList" :key="'TrialReadingCriterionId' + item.TrialReadingCriterionId" :value="item.TrialReadingCriterionId" :label="item.TrialReadingCriterionName" /> :label="$t('trials:pmMedicalReview:table:criterionName')"
>
<el-select
v-model="searchData.TrialReadingCriterionId"
clearable
style="width: 120px"
>
<el-option
v-for="item of trialCriterionList"
:key="'TrialReadingCriterionId' + item.TrialReadingCriterionId"
:value="item.TrialReadingCriterionId"
:label="item.TrialReadingCriterionName"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 阅片任务状态 --> <!-- 阅片任务状态 -->
<!-- <el-form-item style="margin-bottom:10px" :label="$t('trials:pmMedicalReview:table:taskState')"> <!-- <el-form-item style="margin-bottom:10px" :label="$t('trials:pmMedicalReview:table:taskState')">
<el-select v-model="searchData.TaskState" clearable style="width:120px;"> <el-select v-model="searchData.TaskState" clearable style="width:120px;">
<el-option v-for="item of $d.TaskState" :key="'TaskState' + item.label" :value="item.value" :label="item.label" /> <el-option v-for="item of $d.TaskState" :key="'TaskState' + item.label" :value="item.value" :label="item.label" />
</el-select> </el-select>
</el-form-item> --> </el-form-item> -->
<!-- 阅片状态 --> <!-- 阅片状态 -->
<!-- <el-form-item style="margin-bottom:10px" label="阅片状态"> <!-- <el-form-item style="margin-bottom:10px" label="阅片状态">
<el-select v-model="searchData.TaskAllocationState" clearable style="width:120px;"> <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-option v-for="item of $d.TaskAllocationState" :key="'TaskAllocationState' + item.label" :value="item.value" :label="item.label" />
</el-select> </el-select>
</el-form-item> --> </el-form-item> -->
<!-- 审核分配时间 --> <!-- 审核分配时间 -->
<el-form-item style="margin-bottom:10px" :label="$t('trials:pmMedicalReview:table:allocateTime')"> <el-form-item
style="margin-bottom: 10px"
:label="$t('trials:pmMedicalReview:table:allocateTime')"
>
<el-date-picker <el-date-picker
v-model="timeList" v-model="timeList"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
@ -111,34 +248,53 @@
@change="changeTimeList" @change="changeTimeList"
/> />
</el-form-item> </el-form-item>
<el-form-item style="margin-bottom:10px"> <el-form-item style="margin-bottom: 10px">
<el-button type="primary" icon="el-icon-search" @click="handleSearch"> <el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t('common:button:search') }} {{ $t('common:button:search') }}
</el-button> </el-button>
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset"> <el-button
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t('common:button:reset') }} {{ $t('common:button:reset') }}
</el-button> </el-button>
<!--导出--> <!--导出-->
<el-button type="primary" icon="el-icon-download" @click="handleExport"> <el-button
type="primary"
icon="el-icon-download"
@click="handleExport"
v-if="!viewStatus"
>
{{ $t('common:button:export') }} {{ $t('common:button:export') }}
</el-button> </el-button>
<!-- 筛选 --> <!-- 筛选 -->
<el-button type="primary" v-if="hasPermi(['trials:trials-panel:tab:pmMedicalFeedback:edit'])" @click="openFilter"> <el-button
{{$t('trials:pmMedicalReview:button:select')}} type="primary"
v-if="
hasPermi(['trials:trials-panel:tab:pmMedicalFeedback:edit']) &&
!viewStatus
"
@click="openFilter"
>
{{ $t('trials:pmMedicalReview:button:select') }}
</el-button> </el-button>
<!-- 失效记录 --> <!-- 失效记录 -->
<el-button type="primary" icon="el-icon-info" @click="handleViewRecord"> <el-button
{{$t('common:button:failureRecord')}} type="primary"
icon="el-icon-info"
@click="handleViewRecord"
v-if="!viewStatus"
>
{{ $t('common:button:failureRecord') }}
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</template> </template>
<template slot="main-container"> <template slot="main-container">
<el-table <el-table
v-adaptive="{bottomOffset:60}" v-adaptive="{ bottomOffset: 60 }"
v-loading="loading" v-loading="loading"
:data="list" :data="list"
stripe stripe
@ -146,7 +302,12 @@
@sort-change="handleSortChange" @sort-change="handleSortChange"
@selection-change="handleListSelectChange" @selection-change="handleListSelectChange"
> >
<el-table-column type="selection" :selectable="MedicalReviewSelectable" align="left" width="45" /> <el-table-column
type="selection"
:selectable="MedicalReviewSelectable"
align="left"
width="45"
/>
<!-- 是否加急 --> <!-- 是否加急 -->
<el-table-column <el-table-column
prop="IsUrgent" prop="IsUrgent"
@ -156,8 +317,12 @@
sortable="custom" sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.IsUrgent" type="danger">{{ $fd('YesOrNo', scope.row.IsUrgent) }}</el-tag> <el-tag v-if="scope.row.IsUrgent" type="danger">{{
<el-tag v-else type="primary">{{ $fd('YesOrNo', scope.row.IsUrgent) }}</el-tag> $fd('YesOrNo', scope.row.IsUrgent)
}}</el-tag>
<el-tag v-else type="primary">{{
$fd('YesOrNo', scope.row.IsUrgent)
}}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<!-- 中心编号 --> <!-- 中心编号 -->
@ -177,10 +342,15 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.BlindSubjectCode && scope.row.BlindSubjectCode !== scope.row.SubjectCode"> <span
v-if="
scope.row.BlindSubjectCode &&
scope.row.BlindSubjectCode !== scope.row.SubjectCode
"
>
{{ `${scope.row.SubjectCode}/${scope.row.BlindSubjectCode}` }} {{ `${scope.row.SubjectCode}/${scope.row.BlindSubjectCode}` }}
</span> </span>
<span v-else>{{scope.row.SubjectCode}}</span> <span v-else>{{ scope.row.SubjectCode }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- 任务名称 --> <!-- 任务名称 -->
@ -192,10 +362,15 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.TaskBlindName && scope.row.TaskName !== scope.row.TaskBlindName"> <span
v-if="
scope.row.TaskBlindName &&
scope.row.TaskName !== scope.row.TaskBlindName
"
>
{{ `${scope.row.TaskName}/${scope.row.TaskBlindName}` }} {{ `${scope.row.TaskName}/${scope.row.TaskBlindName}` }}
</span> </span>
<span v-else>{{scope.row.TaskName}}</span> <span v-else>{{ scope.row.TaskName }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- 盲态任务标识 --> <!-- 盲态任务标识 -->
@ -215,10 +390,18 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <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 === 1" type="primary">{{
<el-tag v-if="scope.row.ReadingCategory === 2" type="info">{{ $fd('ReadingCategory', scope.row.ReadingCategory) }}</el-tag> $fd('ReadingCategory', scope.row.ReadingCategory)
<el-tag v-if="scope.row.ReadingCategory === 4" type="danger">{{ $fd('ReadingCategory', scope.row.ReadingCategory) }}</el-tag> }}</el-tag>
<el-tag v-if="scope.row.ReadingCategory === 5" type="warning">{{ $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> </template>
</el-table-column> </el-table-column>
<!-- 阅片任务状态 --> <!-- 阅片任务状态 -->
@ -246,7 +429,12 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope" v-if="scope.row.DoctorUser.UserName"> <template slot-scope="scope" v-if="scope.row.DoctorUser.UserName">
{{scope.row.DoctorUser.UserName}}({{scope.row.DoctorUser.FullName}}) <span v-if="viewStatus">{{ scope.row.DoctorUser.UserName }}</span>
<span v-else
>{{ scope.row.DoctorUser.UserName }}({{
scope.row.DoctorUser.FullName
}})</span
>
</template> </template>
</el-table-column> </el-table-column>
<!-- 角色 --> <!-- 角色 -->
@ -258,12 +446,24 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.ArmEnum === 0" type="primary">{{$fd('ArmEnum', scope.row.ArmEnum)}}</el-tag> <el-tag v-if="scope.row.ArmEnum === 0" type="primary">{{
<el-tag v-else-if="scope.row.ArmEnum === 1" type="primary">{{$fd('ArmEnum', scope.row.ArmEnum)}}</el-tag> $fd('ArmEnum', scope.row.ArmEnum)
<el-tag v-else-if="scope.row.ArmEnum === 2" type="success">{{$fd('ArmEnum', scope.row.ArmEnum)}}</el-tag> }}</el-tag>
<el-tag v-else-if="scope.row.ArmEnum === 3" type="info">{{$fd('ArmEnum', scope.row.ArmEnum)}}</el-tag> <el-tag v-else-if="scope.row.ArmEnum === 1" type="primary">{{
<el-tag v-else-if="scope.row.ArmEnum === 4" type="danger">{{$fd('ArmEnum', scope.row.ArmEnum)}}</el-tag> $fd('ArmEnum', scope.row.ArmEnum)
<el-tag v-else type="danger">{{$fd('ArmEnum', scope.row.ArmEnum)}}</el-tag> }}</el-tag>
<el-tag v-else-if="scope.row.ArmEnum === 2" type="success">{{
$fd('ArmEnum', scope.row.ArmEnum)
}}</el-tag>
<el-tag v-else-if="scope.row.ArmEnum === 3" type="info">{{
$fd('ArmEnum', scope.row.ArmEnum)
}}</el-tag>
<el-tag v-else-if="scope.row.ArmEnum === 4" type="danger">{{
$fd('ArmEnum', scope.row.ArmEnum)
}}</el-tag>
<el-tag v-else type="danger">{{
$fd('ArmEnum', scope.row.ArmEnum)
}}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<!-- 医学经理 --> <!-- 医学经理 -->
@ -275,7 +475,9 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope" v-if="scope.row.MedicalManagerUser"> <template slot-scope="scope" v-if="scope.row.MedicalManagerUser">
{{scope.row.MedicalManagerUser.UserName}}({{scope.row.MedicalManagerUser.FullName}}) {{ scope.row.MedicalManagerUser.UserName }}({{
scope.row.MedicalManagerUser.FullName
}})
</template> </template>
</el-table-column> </el-table-column>
<!-- 审核状态 --> <!-- 审核状态 -->
@ -287,9 +489,15 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="warning" v-if="scope.row.AuditState === 0">{{$fd('MedicalReviewAuditState', scope.row.AuditState)}}</el-tag> <el-tag type="warning" v-if="scope.row.AuditState === 0">{{
<el-tag type="primary" v-if="scope.row.AuditState === 1">{{$fd('MedicalReviewAuditState', scope.row.AuditState)}}</el-tag> $fd('MedicalReviewAuditState', scope.row.AuditState)
<el-tag type="danger" v-if="scope.row.AuditState === 2">{{$fd('MedicalReviewAuditState', scope.row.AuditState)}}</el-tag> }}</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> </template>
</el-table-column> </el-table-column>
<!-- 审核结论 --> <!-- 审核结论 -->
@ -301,7 +509,7 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope" v-if="scope.row.AuditState !== 0"> <template slot-scope="scope" v-if="scope.row.AuditState !== 0">
{{$fd('IsPass', scope.row.IsHaveQuestion)}} {{ $fd('IsPass', scope.row.IsHaveQuestion) }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 审核建议 --> <!-- 审核建议 -->
@ -313,7 +521,7 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{$fd('AuditAdvice', scope.row.AuditAdviceEnum)}} {{ $fd('AuditAdvice', scope.row.AuditAdviceEnum) }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 阅片人是否认同 --> <!-- 阅片人是否认同 -->
@ -325,8 +533,16 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="primary" v-if="scope.row.DoctorUserIdeaEnum === 1"> {{$fd('MedicalReviewDoctorUserIdea', scope.row.DoctorUserIdeaEnum)}} </el-tag> <el-tag type="primary" v-if="scope.row.DoctorUserIdeaEnum === 1">
<el-tag type="danger" v-if="scope.row.DoctorUserIdeaEnum === 2"> {{$fd('MedicalReviewDoctorUserIdea', scope.row.DoctorUserIdeaEnum)}} </el-tag> {{
$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> </template>
</el-table-column> </el-table-column>
<!-- 审核分配时间 --> <!-- 审核分配时间 -->
@ -379,8 +595,7 @@
</el-tag> </el-tag>
</template> </template>
</el-table-column> --> </el-table-column> -->
<el-table-column <el-table-column
:label="$t('common:action:action')" :label="$t('common:action:action')"
width="240" width="240"
@ -391,7 +606,7 @@
<el-button <el-button
circle circle
:title="$t('trials:pmMedicalReview:action:view')" :title="$t('trials:pmMedicalReview:action:view')"
:disabled="scope.row.IsInvalid " :disabled="scope.row.IsInvalid"
icon="el-icon-view" icon="el-icon-view"
@click="handleReadMecialAudit(scope.row)" @click="handleReadMecialAudit(scope.row)"
/> />
@ -400,31 +615,54 @@
circle circle
:title="$t('trials:pmMedicalReview:action:failure')" :title="$t('trials:pmMedicalReview:action:failure')"
:disabled="scope.row.IsInvalid || !!scope.row.AuditSignTime" :disabled="scope.row.IsInvalid || !!scope.row.AuditSignTime"
v-hasPermi="['trials:trials-panel:reading:pm-medical-feedback:failure']" v-hasPermi="[
'trials:trials-panel:reading:pm-medical-feedback:failure',
]"
v-if="!isDoc"
icon="el-icon-close" icon="el-icon-close"
@click="setMedicalReviewInvalid(scope.row)" @click="setMedicalReviewInvalid(scope.row)"
/> />
<el-button <el-button
circle circle
:title="$t('trials:pmMedicalReview:action:assign')" :title="$t('trials:pmMedicalReview:action:assign')"
:disabled="!!scope.row.MedicalManagerUser || scope.row.IsInvalid || !!scope.row.AuditSignTime" :disabled="
!!scope.row.MedicalManagerUser ||
scope.row.IsInvalid ||
!!scope.row.AuditSignTime
"
icon="el-icon-thumb" icon="el-icon-thumb"
v-hasPermi="['trials:trials-panel:reading:pm-medical-feedback:assign']" v-hasPermi="[
'trials:trials-panel:reading:pm-medical-feedback:assign',
]"
v-if="!isDoc"
@click="assignMedicalReviewTask(scope.row, 1)" @click="assignMedicalReviewTask(scope.row, 1)"
/> />
<el-button <el-button
circle circle
:title="$t('trials:pmMedicalReview:action:cancelAssign')" :title="$t('trials:pmMedicalReview:action:cancelAssign')"
:disabled="!scope.row.MedicalManagerUser || scope.row.IsInvalid || !!scope.row.AuditSignTime" :disabled="
!scope.row.MedicalManagerUser ||
scope.row.IsInvalid ||
!!scope.row.AuditSignTime
"
icon="el-icon-refresh-left" icon="el-icon-refresh-left"
v-hasPermi="['trials:trials-panel:reading:pm-medical-feedback:cancelAssign']" v-hasPermi="[
'trials:trials-panel:reading:pm-medical-feedback:cancelAssign',
]"
v-if="!isDoc"
@click="assignMedicalReviewTask(scope.row, 3)" @click="assignMedicalReviewTask(scope.row, 3)"
/> />
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 分页组件 --> <!-- 分页组件 -->
<pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize" @pagination="getList" /> <pagination
class="page"
:total="total"
:page.sync="searchData.PageIndex"
:limit.sync="searchData.PageSize"
@pagination="getList"
/>
<!-- 筛选 --> <!-- 筛选 -->
<el-dialog <el-dialog
v-if="FilterVisible" v-if="FilterVisible"
@ -436,7 +674,10 @@
:close-on-click-modal="false" :close-on-click-modal="false"
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
> >
<GenerateMedicalReviewTaskList :trial-criterion-list="trialCriterionList" @getList="getList"></GenerateMedicalReviewTaskList> <GenerateMedicalReviewTaskList
:trial-criterion-list="trialCriterionList"
@getList="getList"
></GenerateMedicalReviewTaskList>
</el-dialog> </el-dialog>
<!-- <el-dialog <!-- <el-dialog
v-if="AddOrEditFilterVisible" v-if="AddOrEditFilterVisible"
@ -455,7 +696,17 @@
width="500px" width="500px"
:close-on-click-modal="false" :close-on-click-modal="false"
> >
<ReAssignMedicalReviewTask :data="rowData" :select-list="SelectList" :doctor-user-list="MIMOptions" @close="() => {AssignMedicalReviewTaskVisible = false}" @getList="getList" /> <ReAssignMedicalReviewTask
:data="rowData"
:select-list="SelectList"
:doctor-user-list="MIMOptions"
@close="
() => {
AssignMedicalReviewTaskVisible = false
}
"
@getList="getList"
/>
</el-dialog> </el-dialog>
<!-- 医学审核详情 --> <!-- 医学审核详情 -->
<el-dialog <el-dialog
@ -465,7 +716,13 @@
:fullscreen="true" :fullscreen="true"
:title="$t('trials:pmMedicalReview:dialog:medicalReview')" :title="$t('trials:pmMedicalReview:dialog:medicalReview')"
> >
<MedicalAudit :visit-task-id="currentRow.VisitTaskId" :task-medical-review-id="currentRow.Id" @getList="getList" @close="auditVisible=false" :rowData="currentRow"/> <MedicalAudit
:visit-task-id="currentRow.VisitTaskId"
:task-medical-review-id="currentRow.Id"
@getList="getList"
@close="auditVisible = false"
:rowData="currentRow"
/>
</el-dialog> </el-dialog>
<!-- 失效记录 --> <!-- 失效记录 -->
<el-dialog <el-dialog
@ -478,13 +735,23 @@
:close-on-click-modal="false" :close-on-click-modal="false"
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
> >
<RecordList @viewMecialAudit="viewMecialAudit"/> <RecordList @viewMecialAudit="viewMecialAudit" />
</el-dialog> </el-dialog>
</template> </template>
</BaseContainer> </BaseContainer>
</template> </template>
<script> <script>
import { getTrialCriterionList, setMedicalReviewInvalid, assignMedicalReviewTask, getTrialSiteCodeSelect, getMedicalReviewTaskList, getDoctorUserSelectList, getMIMUserList, generateMedicalReviewTask, deleteTaskMedicalReviewRule } from '@/api/trials/reading' import {
getTrialCriterionList,
setMedicalReviewInvalid,
assignMedicalReviewTask,
getTrialSiteCodeSelect,
getMedicalReviewTaskList,
getDoctorUserSelectList,
getMIMUserList,
generateMedicalReviewTask,
deleteTaskMedicalReviewRule,
} from '@/api/trials/reading'
import { getMedicalReviewTaskList_Export } from '@/api/export' import { getMedicalReviewTaskList_Export } from '@/api/export'
import BaseContainer from '@/components/BaseContainer' import BaseContainer from '@/components/BaseContainer'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
@ -520,12 +787,35 @@ const searchDataDefault = () => {
AuditAdviceEnum: null, AuditAdviceEnum: null,
DoctorUserIdeaEnum: null, DoctorUserIdeaEnum: null,
IsInvalid: false, IsInvalid: false,
IsHaveQuestion: null IsHaveQuestion: null,
} }
} }
export default { export default {
name: 'TrialsNotice', name: 'TrialsNotice',
components: { BaseContainer, Pagination, AddOrEditFilter, AssignMedicalReviewTask, GenerateMedicalReviewTaskList, MedicalAudit, ReAssignMedicalReviewTask, RecordList }, components: {
BaseContainer,
Pagination,
AddOrEditFilter,
AssignMedicalReviewTask,
GenerateMedicalReviewTaskList,
MedicalAudit,
ReAssignMedicalReviewTask,
RecordList,
},
props: {
isDoc: {
type: Boolean,
default: false,
},
TITLE: {
type: String,
default: '',
},
viewStatus: {
type: Boolean,
default: false,
},
},
data() { data() {
return { return {
auditVisible: null, auditVisible: null,
@ -552,9 +842,9 @@ export default {
SelectMedicalList: [], SelectMedicalList: [],
distributionInfo: {}, distributionInfo: {},
currentRow: {}, currentRow: {},
trialCriterionList:[], trialCriterionList: [],
timeList:[], timeList: [],
recordVisible: false recordVisible: false,
} }
}, },
mounted() { mounted() {
@ -575,13 +865,18 @@ export default {
} }
}, },
handleExport() { handleExport() {
getMedicalReviewTaskList_Export(this.searchData).then(res => { getMedicalReviewTaskList_Export(this.searchData)
}).catch(() => { this.loading = false }) .then((res) => {})
.catch(() => {
this.loading = false
})
}, },
getTrialCriterionList() { getTrialCriterionList() {
getTrialCriterionList(this.trialId).then(res => { getTrialCriterionList(this.trialId)
this.trialCriterionList = res.Result .then((res) => {
}).catch(() => {}) this.trialCriterionList = res.Result
})
.catch(() => {})
}, },
MedicalReviewSelectable(row) { MedicalReviewSelectable(row) {
if (row.IsInvalid || row.AuditSignTime) { if (row.IsInvalid || row.AuditSignTime) {
@ -603,22 +898,27 @@ export default {
this.$alert(this.$t('trials:pmMedicalReview:message:msg01')) this.$alert(this.$t('trials:pmMedicalReview:message:msg01'))
return return
} }
params.MedicalReviewIdList = this.SelectMedicalList.map(v => v.Id) params.MedicalReviewIdList = this.SelectMedicalList.map((v) => v.Id)
} }
// //
this.$confirm(this.$t('trials:pmMedicalReview:message:msg02')).then(() => { this.$confirm(this.$t('trials:pmMedicalReview:message:msg02')).then(
this.loading = true () => {
params.TrialId = this.trialId this.loading = true
setMedicalReviewInvalid(params).then(res => { params.TrialId = this.trialId
// '' setMedicalReviewInvalid(params)
this.$message.success(this.$t('trials:pmMedicalReview:message:msg03')) .then((res) => {
this.getList() // ''
this.loading = false this.$message.success(
}).catch(() => { this.$t('trials:pmMedicalReview:message:msg03')
this.loading = false )
}) this.getList()
}) this.loading = false
})
.catch(() => {
this.loading = false
})
}
)
}, },
openAssignMedicalReviewTask() { openAssignMedicalReviewTask() {
this.rowData = {} this.rowData = {}
@ -639,27 +939,31 @@ export default {
}, },
assignMedicalReviewTask(row, type) { assignMedicalReviewTask(row, type) {
var params = { var params = {
IdList: [ IdList: [row.Id],
row.Id taskOptType: type,
],
taskOptType: type
} }
if (type === 3) { if (type === 3) {
// '' // ''
this.$confirm(this.$t('trials:pmMedicalReview:message:msg05')).then(() => { this.$confirm(this.$t('trials:pmMedicalReview:message:msg05')).then(
this.loading = true () => {
this.btnLoading = true this.loading = true
assignMedicalReviewTask(params).then(() => { this.btnLoading = true
// assignMedicalReviewTask(params)
this.$message.success(this.$t('trials:pmMedicalReview:message:msg06')) .then(() => {
this.getList() //
this.loading = false this.$message.success(
this.btnLoading = false this.$t('trials:pmMedicalReview:message:msg06')
}).catch(() => { )
this.loading = false this.getList()
this.btnLoading = false this.loading = false
}) this.btnLoading = false
}) })
.catch(() => {
this.loading = false
this.btnLoading = false
})
}
)
} else { } else {
this.rowData = { ...row } this.rowData = { ...row }
this.AssignMedicalReviewTaskVisible = true this.AssignMedicalReviewTaskVisible = true
@ -680,17 +984,19 @@ export default {
this.loading = true this.loading = true
this.btnLoading = true this.btnLoading = true
generateMedicalReviewTask({ generateMedicalReviewTask({
trialId: this.trialId trialId: this.trialId,
}).then(res => {
this.$message.success('应用成功')
this.loading = false
this.getList()
this.btnLoading = false
this.FilterVisible = false
}).catch(() => {
this.loading = false
this.btnLoading = false
}) })
.then((res) => {
this.$message.success('应用成功')
this.loading = false
this.getList()
this.btnLoading = false
this.FilterVisible = false
})
.catch(() => {
this.loading = false
this.btnLoading = false
})
}) })
}, },
addOrEdit(row) { addOrEdit(row) {
@ -708,7 +1014,7 @@ export default {
this.AddOrEditFilterVisible = false this.AddOrEditFilterVisible = false
}, },
getDoctorUserSelectList() { getDoctorUserSelectList() {
getDoctorUserSelectList(this.$route.query.trialId).then(res => { getDoctorUserSelectList(this.$route.query.trialId).then((res) => {
this.DoctorUserList = res.Result this.DoctorUserList = res.Result
if (this.DoctorUserList.length > 0) { if (this.DoctorUserList.length > 0) {
this.ReadingType = this.DoctorUserList[0].ReadingType this.ReadingType = this.DoctorUserList[0].ReadingType
@ -717,15 +1023,22 @@ export default {
}) })
}, },
getList() { getList() {
if (this.viewStatus) {
this.searchData.AuditState = 2
}
this.searchData.TrialId = this.$route.query.trialId this.searchData.TrialId = this.$route.query.trialId
this.loading = true this.loading = true
getMedicalReviewTaskList(this.searchData).then(res => { getMedicalReviewTaskList(this.searchData)
this.loading = false .then((res) => {
this.OtherInfo = res.OtherInfo this.loading = false
this.list = res.Result.CurrentPageData this.OtherInfo = res.OtherInfo
this.total = res.Result.TotalCount this.list = res.Result.CurrentPageData
this.AssignMedicalReviewTaskVisible = false this.total = res.Result.TotalCount
}).catch(() => { this.loading = false }) this.AssignMedicalReviewTaskVisible = false
})
.catch(() => {
this.loading = false
})
}, },
handleSearch() { handleSearch() {
this.searchData.PageIndex = 1 this.searchData.PageIndex = 1
@ -737,26 +1050,33 @@ export default {
this.getList() this.getList()
}, },
getSite() { getSite() {
getTrialSiteCodeSelect(this.trialId).then(res => { getTrialSiteCodeSelect(this.trialId).then((res) => {
this.siteOptions = res.Result this.siteOptions = res.Result
}) })
}, },
getMIMUserList() { getMIMUserList() {
getMIMUserList(this.trialId).then(res => { getMIMUserList(this.trialId).then((res) => {
this.MIMOptions = res.Result this.MIMOptions = res.Result
}) })
}, },
handleDelete(row) { handleDelete(row) {
this.$confirm(`确定要删除${row.DoctorUser.UserName}(${row.DoctorUser.FullName})的核查计划吗?`, { this.$confirm(
type: 'warning', `确定要删除${row.DoctorUser.UserName}(${row.DoctorUser.FullName})的核查计划吗?`,
distinguishCancelAndClose: true {
}).then(() => { type: 'warning',
distinguishCancelAndClose: true,
}
).then(() => {
this.loading = true this.loading = true
deleteTaskMedicalReviewRule(row.Id).then(res => { deleteTaskMedicalReviewRule(row.Id)
this.loading = false .then((res) => {
this.$message.success('删除成功') this.loading = false
this.openFilter() this.$message.success('删除成功')
}).catch(() => { this.loading = false }) this.openFilter()
})
.catch(() => {
this.loading = false
})
}) })
}, },
// //
@ -769,12 +1089,17 @@ export default {
this.searchData.SortField = column.prop this.searchData.SortField = column.prop
this.searchData.PageIndex = 1 this.searchData.PageIndex = 1
this.getList() this.getList()
} },
} },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .hidden-row{ .title {
line-height: 40px;
font-weight: bold;
margin-bottom: 10px;
}
::v-deep .hidden-row {
display: none; display: none;
} }
::v-deep .el-dialog__body { ::v-deep .el-dialog__body {
@ -783,13 +1108,13 @@ export default {
::v-deep .el-tag--danger.el-tag--dark { ::v-deep .el-tag--danger.el-tag--dark {
// background-color: #f56c6c!important; // background-color: #f56c6c!important;
border-color: none!important; border-color: none !important;
// color: #fff!important; // color: #fff!important;
} }
::v-deep #TaskAllocationRuleList thead .el-checkbox__inner{ ::v-deep #TaskAllocationRuleList thead .el-checkbox__inner {
display: none; display: none;
} }
::v-deep .el-descriptions-item__label.has-colon:after{ ::v-deep .el-descriptions-item__label.has-colon:after {
display: none; display: none;
} }
</style> </style>

View File

@ -869,7 +869,6 @@ export default {
let typeArr = ['', 'Report', 'Doc', 'Record', 'Reviewer', 'Template'] let typeArr = ['', 'Report', 'Doc', 'Record', 'Reviewer', 'Template']
let types = typeArr[this.ArchiveTypeEnum] let types = typeArr[this.ArchiveTypeEnum]
this.uploadPath = `/${this.$route.query.trialId}/Document/${types}` this.uploadPath = `/${this.$route.query.trialId}/Document/${types}`
console.log(this.uploadPath, this.ArchiveTypeEnum)
}, },
computed: { computed: {
isEN() { isEN() {
@ -918,7 +917,7 @@ export default {
}, },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.title { .title {
line-height: 40px; line-height: 40px;
font-weight: bold; font-weight: bold;

View File

@ -0,0 +1,368 @@
<template>
<box-content>
<div class="title">
{{ TITLE }}
</div>
<!-- 搜索框 -->
<div class="search" style="position: relative">
<el-form :inline="true" class="base-search-form">
<!--专业-->
<el-form-item
:label="$t('trials:trialDocument:curriculumVitae:search:Speciality')"
>
<el-select
v-model="searchData.SpecialityId"
style="width: 200px"
placeholder=""
clearable
>
<el-option
v-for="item in $d.Department"
:key="item.id"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<!--亚专业-->
<el-form-item
:label="
$t('trials:trialDocument:curriculumVitae:search:Subspeciality')
"
>
<el-select
v-model="searchData.SubspecialityId"
style="width: 200px"
placeholder=""
clearable
>
<el-option
v-for="item in $d.Subspeciality"
:key="item.id"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<!--机构-->
<el-form-item
:label="
$t('trials:trialDocument:curriculumVitae:search:HospitalName')
"
>
<el-select
v-model="searchData.HospitalId"
style="width: 200px"
placeholder=""
clearable
>
<el-option
v-for="(item, index) in hospitalList"
:key="index"
:label="isEN ? item.HospitalName : item.HospitalNameCN"
:value="item.Id"
/>
</el-select>
</el-form-item>
<el-form-item>
<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-form-item>
</el-form>
</div>
<el-table
v-loading="loading"
v-adaptive="{ bottomOffset: 75 }"
:data="list"
stripe
height="100"
style="width: 100%"
>
<el-table-column type="index" />
<!--姓名-->
<el-table-column
prop="BlindName"
:label="$t('trials:trialDocument:curriculumVitae:table:name')"
show-overflow-tooltip
sortable="custom"
>
<template slot-scope="scope">
<span>{{ isEN ? scope.row.BlindName : scope.row.BlindNameCN }}</span>
</template>
</el-table-column>
<el-table-column
prop="Speciality"
:label="$t('trials:trialDocument:curriculumVitae:table:Speciality')"
show-overflow-tooltip
sortable="custom"
>
<template slot-scope="scope">
<span>
{{
scope.row.SpecialityId === otherId
? scope.row.SpecialityOther
: isEN
? scope.row.Speciality
: scope.row.SpecialityCN
}}
</span>
</template>
</el-table-column>
<el-table-column
prop="Subspeciality"
:label="$t('trials:trialDocument:curriculumVitae:table:Subspeciality')"
show-overflow-tooltip
>
<template slot-scope="scope">
<span v-if="isEN">
{{
scope.row.SubspecialityList.length > 0
? scope.row.SubspecialityList.join(', ')
: ''
}}
</span>
<span v-else>
{{
scope.row.SubspecialityCNList.length > 0
? scope.row.SubspecialityCNList.join(', ')
: ''
}}
</span>
</template>
</el-table-column>
<el-table-column
prop="HospitalName"
:label="$t('trials:trialDocument:curriculumVitae:table:HospitalName')"
show-overflow-tooltip
sortable="custom"
>
<template slot-scope="scope">
<span>
{{ isEN ? scope.row.HospitalName : scope.row.HospitalNameCN }}
</span>
</template>
</el-table-column>
<el-table-column
prop="SubmmitTime"
:label="$t('trials:trialDocument:curriculumVitae:table:submmitTime')"
show-overflow-tooltip
sortable="custom"
/>
<el-table-column :label="$t('common:action:action')" width="200">
<template slot-scope="scope">
<el-button
icon="el-icon-view"
:title="$t('common:button:view')"
circle
@click.stop="preview(scope.row)"
/>
</template>
</el-table-column>
</el-table>
<!-- 分页组件 -->
<pagination
class="page"
:total="total"
:page.sync="searchData.PageIndex"
:limit.sync="searchData.PageSize"
@pagination="getList"
/>
<el-dialog :visible.sync="preview_visible" fullscreen>
<div style="height: 100%; overflow: auto">
<preview
:isEN="isEN"
:isAll="isAll"
:reviewerId.sync="reviewerId"
v-if="preview_visible"
/>
</div>
</el-dialog>
</box-content>
</template>
<script>
import { getTrialDoctorList } from '@/api/dictionary'
import Pagination from '@/components/Pagination'
import BoxContent from '@/components/BoxContent'
import preview from '@/views/reviewers/curriculumVitae/preview.vue'
import { mapGetters } from 'vuex'
const searchDataDefault = () => {
return {
SubspecialityId: null,
SpecialityId: null,
HospitalId: null,
PageIndex: 1,
PageSize: 20,
Asc: false,
SortField: 'BlindName',
}
}
export default {
name: 'curriculumVitae',
components: { BoxContent, Pagination, preview },
props: {
ArchiveTypeEnum: {
type: Number,
default: 0,
},
rowData: {
type: Object,
default: () => {
return {}
},
},
},
data() {
return {
searchData: searchDataDefault(),
loading: false,
list: [],
total: 0,
reviewerId: null,
isAll: false,
preview_visible: false,
}
},
methods: {
async getList() {
try {
this.searchData.TrialId = this.$route.query.trialId
this.loading = true
let res = await getTrialDoctorList(this.searchData)
this.loading = false
if (res.IsSuccess) {
this.list = res.Result.CurrentPageData
this.total = res.Result.TotalCount
}
} catch (err) {
this.loading = false
console.log(err)
}
},
//
handleSearch() {
this.searchData.PageIndex = 1
this.getList()
},
//
handleReset() {
this.searchData = searchDataDefault()
this.getList()
},
//
handleSortByColumn(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()
},
//
preview(row) {
this.reviewerId = row.Id
this.isAll = false
this.preview_visible = true
},
},
watch: {
Id: {
handler() {
this.rowBtnStatus = 'edit'
this.getList()
},
immediate: true,
},
},
computed: {
...mapGetters(['hospitalList']),
isEN() {
return this.$i18n.locale !== 'zh'
},
isInspect() {
return this.hasPermi([
'trials:trials-panel:trial-summary:trial-document:inspect',
])
},
isManage() {
return this.hasPermi([
'trials:trials-panel:trial-summary:trial-document:manage',
])
},
hasAdd() {
return this.hasPermi([
'trials:trials-panel:trial-summary:trial-document:add',
])
},
hasEdit() {
return this.hasPermi([
'trials:trials-panel:trial-summary:trial-document:edit',
])
},
hasDel() {
return this.hasPermi([
'trials:trials-panel:trial-summary:trial-document:del',
])
},
hasDownLoad() {
return this.hasPermi([
'trials:trials-panel:trial-summary:trial-document:downLoad',
])
},
hasAccredit() {
return this.hasPermi([
'trials:trials-panel:trial-summary:trial-document:accredit',
])
},
TITLE() {
return `${this.$fd('ArchiveType', this.ArchiveTypeEnum)}${
this.isEN ? this.rowData.Name : this.rowData.NameCN
}`
},
},
}
</script>
<style lang="scss" scoped>
.title {
line-height: 40px;
font-weight: bold;
margin-bottom: 10px;
}
.fileName {
display: inline-block;
max-width: 100%;
white-space: nowrap; /* 文本不换行 */
overflow: hidden; /* 超出部分隐藏 */
text-overflow: ellipsis;
}
.fileBtnBox {
display: inline-block;
width: 50px;
i {
cursor: pointer;
color: #409eff;
margin-right: 3px;
&:last-child {
margin: 0;
}
}
}
.topForm {
.el-form-item {
margin-right: 30px;
}
}
</style>

View File

@ -67,6 +67,33 @@
:rowData="rowData" :rowData="rowData"
@getMenu="getMenu" @getMenu="getMenu"
/> />
<!--阅片人简历-->
<curriculum-vitae
v-if="[7].includes(SubIdentificationEnum)"
:ArchiveTypeEnum="ArchiveTypeEnum"
:rowData="rowData"
/>
<!--阅片记录-->
<reading-tracking
v-if="[11].includes(SubIdentificationEnum)"
:isDoc="true"
:TITLE="TITLE"
:viewStatus="viewStatus"
/>
<!--培训记录/共享资料-->
<Attachments-management
v-if="[13].includes(SubIdentificationEnum)"
:isDoc="true"
:TITLE="TITLE"
:viewStatus="viewStatus"
/>
<!--医学审核-->
<medical-feedback
v-if="[9].includes(SubIdentificationEnum)"
:isDoc="true"
:TITLE="TITLE"
:viewStatus="viewStatus"
/>
</div> </div>
</div> </div>
</template> </template>
@ -77,9 +104,27 @@ import reportDoc from './components/report_doc/index.vue'
import fileRecord from './components/fileRecord/index.vue' import fileRecord from './components/fileRecord/index.vue'
import trainRecord from './components/trainRecord/index.vue' import trainRecord from './components/trainRecord/index.vue'
import temp from './components/template/index.vue' import temp from './components/template/index.vue'
//
import curriculumVitae from './components/viewer/curriculumVitae/index.vue'
import readingTracking from '@/views/trials/trials-panel/reading/reading-tracking/index.vue'
import medicalFeedback from '@/views/trials/trials-panel/reading/pm-medical-feedback/index.vue'
import AttachmentsManagement from '@/views/trials/trials-panel/attachments/attachment-management/index.vue'
export default { export default {
name: 'trialDocument', name: 'trialDocument',
components: { BaseContainer, Menu, reportDoc, fileRecord, trainRecord, temp }, components: {
BaseContainer,
Menu,
reportDoc,
fileRecord,
trainRecord,
temp,
curriculumVitae,
readingTracking,
AttachmentsManagement,
medicalFeedback,
},
data() { data() {
return { return {
viewStatus: true, viewStatus: true,
@ -100,6 +145,11 @@ export default {
'trials:trials-panel:trial-summary:trial-document:manage', 'trials:trials-panel:trial-summary:trial-document:manage',
]) ])
}, },
TITLE() {
return `${this.$fd('ArchiveType', this.ArchiveTypeEnum)}${
this.isEN ? this.rowData.Name : this.rowData.NameCN
}`
},
}, },
methods: { methods: {
handleChange() { handleChange() {
@ -160,13 +210,13 @@ export default {
::v-deep .topForm { ::v-deep .topForm {
.el-form-item { .el-form-item {
margin-right: 30px; margin-right: 30px;
margin-bottom: 22px; margin-bottom: 12px;
} }
} }
::v-deep .line { ::v-deep .line {
width: 100%; width: 100%;
height: 1px; height: 1px;
margin: 0 0 22px 0; margin: 0 0 12px 0;
border-top: 1px solid #ebeef5; border-top: 1px solid #ebeef5;
} }
</style> </style>