1
continuous-integration/drone/push Build is running Details

uat
wangxiaoshuang 2025-03-07 13:34:36 +08:00
parent 278c051f51
commit fc98aa0312
1 changed files with 207 additions and 64 deletions

View File

@ -1,14 +1,26 @@
<template> <template>
<BaseContainer> <BaseContainer>
<el-tabs v-model="TrialReadingCriterionId" type="border-card"> <el-tabs v-model="TrialReadingCriterionId" type="border-card">
<el-tab-pane v-for="criterion of trialCriterionList" :key="criterion.TrialReadingCriterionId" :label="criterion.TrialReadingCriterionName" :name="criterion.TrialReadingCriterionId"> <el-tab-pane
<div v-if="TrialReadingCriterionId === criterion.TrialReadingCriterionId"> v-for="criterion of trialCriterionList"
:key="criterion.TrialReadingCriterionId"
:label="criterion.TrialReadingCriterionName"
:name="criterion.TrialReadingCriterionId"
>
<div
v-if="TrialReadingCriterionId === criterion.TrialReadingCriterionId"
>
<div slot="search-container"> <div slot="search-container">
<el-form :inline="true"> <el-form :inline="true">
<el-form-item :label="$t('trials:subject:table:site')"> <el-form-item :label="$t('trials:subject:table:site')">
<el-select v-model="searchData.TrialSiteCode" clearable filterable style="width:130px;"> <el-select
v-model="searchData.TrialSiteCode"
clearable
filterable
style="width: 130px"
>
<el-option <el-option
v-for="(item,index) of siteOptions" v-for="(item, index) of siteOptions"
:key="index" :key="index"
:label="item.TrialSiteCode" :label="item.TrialSiteCode"
:value="item.TrialSiteCode" :value="item.TrialSiteCode"
@ -17,29 +29,69 @@
</el-form-item> </el-form-item>
<!-- Subject ID --> <!-- Subject ID -->
<el-form-item :label="$t('trials:subject:table:subjectId')"> <el-form-item :label="$t('trials:subject:table:subjectId')">
<el-input v-model="searchData.SubjectCode" style="width:130px;" /> <el-input
v-model="searchData.SubjectCode"
style="width: 130px"
/>
</el-form-item> </el-form-item>
<!-- Status --> <!-- Status -->
<el-form-item :label="$t('trials:subject:table:status')"> <el-form-item :label="$t('trials:subject:table:status')">
<el-select v-model="searchData.SubjectStatus" clearable style="width:130px;"> <el-select
<el-option v-for="item of $d.Subject_Visit_Status" :key="item.value" :value="item.value" :label="item.label" /> v-model="searchData.SubjectStatus"
clearable
style="width: 130px"
>
<el-option
v-for="item of $d.Subject_Visit_Status"
:key="item.value"
:value="item.value"
:label="item.label"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('trials:trials-panel:form:ParticipateEvaluation')"> <el-form-item
<el-select v-model="searchData.IsJoinEvaluation" clearable style="width:130px;"> :label="$t('trials:trials-panel:form:ParticipateEvaluation')"
<el-option v-for="item of $d.YesOrNo" :key="item.value" :value="item.value" :label="item.label" /> >
<el-select
v-model="searchData.IsJoinEvaluation"
clearable
style="width: 130px"
>
<el-option
v-for="item of $d.YesOrNo"
:key="item.value"
:value="item.value"
:label="item.label"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('trials:subject:form:ImageSelect')"> <el-form-item :label="$t('trials:subject:form:ImageSelect')">
<el-select v-model="searchData.IsImageFiltering" clearable style="width:130px;"> <el-select
<el-option v-for="item of $d.YesOrNo" :key="item.value" :value="item.value" :label="item.label" /> v-model="searchData.IsImageFiltering"
clearable
style="width: 130px"
>
<el-option
v-for="item of $d.YesOrNo"
:key="item.value"
:value="item.value"
:label="item.label"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<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" @click="handleSelect()"> <el-button type="primary" @click="handleSelect()">
@ -51,7 +103,7 @@
<div slot="main-container"> <div slot="main-container">
<el-table <el-table
ref="myTable" ref="myTable"
v-adaptive="{bottomOffset:75}" v-adaptive="{ bottomOffset: 75 }"
v-loading="loading" v-loading="loading"
:data="list" :data="list"
stripe stripe
@ -59,7 +111,11 @@
@sort-change="handleSortChange" @sort-change="handleSortChange"
@selection-change="handleSelectChange" @selection-change="handleSelectChange"
> >
<el-table-column type="selection" width="50" :selectable="handleSelectTable" /> <el-table-column
type="selection"
width="50"
:selectable="handleSelectTable"
/>
<el-table-column type="index" width="40" /> <el-table-column type="index" width="40" />
<!-- 中心编号 --> <!-- 中心编号 -->
<el-table-column <el-table-column
@ -84,20 +140,44 @@
sortable="custom" sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.SubjectStatus === 1" type="primary">{{ $fd('Subject_Visit_Status', scope.row.SubjectStatus) }}</el-tag> <el-tag v-if="scope.row.SubjectStatus === 1" type="primary">{{
<el-tag v-if="scope.row.SubjectStatus === 2" type="danger">{{ $fd('Subject_Visit_Status', scope.row.SubjectStatus) }}</el-tag> $fd('Subject_Visit_Status', scope.row.SubjectStatus)
}}</el-tag>
<el-tag v-if="scope.row.SubjectStatus === 2" type="danger">{{
$fd('Subject_Visit_Status', scope.row.SubjectStatus)
}}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
:prop="item.QuestionId" :prop="item.QuestionId"
v-for="(item, index) of OtherInfo" v-for="(item, index) of OtherInfo"
:label="$i18n.locale === 'zh' ? item.QuestionName : item.QuestionEnName" :label="
$i18n.locale === 'zh'
? item.QuestionName
: item.QuestionEnName
"
show-overflow-tooltip show-overflow-tooltip
:key="item.QuestionId" :key="item.QuestionId"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip class="item" effect="dark" :content="getReadingEvaluationList(item.QuestionId, scope.row.ReadingEvaluationList)" placement="top"> <el-tooltip
<span>{{$fd(scope.row.FinalEvaluationList[index].FinalTranslateDictionaryCode, parseInt(scope.row.FinalEvaluationList[index].Answer))}}</span> class="item"
effect="dark"
:content="
getReadingEvaluationList(
item.QuestionId,
scope.row.ReadingEvaluationList
)
"
placement="top"
>
<span>{{
$fd(
scope.row.FinalEvaluationList[index]
.FinalTranslateDictionaryCode,
parseInt(scope.row.FinalEvaluationList[index].Answer)
)
}}</span>
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
@ -110,8 +190,14 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.IsJoinEvaluation" type="primary">{{ $fd('YesOrNo', scope.row.IsJoinEvaluation) }}</el-tag> <el-tag v-if="scope.row.IsJoinEvaluation" type="primary">{{
<el-tag v-if="scope.row.IsJoinEvaluation === false" type="danger">{{ $fd('YesOrNo', scope.row.IsJoinEvaluation) }}</el-tag> $fd('YesOrNo', scope.row.IsJoinEvaluation)
}}</el-tag>
<el-tag
v-if="scope.row.IsJoinEvaluation === false"
type="danger"
>{{ $fd('YesOrNo', scope.row.IsJoinEvaluation) }}</el-tag
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -122,14 +208,22 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.IsImageFiltering" type="primary">{{ $fd('YesOrNo', scope.row.IsImageFiltering) }}</el-tag> <el-tag v-if="scope.row.IsImageFiltering" type="primary">{{
<el-tag v-if="scope.row.IsImageFiltering === false" type="danger">{{ $fd('YesOrNo', scope.row.IsImageFiltering) }}</el-tag> $fd('YesOrNo', scope.row.IsImageFiltering)
}}</el-tag>
<el-tag
v-if="scope.row.IsImageFiltering === false"
type="danger"
>{{ $fd('YesOrNo', scope.row.IsImageFiltering) }}</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="120" width="120"
v-hasPermi="['trials:trials-panel:subject:brainMetastasis:Edit']" v-if="
hasPermi(['trials:trials-panel:subject:brainMetastasis:Edit'])
"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 选择受试者 --> <!-- 选择受试者 -->
@ -152,7 +246,13 @@
</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="selectSubject.visible" v-if="selectSubject.visible"
@ -162,8 +262,18 @@
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
:close-on-click-modal="false" :close-on-click-modal="false"
> >
<select-subject v-if="!isBatch" :data="rowData" @close="selectSubject.visible = false" @getList="getList"></select-subject> <select-subject
<batch-select-subject v-else :select-list="selectList" @close="selectSubject.visible = false" @getList="getList"></batch-select-subject> v-if="!isBatch"
:data="rowData"
@close="selectSubject.visible = false"
@getList="getList"
></select-subject>
<batch-select-subject
v-else
:select-list="selectList"
@close="selectSubject.visible = false"
@getList="getList"
></batch-select-subject>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
v-if="selectSubjectImage.visible" v-if="selectSubjectImage.visible"
@ -173,7 +283,11 @@
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
:close-on-click-modal="false" :close-on-click-modal="false"
> >
<select-subject-image :data="rowData" @close="selectSubjectImage.visible = false" @getList="getList"></select-subject-image> <select-subject-image
:data="rowData"
@close="selectSubjectImage.visible = false"
@getList="getList"
></select-subject-image>
</el-dialog> </el-dialog>
</div> </div>
</div> </div>
@ -183,7 +297,15 @@
</template> </template>
<script> <script>
import { getTrialCriterionList2, getTrialSiteSelect } from '@/api/trials' import { getTrialCriterionList2, getTrialSiteSelect } from '@/api/trials'
import { getSubjectCriteriaEvaluationList, batchAddOrUpdateSubjectCriteriaEvaluation, getSubjectCriteriaEvaluationVisitFilterList, getHaveGeneratedTaskList, batchGenerateTask, getVisitStudyAndSeriesList, batchAddSubjectCriteriaEvaluationVisitStudyFilter } from '@/api/trials/subject' import {
getSubjectCriteriaEvaluationList,
batchAddOrUpdateSubjectCriteriaEvaluation,
getSubjectCriteriaEvaluationVisitFilterList,
getHaveGeneratedTaskList,
batchGenerateTask,
getVisitStudyAndSeriesList,
batchAddSubjectCriteriaEvaluationVisitStudyFilter,
} from '@/api/trials/subject'
import BaseContainer from '@/components/BaseContainer' import BaseContainer from '@/components/BaseContainer'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
import batchSelectSubject from './components/batchSelectSubject' import batchSelectSubject from './components/batchSelectSubject'
@ -199,12 +321,18 @@ const searchDataDefault = () => {
Asc: true, Asc: true,
SortField: null, SortField: null,
PageIndex: 1, PageIndex: 1,
PageSize: 20 PageSize: 20,
} }
} }
const MinPlanCount = 10 const MinPlanCount = 10
export default { export default {
components: { BaseContainer, Pagination, selectSubject, batchSelectSubject, selectSubjectImage }, components: {
BaseContainer,
Pagination,
selectSubject,
batchSelectSubject,
selectSubjectImage,
},
data() { data() {
return { return {
OtherInfo: [], OtherInfo: [],
@ -215,12 +343,18 @@ export default {
siteOptions: [], siteOptions: [],
trialId: this.$route.query.trialId, trialId: this.$route.query.trialId,
list: [], list: [],
selectSubject: { visible: false, title: this.$t('trials:subject:dialogTitle:SubjectsSelect') }, selectSubject: {
visible: false,
title: this.$t('trials:subject:dialogTitle:SubjectsSelect'),
},
selectList: [], selectList: [],
total: 0, total: 0,
rowData: null, rowData: null,
isBatch: false, isBatch: false,
selectSubjectImage: { visible: false, title: this.$t('trials:subject:action:ImageSelect') }, selectSubjectImage: {
visible: false,
title: this.$t('trials:subject:action:ImageSelect'),
},
} }
}, },
name: 'TrialsNotice', name: 'TrialsNotice',
@ -229,7 +363,7 @@ export default {
if (v) { if (v) {
this.getList() this.getList()
} }
} },
}, },
mounted() { mounted() {
this.getSite() this.getSite()
@ -240,9 +374,11 @@ export default {
return !row.IsJoinEvaluation return !row.IsJoinEvaluation
}, },
handleSelectSubjectImage(row) { handleSelectSubjectImage(row) {
this.rowData = {...row} this.rowData = { ...row }
this.selectSubjectImage.visible = true this.selectSubjectImage.visible = true
this.selectSubjectImage.title = `${this.$t('trials:subject:action:ImageSelect')}(${row.SubjectCode})` this.selectSubjectImage.title = `${this.$t(
'trials:subject:action:ImageSelect'
)}(${row.SubjectCode})`
}, },
handleSelectChange(e) { handleSelectChange(e) {
this.selectList = e this.selectList = e
@ -250,7 +386,7 @@ export default {
handleSelect(row) { handleSelect(row) {
this.isBatch = true this.isBatch = true
if (row) { if (row) {
this.rowData = {...row} this.rowData = { ...row }
this.isBatch = false this.isBatch = false
} else { } else {
if (this.selectList.length === 0) { if (this.selectList.length === 0) {
@ -280,12 +416,16 @@ export default {
this.getList() this.getList()
}, },
getReadingEvaluationList(QuestionId, list) { getReadingEvaluationList(QuestionId, list) {
var arr = list.filter(v => { var arr = list.filter((v) => {
return v.QuestionId === QuestionId return v.QuestionId === QuestionId
}) })
var text = '' var text = ''
arr.forEach(v => { arr.forEach((v) => {
text += ' ' + this.$fd('ArmEnum', v.ArmEnum) + ':' + this.$fd(v.FinalTranslateDictionaryCode, parseInt(v.Answer)) text +=
' ' +
this.$fd('ArmEnum', v.ArmEnum) +
':' +
this.$fd(v.FinalTranslateDictionaryCode, parseInt(v.Answer))
}) })
return text return text
}, },
@ -293,42 +433,45 @@ export default {
getSubjectCriteriaEvaluationList({ getSubjectCriteriaEvaluationList({
...this.searchData, ...this.searchData,
TrialId: this.trialId, TrialId: this.trialId,
TrialReadingCriterionId: this.TrialReadingCriterionId TrialReadingCriterionId: this.TrialReadingCriterionId,
}).then(res => { }).then((res) => {
this.list = res.Result.CurrentPageData this.list = res.Result.CurrentPageData
this.OtherInfo = res.OtherInfo this.OtherInfo = res.OtherInfo
this.total = res.Result.TotalCount this.total = res.Result.TotalCount
}) })
}, },
getTrialCriterionList() { getTrialCriterionList() {
getTrialCriterionList2(this.trialId, false).then(res => { getTrialCriterionList2(this.trialId, false)
this.trialCriterionList = res.Result .then((res) => {
this.TrialReadingCriterionId = this.trialCriterionList[0].TrialReadingCriterionId this.trialCriterionList = res.Result
}).catch(() => {}) this.TrialReadingCriterionId =
this.trialCriterionList[0].TrialReadingCriterionId
})
.catch(() => {})
}, },
// site // site
getSite() { getSite() {
getTrialSiteSelect(this.trialId).then(res => { getTrialSiteSelect(this.trialId).then((res) => {
this.siteOptions = res.Result this.siteOptions = res.Result
}) })
}, },
} },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .hidden-row{ ::v-deep .hidden-row {
display: none; display: none;
} }
::v-deep .el-dialog__body { ::v-deep .el-dialog__body {
padding: 0px 20px; padding: 0px 20px;
} }
::v-deep .el-dialog__header { ::v-deep .el-dialog__header {
padding: 10px 20px; padding: 10px 20px;
} }
::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;
} }
</style> </style>