Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
commit
bc3f475954
|
@ -596,3 +596,4 @@ VueInit()
|
|||
// });
|
||||
|
||||
|
||||
export default _vm
|
|
@ -63,8 +63,8 @@ router.beforeEach(async (to, from, next) => {
|
|||
if (hasToken) {
|
||||
if (to.path === '/login' || to.path === '/recompose' || to.path === '/email-recompose' || to.path === '/error' || to.path === '/ReviewersResearchForm' || to.path === '/ReviewersResearch') {
|
||||
if (to.path === '/ReviewersResearch') {
|
||||
await store.dispatch('user/logout')
|
||||
await OSSclient()
|
||||
await store.dispatch('user/logout')
|
||||
}
|
||||
if (to.path === '/ReviewersResearchForm') {
|
||||
await OSSclient()
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import axios from 'axios'
|
||||
import _vm from '@/main'
|
||||
import { Message, MessageBox, Alert } from 'element-ui'
|
||||
import store from '@/store'
|
||||
import router from '@/router'
|
||||
|
@ -90,6 +91,9 @@ service.interceptors.response.use(
|
|||
const status = error.response.status
|
||||
if (error.response.data && (error.response.data.Code === -1 || error.response.data.Code === -2)) {
|
||||
store.dispatch('user/logout').then(() => {
|
||||
if (_vm.$msgbox) {
|
||||
_vm.$msgbox.close();
|
||||
}
|
||||
router.push(`/login`)
|
||||
this.$i18n.locale = 'zh'
|
||||
this.setLanguage('zh')
|
||||
|
|
|
@ -362,12 +362,12 @@ export default {
|
|||
BusinessLevelEnum: [
|
||||
{ required: true, message: 'Please select', trigger: ['blur'] },
|
||||
],
|
||||
ToUserTypeList: [
|
||||
{ required: true, message: 'Please select', trigger: ['blur'] },
|
||||
],
|
||||
EmailCron: [
|
||||
{ required: true, message: 'Please select', trigger: ['blur'] },
|
||||
],
|
||||
// ToUserTypeList: [
|
||||
// { required: true, message: 'Please select', trigger: ['blur'] },
|
||||
// ],
|
||||
// EmailCron: [
|
||||
// { required: true, message: 'Please select', trigger: ['blur'] },
|
||||
// ],
|
||||
EmailUrgentEnum: [
|
||||
{ required: true, message: 'Please select', trigger: ['blur'] },
|
||||
],
|
||||
|
|
|
@ -267,6 +267,8 @@ export default {
|
|||
reviewerId() {
|
||||
if (this.reviewerId) {
|
||||
this.doctorId = this.reviewerId
|
||||
this.initForm()
|
||||
this.getIsVacation()
|
||||
}
|
||||
},
|
||||
},
|
||||
|
@ -277,6 +279,7 @@ export default {
|
|||
methods: {
|
||||
// 获取是否休假
|
||||
async getIsVacation() {
|
||||
if (!this.doctorId) return false
|
||||
try {
|
||||
let data = {
|
||||
DoctorId: this.doctorId,
|
||||
|
|
|
@ -157,12 +157,14 @@ export default {
|
|||
margin-bottom: 10px;
|
||||
}
|
||||
.message {
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
min-height: 100px;
|
||||
background-color: #eee;
|
||||
padding: 10px;
|
||||
line-height: 30px;
|
||||
border-radius: 5px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -81,14 +81,14 @@
|
|||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="message"
|
||||
class="message break-word"
|
||||
v-if="
|
||||
reviewerData.SummarizeInfo.SummarizeEn ||
|
||||
reviewerData.SummarizeInfo.Summarize
|
||||
"
|
||||
>
|
||||
<div class="title">{{ $t('curriculumVitae:summarize:title') }}</div>
|
||||
<span class="text">
|
||||
<span class="">
|
||||
{{
|
||||
isEN
|
||||
? reviewerData.SummarizeInfo.SummarizeEn
|
||||
|
@ -477,7 +477,7 @@
|
|||
"
|
||||
>
|
||||
<div class="title">{{ $t('curriculumVitae:other:AH') }}</div>
|
||||
<div class="content">
|
||||
<div class="message">
|
||||
<span v-if="isEN">{{
|
||||
reviewerData.ResearchPublicationView.AwardsHonors
|
||||
}}</span>
|
||||
|
@ -963,6 +963,7 @@ export default {
|
|||
font-size: 18px;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
font-weight: bold;
|
||||
}
|
||||
.message {
|
||||
padding: 20px 0;
|
||||
|
@ -1070,4 +1071,8 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
break-word {
|
||||
width: 100%;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
</style>
|
|
@ -203,7 +203,7 @@
|
|||
<!-- width="160"-->
|
||||
<!-- />-->
|
||||
<!-- 附件 -->
|
||||
<el-table-column
|
||||
<!-- <el-table-column
|
||||
v-if="$i18n.locale === 'zh' && isDistinguishCriteria"
|
||||
prop="AttachNameCN"
|
||||
:label="$t('trials:emailManageCfg:title:fileName')"
|
||||
|
@ -227,9 +227,6 @@
|
|||
min-width="140"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<!-- <el-button v-if="scope.row.AttachPath" type="text" @click="handlePreview(scope.row.AttachPath)">
|
||||
{{ scope.row.AttachName }}
|
||||
</el-button> -->
|
||||
<span
|
||||
v-if="scope.row.AttachPath"
|
||||
@click="handlePreview(scope.row.AttachPath)"
|
||||
|
@ -237,7 +234,7 @@
|
|||
>{{ scope.row.AttachName }}</span
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column> -->
|
||||
<!-- 是否需要回执 -->
|
||||
<!-- <el-table-column
|
||||
prop="IsReturnRequired"
|
||||
|
|
|
@ -22,6 +22,16 @@
|
|||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
>
|
||||
<template v-if="isUSA">
|
||||
<el-radio
|
||||
v-for="item of $d.ImagePlatformUSA"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
>
|
||||
{{ item.label }}
|
||||
</el-radio>
|
||||
</template>
|
||||
<template v-else>
|
||||
<el-radio
|
||||
v-for="item of $d.ImagePlatform"
|
||||
:key="item.id"
|
||||
|
@ -29,6 +39,7 @@
|
|||
>
|
||||
{{ item.label }}
|
||||
</el-radio>
|
||||
</template>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<!-- 阅片工具 -->
|
||||
|
@ -374,7 +385,11 @@
|
|||
v-for="item of $d.ImageDownloadEnum"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
:disabled="(form.IsReadingTaskViewInOrder === 1 || form.IsReadingTaskViewInOrder === 0) && item.value === 1"
|
||||
:disabled="
|
||||
(form.IsReadingTaskViewInOrder === 1 ||
|
||||
form.IsReadingTaskViewInOrder === 0) &&
|
||||
item.value === 1
|
||||
"
|
||||
>
|
||||
{{ item.label }}
|
||||
</el-radio>
|
||||
|
@ -396,7 +411,11 @@
|
|||
v-for="item of $d.ImageUploadEnum"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
:disabled="(form.IsReadingTaskViewInOrder === 1 || form.IsReadingTaskViewInOrder === 0) && item.value === 1"
|
||||
:disabled="
|
||||
(form.IsReadingTaskViewInOrder === 1 ||
|
||||
form.IsReadingTaskViewInOrder === 0) &&
|
||||
item.value === 1
|
||||
"
|
||||
>
|
||||
{{ item.label }}
|
||||
</el-radio>
|
||||
|
@ -793,6 +812,11 @@ export default {
|
|||
mounted() {
|
||||
this.initPage()
|
||||
},
|
||||
computed: {
|
||||
isUSA() {
|
||||
return process.env.NODE_ENV === 'usa'
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
CriterionModalitys: {
|
||||
handler() {
|
||||
|
|
|
@ -1307,6 +1307,18 @@ export default {
|
|||
// OldVal: this.initialForm.ClinicalDataSetNames.join(', ')
|
||||
// }
|
||||
]
|
||||
this.form.TrialObjectNameList.forEach((item) => {
|
||||
let old =
|
||||
this.initialForm.TrialObjectNameList.find(
|
||||
(d) => d.Name === item.Name
|
||||
) || {}
|
||||
let obj = {
|
||||
Name: item.Name,
|
||||
NewVal: item.TrialName,
|
||||
OldVal: old.TrialName,
|
||||
}
|
||||
this.confirmData.push(obj)
|
||||
})
|
||||
},
|
||||
// 筛选号规则提醒
|
||||
subjectCodeRuleChange(val) {
|
||||
|
@ -1323,6 +1335,30 @@ export default {
|
|||
this.form[k] = res[k]
|
||||
}
|
||||
}
|
||||
let Modalitys = this.form.ModalityList.map((item) => {
|
||||
return this.$fd('Modality', item.trim())
|
||||
})
|
||||
this.form.ModalityListStr = Modalitys.toString().replaceAll(',', ' | ')
|
||||
// this.form.ModalityListStr = this.form.ModalityList.toString().replaceAll(
|
||||
// ",",
|
||||
// " | "
|
||||
// );
|
||||
let BodyPartTypes = res.BodyPartTypes
|
||||
this.form.BodyPartTypes = ''
|
||||
this.form.BodyPartTypeList = BodyPartTypes.split('|')
|
||||
let r = await this.getTrialBodyPartList()
|
||||
if (r) {
|
||||
var bodyPartTypes = this.form.BodyPartTypeList.map((i) => {
|
||||
return this.changeBodyPart(i.trim())
|
||||
})
|
||||
this.form.BodyPartTypes = bodyPartTypes
|
||||
.toString()
|
||||
.replaceAll(',', ' | ')
|
||||
// this.form.ClinicalDataSetNamesStr = this.form.ClinicalDataSetNames.join(', ')
|
||||
this.initialForm = { ...this.form }
|
||||
this.initialForm.TrialObjectNameList = JSON.parse(
|
||||
JSON.stringify(this.form.TrialObjectNameList)
|
||||
)
|
||||
if (
|
||||
!this.form.TrialObjectNameList ||
|
||||
(Array.isArray(this.form.TrialObjectNameList) &&
|
||||
|
@ -1351,28 +1387,6 @@ export default {
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
let Modalitys = this.form.ModalityList.map((item) => {
|
||||
return this.$fd('Modality', item.trim())
|
||||
})
|
||||
this.form.ModalityListStr = Modalitys.toString().replaceAll(',', ' | ')
|
||||
// this.form.ModalityListStr = this.form.ModalityList.toString().replaceAll(
|
||||
// ",",
|
||||
// " | "
|
||||
// );
|
||||
let BodyPartTypes = res.BodyPartTypes
|
||||
this.form.BodyPartTypes = ''
|
||||
this.form.BodyPartTypeList = BodyPartTypes.split('|')
|
||||
let r = await this.getTrialBodyPartList()
|
||||
if (r) {
|
||||
var bodyPartTypes = this.form.BodyPartTypeList.map((i) => {
|
||||
return this.changeBodyPart(i.trim())
|
||||
})
|
||||
this.form.BodyPartTypes = bodyPartTypes
|
||||
.toString()
|
||||
.replaceAll(',', ' | ')
|
||||
// this.form.ClinicalDataSetNamesStr = this.form.ClinicalDataSetNames.join(', ')
|
||||
this.initialForm = { ...this.form }
|
||||
this.loading = false
|
||||
}
|
||||
},
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
</el-form-item>
|
||||
<!-- 查询 -->
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t("common:button:search") }}
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<!-- 重置 -->
|
||||
<el-button
|
||||
|
@ -70,7 +70,7 @@
|
|||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t("common:button:reset") }}
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
<!--导出一致性核查表-->
|
||||
<el-button
|
||||
|
@ -78,7 +78,7 @@
|
|||
icon="el-icon-download"
|
||||
@click="handleExport(1)"
|
||||
>
|
||||
{{ $t("trials:consistencyCheck:button:export1") }}
|
||||
{{ $t('trials:consistencyCheck:button:export1') }}
|
||||
</el-button>
|
||||
<!-- 导出一致性核查记录表 -->
|
||||
<el-button
|
||||
|
@ -86,7 +86,7 @@
|
|||
icon="el-icon-download"
|
||||
@click="handleExport(2)"
|
||||
>
|
||||
{{ $t("trials:consistencyCheck:button:export2") }}
|
||||
{{ $t('trials:consistencyCheck:button:export2') }}
|
||||
</el-button>
|
||||
<!-- 下载模板 -->
|
||||
<el-button
|
||||
|
@ -95,7 +95,7 @@
|
|||
icon="el-icon-download"
|
||||
@click="handleDownload"
|
||||
>
|
||||
{{ $t("trials:consistencyCheck:button:download") }}
|
||||
{{ $t('trials:consistencyCheck:button:download') }}
|
||||
</el-button>
|
||||
</el-form>
|
||||
<!-- 上传 -->
|
||||
|
@ -106,7 +106,7 @@
|
|||
icon="el-icon-upload2"
|
||||
@click="handleOpenUploadDialog"
|
||||
>
|
||||
{{ $t("trials:consistencyCheck:button:upload") }}
|
||||
{{ $t('trials:consistencyCheck:button:upload') }}
|
||||
</el-button>
|
||||
</span>
|
||||
</template>
|
||||
|
@ -133,10 +133,10 @@
|
|||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.IsUrgent" type="danger">{{
|
||||
$fd("YesOrNo", scope.row.IsUrgent)
|
||||
$fd('YesOrNo', scope.row.IsUrgent)
|
||||
}}</el-tag>
|
||||
<el-tag v-else type="primary">{{
|
||||
$fd("YesOrNo", scope.row.IsUrgent)
|
||||
$fd('YesOrNo', scope.row.IsUrgent)
|
||||
}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -156,8 +156,8 @@
|
|||
>
|
||||
{{
|
||||
userTypeEnumInt === 2
|
||||
? $fd("CheckChallengeState", 1)
|
||||
: $fd("CheckChallengeState", 2)
|
||||
? $fd('CheckChallengeState', 1)
|
||||
: $fd('CheckChallengeState', 2)
|
||||
}}
|
||||
</el-tag>
|
||||
<el-tag
|
||||
|
@ -166,12 +166,12 @@
|
|||
>
|
||||
{{
|
||||
userTypeEnumInt === 2
|
||||
? $fd("CheckChallengeState", 2)
|
||||
: $fd("CheckChallengeState", 1)
|
||||
? $fd('CheckChallengeState', 2)
|
||||
: $fd('CheckChallengeState', 1)
|
||||
}}
|
||||
</el-tag>
|
||||
<el-tag v-else-if="scope.row.CheckChallengeState === 3">{{
|
||||
$fd("CheckChallengeState", scope.row.CheckChallengeState)
|
||||
$fd('CheckChallengeState', scope.row.CheckChallengeState)
|
||||
}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -202,7 +202,7 @@
|
|||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.VisitName }}</span>
|
||||
<span v-if="scope.row.IsCheckBack" class="status-primary-circle">{{
|
||||
$t("trials:consistencyCheck:table:back")
|
||||
$t('trials:consistencyCheck:table:back')
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -227,8 +227,32 @@
|
|||
width="140"
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<!-- <template slot-scope="scope">
|
||||
<span>{{ scope.row.LatestScanDate.split(" ")[0] }}</span>
|
||||
</template> -->
|
||||
<template slot-scope="scope">
|
||||
<el-tooltip
|
||||
class="item"
|
||||
effect="dark"
|
||||
:content="`${
|
||||
scope.row.EarliestScanDate
|
||||
? moment(scope.row.EarliestScanDate).format('YYYY-MM-DD')
|
||||
: ''
|
||||
} ~ ${
|
||||
scope.row.LatestScanDate
|
||||
? moment(scope.row.LatestScanDate).format('YYYY-MM-DD')
|
||||
: ''
|
||||
}`"
|
||||
placement="top"
|
||||
>
|
||||
<span>
|
||||
{{
|
||||
scope.row.LatestScanDate
|
||||
? moment(scope.row.LatestScanDate).format('YYYY-MM-DD')
|
||||
: ''
|
||||
}}
|
||||
</span>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
|
@ -270,13 +294,13 @@
|
|||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.CheckState === 0"> -- </span>
|
||||
<el-tag v-else-if="scope.row.CheckState === 9" type="danger">{{
|
||||
$fd("CheckState", scope.row.CheckState)
|
||||
$fd('CheckState', scope.row.CheckState)
|
||||
}}</el-tag>
|
||||
<el-tag v-else-if="scope.row.CheckState === 10" type="danger">{{
|
||||
$fd("CheckState", scope.row.CheckState)
|
||||
$fd('CheckState', scope.row.CheckState)
|
||||
}}</el-tag>
|
||||
<el-tag v-else-if="scope.row.CheckState === 11">{{
|
||||
$fd("CheckState", scope.row.CheckState)
|
||||
$fd('CheckState', scope.row.CheckState)
|
||||
}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -312,23 +336,23 @@
|
|||
>
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.RequestBackState * 1 === 0">{{
|
||||
$fd("RequestBackState", scope.row.RequestBackState * 1)
|
||||
$fd('RequestBackState', scope.row.RequestBackState * 1)
|
||||
}}</span>
|
||||
<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
|
||||
v-else-if="scope.row.RequestBackState * 1 === 2"
|
||||
type="warning"
|
||||
>{{
|
||||
$fd("RequestBackState", scope.row.RequestBackState * 1)
|
||||
$fd('RequestBackState', scope.row.RequestBackState * 1)
|
||||
}}</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
|
||||
>
|
||||
</template>
|
||||
|
@ -396,9 +420,9 @@
|
|||
<div class="remark">
|
||||
<span class="status-primary-circle">
|
||||
<!-- 回退 -->
|
||||
{{ $t("trials:consistencyCheck:table:back") }}
|
||||
{{ $t('trials:consistencyCheck:table:back') }}
|
||||
</span>
|
||||
<span>: {{ $t("trials:consistencyCheck:title:back") }}</span>
|
||||
<span>: {{ $t('trials:consistencyCheck:title:back') }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -435,9 +459,9 @@
|
|||
width="600px"
|
||||
>
|
||||
<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">{{
|
||||
`(${$t("common:label:sign")}${currentUser})`
|
||||
`(${$t('common:label:sign')}${currentUser})`
|
||||
}}</span>
|
||||
</div>
|
||||
<SignForm
|
||||
|
@ -539,11 +563,11 @@
|
|||
size="small"
|
||||
type="primary"
|
||||
@click="
|
||||
ReasonVisible = false;
|
||||
QuestionForm = { Type: null, Reason: null };
|
||||
ReasonVisible = false
|
||||
QuestionForm = { Type: null, Reason: null }
|
||||
"
|
||||
>
|
||||
{{ $t("common:button:cancel") }}
|
||||
{{ $t('common:button:cancel') }}
|
||||
</el-button>
|
||||
<!-- 保存 -->
|
||||
<el-button
|
||||
|
@ -552,7 +576,7 @@
|
|||
type="primary"
|
||||
@click="passOrCloes"
|
||||
>
|
||||
{{ $t("common:button:save") }}
|
||||
{{ $t('common:button:save') }}
|
||||
</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
@ -573,32 +597,33 @@ import {
|
|||
closeCheckChallenge,
|
||||
setCheckPass,
|
||||
getCheckChallengeDialogList,
|
||||
} from "@/api/trials";
|
||||
import { DownloadCommonDoc } from "@/api/dictionary";
|
||||
} from '@/api/trials'
|
||||
import { DownloadCommonDoc } from '@/api/dictionary'
|
||||
import {
|
||||
getDicomAndNoneDicomStudyList_Export,
|
||||
getConsistencyVerificationList_Export,
|
||||
} from "@/api/export";
|
||||
import { checkBack } from "@/api/trials/visit";
|
||||
import BaseContainer from "@/components/BaseContainer";
|
||||
import BaseModel from "@/components/BaseModel";
|
||||
import ConsistencyCheckForm from "./components/consistencyCheckForm";
|
||||
import UploadExcel from "./components/uploadExcel";
|
||||
import SignForm from "@/views/trials/components/newSignForm";
|
||||
import Pagination from "@/components/Pagination";
|
||||
import const_ from "@/const/sign-code";
|
||||
} from '@/api/export'
|
||||
import { checkBack } from '@/api/trials/visit'
|
||||
import BaseContainer from '@/components/BaseContainer'
|
||||
import BaseModel from '@/components/BaseModel'
|
||||
import ConsistencyCheckForm from './components/consistencyCheckForm'
|
||||
import UploadExcel from './components/uploadExcel'
|
||||
import SignForm from '@/views/trials/components/newSignForm'
|
||||
import Pagination from '@/components/Pagination'
|
||||
import const_ from '@/const/sign-code'
|
||||
import moment from 'moment'
|
||||
const searchDataDefault = () => {
|
||||
return {
|
||||
TrialSiteId: "",
|
||||
SubjectInfo: "",
|
||||
TrialSiteId: '',
|
||||
SubjectInfo: '',
|
||||
VisitPlanArray: [],
|
||||
CheckState: null,
|
||||
PageIndex: 1,
|
||||
PageSize: 20,
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
export default {
|
||||
name: "ConsistencyCheck",
|
||||
name: 'ConsistencyCheck',
|
||||
components: {
|
||||
BaseContainer,
|
||||
Pagination,
|
||||
|
@ -614,6 +639,7 @@ export default {
|
|||
Reason: null,
|
||||
Remake: null,
|
||||
},
|
||||
moment,
|
||||
searchData: searchDataDefault(),
|
||||
ReasonVisible: false,
|
||||
total: 0,
|
||||
|
@ -625,170 +651,170 @@ export default {
|
|||
currentDialogList: [],
|
||||
siteOptions: [],
|
||||
visitPlanOptions: [],
|
||||
userTypeEnumInt: zzSessionStorage.getItem("userTypeEnumInt") * 1,
|
||||
userTypeEnumInt: zzSessionStorage.getItem('userTypeEnumInt') * 1,
|
||||
upload_cfg: {
|
||||
visible: false,
|
||||
title: this.$t("trials:consistencyCheck:button:upload"),
|
||||
width: "500px",
|
||||
title: this.$t('trials:consistencyCheck:button:upload'),
|
||||
width: '500px',
|
||||
showClose: true,
|
||||
},
|
||||
rules: {
|
||||
Type: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:specify"),
|
||||
trigger: "blur",
|
||||
message: this.$t('common:ruleMessage:specify'),
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
Remake: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:specify"),
|
||||
trigger: "blur",
|
||||
message: this.$t('common:ruleMessage:specify'),
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
},
|
||||
signVisible: false,
|
||||
signType: 0, // 0代表申请,1代表回退,2通过
|
||||
currentUser: zzSessionStorage.getItem("userName"),
|
||||
currentUser: zzSessionStorage.getItem('userName'),
|
||||
OtherInfo: {},
|
||||
signCode: "",
|
||||
signCode: '',
|
||||
trialId: this.$route.query.trialId,
|
||||
isReply: false,
|
||||
ReasonTitle: null,
|
||||
};
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getList();
|
||||
this.getSite();
|
||||
this.getVisitPlanOptions();
|
||||
this.getList()
|
||||
this.getSite()
|
||||
this.getVisitPlanOptions()
|
||||
},
|
||||
watch: {
|
||||
chatVisible() {
|
||||
if (!this.chatVisible) {
|
||||
this.$store.state.trials.checkTaskId = null;
|
||||
this.$store.state.trials.checkTaskId = null
|
||||
}
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
beforeClose() {
|
||||
this.chatVisible = false;
|
||||
this.$store.state.trials.checkTaskId = null;
|
||||
this.chatVisible = false
|
||||
this.$store.state.trials.checkTaskId = null
|
||||
},
|
||||
handleExport(type) {
|
||||
if (type === 1) {
|
||||
getDicomAndNoneDicomStudyList_Export(this.searchData)
|
||||
.then((res) => {})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
this.loading = false
|
||||
})
|
||||
} else {
|
||||
getConsistencyVerificationList_Export(this.searchData)
|
||||
.then((res) => {})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
this.loading = false
|
||||
})
|
||||
}
|
||||
},
|
||||
typeChange(v) {
|
||||
if (v === (this.currentRow.type === "pass" ? 4 : 2)) {
|
||||
this.QuestionForm.Reason = null;
|
||||
this.QuestionForm.Remake = null;
|
||||
if (v === (this.currentRow.type === 'pass' ? 4 : 2)) {
|
||||
this.QuestionForm.Reason = null
|
||||
this.QuestionForm.Remake = null
|
||||
} else {
|
||||
this.QuestionForm.Reason = this.$t(
|
||||
`trials:check:radio:${this.currentRow.type}reason${v}`
|
||||
);
|
||||
)
|
||||
}
|
||||
},
|
||||
passOrCloes() {
|
||||
if (this.currentRow.type === "pass") {
|
||||
this.pass();
|
||||
if (this.currentRow.type === 'pass') {
|
||||
this.pass()
|
||||
} else {
|
||||
this.handleClose(this.currentRow);
|
||||
this.handleClose(this.currentRow)
|
||||
}
|
||||
},
|
||||
handleOpenReason(row, type) {
|
||||
if (type === "pass") {
|
||||
if (type === 'pass') {
|
||||
// 手动通过一次性核查原因
|
||||
this.ReasonTitle = this.$t(
|
||||
"trials:consistencyCheck:dialogTitle:xfpassManually"
|
||||
);
|
||||
'trials:consistencyCheck:dialogTitle:xfpassManually'
|
||||
)
|
||||
} else {
|
||||
// 关闭一致性核查原因
|
||||
this.ReasonTitle = this.$t(
|
||||
"trials:consistencyCheck:dialogTitle:xfclose"
|
||||
);
|
||||
'trials:consistencyCheck:dialogTitle:xfclose'
|
||||
)
|
||||
}
|
||||
this.currentRow = { ...row, Reason: null };
|
||||
this.currentRow.type = type;
|
||||
this.currentRow = { ...row, Reason: null }
|
||||
this.currentRow.type = type
|
||||
this.QuestionForm = {
|
||||
Type: null,
|
||||
Reason: null,
|
||||
Remake: null,
|
||||
};
|
||||
this.ReasonVisible = true;
|
||||
}
|
||||
this.ReasonVisible = true
|
||||
},
|
||||
// 获取质疑列表
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.searchData.TrialId = this.trialId;
|
||||
this.loading = true
|
||||
this.searchData.TrialId = this.trialId
|
||||
getConsistencyVerificationList(this.searchData)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.list = res.Result.CurrentPageData;
|
||||
this.total = res.Result.TotalCount;
|
||||
this.OtherInfo = res.OtherInfo;
|
||||
this.loading = false
|
||||
this.list = res.Result.CurrentPageData
|
||||
this.total = res.Result.TotalCount
|
||||
this.OtherInfo = res.OtherInfo
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 回复质疑
|
||||
handleReply(row) {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
getCheckChallengeDialogList(row.Id)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
Object.assign(row, res.Result.SubjectVisitCheck);
|
||||
this.currentRow = { ...row };
|
||||
this.$store.state.trials.checkTaskId = row.Id;
|
||||
this.currentDialogList = res.Result.DialogList;
|
||||
this.isReply = true;
|
||||
this.chatVisible = true;
|
||||
Object.assign(row, res.Result.SubjectVisitCheck)
|
||||
this.currentRow = { ...row }
|
||||
this.$store.state.trials.checkTaskId = row.Id
|
||||
this.currentDialogList = res.Result.DialogList
|
||||
this.isReply = true
|
||||
this.chatVisible = true
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
getDialogList() {
|
||||
this.loading = true;
|
||||
this.$refs["chatForm"].loading = true;
|
||||
this.loading = true
|
||||
this.$refs['chatForm'].loading = true
|
||||
getCheckChallengeDialogList(this.currentRow.Id)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
var i = this.list.findIndex(
|
||||
(item) => item.Id === this.currentRow.Id
|
||||
);
|
||||
)
|
||||
if (i > -1) {
|
||||
this.currentRow = Object.assign(
|
||||
this.list[i],
|
||||
res.Result.SubjectVisitCheck
|
||||
);
|
||||
this.currentDialogList = res.Result.DialogList;
|
||||
this.$refs["chatForm"].addMessage(
|
||||
)
|
||||
this.currentDialogList = res.Result.DialogList
|
||||
this.$refs['chatForm'].addMessage(
|
||||
res.Result.DialogList[res.Result.DialogList.length - 1]
|
||||
);
|
||||
)
|
||||
// this.$refs['chatForm'].getMessageList(res.Result.DialogList)
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.$refs["chatForm"].loading = false;
|
||||
});
|
||||
this.loading = false
|
||||
this.$refs['chatForm'].loading = false
|
||||
})
|
||||
},
|
||||
// 回退
|
||||
// handleBack(row) {
|
||||
|
@ -799,127 +825,125 @@ export default {
|
|||
// this.signVisible = true
|
||||
// },
|
||||
handleBack() {
|
||||
this.signType = 1;
|
||||
const { DataFallback } = const_.processSignature;
|
||||
this.signCode = DataFallback;
|
||||
this.signVisible = true;
|
||||
this.signType = 1
|
||||
const { DataFallback } = const_.processSignature
|
||||
this.signCode = DataFallback
|
||||
this.signVisible = true
|
||||
},
|
||||
pass() {
|
||||
this.$refs.reasonForm.validate((valid) => {
|
||||
if (!valid) return;
|
||||
this.btnLoading = true;
|
||||
if (!valid) return
|
||||
this.btnLoading = true
|
||||
if (this.QuestionForm.Type === 4) {
|
||||
// 问题无法解决强制关闭质疑,已提醒中心下次注意
|
||||
this.QuestionForm.Reason = `${this.QuestionForm.Remake}`;
|
||||
this.QuestionForm.Reason = `${this.QuestionForm.Remake}`
|
||||
}
|
||||
var params = {
|
||||
Id: this.currentRow.Id,
|
||||
ManualPassReason: this.QuestionForm.Reason,
|
||||
};
|
||||
}
|
||||
setCheckPass(this.trialId, params)
|
||||
.then((res) => {
|
||||
this.btnLoading = false;
|
||||
this.btnLoading = false
|
||||
if (res.IsSuccess) {
|
||||
this.getList();
|
||||
this.QuestionForm.Type = null;
|
||||
this.ReasonVisible = false;
|
||||
this.$message.success(
|
||||
this.$t("common:message:savedSuccessfully")
|
||||
);
|
||||
this.getList()
|
||||
this.QuestionForm.Type = null
|
||||
this.ReasonVisible = false
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.btnLoading = false;
|
||||
});
|
||||
});
|
||||
this.btnLoading = false
|
||||
})
|
||||
})
|
||||
},
|
||||
back(signInfo) {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
var params = {
|
||||
data: { id: this.currentRow.Id },
|
||||
signInfo: signInfo,
|
||||
};
|
||||
}
|
||||
checkBack(params)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
if (signInfo) {
|
||||
this.$refs["signForm"].btnLoading = false;
|
||||
this.signVisible = false;
|
||||
this.$refs['signForm'].btnLoading = false
|
||||
this.signVisible = false
|
||||
}
|
||||
if (res.IsSuccess) {
|
||||
this.getList();
|
||||
this.getList()
|
||||
// this.getDialogList()
|
||||
this.chatVisible = false;
|
||||
this.chatVisible = false
|
||||
// 回退成功
|
||||
this.$message.success(
|
||||
this.$t("trials:consistencyCheck:message:fallbackSuccessfully")
|
||||
);
|
||||
this.$t('trials:consistencyCheck:message:fallbackSuccessfully')
|
||||
)
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
if (signInfo) {
|
||||
this.$refs["signForm"].btnLoading = false;
|
||||
this.$refs['signForm'].btnLoading = false
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
// 关闭质疑
|
||||
handleClose(row) {
|
||||
this.$refs.reasonForm.validate((valid) => {
|
||||
if (!valid) return;
|
||||
var item = Object.assign({}, row);
|
||||
item.CheckChallengeState = 3;
|
||||
this.btnLoading = true;
|
||||
if (!valid) return
|
||||
var item = Object.assign({}, row)
|
||||
item.CheckChallengeState = 3
|
||||
this.btnLoading = true
|
||||
if (this.QuestionForm.Type === 2) {
|
||||
// 问题无法解决强制关闭质疑,已提醒中心下次注意
|
||||
this.QuestionForm.Reason = `${this.$t(
|
||||
"trials:qcQuality:message:problemNotSolved"
|
||||
)}<br/><br/>${this.$t("trials:consistencyCheck:title:note")}${
|
||||
'trials:qcQuality:message:problemNotSolved'
|
||||
)}<br/><br/>${this.$t('trials:consistencyCheck:title:note')}${
|
||||
this.QuestionForm.Remake
|
||||
}`;
|
||||
}`
|
||||
}
|
||||
var params = {
|
||||
SubjectVisitId: row.Id,
|
||||
CloseCheckChallenge: this.QuestionForm.Reason,
|
||||
};
|
||||
}
|
||||
closeCheckChallenge(this.trialId, params)
|
||||
.then((res) => {
|
||||
this.btnLoading = false;
|
||||
this.btnLoading = false
|
||||
if (res.IsSuccess) {
|
||||
this.getList();
|
||||
this.ReasonVisible = false;
|
||||
this.QuestionForm.Type = null;
|
||||
this.getList()
|
||||
this.ReasonVisible = false
|
||||
this.QuestionForm.Type = null
|
||||
// 关闭成功
|
||||
this.$message.success(
|
||||
this.$t("trials:consistencyCheck:message:closedSuccessfully")
|
||||
);
|
||||
this.$t('trials:consistencyCheck:message:closedSuccessfully')
|
||||
)
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.btnLoading = false;
|
||||
});
|
||||
});
|
||||
this.btnLoading = false
|
||||
})
|
||||
})
|
||||
},
|
||||
handleDownload() {
|
||||
this.loading = true;
|
||||
DownloadCommonDoc("VisitCheck_Template")
|
||||
this.loading = true
|
||||
DownloadCommonDoc('VisitCheck_Template')
|
||||
.then((data) => {
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 打开上传excel弹窗
|
||||
handleOpenUploadDialog() {
|
||||
this.upload_cfg.visible = true;
|
||||
this.upload_cfg.title = this.$t("common:button:upload");
|
||||
this.upload_cfg.visible = true
|
||||
this.upload_cfg.title = this.$t('common:button:upload')
|
||||
},
|
||||
// 查看
|
||||
handleView(row) {
|
||||
this.currentRow = { ...row };
|
||||
this.isReply = false;
|
||||
this.chatVisible = true;
|
||||
this.currentRow = { ...row }
|
||||
this.isReply = false
|
||||
this.chatVisible = true
|
||||
},
|
||||
// crc申请回退
|
||||
// handleApplyBack(row) {
|
||||
|
@ -933,92 +957,92 @@ export default {
|
|||
// }).catch(() => {})
|
||||
// },
|
||||
handleApplyBack() {
|
||||
this.$confirm(this.$t("trials:consistencyCheck:message:apply"), {
|
||||
type: "warning",
|
||||
this.$confirm(this.$t('trials:consistencyCheck:message:apply'), {
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true,
|
||||
})
|
||||
.then(() => {
|
||||
this.apply();
|
||||
this.apply()
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => {})
|
||||
},
|
||||
apply() {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
cRCRequstCheckBack(this.trialId, this.currentRow.Id)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
// this.getList()
|
||||
this.getDialogList();
|
||||
this.getDialogList()
|
||||
// 申请成功
|
||||
// this.$message.success(this.$t('trials:consistencyCheck:message:appledSuccessfully'))
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 关闭签名弹窗
|
||||
closeSignDialog(isRefresh, signInfo) {
|
||||
if (!isRefresh) {
|
||||
this.signVisible = false;
|
||||
this.signVisible = false
|
||||
} else {
|
||||
// 1代表回退,2通过
|
||||
if (this.signType === 1) {
|
||||
this.back(signInfo);
|
||||
this.back(signInfo)
|
||||
}
|
||||
}
|
||||
},
|
||||
// 通过一致性核查
|
||||
handlePassCheck(row) {
|
||||
this.signType = 2;
|
||||
this.currentRow = { ...row };
|
||||
const { ConsistencyCheckPassed } = const_.processSignature;
|
||||
this.signCode = ConsistencyCheckPassed;
|
||||
this.signVisible = true;
|
||||
this.signType = 2
|
||||
this.currentRow = { ...row }
|
||||
const { ConsistencyCheckPassed } = const_.processSignature
|
||||
this.signCode = ConsistencyCheckPassed
|
||||
this.signVisible = true
|
||||
},
|
||||
// 重置
|
||||
handleReset() {
|
||||
this.searchData = searchDataDefault();
|
||||
this.getList();
|
||||
this.searchData = searchDataDefault()
|
||||
this.getList()
|
||||
this.$nextTick(() => {
|
||||
this.$refs.consistencyTable.clearSort();
|
||||
});
|
||||
this.$refs.consistencyTable.clearSort()
|
||||
})
|
||||
},
|
||||
// 查询
|
||||
handleSearch() {
|
||||
this.searchData.PageIndex = 1;
|
||||
this.getList();
|
||||
this.searchData.PageIndex = 1
|
||||
this.getList()
|
||||
},
|
||||
// 排序
|
||||
handleSortByColumn(column) {
|
||||
if (column.order === "ascending") {
|
||||
this.searchData.Asc = true;
|
||||
if (column.order === 'ascending') {
|
||||
this.searchData.Asc = true
|
||||
} else {
|
||||
this.searchData.Asc = false;
|
||||
this.searchData.Asc = false
|
||||
}
|
||||
this.searchData.SortField = column.prop;
|
||||
this.searchData.PageIndex = 1;
|
||||
this.getList();
|
||||
this.searchData.SortField = column.prop
|
||||
this.searchData.PageIndex = 1
|
||||
this.getList()
|
||||
},
|
||||
refreshTable() {
|
||||
this.upload_cfg.visible = false;
|
||||
this.getList();
|
||||
this.upload_cfg.visible = false
|
||||
this.getList()
|
||||
},
|
||||
// 获取site下拉框数据
|
||||
getSite() {
|
||||
getTrialSiteSelect(this.trialId).then((res) => {
|
||||
this.siteOptions = res.Result;
|
||||
});
|
||||
this.siteOptions = res.Result
|
||||
})
|
||||
},
|
||||
// 获取访视下拉框数据
|
||||
getVisitPlanOptions() {
|
||||
getTrialVisitStageSelect(this.trialId).then((res) => {
|
||||
this.visitPlanOptions = res.Result;
|
||||
});
|
||||
this.visitPlanOptions = res.Result
|
||||
})
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.consistency-list {
|
||||
|
|
|
@ -144,7 +144,7 @@
|
|||
<el-form-item>
|
||||
<!-- 查询 -->
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t("common:button:search") }}
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<!-- 重置 -->
|
||||
<el-button
|
||||
|
@ -152,7 +152,7 @@
|
|||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t("common:button:reset") }}
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
<!-- 导出 -->
|
||||
<el-button
|
||||
|
@ -161,7 +161,7 @@
|
|||
:loading="exportLoading"
|
||||
@click="handleExport"
|
||||
>
|
||||
{{ $t("common:button:export") }}
|
||||
{{ $t('common:button:export') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
@ -229,7 +229,7 @@
|
|||
:disabled="!(userTypeEnumInt === 1 || userTypeEnumInt === 3)"
|
||||
@click="handleUrgentStatus(scope.row)"
|
||||
>
|
||||
{{ $fd("YesOrNo", scope.row.IsUrgent) }}
|
||||
{{ $fd('YesOrNo', scope.row.IsUrgent) }}
|
||||
</el-button>
|
||||
<el-button
|
||||
v-else-if="
|
||||
|
@ -241,14 +241,14 @@
|
|||
:disabled="!(userTypeEnumInt === 1 || userTypeEnumInt === 3)"
|
||||
@click="handleUrgentStatus(scope.row)"
|
||||
>
|
||||
{{ $fd("YesOrNo", scope.row.IsUrgent) }}
|
||||
{{ $fd('YesOrNo', scope.row.IsUrgent) }}
|
||||
</el-button>
|
||||
<span v-else>
|
||||
<el-tag v-if="scope.row.IsUrgent" type="danger">
|
||||
{{ $fd("YesOrNo", scope.row.IsUrgent) }}
|
||||
{{ $fd('YesOrNo', scope.row.IsUrgent) }}
|
||||
</el-tag>
|
||||
<el-tag v-else type="primary">
|
||||
{{ $fd("YesOrNo", scope.row.IsUrgent) }}
|
||||
{{ $fd('YesOrNo', scope.row.IsUrgent) }}
|
||||
</el-tag>
|
||||
</span>
|
||||
</template>
|
||||
|
@ -290,22 +290,22 @@
|
|||
</span>
|
||||
<!-- PD -->
|
||||
<span v-if="scope.row.PDState" class="status-primary-circle">
|
||||
{{ $t("trials:crcUpload:label:pd") }}
|
||||
{{ $t('trials:crcUpload:label:pd') }}
|
||||
</span>
|
||||
<!-- 失 -->
|
||||
<span v-if="scope.row.IsLostVisit" class="status-primary-circle">
|
||||
{{ $t("trials:crcUpload:label:lostVisit") }}
|
||||
{{ $t('trials:crcUpload:label:lostVisit') }}
|
||||
</span>
|
||||
<!-- 末 -->
|
||||
<span v-if="scope.row.IsFinalVisit" class="status-primary-circle">
|
||||
{{ $t("trials:crcUpload:label:finalVisit") }}
|
||||
{{ $t('trials:crcUpload:label:finalVisit') }}
|
||||
</span>
|
||||
<!-- 入 -->
|
||||
<span
|
||||
v-if="scope.row.IsEnrollmentConfirm"
|
||||
class="status-primary-circle"
|
||||
>
|
||||
{{ $t("trials:crcUpload:label:enrollmentConfirm") }}
|
||||
{{ $t('trials:crcUpload:label:enrollmentConfirm') }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -320,7 +320,7 @@
|
|||
<el-tooltip placement="bottom">
|
||||
<div slot="content">
|
||||
<span
|
||||
>{{ $t("trials:crcUpload:label:dicom") }}:
|
||||
>{{ $t('trials:crcUpload:label:dicom') }}:
|
||||
{{ scope.row.DicomStudyCount }},
|
||||
</span>
|
||||
<span
|
||||
|
@ -330,16 +330,16 @@
|
|||
"
|
||||
>
|
||||
<span
|
||||
>{{ $t("trials:crcUpload:label:noneDicom") }}:
|
||||
>{{ $t('trials:crcUpload:label:noneDicom') }}:
|
||||
{{ scope.row.NoneDicomStudyCount }},
|
||||
</span>
|
||||
<span
|
||||
>{{ $t("trials:crcUpload:label:clinicalData") }}:
|
||||
{{ scope.row.IsHaveClinicalData ? "w/" : "w/o" }}</span
|
||||
>{{ $t('trials:crcUpload:label:clinicalData') }}:
|
||||
{{ scope.row.IsHaveClinicalData ? 'w/' : 'w/o' }}</span
|
||||
>
|
||||
</span>
|
||||
<span v-else
|
||||
>{{ $t("trials:crcUpload:label:noneDicom") }}:
|
||||
>{{ $t('trials:crcUpload:label:noneDicom') }}:
|
||||
{{ scope.row.NoneDicomStudyCount }}</span
|
||||
>
|
||||
</div>
|
||||
|
@ -350,19 +350,19 @@
|
|||
? [
|
||||
scope.row.DicomStudyCount,
|
||||
scope.row.NoneDicomStudyCount,
|
||||
scope.row.IsHaveClinicalData ? "w/" : "w/o",
|
||||
].join(", ")
|
||||
scope.row.IsHaveClinicalData ? 'w/' : 'w/o',
|
||||
].join(', ')
|
||||
: [
|
||||
scope.row.DicomStudyCount,
|
||||
scope.row.NoneDicomStudyCount,
|
||||
].join(", ")
|
||||
].join(', ')
|
||||
}}
|
||||
</span>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 最早拍片日期 -->
|
||||
<el-table-column
|
||||
<!-- <el-table-column
|
||||
prop="EarliestScanDate"
|
||||
:label="$t('trials:qcCheck:table:eScanDate')"
|
||||
show-overflow-tooltip
|
||||
|
@ -376,7 +376,7 @@
|
|||
: ""
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column> -->
|
||||
<!-- 最晚拍片日期 -->
|
||||
<el-table-column
|
||||
prop="LatestScanDate"
|
||||
|
@ -386,11 +386,28 @@
|
|||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tooltip
|
||||
class="item"
|
||||
effect="dark"
|
||||
:content="`${
|
||||
scope.row.EarliestScanDate
|
||||
? moment(scope.row.EarliestScanDate).format('YYYY-MM-DD')
|
||||
: ''
|
||||
} ~ ${
|
||||
scope.row.LatestScanDate
|
||||
? moment(scope.row.LatestScanDate).format('YYYY-MM-DD')
|
||||
: ''
|
||||
}`"
|
||||
placement="top"
|
||||
>
|
||||
<span>
|
||||
{{
|
||||
scope.row.LatestScanDate
|
||||
? moment(scope.row.LatestScanDate).format("YYYY-MM-DD")
|
||||
: ""
|
||||
? moment(scope.row.LatestScanDate).format('YYYY-MM-DD')
|
||||
: ''
|
||||
}}
|
||||
</span>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 提交时间 -->
|
||||
|
@ -420,7 +437,7 @@
|
|||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.AuditState * 1 === 0">--</span>
|
||||
<el-tag v-else-if="scope.row.AuditState * 1 === 3" type="warning">{{
|
||||
$fd("AuditStatePE", scope.row.AuditState * 1)
|
||||
$fd('AuditStatePE', scope.row.AuditState * 1)
|
||||
}}</el-tag>
|
||||
<el-tag
|
||||
v-else-if="
|
||||
|
@ -428,7 +445,7 @@
|
|||
"
|
||||
type="warning"
|
||||
>
|
||||
{{ $fd("AuditStatePE", scope.row.AuditState * 1) }}
|
||||
{{ $fd('AuditStatePE', scope.row.AuditState * 1) }}
|
||||
</el-tag>
|
||||
<el-tag
|
||||
v-else-if="
|
||||
|
@ -436,7 +453,7 @@
|
|||
"
|
||||
type="warning"
|
||||
>
|
||||
{{ $fd("AuditStateRC", scope.row.AuditState * 1) }}
|
||||
{{ $fd('AuditStateRC', scope.row.AuditState * 1) }}
|
||||
</el-tag>
|
||||
<el-tag
|
||||
v-else-if="
|
||||
|
@ -444,7 +461,7 @@
|
|||
"
|
||||
type="warning"
|
||||
>
|
||||
{{ $fd("AuditStateRC", scope.row.AuditState * 1) }}
|
||||
{{ $fd('AuditStateRC', scope.row.AuditState * 1) }}
|
||||
</el-tag>
|
||||
<el-tag
|
||||
v-else-if="
|
||||
|
@ -452,13 +469,13 @@
|
|||
"
|
||||
type="warning"
|
||||
>
|
||||
{{ $fd("AuditStateRC", scope.row.AuditState * 1) }}
|
||||
{{ $fd('AuditStateRC', scope.row.AuditState * 1) }}
|
||||
</el-tag>
|
||||
<el-tag v-else-if="scope.row.AuditState * 1 === 7" type="danger">
|
||||
{{ $fd("AuditStateRC", scope.row.AuditState * 1) }}</el-tag
|
||||
{{ $fd('AuditStateRC', scope.row.AuditState * 1) }}</el-tag
|
||||
>
|
||||
<el-tag v-else-if="scope.row.AuditState * 1 === 8" type="primary">
|
||||
{{ $fd("AuditStateRC", scope.row.AuditState * 1) }}</el-tag
|
||||
{{ $fd('AuditStateRC', scope.row.AuditState * 1) }}</el-tag
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -503,7 +520,7 @@
|
|||
"
|
||||
class="status-primary-circle"
|
||||
>
|
||||
{{ $t("trials:qcCheck:label:preliminary") }}
|
||||
{{ $t('trials:qcCheck:label:preliminary') }}
|
||||
</span>
|
||||
<span v-if="scope.row.ReviewAuditUserName"> , </span>
|
||||
<!-- <span>{{ scope.row.ReviewAuditUserName }}</span> -->
|
||||
|
@ -520,7 +537,7 @@
|
|||
"
|
||||
class="status-primary-circle"
|
||||
>
|
||||
{{ $t("trials:qcCheck:label:review") }}
|
||||
{{ $t('trials:qcCheck:label:review') }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -662,33 +679,33 @@
|
|||
</template>
|
||||
<div class="remark">
|
||||
<span class="status-primary-circle">
|
||||
{{ $t("trials:crcUpload:label:finalVisit") }}
|
||||
{{ $t('trials:crcUpload:label:finalVisit') }}
|
||||
</span>
|
||||
<span>: {{ $t("trials:crcUpload:label:finalVisitDetail") }}</span>
|
||||
<span>: {{ $t('trials:crcUpload:label:finalVisitDetail') }}</span>
|
||||
|
||||
<span class="status-primary-circle" style="margin-left: 10px">
|
||||
{{ $t("trials:crcUpload:label:lostVisit") }}
|
||||
{{ $t('trials:crcUpload:label:lostVisit') }}
|
||||
</span>
|
||||
<span>: {{ $t("trials:crcUpload:label:lostVisitDetail") }}</span>
|
||||
<span>: {{ $t('trials:crcUpload:label:lostVisitDetail') }}</span>
|
||||
|
||||
<span class="status-primary-circle" style="margin-left: 10px">
|
||||
{{ $t("trials:crcUpload:label:pd") }}
|
||||
{{ $t('trials:crcUpload:label:pd') }}
|
||||
</span>
|
||||
<span>: {{ $t("trials:crcUpload:label:pdDetail") }}</span>
|
||||
<span>: {{ $t('trials:crcUpload:label:pdDetail') }}</span>
|
||||
<span class="status-primary-circle" style="margin-left: 10px">
|
||||
{{ $t("trials:crcUpload:label:enrollmentConfirm") }}
|
||||
{{ $t('trials:crcUpload:label:enrollmentConfirm') }}
|
||||
</span>
|
||||
<span>: {{ $t("trials:crcUpload:label:enrollmentConfirmDetail") }}</span>
|
||||
<span>: {{ $t('trials:crcUpload:label:enrollmentConfirmDetail') }}</span>
|
||||
|
||||
<span
|
||||
v-if="OtherInfo.QCProcessEnum === 2"
|
||||
class="status-primary-circle"
|
||||
style="margin-left: 10px"
|
||||
>
|
||||
{{ $t("trials:qcCheck:label:preliminary") }}
|
||||
{{ $t('trials:qcCheck:label:preliminary') }}
|
||||
</span>
|
||||
<span v-if="OtherInfo.QCProcessEnum === 2"
|
||||
>: {{ $t("trials:qcCheck:label:preliminaryAudit") }}</span
|
||||
>: {{ $t('trials:qcCheck:label:preliminaryAudit') }}</span
|
||||
>
|
||||
|
||||
<span
|
||||
|
@ -696,10 +713,10 @@
|
|||
class="status-primary-circle"
|
||||
style="margin-left: 10px"
|
||||
>
|
||||
{{ $t("trials:qcCheck:label:review") }}
|
||||
{{ $t('trials:qcCheck:label:review') }}
|
||||
</span>
|
||||
<span v-if="OtherInfo.QCProcessEnum === 2"
|
||||
>: {{ $t("trials:qcCheck:label:reviewAudit") }}</span
|
||||
>: {{ $t('trials:qcCheck:label:reviewAudit') }}</span
|
||||
>
|
||||
</div>
|
||||
<!-- 指控 -->
|
||||
|
@ -753,7 +770,7 @@
|
|||
:fullscreen="isFullscreen"
|
||||
>
|
||||
<span slot="title" class="dialog-footer">
|
||||
<span>{{ $t("trials:reading:button:handbooks") }}</span>
|
||||
<span>{{ $t('trials:reading:button:handbooks') }}</span>
|
||||
<span style="position: absolute; right: 20px">
|
||||
<svg-icon
|
||||
:icon-class="isFullscreen ? 'exit-fullscreen' : 'fullscreen'"
|
||||
|
@ -843,7 +860,7 @@
|
|||
</el-form>
|
||||
<div>
|
||||
<!-- DICOM影像 -->
|
||||
<h4 class="box-title">{{ $t("trials:audit:tab:dicoms") }}</h4>
|
||||
<h4 class="box-title">{{ $t('trials:audit:tab:dicoms') }}</h4>
|
||||
<el-card class="box-card">
|
||||
<DicomFiles v-if="rowData.Id" :data="rowData" />
|
||||
</el-card>
|
||||
|
@ -852,7 +869,7 @@
|
|||
<div>
|
||||
<!-- 非DICOM影像 -->
|
||||
<h4 class="box-title" style="margin-top: 10px">
|
||||
{{ $t("trials:audit:tab:nonDicoms") }}
|
||||
{{ $t('trials:audit:tab:nonDicoms') }}
|
||||
</h4>
|
||||
<el-card class="box-card">
|
||||
<UploadNonDicomFiles
|
||||
|
@ -869,7 +886,7 @@
|
|||
<div>
|
||||
<!-- 临床数据 -->
|
||||
<h4 class="box-title" style="margin-top: 10px">
|
||||
{{ $t("trials:audit:tab:clinicalData") }}
|
||||
{{ $t('trials:audit:tab:clinicalData') }}
|
||||
</h4>
|
||||
<el-card class="box-card">
|
||||
<UploadClinicalData
|
||||
|
@ -920,7 +937,7 @@
|
|||
type="primary"
|
||||
@click="urgentVisible = false"
|
||||
>
|
||||
{{ $t("common:button:cancel") }}
|
||||
{{ $t('common:button:cancel') }}
|
||||
</el-button>
|
||||
<!-- 保存 -->
|
||||
<el-button
|
||||
|
@ -929,7 +946,7 @@
|
|||
:loading="loading"
|
||||
@click="setUrgentStatus"
|
||||
>
|
||||
{{ $t("common:button:save") }}
|
||||
{{ $t('common:button:save') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
@ -948,39 +965,39 @@ import {
|
|||
setSubjectVisitUrgent,
|
||||
isQCCanOpt,
|
||||
getNextQCInfo,
|
||||
} from "@/api/trials";
|
||||
import { qCVisitList_Export } from "@/api/export";
|
||||
import BaseContainer from "@/components/BaseContainer";
|
||||
import QualityAssurance from "./components/qualityAssurance";
|
||||
import Manuals from "./components/manuals";
|
||||
import DicomFiles from "./components/dicomFiles";
|
||||
import UploadNonDicomFiles from "@/views/trials/trials-panel/visit/crc-upload/components/uploadNonDicomFiles";
|
||||
import UploadClinicalData from "@/views/trials/trials-panel/visit/crc-upload/components/uploadClinicalData";
|
||||
} from '@/api/trials'
|
||||
import { qCVisitList_Export } from '@/api/export'
|
||||
import BaseContainer from '@/components/BaseContainer'
|
||||
import QualityAssurance from './components/qualityAssurance'
|
||||
import Manuals from './components/manuals'
|
||||
import DicomFiles from './components/dicomFiles'
|
||||
import UploadNonDicomFiles from '@/views/trials/trials-panel/visit/crc-upload/components/uploadNonDicomFiles'
|
||||
import UploadClinicalData from '@/views/trials/trials-panel/visit/crc-upload/components/uploadClinicalData'
|
||||
|
||||
import Pagination from "@/components/Pagination";
|
||||
import moment from "moment";
|
||||
import { changeURLStatic } from "@/utils/history.js";
|
||||
import { getToken } from "@/utils/auth";
|
||||
import Pagination from '@/components/Pagination'
|
||||
import moment from 'moment'
|
||||
import { changeURLStatic } from '@/utils/history.js'
|
||||
import { getToken } from '@/utils/auth'
|
||||
|
||||
const searchDataDefault = () => {
|
||||
return {
|
||||
TrialId: "",
|
||||
TrialSiteId: "",
|
||||
SubjectInfo: "",
|
||||
TrialId: '',
|
||||
TrialSiteId: '',
|
||||
SubjectInfo: '',
|
||||
VisitPlanArray: [],
|
||||
IsUrgent: null,
|
||||
AuditStateArray: [],
|
||||
HandleUserId: "",
|
||||
HandleUserId: '',
|
||||
BeginAuditTime: null,
|
||||
EndAuditTime: null,
|
||||
PageIndex: 1,
|
||||
PageSize: 20,
|
||||
// SortField: '',
|
||||
// Asc: false
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
export default {
|
||||
name: "QcCheck",
|
||||
name: 'QcCheck',
|
||||
components: {
|
||||
BaseContainer,
|
||||
Pagination,
|
||||
|
@ -998,13 +1015,13 @@ export default {
|
|||
loading: false,
|
||||
qcVisible: false,
|
||||
rowData: {
|
||||
TrialSiteCode: "",
|
||||
SubjectCode: "",
|
||||
VisitName: "",
|
||||
VisitNum: "",
|
||||
TrialSiteCode: '',
|
||||
SubjectCode: '',
|
||||
VisitName: '',
|
||||
VisitNum: '',
|
||||
},
|
||||
userTypeEnumInt: zzSessionStorage.getItem("userTypeEnumInt") * 1,
|
||||
userId: zzSessionStorage.getItem("userId"),
|
||||
userTypeEnumInt: zzSessionStorage.getItem('userTypeEnumInt') * 1,
|
||||
userId: zzSessionStorage.getItem('userId'),
|
||||
moment,
|
||||
siteOptions: [],
|
||||
visitPlanOptions: [],
|
||||
|
@ -1012,7 +1029,7 @@ export default {
|
|||
participantOptions: [],
|
||||
studyVisible: false,
|
||||
urgentVisible: false,
|
||||
urgentForm: { id: "", isUrgent: null },
|
||||
urgentForm: { id: '', isUrgent: null },
|
||||
trialId: this.$route.query.trialId,
|
||||
trialCode: this.$route.query.trialCode,
|
||||
query: null,
|
||||
|
@ -1020,225 +1037,225 @@ export default {
|
|||
isFullscreen: false,
|
||||
timeList: [],
|
||||
exportLoading: false,
|
||||
};
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
list(val) {
|
||||
this.doLayout();
|
||||
this.doLayout()
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.query = this.$route.query;
|
||||
this.query = this.$route.query
|
||||
if (this.$route.query.subjectCode) {
|
||||
this.searchData.SubjectInfo = this.$route.query.subjectCode;
|
||||
this.searchData.SubjectInfo = this.$route.query.subjectCode
|
||||
}
|
||||
changeURLStatic("subjectCode", "");
|
||||
this.getList();
|
||||
this.getSite();
|
||||
this.getParticipantList();
|
||||
this.getVisitPlanOptions();
|
||||
changeURLStatic('subjectCode', '')
|
||||
this.getList()
|
||||
this.getSite()
|
||||
this.getParticipantList()
|
||||
this.getVisitPlanOptions()
|
||||
},
|
||||
methods: {
|
||||
handleExport() {
|
||||
this.exportLoading = true;
|
||||
this.exportLoading = true
|
||||
qCVisitList_Export(this.searchData)
|
||||
.then(() => {
|
||||
this.exportLoading = false;
|
||||
this.exportLoading = false
|
||||
})
|
||||
.catch((err) => {
|
||||
this.exportLoading = false;
|
||||
});
|
||||
this.exportLoading = false
|
||||
})
|
||||
},
|
||||
// 获取qc审核列表
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.searchData.TrialId = this.trialId;
|
||||
this.loading = true
|
||||
this.searchData.TrialId = this.trialId
|
||||
getQCVisitList(this.searchData)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.list = res.Result.CurrentPageData;
|
||||
this.total = res.Result.TotalCount;
|
||||
this.OtherInfo = res.OtherInfo;
|
||||
this.loading = false
|
||||
this.list = res.Result.CurrentPageData
|
||||
this.total = res.Result.TotalCount
|
||||
this.OtherInfo = res.OtherInfo
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
doLayout() {
|
||||
const scope = this;
|
||||
const scope = this
|
||||
this.$nextTick(() => {
|
||||
scope.$refs.qcCheckList.doLayout();
|
||||
});
|
||||
scope.$refs.qcCheckList.doLayout()
|
||||
})
|
||||
},
|
||||
// 领取任务
|
||||
handleReciveTask(row, state) {
|
||||
let message = "";
|
||||
let message = ''
|
||||
if (state) {
|
||||
// 是否确认领取?
|
||||
message = this.$t("trials:qcCheck:message:receive");
|
||||
message = this.$t('trials:qcCheck:message:receive')
|
||||
} else {
|
||||
// 是否确认释放?
|
||||
message = this.$t("trials:qcCheck:message:release");
|
||||
message = this.$t('trials:qcCheck:message:release')
|
||||
}
|
||||
this.$confirm(message, {
|
||||
type: "warning",
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true,
|
||||
})
|
||||
.then(() => {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
takeOrReleaseQCTask(row.TrialId, row.Id, state)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
this.getList();
|
||||
this.getList()
|
||||
if (state) {
|
||||
// 领取成功
|
||||
this.$message.success(
|
||||
this.$t("trials:qcCheck:message:receivedSuccessfully")
|
||||
);
|
||||
this.$t('trials:qcCheck:message:receivedSuccessfully')
|
||||
)
|
||||
} else {
|
||||
// 释放成功
|
||||
this.$message.success(
|
||||
this.$t("trials:qcCheck:message:releasedSuccessfully")
|
||||
);
|
||||
this.$t('trials:qcCheck:message:releasedSuccessfully')
|
||||
)
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch((res) => {
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
if (res.Code === 5 && res.ErrorMessage) {
|
||||
this.$confirm(res.ErrorMessage, {
|
||||
type: "warning",
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: (action) => {},
|
||||
});
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch(() => {});
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
})
|
||||
.catch(() => {})
|
||||
},
|
||||
// 初审
|
||||
handlePrimaryQC(row) {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
isQCCanOpt(row.Id)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
this.rowData = { ...row };
|
||||
this.qcVisible = true;
|
||||
this.rowData = { ...row }
|
||||
this.qcVisible = true
|
||||
}
|
||||
})
|
||||
.catch((res) => {
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
if (res.Code === 2) {
|
||||
this.getList();
|
||||
this.getList()
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
// 复审
|
||||
handleSecondaryQC(row) {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
isQCCanOpt(row.Id)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
this.rowData = { ...row };
|
||||
this.qcVisible = true;
|
||||
this.rowData = { ...row }
|
||||
this.qcVisible = true
|
||||
}
|
||||
})
|
||||
.catch((res) => {
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
if (res.Code === 2) {
|
||||
this.getList();
|
||||
this.getList()
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
handleViewPrimaryQC(row) {
|
||||
this.rowData = { ...row };
|
||||
this.rowData.disabled = true;
|
||||
this.rowData.qcType = 1;
|
||||
this.qcVisible = true;
|
||||
this.rowData = { ...row }
|
||||
this.rowData.disabled = true
|
||||
this.rowData.qcType = 1
|
||||
this.qcVisible = true
|
||||
},
|
||||
handleViewReviewQC(row) {
|
||||
this.rowData = { ...row };
|
||||
this.rowData.disabled = true;
|
||||
this.rowData.qcType = 2;
|
||||
this.qcVisible = true;
|
||||
this.rowData = { ...row }
|
||||
this.rowData.disabled = true
|
||||
this.rowData.qcType = 2
|
||||
this.qcVisible = true
|
||||
},
|
||||
// 预览影像
|
||||
handleViewImages() {
|
||||
var tokenKey = getToken();
|
||||
var tokenKey = getToken()
|
||||
const routeData = this.$router.resolve({
|
||||
path: `/showvisitdicoms?trialId=${this.rowData.TrialId}&visitInfo=${this.rowData.VisitName}(${this.rowData.VisitNum})&subjectVisitId=${this.rowData.Id}&TokenKey=${tokenKey}`,
|
||||
});
|
||||
window.open(routeData.href, "_blank");
|
||||
})
|
||||
window.open(routeData.href, '_blank')
|
||||
},
|
||||
// 查看检查信息
|
||||
handleViewStudyInfo(row) {
|
||||
this.studyVisible = true;
|
||||
this.rowData = { ...row };
|
||||
this.studyVisible = true
|
||||
this.rowData = { ...row }
|
||||
},
|
||||
// 重置
|
||||
handleReset() {
|
||||
this.searchData = searchDataDefault();
|
||||
this.timeList = [];
|
||||
this.getList();
|
||||
this.searchData = searchDataDefault()
|
||||
this.timeList = []
|
||||
this.getList()
|
||||
this.$nextTick(() => {
|
||||
this.$refs.qcCheckList.clearSort();
|
||||
});
|
||||
this.$refs.qcCheckList.clearSort()
|
||||
})
|
||||
},
|
||||
// 查询
|
||||
handleSearch() {
|
||||
this.searchData.PageIndex = 1;
|
||||
this.getList();
|
||||
this.searchData.PageIndex = 1
|
||||
this.getList()
|
||||
},
|
||||
// 排序
|
||||
handleSortByColumn(column) {
|
||||
if (column.order === "ascending") {
|
||||
this.searchData.Asc = true;
|
||||
if (column.order === 'ascending') {
|
||||
this.searchData.Asc = true
|
||||
} else {
|
||||
this.searchData.Asc = false;
|
||||
this.searchData.Asc = false
|
||||
}
|
||||
this.searchData.SortField = column.prop;
|
||||
this.searchData.PageIndex = 1;
|
||||
this.getList();
|
||||
this.searchData.SortField = column.prop
|
||||
this.searchData.PageIndex = 1
|
||||
this.getList()
|
||||
},
|
||||
// 获取site下拉框数据
|
||||
getSite() {
|
||||
getTrialSiteSelect(this.trialId).then((res) => {
|
||||
this.siteOptions = res.Result;
|
||||
});
|
||||
this.siteOptions = res.Result
|
||||
})
|
||||
},
|
||||
// 获取访视下拉框数据
|
||||
getVisitPlanOptions() {
|
||||
getTrialVisitStageSelect(this.trialId).then((res) => {
|
||||
this.visitPlanOptions = res.Result;
|
||||
});
|
||||
this.visitPlanOptions = res.Result
|
||||
})
|
||||
},
|
||||
// 获取质询参与者下拉框数据
|
||||
getParticipantList() {
|
||||
getQCParticipantList(this.trialId).then((res) => {
|
||||
this.participantOptions = res.Result;
|
||||
});
|
||||
this.participantOptions = res.Result
|
||||
})
|
||||
},
|
||||
// 打开设置紧急状态弹窗
|
||||
handleUrgentStatus(row) {
|
||||
this.urgentForm = Object.assign({}, { ...row });
|
||||
this.urgentVisible = true;
|
||||
this.urgentForm = Object.assign({}, { ...row })
|
||||
this.urgentVisible = true
|
||||
},
|
||||
// 设置访视加急/不加急
|
||||
setUrgentStatus() {
|
||||
// 是否确认将当前访视设置为加急?
|
||||
// 是否确认将当前访视设置为不加急?
|
||||
var message = this.urgentForm.IsUrgent
|
||||
? this.$t("trials:qcCheck:message:isUrgent")
|
||||
: this.$t("trials:qcCheck:message:isNotUrgent");
|
||||
? this.$t('trials:qcCheck:message:isUrgent')
|
||||
: this.$t('trials:qcCheck:message:isNotUrgent')
|
||||
this.$confirm(message, {
|
||||
type: "warning",
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true,
|
||||
}).then(() => {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
|
||||
setSubjectVisitUrgent(
|
||||
this.urgentForm.TrialId,
|
||||
|
@ -1246,102 +1263,100 @@ export default {
|
|||
this.urgentForm.IsUrgent
|
||||
)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
this.urgentVisible = false;
|
||||
this.getList();
|
||||
this.$message.success(
|
||||
this.$t("common:message:savedSuccessfully")
|
||||
);
|
||||
this.urgentVisible = false
|
||||
this.getList()
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
});
|
||||
this.loading = false
|
||||
})
|
||||
})
|
||||
},
|
||||
handleChallengeState(subjectCode, state) {
|
||||
this.$router.push({
|
||||
path: `/trials/trials-panel/visit/qc-question?trialId=${this.trialId}&trialCode=${this.query.trialCode}&researchProgramNo=${this.query.researchProgramNo}&subjectCode=${subjectCode}&challengeState=${state}`,
|
||||
});
|
||||
})
|
||||
},
|
||||
// 替换
|
||||
handleReplaceTask(row) {
|
||||
var message = this.$t("trials:crcQuestion:message:replaceTask");
|
||||
message = message.replace("xxx", row.CurrentActionUserName);
|
||||
var message = this.$t('trials:crcQuestion:message:replaceTask')
|
||||
message = message.replace('xxx', row.CurrentActionUserName)
|
||||
this.$confirm(message, {
|
||||
type: "warning",
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true,
|
||||
})
|
||||
.then(() => {
|
||||
// 替换并刷新列表
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
replaceQCTaskActionUser(row.TrialId, row.Id)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
// 替换成功
|
||||
this.$message.success(
|
||||
this.$t("trials:crcQuestion:message:replaceTaskSuccessfully")
|
||||
);
|
||||
this.getList();
|
||||
this.$t('trials:crcQuestion:message:replaceTaskSuccessfully')
|
||||
)
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
.catch((res) => {
|
||||
this.loading = false;
|
||||
this.getList();
|
||||
this.loading = false
|
||||
this.getList()
|
||||
if (res.ErrorMessage) {
|
||||
this.$confirm(res.ErrorMessage, {
|
||||
type: "warning",
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: (action) => {},
|
||||
});
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
})
|
||||
})
|
||||
.catch(() => {})
|
||||
},
|
||||
nextTask(visitId = null) {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
let obj = {
|
||||
trialId: this.trialId,
|
||||
};
|
||||
}
|
||||
if (visitId) {
|
||||
obj.visitId = visitId;
|
||||
obj.visitId = visitId
|
||||
}
|
||||
getNextQCInfo(obj)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.qcVisible = false;
|
||||
this.loading = false
|
||||
this.qcVisible = false
|
||||
if (res.Result) {
|
||||
this.$nextTick(() => {
|
||||
this.rowData = { ...res.Result };
|
||||
this.qcVisible = true;
|
||||
});
|
||||
this.rowData = { ...res.Result }
|
||||
this.qcVisible = true
|
||||
})
|
||||
} else {
|
||||
this.$message.success(this.$t("trials:qcQuality:title:title3")); // '当前领取的质控任务已全部完成!'
|
||||
this.qcVisible = false;
|
||||
this.$message.success(this.$t('trials:qcQuality:title:title3')) // '当前领取的质控任务已全部完成!'
|
||||
this.qcVisible = false
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.qcVisible = false;
|
||||
});
|
||||
this.loading = false
|
||||
this.qcVisible = false
|
||||
})
|
||||
},
|
||||
changeTimeList() {
|
||||
if (this.timeList) {
|
||||
this.searchData.BeginAuditTime = this.timeList[0];
|
||||
this.searchData.EndAuditTime = this.timeList[1];
|
||||
this.searchData.BeginAuditTime = this.timeList[0]
|
||||
this.searchData.EndAuditTime = this.timeList[1]
|
||||
} else {
|
||||
this.searchData.BeginAuditTime = null;
|
||||
this.searchData.EndAuditTime = null;
|
||||
this.searchData.BeginAuditTime = null
|
||||
this.searchData.EndAuditTime = null
|
||||
}
|
||||
},
|
||||
openManuals() {
|
||||
this.manualsDialog.visible = true;
|
||||
this.manualsDialog.visible = true
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.qc-check-wrapper {
|
||||
|
|
Loading…
Reference in New Issue