受试者终止状态管理
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-06-25 15:46:54 +08:00
parent 9fcabca64a
commit 22352c57f2
2 changed files with 140 additions and 367 deletions

View File

@ -5,18 +5,9 @@
<el-form :inline="true"> <el-form :inline="true">
<!-- 中心编号 --> <!-- 中心编号 -->
<el-form-item :label="$t('trials:consistencyCheck:table:siteId')"> <el-form-item :label="$t('trials:consistencyCheck:table:siteId')">
<el-select <el-select v-model="searchData.TrialSiteId" clearable filterable style="width: 120px">
v-model="searchData.TrialSiteId" <el-option v-for="(item, index) of siteOptions" :key="index" :label="item.TrialSiteCode"
clearable :value="item.TrialSiteId" />
filterable
style="width: 120px"
>
<el-option
v-for="(item, index) of siteOptions"
:key="index"
:label="item.TrialSiteCode"
:value="item.TrialSiteId"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 受试者编号 --> <!-- 受试者编号 -->
@ -24,22 +15,10 @@
<el-input v-model="searchData.SubjectInfo" style="width: 100px" /> <el-input v-model="searchData.SubjectInfo" style="width: 100px" />
</el-form-item> </el-form-item>
<!-- 访视名称 --> <!-- 访视名称 -->
<el-form-item <el-form-item class="my_multiple" :label="$t('trials:consistencyCheck:table:visitName')">
class="my_multiple" <el-select v-model="searchData.VisitPlanArray" style="width: 140px" clearable multiple>
:label="$t('trials:consistencyCheck:table:visitName')" <el-option v-for="(item, index) of visitPlanOptions" :key="index" :label="item.VisitName"
> :value="item.VisitNum">
<el-select
v-model="searchData.VisitPlanArray"
style="width: 140px"
clearable
multiple
>
<el-option
v-for="(item, index) of visitPlanOptions"
:key="index"
:label="item.VisitName"
:value="item.VisitNum"
>
<span style="float: left">{{ item.VisitName }}</span> <span style="float: left">{{ item.VisitName }}</span>
</el-option> </el-option>
<el-option key="Other" label="Out of Plan" value="1.11" /> <el-option key="Other" label="Out of Plan" value="1.11" />
@ -47,17 +26,8 @@
</el-form-item> </el-form-item>
<!-- 核查状态 --> <!-- 核查状态 -->
<el-form-item :label="$t('trials:consistencyCheck:table:checkState')"> <el-form-item :label="$t('trials:consistencyCheck:table:checkState')">
<el-select <el-select v-model="searchData.CheckState" clearable style="width: 120px">
v-model="searchData.CheckState" <el-option v-for="item of $d.CheckState" :key="item.value" :value="item.value" :label="item.label" />
clearable
style="width: 120px"
>
<el-option
v-for="item of $d.CheckState"
:key="item.value"
:value="item.value"
:label="item.label"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 查询 --> <!-- 查询 -->
@ -65,47 +35,27 @@
{{ $t('common:button:search') }} {{ $t('common:button:search') }}
</el-button> </el-button>
<!-- 重置 --> <!-- 重置 -->
<el-button <el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t('common:button:reset') }} {{ $t('common:button:reset') }}
</el-button> </el-button>
<!--导出一致性核查表--> <!--导出一致性核查表-->
<el-button <el-button type="primary" icon="el-icon-download" @click="handleExport(1)">
type="primary"
icon="el-icon-download"
@click="handleExport(1)"
>
{{ $t('trials:consistencyCheck:button:export1') }} {{ $t('trials:consistencyCheck:button:export1') }}
</el-button> </el-button>
<!-- 导出一致性核查记录表 --> <!-- 导出一致性核查记录表 -->
<el-button <el-button type="primary" icon="el-icon-download" @click="handleExport(2)">
type="primary"
icon="el-icon-download"
@click="handleExport(2)"
>
{{ $t('trials:consistencyCheck:button:export2') }} {{ $t('trials:consistencyCheck:button:export2') }}
</el-button> </el-button>
<!-- 下载模板 --> <!-- 下载模板 -->
<el-button <el-button type="primary" v-hasPermi="['trials:trials-panel:visit:consistency-check:upload']"
type="primary" icon="el-icon-download" @click="handleDownload">
v-hasPermi="['trials:trials-panel:visit:consistency-check:upload']"
icon="el-icon-download"
@click="handleDownload"
>
{{ $t('trials:consistencyCheck:button:download') }} {{ $t('trials:consistencyCheck:button:download') }}
</el-button> </el-button>
</el-form> </el-form>
<!-- 上传 --> <!-- 上传 -->
<span style="margin-left: auto"> <span style="margin-left: auto">
<el-button <el-button v-hasPermi="['trials:trials-panel:visit:consistency-check:upload']" type="primary"
v-hasPermi="['trials:trials-panel:visit:consistency-check:upload']" icon="el-icon-upload2" @click="handleOpenUploadDialog">
type="primary"
icon="el-icon-upload2"
@click="handleOpenUploadDialog"
>
{{ $t('trials:consistencyCheck:button:upload') }} {{ $t('trials:consistencyCheck:button:upload') }}
</el-button> </el-button>
</span> </span>
@ -113,24 +63,12 @@
<!-- 一致性核查列表 --> <!-- 一致性核查列表 -->
<template slot="main-container"> <template slot="main-container">
<el-table <el-table ref="consistencyTable" v-loading="loading" v-adaptive="{ bottomOffset: 60 }" :data="list" stripe
ref="consistencyTable" height="100" @sort-change="handleSortByColumn">
v-loading="loading"
v-adaptive="{ bottomOffset: 60 }"
:data="list"
stripe
height="100"
@sort-change="handleSortByColumn"
>
<el-table-column type="index" width="40" /> <el-table-column type="index" width="40" />
<!-- 是否加急 --> <!-- 是否加急 -->
<el-table-column <el-table-column prop="IsUrgent" :label="$t('trials:consistencyCheck:table:isUrgent')" show-overflow-tooltip
prop="IsUrgent" min-width="110" sortable="custom">
:label="$t('trials:consistencyCheck:table:isUrgent')"
show-overflow-tooltip
min-width="110"
sortable="custom"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.IsUrgent" type="danger">{{ <el-tag v-if="scope.row.IsUrgent" type="danger">{{
$fd('YesOrNo', scope.row.IsUrgent) $fd('YesOrNo', scope.row.IsUrgent)
@ -141,19 +79,11 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- 核查质疑状态 --> <!-- 核查质疑状态 -->
<el-table-column <el-table-column prop="CheckChallengeState" :label="$t('trials:consistencyCheck:table:checkChallengeState')"
prop="CheckChallengeState" show-overflow-tooltip min-width="130" sortable="custom">
:label="$t('trials:consistencyCheck:table:checkChallengeState')"
show-overflow-tooltip
min-width="130"
sortable="custom"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.CheckChallengeState === 0"> -- </span> <span v-if="scope.row.CheckChallengeState === 0"> -- </span>
<el-tag <el-tag v-else-if="scope.row.CheckChallengeState === 1" type="danger">
v-else-if="scope.row.CheckChallengeState === 1"
type="danger"
>
{{ $fd('CheckChallengeState', 1) }} {{ $fd('CheckChallengeState', 1) }}
<!-- {{ <!-- {{
userTypeEnumInt === 2 userTypeEnumInt === 2
@ -161,10 +91,7 @@
: $fd('CheckChallengeState', 2) : $fd('CheckChallengeState', 2)
}} --> }} -->
</el-tag> </el-tag>
<el-tag <el-tag v-else-if="scope.row.CheckChallengeState === 2" type="danger">
v-else-if="scope.row.CheckChallengeState === 2"
type="danger"
>
{{ $fd('CheckChallengeState', 2) }} {{ $fd('CheckChallengeState', 2) }}
<!-- {{ <!-- {{
userTypeEnumInt === 2 userTypeEnumInt === 2
@ -178,75 +105,48 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- 中心编号 --> <!-- 中心编号 -->
<el-table-column <el-table-column prop="TrialSiteCode" :label="$t('trials:consistencyCheck:table:siteId')" show-overflow-tooltip
prop="TrialSiteCode" width="140" sortable="custom" />
:label="$t('trials:consistencyCheck:table:siteId')"
show-overflow-tooltip
width="140"
sortable="custom"
/>
<!-- 受试者编号 --> <!-- 受试者编号 -->
<el-table-column <el-table-column prop="SubjectCode" :label="$t('trials:consistencyCheck:table:subjectId')" show-overflow-tooltip
prop="SubjectCode" width="140" sortable="custom" />
:label="$t('trials:consistencyCheck:table:subjectId')"
show-overflow-tooltip
width="140"
sortable="custom"
/>
<!-- 访视名称 --> <!-- 访视名称 -->
<el-table-column <el-table-column prop="VisitName" :label="$t('trials:consistencyCheck:table:visitName')" show-overflow-tooltip
prop="VisitName" width="140" sortable="custom">
:label="$t('trials:consistencyCheck:table:visitName')"
show-overflow-tooltip
width="140"
sortable="custom"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.VisitName }}</span> <span>{{ scope.row.VisitName }}</span>
<span v-if="scope.row.IsCheckBack" class="status-primary-circle">{{ <span v-if="scope.row.IsCheckBack" class="status-primary-circle">{{
$t('trials:consistencyCheck:table:back') $t('trials:consistencyCheck:table:back')
}}</span> }}</span>
<!-- 终止 -->
<span v-if="scope.row.IsSubjectQuit" class="status-primary-circle">
{{ $t('trials:crcUpload:label:ISQ') }}
</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- 检查类型 --> <!-- 检查类型 -->
<el-table-column <el-table-column prop="Modalitys" :label="$t('trials:consistencyCheck:table:modality')" show-overflow-tooltip
prop="Modalitys" width="120">
:label="$t('trials:consistencyCheck:table:modality')"
show-overflow-tooltip
width="120"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.Modalitys }}</span> <span>{{ scope.row.Modalitys }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- 检查日期 --> <!-- 检查日期 -->
<el-table-column <el-table-column prop="LatestScanDate" :label="$t('trials:consistencyCheck:table:scanDate')"
prop="LatestScanDate" show-overflow-tooltip width="140" sortable="custom">
:label="$t('trials:consistencyCheck:table:scanDate')"
show-overflow-tooltip
width="140"
sortable="custom"
>
<!-- <template slot-scope="scope"> <!-- <template slot-scope="scope">
<span>{{ scope.row.LatestScanDate.split(" ")[0] }}</span> <span>{{ scope.row.LatestScanDate.split(" ")[0] }}</span>
</template> --> </template> -->
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip <el-tooltip class="item" effect="dark" :content="`${scope.row.EarliestScanDate
class="item" ? moment(scope.row.EarliestScanDate).format('YYYY-MM-DD')
effect="dark" : ''
:content="`${ } ~ ${scope.row.LatestScanDate
scope.row.EarliestScanDate ? moment(scope.row.LatestScanDate).format('YYYY-MM-DD')
? moment(scope.row.EarliestScanDate).format('YYYY-MM-DD') : ''
: '' }`" placement="top">
} ~ ${
scope.row.LatestScanDate
? moment(scope.row.LatestScanDate).format('YYYY-MM-DD')
: ''
}`"
placement="top"
>
<span> <span>
{{ {{
scope.row.LatestScanDate scope.row.LatestScanDate
@ -286,13 +186,8 @@
</template> </template>
</el-table-column> --> </el-table-column> -->
<!-- 核查状态 --> <!-- 核查状态 -->
<el-table-column <el-table-column prop="CheckState" :label="$t('trials:consistencyCheck:table:checkState')" show-overflow-tooltip
prop="CheckState" min-width="120" sortable="custom">
:label="$t('trials:consistencyCheck:table:checkState')"
show-overflow-tooltip
min-width="120"
sortable="custom"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.CheckState === 0"> -- </span> <span v-if="scope.row.CheckState === 0"> -- </span>
<el-tag v-else-if="scope.row.CheckState === 9" type="danger">{{ <el-tag v-else-if="scope.row.CheckState === 9" type="danger">{{
@ -307,36 +202,17 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- 核查时间 --> <!-- 核查时间 -->
<el-table-column <el-table-column prop="CheckTime" :label="$t('trials:consistencyCheck:table:checkTime')" show-overflow-tooltip
prop="CheckTime" min-width="160" sortable="custom" />
:label="$t('trials:consistencyCheck:table:checkTime')"
show-overflow-tooltip
min-width="160"
sortable="custom"
/>
<!-- 核查通过时间 --> <!-- 核查通过时间 -->
<el-table-column <el-table-column prop="CheckPassedTime" :label="$t('trials:consistencyCheck:table:checkPassedTime')"
prop="CheckPassedTime" show-overflow-tooltip min-width="150" sortable="custom" />
:label="$t('trials:consistencyCheck:table:checkPassedTime')"
show-overflow-tooltip
min-width="150"
sortable="custom"
/>
<!-- 不一致项 --> <!-- 不一致项 -->
<el-table-column <el-table-column prop="CheckResult" :label="$t('trials:consistencyCheck:table:checkResult')"
prop="CheckResult" show-overflow-tooltip min-width="120" />
:label="$t('trials:consistencyCheck:table:checkResult')"
show-overflow-tooltip
min-width="120"
/>
<!-- 回退状态 --> <!-- 回退状态 -->
<el-table-column <el-table-column prop="RequestBackState" :label="$t('trials:consistencyCheck:table:requestBackState')"
prop="RequestBackState" show-overflow-tooltip min-width="120" sortable="custom">
:label="$t('trials:consistencyCheck:table:requestBackState')"
show-overflow-tooltip
min-width="120"
sortable="custom"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.RequestBackState * 1 === 0">{{ <span v-if="scope.row.RequestBackState * 1 === 0">{{
$fd('RequestBackState', scope.row.RequestBackState * 1) $fd('RequestBackState', scope.row.RequestBackState * 1)
@ -344,170 +220,94 @@
<el-tag v-else-if="scope.row.RequestBackState * 1 === 1">{{ <el-tag v-else-if="scope.row.RequestBackState * 1 === 1">{{
$fd('RequestBackState', scope.row.RequestBackState * 1) $fd('RequestBackState', scope.row.RequestBackState * 1)
}}</el-tag> }}</el-tag>
<el-tag <el-tag v-else-if="scope.row.RequestBackState * 1 === 2" type="warning">{{
v-else-if="scope.row.RequestBackState * 1 === 2" $fd('RequestBackState', scope.row.RequestBackState * 1)
type="warning" }}</el-tag>
>{{ <el-tag v-else-if="scope.row.RequestBackState * 1 === 3" type="danger">{{
$fd('RequestBackState', scope.row.RequestBackState * 1) $fd('RequestBackState', scope.row.RequestBackState * 1)
}}</el-tag }}</el-tag>
>
<el-tag
v-else-if="scope.row.RequestBackState * 1 === 3"
type="danger"
>{{
$fd('RequestBackState', scope.row.RequestBackState * 1)
}}</el-tag
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column v-if="
v-if=" hasPermi([
hasPermi([ 'trials:trials-panel:visit:consistency-check:reply',
'trials:trials-panel:visit:consistency-check:reply', 'trials:trials-panel:visit:consistency-check:apply-fallback',
'trials:trials-panel:visit:consistency-check:apply-fallback', 'trials:trials-panel:visit:consistency-check:fallback',
'trials:trials-panel:visit:consistency-check:fallback', 'trials:trials-panel:visit:consistency-check:close',
'trials:trials-panel:visit:consistency-check:close', 'trials:trials-panel:visit:consistency-check:pass',
'trials:trials-panel:visit:consistency-check:pass', ])
]) " :label="$t('common:action:action')" width="200" fixed="right">
"
:label="$t('common:action:action')"
width="200"
fixed="right"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button circle :title="$t('trials:consistencyCheck:action:reply')"
circle :disabled="scope.row.CheckState < 10 || (scope.row.IsSubjectQuit && scope.row.CheckState * 1 !== 11)"
:title="$t('trials:consistencyCheck:action:reply')" icon="el-icon-chat-dot-square" @click="handleReply(scope.row)" />
:disabled="scope.row.CheckState < 10"
icon="el-icon-chat-dot-square"
@click="handleReply(scope.row)"
/>
<!-- 关闭 --> <!-- 关闭 -->
<el-button <el-button v-hasPermi="['trials:trials-panel:visit:consistency-check:close']" circle
v-hasPermi="['trials:trials-panel:visit:consistency-check:close']" :title="$t('trials:consistencyCheck:action:close')" icon="el-icon-close" :disabled="scope.row.CheckChallengeState === 0 ||
circle
:title="$t('trials:consistencyCheck:action:close')"
icon="el-icon-close"
:disabled="
scope.row.CheckChallengeState === 0 ||
scope.row.CheckChallengeState === 3 || scope.row.CheckChallengeState === 3 ||
scope.row.RequestBackState === 1 scope.row.RequestBackState === 1 || (scope.row.IsSubjectQuit && scope.row.CheckState * 1 !== 11)
" " @click="handleOpenReason(scope.row, 'close')" />
@click="handleOpenReason(scope.row, 'close')"
/>
<!-- 通过 --> <!-- 通过 -->
<el-button <el-button v-hasPermi="['trials:trials-panel:visit:consistency-check:pass']" circle
v-hasPermi="['trials:trials-panel:visit:consistency-check:pass']" :title="$t('trials:consistencyCheck:action:pass')" icon="el-icon-circle-check" :disabled="scope.row.CheckState === 11 ||
circle
:title="$t('trials:consistencyCheck:action:pass')"
icon="el-icon-circle-check"
:disabled="
scope.row.CheckState === 11 ||
scope.row.CheckChallengeState === 1 || scope.row.CheckChallengeState === 1 ||
scope.row.CheckChallengeState === 2 scope.row.CheckChallengeState === 2 || (scope.row.IsSubjectQuit && scope.row.CheckState * 1 !== 11)
" " @click="handleOpenReason(scope.row, 'pass')" />
@click="handleOpenReason(scope.row, 'pass')"
/>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 分页组件 --> <!-- 分页组件 -->
<pagination <pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize"
class="page" @pagination="getList" />
:total="total"
:page.sync="searchData.PageIndex"
:limit.sync="searchData.PageSize"
@pagination="getList"
/>
<div class="remark"> <div class="remark">
<span class="status-primary-circle"> <span class="status-primary-circle">
<!-- 回退 --> <!-- 回退 -->
{{ $t('trials:consistencyCheck:table:back') }} {{ $t('trials:consistencyCheck:table:back') }}
</span> </span>
<span>: {{ $t('trials:consistencyCheck:title:back') }}</span> <span>: {{ $t('trials:consistencyCheck:title:back') }}</span>
<span class="status-primary-circle" style="margin-left: 10px">
{{ $t('trials:crcUpload:label:ISQ') }}
</span>
<span>: {{ $t('trials:crcUpload:label:IsSubjectQuit') }}</span>
</div> </div>
</template> </template>
<el-dialog <el-dialog v-if="chatVisible" v-dialogDrag :visible.sync="chatVisible" :close-on-click-modal="false"
v-if="chatVisible" :close-on-press-escape="false" :before-close="beforeClose" width="800px" :title="$t('trials:consistencyCheck:dialogTitle:qsContent') +
v-dialogDrag
:visible.sync="chatVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
:before-close="beforeClose"
width="800px"
:title="
$t('trials:consistencyCheck:dialogTitle:qsContent') +
`(${currentRow.SubjectCode} ${currentRow.VisitName})` `(${currentRow.SubjectCode} ${currentRow.VisitName})`
" ">
> <ConsistencyCheckForm ref="chatForm" :data="currentRow" :is-reply="isReply" :dialog-list="currentDialogList"
<ConsistencyCheckForm @close="beforeClose" @getDialogList="getDialogList" @handleApplyBack="handleApplyBack"
ref="chatForm" @handleBack="handleBack" />
:data="currentRow"
:is-reply="isReply"
:dialog-list="currentDialogList"
@close="beforeClose"
@getDialogList="getDialogList"
@handleApplyBack="handleApplyBack"
@handleBack="handleBack"
/>
</el-dialog> </el-dialog>
<!-- 签名 --> <!-- 签名 -->
<el-dialog <el-dialog v-if="signVisible" :visible.sync="signVisible" :close-on-click-modal="false" width="600px">
v-if="signVisible"
:visible.sync="signVisible"
:close-on-click-modal="false"
width="600px"
>
<div slot="title"> <div slot="title">
<span style="font-size: 18px">{{ $t('common:dialogTitle:sign') }}</span> <span style="font-size: 18px">{{ $t('common:dialogTitle:sign') }}</span>
<span style="font-size: 12px; margin-left: 5px">{{ <span style="font-size: 12px; margin-left: 5px">{{
`(${$t('common:label:sign')}${currentUser})` `(${$t('common:label:sign')}${currentUser})`
}}</span> }}</span>
</div> </div>
<SignForm <SignForm ref="signForm" :sign-code-enum="signCode" :subject-visit-id="currentRow.Id"
ref="signForm" @closeDialog="closeSignDialog" />
:sign-code-enum="signCode"
:subject-visit-id="currentRow.Id"
@closeDialog="closeSignDialog"
/>
</el-dialog> </el-dialog>
<!-- 原因 --> <!-- 原因 -->
<el-dialog <el-dialog v-if="ReasonVisible" :visible.sync="ReasonVisible" :close-on-click-modal="false" append-to-body
v-if="ReasonVisible" custom-class="base-dialog-wrapper" :width="currentRow.type === 'pass' ? '750px' : '600px'" :title="ReasonTitle">
:visible.sync="ReasonVisible" <div style="
:close-on-click-modal="false"
append-to-body
custom-class="base-dialog-wrapper"
:width="currentRow.type === 'pass' ? '750px' : '600px'"
:title="ReasonTitle"
>
<div
style="
padding: 10px; padding: 10px;
border: 1px solid #e0e0e0; border: 1px solid #e0e0e0;
max-height: 650px; max-height: 650px;
overflow-y: auto; overflow-y: auto;
" ">
> <el-form ref="reasonForm" :rules="rules" :model="QuestionForm" class="demo-ruleForm" size="small"
<el-form label-width="120px">
ref="reasonForm" <el-form-item :label="$t(`trials:qcQuality:label:${currentRow.type}Reason`)" prop="Type" :rules="[
:rules="rules" { required: true, message: $t('common:ruleMessage:select') },
:model="QuestionForm" ]">
class="demo-ruleForm"
size="small"
label-width="120px"
>
<el-form-item
:label="$t(`trials:qcQuality:label:${currentRow.type}Reason`)"
prop="Type"
:rules="[
{ required: true, message: $t('common:ruleMessage:select') },
]"
>
<el-radio-group v-model="QuestionForm.Type" @change="typeChange"> <el-radio-group v-model="QuestionForm.Type" @change="typeChange">
<!-- 问题已解决 --> <!-- 问题已解决 -->
<el-radio :label="1" style="width: 400px; margin-bottom: 10px">{{ <el-radio :label="1" style="width: 400px; margin-bottom: 10px">{{
@ -518,67 +318,36 @@
$t(`trials:check:radio:${currentRow.type}reason${2}`) $t(`trials:check:radio:${currentRow.type}reason${2}`)
}}</el-radio> }}</el-radio>
<!-- 其他 --> <!-- 其他 -->
<el-radio <el-radio style="width: 400px; margin-bottom: 10px" v-if="currentRow.type === 'pass'" :label="3">{{
style="width: 400px; margin-bottom: 10px" $t(`trials:check:radio:${currentRow.type}reason${3}`)
v-if="currentRow.type === 'pass'" }}</el-radio>
:label="3"
>{{
$t(`trials:check:radio:${currentRow.type}reason${3}`)
}}</el-radio
>
<!-- 其他 --> <!-- 其他 -->
<el-radio <el-radio style="width: 400px; margin-bottom: 10px" v-if="currentRow.type === 'pass'" :label="4">{{
style="width: 400px; margin-bottom: 10px" $t(`trials:check:radio:${currentRow.type}reason${4}`)
v-if="currentRow.type === 'pass'" }}</el-radio>
:label="4"
>{{
$t(`trials:check:radio:${currentRow.type}reason${4}`)
}}</el-radio
>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<!-- 原因 --> <!-- 原因 -->
<el-form-item <el-form-item v-if="
v-if=" (currentRow.type === 'pass' && QuestionForm.Type === 4) ||
(currentRow.type === 'pass' && QuestionForm.Type === 4) || (currentRow.type !== 'pass' && QuestionForm.Type === 2)
(currentRow.type !== 'pass' && QuestionForm.Type === 2) " :label="$t(`trials:consistencyCheck:label:${currentRow.type}reason`)
" " prop="Remake">
:label=" <el-input v-model="QuestionForm.Remake" type="textarea" :autosize="{ minRows: 2, maxRows: 4 }"
$t(`trials:consistencyCheck:label:${currentRow.type}reason`) :placeholder="$t('common:ruleMessage:specify')" maxlength="500" show-word-limit />
"
prop="Remake"
>
<el-input
v-model="QuestionForm.Remake"
type="textarea"
:autosize="{ minRows: 2, maxRows: 4 }"
:placeholder="$t('common:ruleMessage:specify')"
maxlength="500"
show-word-limit
/>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<!-- 取消 --> <!-- 取消 -->
<el-button <el-button :disabled="btnLoading" size="small" type="primary" @click="
:disabled="btnLoading" ReasonVisible = false
size="small" QuestionForm = { Type: null, Reason: null }
type="primary" ">
@click="
ReasonVisible = false
QuestionForm = { Type: null, Reason: null }
"
>
{{ $t('common:button:cancel') }} {{ $t('common:button:cancel') }}
</el-button> </el-button>
<!-- 保存 --> <!-- 保存 -->
<el-button <el-button :loading="btnLoading" size="small" type="primary" @click="passOrCloes">
:loading="btnLoading"
size="small"
type="primary"
@click="passOrCloes"
>
{{ $t('common:button:save') }} {{ $t('common:button:save') }}
</el-button> </el-button>
</div> </div>
@ -707,13 +476,13 @@ export default {
handleExport(type) { handleExport(type) {
if (type === 1) { if (type === 1) {
getDicomAndNoneDicomStudyList_Export(this.searchData) getDicomAndNoneDicomStudyList_Export(this.searchData)
.then((res) => {}) .then((res) => { })
.catch(() => { .catch(() => {
this.loading = false this.loading = false
}) })
} else { } else {
getConsistencyVerificationList_Export(this.searchData) getConsistencyVerificationList_Export(this.searchData)
.then((res) => {}) .then((res) => { })
.catch(() => { .catch(() => {
this.loading = false this.loading = false
}) })
@ -901,9 +670,8 @@ export default {
// //
this.QuestionForm.Reason = `${this.$t( this.QuestionForm.Reason = `${this.$t(
'trials:qcQuality:message:problemNotSolved' 'trials:qcQuality:message:problemNotSolved'
)}<br/><br/>${this.$t('trials:consistencyCheck:title:note')}${ )}<br/><br/>${this.$t('trials:consistencyCheck:title:note')}${this.QuestionForm.Remake
this.QuestionForm.Remake }`
}`
} }
var params = { var params = {
SubjectVisitId: row.Id, SubjectVisitId: row.Id,
@ -967,7 +735,7 @@ export default {
.then(() => { .then(() => {
this.apply() this.apply()
}) })
.catch(() => {}) .catch(() => { })
}, },
apply() { apply() {
this.loading = true this.loading = true
@ -1050,6 +818,7 @@ export default {
<style lang="scss"> <style lang="scss">
.consistency-list { .consistency-list {
position: relative; position: relative;
.is-circle-urgent-red { .is-circle-urgent-red {
border-radius: 50%; border-radius: 50%;
padding: 7px; padding: 7px;
@ -1059,6 +828,7 @@ export default {
color: #fff; color: #fff;
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
} }
.is-circle-urgent { .is-circle-urgent {
border-radius: 50%; border-radius: 50%;
padding: 7px; padding: 7px;
@ -1067,6 +837,7 @@ export default {
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
font-size: 12px; font-size: 12px;
} }
.status-primary-circle { .status-primary-circle {
display: inline-block; display: inline-block;
width: 20px; width: 20px;
@ -1078,6 +849,7 @@ export default {
color: #fff; color: #fff;
font-size: 10px; font-size: 10px;
} }
.remark { .remark {
position: absolute; position: absolute;
left: 5px; left: 5px;

View File

@ -349,14 +349,14 @@
<el-button v-hasPermi="['trials:trials-panel:visit:qc-check:receive']" <el-button v-hasPermi="['trials:trials-panel:visit:qc-check:receive']"
:title="$t('trials:qcCheck:button:receive')" circle icon="el-icon-lock" :disabled="scope.row.PreliminaryAuditUserId === userId || :title="$t('trials:qcCheck:button:receive')" circle icon="el-icon-lock" :disabled="scope.row.PreliminaryAuditUserId === userId ||
scope.row.IsTake || scope.row.IsTake ||
scope.row.AuditState > 6 || scope.row.IsImageBackApplying scope.row.AuditState > 6 || scope.row.IsImageBackApplying || (scope.row.IsSubjectQuit && scope.row.AuditState * 1 !== 8)
" @click="handleReciveTask(scope.row, true)" /> " @click="handleReciveTask(scope.row, true)" />
<!-- 释放当前领取人才能释放 --> <!-- 释放当前领取人才能释放 -->
<!-- v-if="(scope.row.IsTake && (scope.row.AuditState*1 === 4 || scope.row.AuditState*1 === 6))" --> <!-- v-if="(scope.row.IsTake && (scope.row.AuditState*1 === 4 || scope.row.AuditState*1 === 6))" -->
<el-button v-hasPermi="['trials:trials-panel:visit:qc-check:release']" <el-button v-hasPermi="['trials:trials-panel:visit:qc-check:release']"
:title="$t('trials:qcCheck:button:release')" circle icon="el-icon-unlock" :disabled="!(scope.row.CurrentActionUserId === userId) || :title="$t('trials:qcCheck:button:release')" circle icon="el-icon-unlock" :disabled="!(scope.row.CurrentActionUserId === userId) ||
!scope.row.IsTake || !scope.row.IsTake ||
scope.row.AuditState * 1 > 6 || scope.row.IsImageBackApplying scope.row.AuditState * 1 > 6 || scope.row.IsImageBackApplying || (scope.row.IsSubjectQuit && scope.row.AuditState * 1 !== 8)
" @click="handleReciveTask(scope.row, false)" /> " @click="handleReciveTask(scope.row, false)" />
<!-- 替换1针对同一访视质控初审人不能替换复审人2当前领取人不能替换自己 --> <!-- 替换1针对同一访视质控初审人不能替换复审人2当前领取人不能替换自己 -->
<!-- v-if="(scope.row.IsTake && (scope.row.AuditState*1 === 4 || scope.row.AuditState*1 === 6))" --> <!-- v-if="(scope.row.IsTake && (scope.row.AuditState*1 === 4 || scope.row.AuditState*1 === 6))" -->
@ -364,7 +364,7 @@
:title="$t('trials:crcQuestion:button:replaceTask')" circle icon="el-icon-refresh" :disabled="scope.row.CurrentActionUserId === userId || :title="$t('trials:crcQuestion:button:replaceTask')" circle icon="el-icon-refresh" :disabled="scope.row.CurrentActionUserId === userId ||
scope.row.PreliminaryAuditUserId === userId || scope.row.PreliminaryAuditUserId === userId ||
!scope.row.IsTake || !scope.row.IsTake ||
scope.row.AuditState * 1 > 6 || scope.row.IsImageBackApplying scope.row.AuditState * 1 > 6 || scope.row.IsImageBackApplying || (scope.row.IsSubjectQuit && scope.row.AuditState * 1 !== 8)
" @click="handleReplaceTask(scope.row)" /> " @click="handleReplaceTask(scope.row)" />
<!-- 审核 --> <!-- 审核 -->
<!-- v-if="scope.row.QCProcessEnum === 1 && scope.row.AuditState*1 === 4 && scope.row.IsTake" --> <!-- v-if="scope.row.QCProcessEnum === 1 && scope.row.AuditState*1 === 4 && scope.row.IsTake" -->
@ -373,7 +373,7 @@
? scope.row.CurrentActionUserId !== userId ? scope.row.CurrentActionUserId !== userId
: false) || : false) ||
!scope.row.IsTake || !scope.row.IsTake ||
scope.row.AuditState * 1 > 6 || scope.row.IsImageBackApplying scope.row.AuditState * 1 > 6 || scope.row.IsImageBackApplying || (scope.row.IsSubjectQuit && scope.row.AuditState * 1 !== 8)
" @click="handlePrimaryQC(scope.row)" /> " @click="handlePrimaryQC(scope.row)" />
<!-- 初审 --> <!-- 初审 -->
<!-- v-if="scope.row.QCProcessEnum === 2 && scope.row.AuditState*1 === 4 && scope.row.IsTake" --> <!-- v-if="scope.row.QCProcessEnum === 2 && scope.row.AuditState*1 === 4 && scope.row.IsTake" -->
@ -384,7 +384,7 @@
? scope.row.CurrentActionUserId !== userId ? scope.row.CurrentActionUserId !== userId
: false) || : false) ||
!scope.row.IsTake || !scope.row.IsTake ||
scope.row.AuditState * 1 > 6 || scope.row.IsImageBackApplying scope.row.AuditState * 1 > 6 || scope.row.IsImageBackApplying || (scope.row.IsSubjectQuit && scope.row.AuditState * 1 !== 8)
" @click="handlePrimaryQC(scope.row)" /> " @click="handlePrimaryQC(scope.row)" />
<!-- 复审 --> <!-- 复审 -->
<!-- v-if="scope.row.QCProcessEnum === 2 && scope.row.AuditState*1 === 6 && scope.row.IsTake && scope.row.PreliminaryAuditUserId!==userId" --> <!-- v-if="scope.row.QCProcessEnum === 2 && scope.row.AuditState*1 === 6 && scope.row.IsTake && scope.row.PreliminaryAuditUserId!==userId" -->
@ -395,10 +395,11 @@
!scope.row.IsTake || !scope.row.IsTake ||
scope.row.AuditState * 1 > 6 || scope.row.AuditState * 1 > 6 ||
scope.row.CurrentActionUserId !== userId scope.row.CurrentActionUserId !== userId
|| scope.row.IsImageBackApplying" @click="handleSecondaryQC(scope.row)" /> || scope.row.IsImageBackApplying"
@click="handleSecondaryQC(scope.row) || (scope.row.IsSubjectQuit && scope.row.AuditState * 1 !== 8)" />
<!-- 退回 --> <!-- 退回 -->
<el-button <el-button
:disabled="scope.row.SubmitState * 1 < 2 || scope.row.IsImageBackApplying || scope.row.ChallengeState * 1 === 2" :disabled="scope.row.SubmitState * 1 < 2 || scope.row.IsImageBackApplying || scope.row.ChallengeState * 1 === 2 || (scope.row.IsSubjectQuit && scope.row.AuditState * 1 !== 8)"
v-hasPermi="['trials:trials-panel:visit:qc-check:back']" icon="el-icon-back" circle v-hasPermi="['trials:trials-panel:visit:qc-check:back']" icon="el-icon-back" circle
:title="$t('trials:qcCheck:button:back')" @click="imageBack(scope.row)" /> :title="$t('trials:qcCheck:button:back')" @click="imageBack(scope.row)" />
</div> </div>