Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
456ff203bb
|
@ -5,7 +5,7 @@
|
|||
ref="readingRulesForm"
|
||||
v-loading="loading"
|
||||
:model="form"
|
||||
style="width:800px;"
|
||||
style="width: 800px"
|
||||
:rules="rules"
|
||||
label-width="340px"
|
||||
size="small"
|
||||
|
@ -17,7 +17,10 @@
|
|||
>
|
||||
<el-radio-group
|
||||
v-model="form.ImagePlatform"
|
||||
:disabled="isConfirm || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit']))"
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.ImagePlatform"
|
||||
|
@ -36,7 +39,10 @@
|
|||
>
|
||||
<el-radio-group
|
||||
v-model="form.ReadingTool"
|
||||
:disabled="isConfirm || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit']))"
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.ReadingTool"
|
||||
|
@ -47,13 +53,91 @@
|
|||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<!--支持影像下载-->
|
||||
<el-form-item
|
||||
:label="$t('trials:processCfg:form:ReadingImageDownload')"
|
||||
prop="ReadingImageDownload"
|
||||
v-if="CriterionType === 0"
|
||||
>
|
||||
<el-radio-group
|
||||
v-model="form.ReadingImageDownload"
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.ReadingImageDownload"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
>
|
||||
{{ item.label }}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<!--支持上传DICOM影像-->
|
||||
<el-form-item
|
||||
:label="$t('trials:processCfg:form:ReadingImageUpload')"
|
||||
prop="ReadingImageUpload"
|
||||
v-if="CriterionType === 0"
|
||||
>
|
||||
<el-radio-group
|
||||
v-model="form.ReadingImageUpload"
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.ReadingImageUpload"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
>
|
||||
{{ item.label }}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<!-- 影像模态 -->
|
||||
<el-form-item
|
||||
:label="$t('trials:readingUnit:readingRules:title:CriterionModalitys')"
|
||||
prop="CriterionModalitys"
|
||||
style="position: relative"
|
||||
>
|
||||
<el-checkbox-group
|
||||
v-model="CriterionModalitys"
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
>
|
||||
<el-checkbox v-for="item in modalityList" :label="item" :key="item">{{
|
||||
item
|
||||
}}</el-checkbox>
|
||||
</el-checkbox-group>
|
||||
<el-button
|
||||
v-if="
|
||||
!isConfirm &&
|
||||
hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
size="mini"
|
||||
style="position: absolute; top: 0; right: -10px"
|
||||
@click.stop="handleCheckAllChange"
|
||||
type="success"
|
||||
>{{
|
||||
$t("trials:readingUnit:readingRules:title:CriterionModalitysAll")
|
||||
}}</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="$t('trials:consistencyAnalysis:table:isUrgent')"
|
||||
prop="DigitPlaces"
|
||||
>
|
||||
<el-radio-group
|
||||
v-model="form.IsUrgent"
|
||||
:disabled="isConfirm || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit']))"
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.YesOrNo"
|
||||
|
@ -71,7 +155,10 @@
|
|||
>
|
||||
<el-radio-group
|
||||
v-model="form.IsAdditionalAssessment"
|
||||
:disabled="isConfirm || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit']))"
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.YesOrNo"
|
||||
|
@ -89,7 +176,10 @@
|
|||
>
|
||||
<el-radio-group
|
||||
v-model="form.IsAutoCreate"
|
||||
:disabled="isConfirm || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit']))"
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.YesOrNo"
|
||||
|
@ -106,10 +196,15 @@
|
|||
>
|
||||
<el-radio-group
|
||||
v-model="form.ReadingType"
|
||||
:disabled="isConfirm || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit']))"
|
||||
@change="() => {
|
||||
form.IsArbitrationReading = false
|
||||
}"
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
@change="
|
||||
() => {
|
||||
form.IsArbitrationReading = false;
|
||||
}
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.ReadingMethod"
|
||||
|
@ -127,13 +222,19 @@
|
|||
>
|
||||
<el-radio-group
|
||||
v-model="form.IsReadingPeriod"
|
||||
:disabled="isConfirm || IsMustGlobalReading || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit']))"
|
||||
@change="(v) => {
|
||||
if (!v) {
|
||||
form.IsGlobalReading = v
|
||||
form.IsOncologyReading = v
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
IsMustGlobalReading ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
@change="
|
||||
(v) => {
|
||||
if (!v) {
|
||||
form.IsGlobalReading = v;
|
||||
form.IsOncologyReading = v;
|
||||
}
|
||||
}
|
||||
}"
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.YesOrNo"
|
||||
|
@ -150,7 +251,12 @@
|
|||
>
|
||||
<el-radio-group
|
||||
v-model="form.IsGlobalReading"
|
||||
:disabled="!form.IsReadingPeriod || IsMustGlobalReading || isConfirm || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit']))"
|
||||
:disabled="
|
||||
!form.IsReadingPeriod ||
|
||||
IsMustGlobalReading ||
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.YesOrNo"
|
||||
|
@ -167,7 +273,11 @@
|
|||
>
|
||||
<el-radio-group
|
||||
v-model="form.IsArbitrationReading"
|
||||
:disabled="isConfirm || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])) || form.ReadingType !== 2"
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit']) ||
|
||||
form.ReadingType !== 2
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.YesOrNo"
|
||||
|
@ -184,7 +294,12 @@
|
|||
>
|
||||
<el-radio-group
|
||||
v-model="form.IsOncologyReading"
|
||||
:disabled="!form.IsReadingPeriod || !form.IsSystemSetOncology || isConfirm || !hasPermi(['trials:trials-panel:setting:reading-unit:edit'])"
|
||||
:disabled="
|
||||
!form.IsReadingPeriod ||
|
||||
!form.IsSystemSetOncology ||
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.YesOrNo"
|
||||
|
@ -197,22 +312,29 @@
|
|||
</el-form-item>
|
||||
<!-- 任务展示方式 -->
|
||||
<el-form-item
|
||||
:label="$t('trials:readingUnit:readingRules:title:readingTaskViewInOrder')"
|
||||
:label="
|
||||
$t('trials:readingUnit:readingRules:title:readingTaskViewInOrder')
|
||||
"
|
||||
prop="IsReadingTaskViewInOrder"
|
||||
>
|
||||
<el-radio-group
|
||||
v-model="form.IsReadingTaskViewInOrder"
|
||||
:disabled="isConfirm || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit']))"
|
||||
@change="(v) => {
|
||||
if (v) {
|
||||
form.IsReadingShowSubjectInfo = true
|
||||
form.IsReadingShowPreviousResults = true
|
||||
form.ReadingTaskViewEnum = 0
|
||||
form.IseCRFShowInDicomReading = false
|
||||
} else {
|
||||
form.ReadingTaskViewEnum = 2
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
@change="
|
||||
(v) => {
|
||||
if (v) {
|
||||
form.IsReadingShowSubjectInfo = true;
|
||||
form.IsReadingShowPreviousResults = true;
|
||||
form.ReadingTaskViewEnum = 0;
|
||||
form.IseCRFShowInDicomReading = false;
|
||||
} else {
|
||||
form.ReadingTaskViewEnum = 2;
|
||||
}
|
||||
}
|
||||
}"
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.IsReadingTaskViewInOrder"
|
||||
|
@ -230,7 +352,12 @@
|
|||
>
|
||||
<el-radio-group
|
||||
v-model="form.ReadingTaskViewEnum"
|
||||
:disabled="isConfirm || !isReadingTaskViewInOrder || isReadingTaskViewInOrder || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit']))"
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!isReadingTaskViewInOrder ||
|
||||
isReadingTaskViewInOrder ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.ReadingTaskViewEnum"
|
||||
|
@ -243,16 +370,22 @@
|
|||
</el-form-item>
|
||||
<!-- IR阅片页面是否显示受试者信息 -->
|
||||
<el-form-item
|
||||
:label="$t('trials:readingUnit:readingRules:title:isReadingShowSubjectInfo')"
|
||||
:label="
|
||||
$t('trials:readingUnit:readingRules:title:isReadingShowSubjectInfo')
|
||||
"
|
||||
prop="IsReadingShowSubjectInfo"
|
||||
>
|
||||
<el-radio-group
|
||||
v-model="form.IsReadingShowSubjectInfo"
|
||||
:disabled="isConfirm || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])) || form.IsReadingTaskViewInOrder"
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit']) ||
|
||||
form.IsReadingTaskViewInOrder
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.YesOrNo"
|
||||
:key="'IsReadingShowSubjectInfo'+item.value"
|
||||
:key="'IsReadingShowSubjectInfo' + item.value"
|
||||
:label="item.value"
|
||||
>
|
||||
{{ item.label }}
|
||||
|
@ -261,21 +394,31 @@
|
|||
</el-form-item>
|
||||
<!-- IR阅片页面是否可以查看既往任务结果 -->
|
||||
<el-form-item
|
||||
:label="$t('trials:readingUnit:readingRules:title:isReadingShowPreviousResults')"
|
||||
:label="
|
||||
$t(
|
||||
'trials:readingUnit:readingRules:title:isReadingShowPreviousResults'
|
||||
)
|
||||
"
|
||||
prop="IsReadingShowPreviousResults"
|
||||
>
|
||||
<el-radio-group
|
||||
v-model="form.IsReadingShowPreviousResults"
|
||||
:disabled="isConfirm || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])) || form.IsReadingTaskViewInOrder"
|
||||
@change="(v) => {
|
||||
if (!v) {
|
||||
form.IseCRFShowInDicomReading = true
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit']) ||
|
||||
form.IsReadingTaskViewInOrder
|
||||
"
|
||||
@change="
|
||||
(v) => {
|
||||
if (!v) {
|
||||
form.IseCRFShowInDicomReading = true;
|
||||
}
|
||||
}
|
||||
}"
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.YesOrNo"
|
||||
:key="'IsReadingShowPreviousResults'+item.value"
|
||||
:key="'IsReadingShowPreviousResults' + item.value"
|
||||
:label="item.value"
|
||||
>
|
||||
{{ item.label }}
|
||||
|
@ -284,12 +427,18 @@
|
|||
</el-form-item>
|
||||
<!-- eCRF是否显示在影像阅片页面 -->
|
||||
<el-form-item
|
||||
:label="$t('trials:readingUnit:readingRules:title:isECRFShowInDicomReading')"
|
||||
:label="
|
||||
$t('trials:readingUnit:readingRules:title:isECRFShowInDicomReading')
|
||||
"
|
||||
prop="IseCRFShowInDicomReading"
|
||||
>
|
||||
<el-radio-group
|
||||
v-model="form.IseCRFShowInDicomReading"
|
||||
:disabled="isConfirm || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])) || !form.IsReadingShowPreviousResults"
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit']) ||
|
||||
!form.IsReadingShowPreviousResults
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.YesOrNo"
|
||||
|
@ -307,7 +456,10 @@
|
|||
>
|
||||
<el-radio-group
|
||||
v-model="form.DigitPlaces"
|
||||
:disabled="isConfirm || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit']))"
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.DigitPlaces"
|
||||
|
@ -318,55 +470,95 @@
|
|||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('trials:trials-panel:setting:reading-unit:TrialCriterionAdditionalAssessmentTypeList')" v-if="form.IsAdditionalAssessment && form.TrialCriterionAdditionalAssessmentTypeList && form.TrialCriterionAdditionalAssessmentTypeList.length > 0">
|
||||
<el-form-item
|
||||
:label="
|
||||
$t(
|
||||
'trials:trials-panel:setting:reading-unit:TrialCriterionAdditionalAssessmentTypeList'
|
||||
)
|
||||
"
|
||||
v-if="
|
||||
form.IsAdditionalAssessment &&
|
||||
form.TrialCriterionAdditionalAssessmentTypeList &&
|
||||
form.TrialCriterionAdditionalAssessmentTypeList.length > 0
|
||||
"
|
||||
>
|
||||
</el-form-item>
|
||||
<el-form-item v-for="item of form.TrialCriterionAdditionalAssessmentTypeList" :prop="`AdditionalAssessmentType${item.Id}`" :rules="[
|
||||
{ required:true,message: $t('common:ruleMessage:select'), trigger: ['blur']},
|
||||
]" :label="$fd('AdditionalAssessmentType', item.AdditionalAssessmentType)" v-if="form.IsAdditionalAssessment && form.TrialCriterionAdditionalAssessmentTypeList">
|
||||
<el-radio-group
|
||||
v-model="item.IsSelected"
|
||||
:disabled="isConfirm || (!hasPermi(['trials:trials-panel:setting:reading-unit:edit']))"
|
||||
@change="(v) => {$set(form, 'AdditionalAssessmentType' + item.Id, v)}"
|
||||
<template v-for="item of form.TrialCriterionAdditionalAssessmentTypeList">
|
||||
<el-form-item
|
||||
:key="item.Id"
|
||||
:prop="`AdditionalAssessmentType${item.Id}`"
|
||||
:rules="[
|
||||
{
|
||||
required: true,
|
||||
message: $t('common:ruleMessage:select'),
|
||||
trigger: ['blur'],
|
||||
},
|
||||
]"
|
||||
:label="
|
||||
$fd('AdditionalAssessmentType', item.AdditionalAssessmentType)
|
||||
"
|
||||
v-if="
|
||||
form.IsAdditionalAssessment &&
|
||||
form.TrialCriterionAdditionalAssessmentTypeList
|
||||
"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.YesOrNo"
|
||||
:key="`AdditionalAssessmentType${item.value}`"
|
||||
:label="item.value"
|
||||
<el-radio-group
|
||||
v-model="item.IsSelected"
|
||||
:disabled="
|
||||
isConfirm ||
|
||||
!hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
@change="
|
||||
(v) => {
|
||||
$set(form, 'AdditionalAssessmentType' + item.Id, v);
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ item.label }}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="!isConfirm && hasPermi(['trials:trials-panel:setting:reading-unit:edit'])">
|
||||
<el-radio
|
||||
v-for="item of $d.YesOrNo"
|
||||
:key="`AdditionalAssessmentType${item.value}`"
|
||||
:label="item.value"
|
||||
>
|
||||
{{ item.label }}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<el-form-item
|
||||
v-if="
|
||||
!isConfirm &&
|
||||
hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
>
|
||||
<!-- 保存 -->
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="handleSave(true)"
|
||||
>
|
||||
{{ $t('common:button:save') }}
|
||||
<el-button type="primary" @click="handleSave(true)">
|
||||
{{ $t("common:button:save") }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
||||
import { getCriterionReadingInfo, setCriterionReadingInfo, getTrialCriterionAdditionalAssessmentOptionList } from '@/api/trials'
|
||||
import { getCriterionReadingInfo, setCriterionReadingInfo } from "@/api/trials";
|
||||
export default {
|
||||
name: 'ReadingRules',
|
||||
name: "ReadingRules",
|
||||
props: {
|
||||
trialReadingCriterionId: {
|
||||
type: String,
|
||||
default() {
|
||||
return ''
|
||||
}
|
||||
}
|
||||
return "";
|
||||
},
|
||||
},
|
||||
CriterionType: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
additionalAssessmentOptionList: [],
|
||||
form: {
|
||||
TrialId: '',
|
||||
TrialId: "",
|
||||
ImagePlatform: null,
|
||||
ReadingTool: 0,
|
||||
ReadingTaskViewEnum: null,
|
||||
|
@ -391,57 +583,155 @@ export default {
|
|||
CriterionType: null,
|
||||
AdditionalAssessmentType: null,
|
||||
IsUrgent: false,
|
||||
TrialCriterionAdditionalAssessmentTypeList: []
|
||||
TrialCriterionAdditionalAssessmentTypeList: [],
|
||||
CriterionModalitys: null,
|
||||
ReadingImageDownload: null,
|
||||
ReadingImageUpload: null,
|
||||
},
|
||||
rules: {
|
||||
IsAutoCreate: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
IsAdditionalAssessment: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
ImagePlatform: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
ReadingTool: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
ReadingImageDownload: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
ReadingImageUpload: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
ReadingTaskViewEnum: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
IsImageLabeled: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
IsReadingShowSubjectInfo: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
IsReadingShowPreviousResults: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
ReadingType: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
IsReadingTaskViewInOrder: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
IsGlobalReading: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
IsArbitrationReading: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
IsOncologyReading: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
DigitPlaces: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
IseCRFShowInDicomReading: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
IsReadingPeriod: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
]
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
CriterionModalitys: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
{
|
||||
validator: (rule, value, callback) => {
|
||||
if (value && Array.isArray(value) && value.length < 0) {
|
||||
callback(new Error(this.$t("common:ruleMessage:select")));
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
},
|
||||
trigger: ["blur", "change"],
|
||||
},
|
||||
],
|
||||
// IsReadingTaskViewInOrder: [
|
||||
// { required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }
|
||||
// ]
|
||||
|
@ -451,17 +741,32 @@ export default {
|
|||
isConfirm: true,
|
||||
isReadingTaskViewInOrder: null,
|
||||
IsMustGlobalReading: false,
|
||||
IsNotReadingShowSubjectInfoChange: false
|
||||
}
|
||||
IsNotReadingShowSubjectInfoChange: false,
|
||||
|
||||
modalityList: [],
|
||||
CriterionModalitys: [],
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.initPage()
|
||||
console.log(this.$d.GlobalAssessType)
|
||||
this.initPage();
|
||||
},
|
||||
watch: {
|
||||
CriterionModalitys: {
|
||||
handler() {
|
||||
this.form.CriterionModalitys = this.CriterionModalitys.join("|");
|
||||
},
|
||||
deep: true,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
// 影像模态全选
|
||||
handleCheckAllChange() {
|
||||
this.CriterionModalitys =
|
||||
this.CriterionModalitys.length <= 0 ? this.modalityList : [];
|
||||
},
|
||||
initPage() {
|
||||
this.loading = true
|
||||
const trialId = this.$route.query.trialId
|
||||
this.loading = true;
|
||||
const trialId = this.$route.query.trialId;
|
||||
// getTrialCriterionAdditionalAssessmentOptionList(this.trialReadingCriterionId).then(res => {
|
||||
// this.additionalAssessmentOptionList = res.Result
|
||||
// if (this.additionalAssessmentOptionList.length > 0) {
|
||||
|
@ -469,34 +774,49 @@ export default {
|
|||
// this.$set(this.form, 'AdditionalAssessmentType'+v.Id, v.IsSelected)
|
||||
// })
|
||||
// }
|
||||
getCriterionReadingInfo({ trialId, TrialReadingCriterionId: this.trialReadingCriterionId }).then(res => {
|
||||
this.loading = false
|
||||
getCriterionReadingInfo({
|
||||
trialId,
|
||||
TrialReadingCriterionId: this.trialReadingCriterionId,
|
||||
})
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.modalityList = res.Result.TrialModalitys.split("|").filter(
|
||||
(item) => item && item.trim()
|
||||
);
|
||||
for (const k in this.form) {
|
||||
if (res.Result.hasOwnProperty(k)) {
|
||||
this.form[k] = res.Result[k]
|
||||
this.form[k] = res.Result[k];
|
||||
}
|
||||
}
|
||||
console.log(this.form.TrialCriterionAdditionalAssessmentTypeList)
|
||||
this.form.TrialCriterionAdditionalAssessmentTypeList.forEach(v => {
|
||||
this.$set(v, 'IsSelected', v.IsSelected || false)
|
||||
this.$set(this.form, 'AdditionalAssessmentType'+v.Id, v.IsSelected)
|
||||
})
|
||||
this.isReadingTaskViewInOrder = res.Result.IsReadingTaskViewInOrder
|
||||
this.isConfirm = res.Result.IsSign
|
||||
this.IsMustGlobalReading = res.Result.IsMustGlobalReading
|
||||
this.$emit('setConfirm', res.Result.IsSign)
|
||||
this.$emit('setArbitrationReading', res.Result.IsArbitrationReading)
|
||||
this.$emit('setAdditionalAssessment', this.form.IsAdditionalAssessment)
|
||||
this.$emit('setIsClinicalReading', res.Result.IsClinicalReading)
|
||||
this.$emit('setGlobalReading', res.Result.IsGlobalReading)
|
||||
this.$emit('setOncologyReading', res.Result.IsOncologyReading)
|
||||
this.$emit('setDigitPlaces', res.Result.DigitPlaces)
|
||||
this.CriterionModalitys = this.form.CriterionModalitys.split("|");
|
||||
this.form.TrialCriterionAdditionalAssessmentTypeList.forEach((v) => {
|
||||
this.$set(v, "IsSelected", v.IsSelected || false);
|
||||
this.$set(
|
||||
this.form,
|
||||
"AdditionalAssessmentType" + v.Id,
|
||||
v.IsSelected
|
||||
);
|
||||
});
|
||||
this.isReadingTaskViewInOrder = res.Result.IsReadingTaskViewInOrder;
|
||||
this.isConfirm = res.Result.IsSign;
|
||||
this.IsMustGlobalReading = res.Result.IsMustGlobalReading;
|
||||
this.$emit("setConfirm", res.Result.IsSign);
|
||||
this.$emit("setArbitrationReading", res.Result.IsArbitrationReading);
|
||||
this.$emit(
|
||||
"setAdditionalAssessment",
|
||||
this.form.IsAdditionalAssessment
|
||||
);
|
||||
this.$emit("setIsClinicalReading", res.Result.IsClinicalReading);
|
||||
this.$emit("setGlobalReading", res.Result.IsGlobalReading);
|
||||
this.$emit("setOncologyReading", res.Result.IsOncologyReading);
|
||||
this.$emit("setDigitPlaces", res.Result.DigitPlaces);
|
||||
if (res.Result.ReadingType === 1) {
|
||||
this.$emit('setArbitrationReading', false)
|
||||
this.$emit("setArbitrationReading", false);
|
||||
}
|
||||
}).catch(() => {
|
||||
this.loading = false
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
// }).catch(() => {
|
||||
// this.loading = false
|
||||
// })
|
||||
|
@ -504,47 +824,56 @@ export default {
|
|||
// 配置信息保存
|
||||
handleSave(isPrompt = true) {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.$refs['readingRulesForm'].validate((valid) => {
|
||||
this.$refs["readingRulesForm"].validate((valid) => {
|
||||
if (!valid) {
|
||||
resolve(false)
|
||||
resolve(false);
|
||||
} else {
|
||||
this.loading = true
|
||||
this.loading = true;
|
||||
if (this.form.ReadingType === 1) {
|
||||
this.form.IsArbitrationReading = false
|
||||
this.form.IsArbitrationReading = false;
|
||||
}
|
||||
// 保存配置信息
|
||||
this.form.TrialReadingCriterionId = this.trialReadingCriterionId
|
||||
setCriterionReadingInfo(this.form).then(res => {
|
||||
this.loading = false
|
||||
this.$emit('reloadArbitrationRules')
|
||||
this.$emit('setArbitrationReading', this.form.IsArbitrationReading)
|
||||
this.$emit('setAdditionalAssessment', this.form.IsAdditionalAssessment)
|
||||
this.$emit('setIsClinicalReading', this.form.IsClinicalReading)
|
||||
this.$emit('setGlobalReading', this.form.IsGlobalReading)
|
||||
this.$emit('setOncologyReading', this.form.IsOncologyReading)
|
||||
this.$emit('setDigitPlaces', this.form.DigitPlaces)
|
||||
if (this.form.ReadingType === 1) {
|
||||
this.$emit('setArbitrationReading', false)
|
||||
}
|
||||
if (res.IsSuccess && isPrompt) {
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
}
|
||||
resolve(true)
|
||||
}).catch(_ => {
|
||||
this.loading = false
|
||||
resolve(false)
|
||||
})
|
||||
this.form.TrialReadingCriterionId = this.trialReadingCriterionId;
|
||||
setCriterionReadingInfo(this.form)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.$emit("reloadArbitrationRules");
|
||||
this.$emit(
|
||||
"setArbitrationReading",
|
||||
this.form.IsArbitrationReading
|
||||
);
|
||||
this.$emit(
|
||||
"setAdditionalAssessment",
|
||||
this.form.IsAdditionalAssessment
|
||||
);
|
||||
this.$emit("setIsClinicalReading", this.form.IsClinicalReading);
|
||||
this.$emit("setGlobalReading", this.form.IsGlobalReading);
|
||||
this.$emit("setOncologyReading", this.form.IsOncologyReading);
|
||||
this.$emit("setDigitPlaces", this.form.DigitPlaces);
|
||||
if (this.form.ReadingType === 1) {
|
||||
this.$emit("setArbitrationReading", false);
|
||||
}
|
||||
if (res.IsSuccess && isPrompt) {
|
||||
this.$message.success(
|
||||
this.$t("common:message:savedSuccessfully")
|
||||
);
|
||||
}
|
||||
resolve(true);
|
||||
})
|
||||
.catch((_) => {
|
||||
this.loading = false;
|
||||
resolve(false);
|
||||
});
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.reading-rule-config-form{
|
||||
.fontColor{
|
||||
.reading-rule-config-form {
|
||||
.fontColor {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,13 +15,14 @@
|
|||
clearable
|
||||
@change="((val)=>{qsTypeChange(val, form)})"
|
||||
>
|
||||
<el-option
|
||||
v-for="item of $d.Criterion_Question_Type"
|
||||
v-if="item.value !== 'calculation' && item.value !== 'increment'"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
/>
|
||||
<template v-for="item of $d.Criterion_Question_Type">
|
||||
<el-option
|
||||
v-if="item.value !== 'calculation' && item.value !== 'increment'"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
/>
|
||||
</template>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
|
@ -95,14 +96,15 @@
|
|||
<el-radio-group
|
||||
v-model="form.ValueType"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.ValueType"
|
||||
<template v-for="item of $d.ValueType">
|
||||
<el-radio
|
||||
v-if="item.value !== 3"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
>
|
||||
{{ item.label }}
|
||||
</el-radio>
|
||||
</template>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
|
@ -126,7 +128,7 @@
|
|||
<el-radio-group
|
||||
v-model="form.Unit"
|
||||
>
|
||||
<el-radio v-for="item of $d.ValueUnit" :label="item.value">{{ item.label }}</el-radio>
|
||||
<el-radio v-for="item of $d.ValueUnit" :label="item.value" :key="item.id">{{ item.label }}</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<!-- 数值单位 -->
|
||||
|
@ -441,7 +443,7 @@
|
|||
</el-form-item>
|
||||
<el-form-item :label="$t('trials:readingUnit:qsList:title:limitEdit')">
|
||||
<el-radio-group v-model="form.LimitEdit">
|
||||
<el-radio v-for="item of $d.LimitEdit" :label="item.value">{{ item.label }}</el-radio>
|
||||
<el-radio v-for="item of $d.LimitEdit" :label="item.value" :key="item.id">{{ item.label }}</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
|
|
@ -3,8 +3,12 @@
|
|||
<div v-if="isShow" class="content">
|
||||
<el-tabs v-model="TrialReadingCriterionId" type="border-card">
|
||||
<template v-for="item of trialCriterionList">
|
||||
<el-tab-pane :key="item.TrialReadingCriterionId" :label="item.TrialReadingCriterionName" :name="item.TrialReadingCriterionId">
|
||||
<div style="text-align: right;padding-bottom: 10px">
|
||||
<el-tab-pane
|
||||
:key="item.TrialReadingCriterionId"
|
||||
:label="item.TrialReadingCriterionName"
|
||||
:name="item.TrialReadingCriterionId"
|
||||
>
|
||||
<div style="text-align: right; padding-bottom: 10px">
|
||||
<!-- 同步当前标准 -->
|
||||
<el-button
|
||||
type="primary"
|
||||
|
@ -14,15 +18,26 @@
|
|||
v-if="!hasPermi(['role:admin'])"
|
||||
@click="syncSign"
|
||||
>
|
||||
{{ $t('trials:readingUnit:button:sync') }}
|
||||
{{ $t("trials:readingUnit:button:sync") }}
|
||||
</el-button>
|
||||
</div>
|
||||
<el-collapse v-model="activeCollapse" class="setting-config" v-if="item.isPaneShow && item.TrialReadingCriterionId === TrialReadingCriterionId" >
|
||||
<el-collapse
|
||||
v-model="activeCollapse"
|
||||
class="setting-config"
|
||||
v-if="
|
||||
item.isPaneShow &&
|
||||
item.TrialReadingCriterionId === TrialReadingCriterionId
|
||||
"
|
||||
>
|
||||
<!-- 阅片规则 -->
|
||||
<el-collapse-item :title="$t('trials:readingUnit:readingRules')" name="1">
|
||||
<el-collapse-item
|
||||
:title="$t('trials:readingUnit:readingRules')"
|
||||
name="1"
|
||||
>
|
||||
<ReadingRules
|
||||
:ref="`readingRules${item.TrialReadingCriterionId}`"
|
||||
:trial-reading-criterion-id="TrialReadingCriterionId"
|
||||
:CriterionType="item.CriterionType"
|
||||
@setConfirm="setConfirm"
|
||||
@reloadArbitrationRules="reloadArbitrationRules"
|
||||
@setArbitrationReading="setArbitrationReading"
|
||||
|
@ -34,7 +49,10 @@
|
|||
/>
|
||||
</el-collapse-item>
|
||||
<!-- 阅片标准 -->
|
||||
<el-collapse-item :title="$t('trials:readingUnit:readingCriterion')" name="2">
|
||||
<el-collapse-item
|
||||
:title="$t('trials:readingUnit:readingCriterion')"
|
||||
name="2"
|
||||
>
|
||||
<ReadingCriterions
|
||||
:ref="`readingCriterions${item.TrialReadingCriterionId}`"
|
||||
:trial-reading-criterion-id="TrialReadingCriterionId"
|
||||
|
@ -44,17 +62,38 @@
|
|||
/>
|
||||
</el-collapse-item>
|
||||
<!-- 全局阅片 -->
|
||||
<el-collapse-item v-if="isGlobalReading && CriterionType !== 10" :title="$t('trials:readingUnit:GlobalReading')" name="5">
|
||||
<GlobalReading :ref="`globalReading${item.TrialReadingCriterionId}`" :trial-reading-criterion-id="TrialReadingCriterionId" />
|
||||
<el-collapse-item
|
||||
v-if="isGlobalReading && CriterionType !== 10"
|
||||
:title="$t('trials:readingUnit:GlobalReading')"
|
||||
name="5"
|
||||
>
|
||||
<GlobalReading
|
||||
:ref="`globalReading${item.TrialReadingCriterionId}`"
|
||||
:trial-reading-criterion-id="TrialReadingCriterionId"
|
||||
/>
|
||||
</el-collapse-item>
|
||||
<!-- 仲裁规则 -->
|
||||
<el-collapse-item v-if="isArbitrationReading" :title="$t('trials:readingUnit:adRules')" name="3">
|
||||
<ArbitrationRules :ref="`arbitrationRules${item.TrialReadingCriterionId}`" :trial-reading-criterion-id="TrialReadingCriterionId" />
|
||||
<el-collapse-item
|
||||
v-if="isArbitrationReading"
|
||||
:title="$t('trials:readingUnit:adRules')"
|
||||
name="3"
|
||||
>
|
||||
<ArbitrationRules
|
||||
:ref="`arbitrationRules${item.TrialReadingCriterionId}`"
|
||||
:trial-reading-criterion-id="TrialReadingCriterionId"
|
||||
/>
|
||||
</el-collapse-item>
|
||||
<!-- 肿瘤学阅片配置 -->
|
||||
<!-- v-if="isClinicalReading" -->
|
||||
<el-collapse-item v-if="isOncologyReading" :title="$t('trials:readingUnit:oncologyReading')" name="4">
|
||||
<OncologyForm :ref="`oncologyForm${item.TrialReadingCriterionId}`" :trial-reading-criterion-id="TrialReadingCriterionId" />
|
||||
<el-collapse-item
|
||||
v-if="isOncologyReading"
|
||||
:title="$t('trials:readingUnit:oncologyReading')"
|
||||
name="4"
|
||||
>
|
||||
<OncologyForm
|
||||
:ref="`oncologyForm${item.TrialReadingCriterionId}`"
|
||||
:trial-reading-criterion-id="TrialReadingCriterionId"
|
||||
/>
|
||||
</el-collapse-item>
|
||||
</el-collapse>
|
||||
</el-tab-pane>
|
||||
|
@ -62,13 +101,16 @@
|
|||
</el-tabs>
|
||||
</div>
|
||||
|
||||
<div v-if="!isConfirm && hasPermi(['trials:trials-panel:setting:reading-unit:edit'])" class="bottom">
|
||||
<div
|
||||
v-if="
|
||||
!isConfirm &&
|
||||
hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
|
||||
"
|
||||
class="bottom"
|
||||
>
|
||||
<!-- 确认 -->
|
||||
<el-button
|
||||
type="danger"
|
||||
@click="handleConfirm"
|
||||
>
|
||||
{{ $t('trials:readingUnit:button:confirm') }}
|
||||
<el-button type="danger" @click="handleConfirm">
|
||||
{{ $t("trials:readingUnit:button:confirm") }}
|
||||
</el-button>
|
||||
</div>
|
||||
|
||||
|
@ -81,10 +123,16 @@
|
|||
custom-class="base-dialog-wrapper"
|
||||
>
|
||||
<div slot="title">
|
||||
<span style="font-size:18px;">{{ $t('common:dialogTitle:sign') }}</span>
|
||||
<span style="font-size:12px;margin-left:5px">{{ `(${$t('common:label:sign')}${ currentUser })` }}</span>
|
||||
<span style="font-size: 18px">{{ $t("common:dialogTitle:sign") }}</span>
|
||||
<span style="font-size: 12px; margin-left: 5px">{{
|
||||
`(${$t("common:label:sign")}${currentUser})`
|
||||
}}</span>
|
||||
</div>
|
||||
<SignForm ref="signForm" :sign-code-enum="signCode" @closeDialog="closeSignDialog" />
|
||||
<SignForm
|
||||
ref="signForm"
|
||||
:sign-code-enum="signCode"
|
||||
@closeDialog="closeSignDialog"
|
||||
/>
|
||||
</el-dialog>
|
||||
<!--签名框 -->
|
||||
<el-dialog
|
||||
|
@ -95,41 +143,63 @@
|
|||
custom-class="base-dialog-wrapper"
|
||||
>
|
||||
<div slot="title">
|
||||
<span style="font-size:18px;">{{ $t('common:dialogTitle:sign') }}</span>
|
||||
<span style="font-size:12px;margin-left:5px">{{ `(${$t('common:label:sign')}${ currentUser })` }}</span>
|
||||
<span style="font-size: 18px">{{ $t("common:dialogTitle:sign") }}</span>
|
||||
<span style="font-size: 12px; margin-left: 5px">{{
|
||||
`(${$t("common:label:sign")}${currentUser})`
|
||||
}}</span>
|
||||
</div>
|
||||
<SignForm ref="signForm2" :sign-code-enum="signCode2" @closeDialog="closeSignDialog2" />
|
||||
<SignForm
|
||||
ref="signForm2"
|
||||
:sign-code-enum="signCode2"
|
||||
@closeDialog="closeSignDialog2"
|
||||
/>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { resetAndAsyncCriterion, resetTrialCriterionAsyncState, asyncTrialCriterionDictionary, getTrialCriterionList, trialReadingInfoSign, trialReadingInfoSignVerify, verifyeCriterionNeedSynchronize, synchronizeCriterion } from '@/api/trials'
|
||||
import ReadingRules from './components/ReadingRules'
|
||||
import ReadingCriterions from './components/ReadingCriterions'
|
||||
import ArbitrationRules from './components/ArbitrationRules'
|
||||
import GlobalReading from './components/GlobalReading'
|
||||
import OncologyForm from './components/OncologyForm'
|
||||
import SignForm from '@/views/trials/components/newSignForm'
|
||||
import const_ from '@/const/sign-code'
|
||||
import {
|
||||
resetAndAsyncCriterion,
|
||||
resetTrialCriterionAsyncState,
|
||||
asyncTrialCriterionDictionary,
|
||||
getTrialCriterionList,
|
||||
trialReadingInfoSign,
|
||||
trialReadingInfoSignVerify,
|
||||
verifyeCriterionNeedSynchronize,
|
||||
synchronizeCriterion,
|
||||
} from "@/api/trials";
|
||||
import ReadingRules from "./components/ReadingRules";
|
||||
import ReadingCriterions from "./components/ReadingCriterions";
|
||||
import ArbitrationRules from "./components/ArbitrationRules";
|
||||
import GlobalReading from "./components/GlobalReading";
|
||||
import OncologyForm from "./components/OncologyForm";
|
||||
import SignForm from "@/views/trials/components/newSignForm";
|
||||
import const_ from "@/const/sign-code";
|
||||
|
||||
export default {
|
||||
name: 'ReadingUnit',
|
||||
components: { GlobalReading, ReadingRules, ReadingCriterions, ArbitrationRules, OncologyForm, SignForm },
|
||||
name: "ReadingUnit",
|
||||
components: {
|
||||
GlobalReading,
|
||||
ReadingRules,
|
||||
ReadingCriterions,
|
||||
ArbitrationRules,
|
||||
OncologyForm,
|
||||
SignForm,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
NODE_ENV: process.env.NODE_ENV,
|
||||
activeCollapse: ['1', '2', '3', '4', '5'],
|
||||
activeCollapse: ["1", "2", "3", "4", "5"],
|
||||
signCode: null,
|
||||
signCode2: null,
|
||||
signVisible: false,
|
||||
signVisible2: false,
|
||||
currentUser: zzSessionStorage.getItem('userName'),
|
||||
currentUser: zzSessionStorage.getItem("userName"),
|
||||
isConfirm: true,
|
||||
loading: false,
|
||||
isArbitrationReading: false,
|
||||
isClinicalReading: false,
|
||||
trialCriterionList: [],
|
||||
TrialReadingCriterionId: '0',
|
||||
TrialReadingCriterionId: "0",
|
||||
CriterionType: 0,
|
||||
trialId: this.$route.query.trialId,
|
||||
isPaneShow: true,
|
||||
|
@ -137,8 +207,8 @@ export default {
|
|||
isOncologyReading: false,
|
||||
isGlobalReading: false,
|
||||
digitPlaces: 0,
|
||||
isAdditionalAssessment: false
|
||||
}
|
||||
isAdditionalAssessment: false,
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
async TrialReadingCriterionId(v) {
|
||||
|
@ -150,254 +220,317 @@ export default {
|
|||
// this.$nextTick(() => {
|
||||
// this.trialCriterionList[i].isPaneShow = true
|
||||
// })
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.getTrialCriterionList()
|
||||
this.getTrialCriterionList();
|
||||
},
|
||||
methods: {
|
||||
closeSignDialog2(isSign, signInfo) {
|
||||
if (isSign) {
|
||||
this.handleSync(signInfo)
|
||||
this.handleSync(signInfo);
|
||||
} else {
|
||||
this.signVisible2 = false
|
||||
this.signVisible2 = false;
|
||||
}
|
||||
},
|
||||
syncSign() {
|
||||
const { ResetAndAsyncCriterion } = const_.processSignature
|
||||
this.signCode2 = ResetAndAsyncCriterion
|
||||
this.signVisible2 = true
|
||||
const { ResetAndAsyncCriterion } = const_.processSignature;
|
||||
this.signCode2 = ResetAndAsyncCriterion;
|
||||
this.signVisible2 = true;
|
||||
},
|
||||
handleSync(signInfo) {
|
||||
// '确定要同步最新标准配置吗?'
|
||||
this.loading = true
|
||||
this.loading = true;
|
||||
const params = {
|
||||
data: {
|
||||
TrialReadingCriterionId: this.TrialReadingCriterionId
|
||||
TrialReadingCriterionId: this.TrialReadingCriterionId,
|
||||
},
|
||||
signInfo: signInfo
|
||||
}
|
||||
resetAndAsyncCriterion(params).then(res => {
|
||||
this.loading = false
|
||||
let i = this.trialCriterionList.findIndex(i => i.TrialReadingCriterionId === this.TrialReadingCriterionId)
|
||||
if(i === -1) return
|
||||
this.trialCriterionList[i].isPaneShow = false
|
||||
this.$nextTick(() => {
|
||||
this.signVisible2 = false
|
||||
this.trialCriterionList[i].isPaneShow = true
|
||||
|
||||
signInfo: signInfo,
|
||||
};
|
||||
resetAndAsyncCriterion(params)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
let i = this.trialCriterionList.findIndex(
|
||||
(i) => i.TrialReadingCriterionId === this.TrialReadingCriterionId
|
||||
);
|
||||
if (i === -1) return;
|
||||
this.trialCriterionList[i].isPaneShow = false;
|
||||
this.$nextTick(() => {
|
||||
this.signVisible2 = false;
|
||||
this.trialCriterionList[i].isPaneShow = true;
|
||||
});
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$refs['signForm2'].btnLoading = false
|
||||
this.loading = false
|
||||
})
|
||||
.catch(() => {
|
||||
this.$refs["signForm2"].btnLoading = false;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
asyncTrialCriterionDictionary(TrialReadingCriterionId) {
|
||||
return new Promise(resolve => {
|
||||
asyncTrialCriterionDictionary({ TrialReadingCriterionId: this.TrialReadingCriterionId }).then(res => {
|
||||
resolve()
|
||||
})
|
||||
})
|
||||
return new Promise((resolve) => {
|
||||
asyncTrialCriterionDictionary({
|
||||
TrialReadingCriterionId: this.TrialReadingCriterionId,
|
||||
}).then((res) => {
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
},
|
||||
getTrialCriterionList() {
|
||||
getTrialCriterionList(this.trialId, false).then(async res => {
|
||||
this.trialCriterionList = res.Result.map(item=>{
|
||||
return {
|
||||
...item,
|
||||
isPaneShow: true,
|
||||
}
|
||||
getTrialCriterionList(this.trialId, false)
|
||||
.then(async (res) => {
|
||||
this.trialCriterionList = res.Result.map((item) => {
|
||||
return {
|
||||
...item,
|
||||
isPaneShow: true,
|
||||
};
|
||||
});
|
||||
this.TrialReadingCriterionId =
|
||||
this.trialCriterionList[0].TrialReadingCriterionId;
|
||||
this.isShow = true;
|
||||
})
|
||||
this.TrialReadingCriterionId = this.trialCriterionList[0].TrialReadingCriterionId
|
||||
this.isShow = true
|
||||
}).catch(() => {
|
||||
})
|
||||
.catch(() => {});
|
||||
},
|
||||
setConfirm(isConfirm) {
|
||||
this.isConfirm = isConfirm
|
||||
this.isConfirm = isConfirm;
|
||||
},
|
||||
setDigitPlaces(digitPlaces) {
|
||||
this.digitPlaces = digitPlaces
|
||||
this.digitPlaces = digitPlaces;
|
||||
},
|
||||
setIsClinicalReading(isClinicalReading) {
|
||||
this.isClinicalReading = isClinicalReading
|
||||
this.isClinicalReading = isClinicalReading;
|
||||
},
|
||||
setAdditionalAssessment(isAdditionalAssessment) {
|
||||
this.isAdditionalAssessment = isAdditionalAssessment
|
||||
this.isAdditionalAssessment = isAdditionalAssessment;
|
||||
},
|
||||
setArbitrationReading(isArbitrationReading) {
|
||||
this.isArbitrationReading = isArbitrationReading
|
||||
this.isArbitrationReading = isArbitrationReading;
|
||||
},
|
||||
setGlobalReading(isGlobalReading) {
|
||||
this.isGlobalReading = isGlobalReading
|
||||
this.isGlobalReading = isGlobalReading;
|
||||
},
|
||||
setOncologyReading(isOncologyReading) {
|
||||
this.isOncologyReading = isOncologyReading
|
||||
this.isOncologyReading = isOncologyReading;
|
||||
},
|
||||
updateCriterions() {
|
||||
this.loading = true
|
||||
synchronizeCriterion({ trialId: this.$route.query.trialId, TrialReadingCriterionId: this.TrialReadingCriterionId }).then(res => {
|
||||
this.$router.push({ path: `/trials/trials-panel/setting/reading-unit?trialId=${this.$route.query.trialId}&trialCode=${this.$route.query.trialCode}&researchProgramNo=${this.$route.query.researchProgramNo}&t=${new Date().getTime()}` })
|
||||
this.loading = false
|
||||
}).catch(() => { this.loading = false })
|
||||
this.loading = true;
|
||||
synchronizeCriterion({
|
||||
trialId: this.$route.query.trialId,
|
||||
TrialReadingCriterionId: this.TrialReadingCriterionId,
|
||||
})
|
||||
.then((res) => {
|
||||
this.$router.push({
|
||||
path: `/trials/trials-panel/setting/reading-unit?trialId=${
|
||||
this.$route.query.trialId
|
||||
}&trialCode=${this.$route.query.trialCode}&researchProgramNo=${
|
||||
this.$route.query.researchProgramNo
|
||||
}&t=${new Date().getTime()}`,
|
||||
});
|
||||
this.loading = false;
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
handleConfirm() {
|
||||
this.loading = true
|
||||
verifyeCriterionNeedSynchronize({ trialId: this.$route.query.trialId, TrialReadingCriterionId: this.TrialReadingCriterionId }).then(async res => {
|
||||
this.loading = false
|
||||
if (res.Result !== 1) {
|
||||
// 系统检测当前阅片标准配置发生更新,是否确认获取最新配置信息?
|
||||
this.$confirm(this.$t('trials:readingUnit:message:msg1'), {
|
||||
type: 'warning'
|
||||
})
|
||||
.then(() => {
|
||||
this.updateCriterions()
|
||||
})
|
||||
.catch(action => {
|
||||
})
|
||||
} else {
|
||||
try {
|
||||
var isCheckList = []
|
||||
if (this.$refs['arbitrationRules' + this.TrialReadingCriterionId] && this.$refs['arbitrationRules' + this.TrialReadingCriterionId].length) {
|
||||
var arbitrationRules = await this.$refs['arbitrationRules' + this.TrialReadingCriterionId][0].saveAllSync()
|
||||
isCheckList.push({
|
||||
isCheck: arbitrationRules,
|
||||
msg: this.$t('trials:readingUnit:adRules')// '仲裁规则'
|
||||
})
|
||||
}
|
||||
var readingRules = await this.$refs['readingRules' + this.TrialReadingCriterionId][0].handleSave(false)
|
||||
isCheckList.push({
|
||||
isCheck: readingRules,
|
||||
msg: this.$t('trials:readingUnit:readingRules')// '阅片规则'
|
||||
})
|
||||
// var readingCriterions = await this.$refs['readingCriterions' + this.TrialReadingCriterionId][0].handleSave(false)
|
||||
// isCheckList.push({
|
||||
// isCheck: readingCriterions,
|
||||
// msg: '阅片标准'
|
||||
// })
|
||||
if (this.$refs['globalReading' + this.TrialReadingCriterionId] && this.$refs['globalReading' + this.TrialReadingCriterionId].length) {
|
||||
var globalReading = await this.$refs['globalReading' + this.TrialReadingCriterionId][0].handleSave(false)
|
||||
isCheckList.push({
|
||||
isCheck: globalReading,
|
||||
msg: this.$t('trials:readingUnit:GlobalReading')// '全局阅片'
|
||||
})
|
||||
}
|
||||
if (this.$refs['oncologyForm' + this.TrialReadingCriterionId] && this.$refs['oncologyForm' + this.TrialReadingCriterionId].length) {
|
||||
var oncologyForm = await this.$refs['oncologyForm' + this.TrialReadingCriterionId][0].handleSave(false)
|
||||
isCheckList.push({
|
||||
isCheck: oncologyForm,
|
||||
msg: this.$t('trials:readingUnit:oncologyReading')// '肿瘤学阅片配置'
|
||||
})
|
||||
}
|
||||
if (isCheckList.every(v => v.isCheck === true)) {
|
||||
trialReadingInfoSignVerify({ trialId: this.$route.query.trialId, TrialReadingCriterionId: this.TrialReadingCriterionId }).then(res => {
|
||||
if (res.IsSuccess) {
|
||||
const { ReadingUnitConfirmation } = const_.processSignature
|
||||
this.signCode = ReadingUnitConfirmation
|
||||
this.signVisible = true
|
||||
}
|
||||
})
|
||||
} else {
|
||||
var notCheckList = isCheckList.filter(v => v.isCheck === false)
|
||||
var msg = notCheckList.map(v => v.msg)
|
||||
msg = this.$t('trials:readingUnit:message:msg2').replace('xxx', msg)
|
||||
this.$alert(msg) // ${msg}区域信息不完整,请完成后确认!
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
}
|
||||
}).catch(() => {
|
||||
console.log(222)
|
||||
this.loading = false
|
||||
this.loading = true;
|
||||
verifyeCriterionNeedSynchronize({
|
||||
trialId: this.$route.query.trialId,
|
||||
TrialReadingCriterionId: this.TrialReadingCriterionId,
|
||||
})
|
||||
.then(async (res) => {
|
||||
this.loading = false;
|
||||
if (res.Result !== 1) {
|
||||
// 系统检测当前阅片标准配置发生更新,是否确认获取最新配置信息?
|
||||
this.$confirm(this.$t("trials:readingUnit:message:msg1"), {
|
||||
type: "warning",
|
||||
})
|
||||
.then(() => {
|
||||
this.updateCriterions();
|
||||
})
|
||||
.catch((action) => {});
|
||||
} else {
|
||||
try {
|
||||
var isCheckList = [];
|
||||
if (
|
||||
this.$refs["arbitrationRules" + this.TrialReadingCriterionId] &&
|
||||
this.$refs["arbitrationRules" + this.TrialReadingCriterionId]
|
||||
.length
|
||||
) {
|
||||
var arbitrationRules = await this.$refs[
|
||||
"arbitrationRules" + this.TrialReadingCriterionId
|
||||
][0].saveAllSync();
|
||||
isCheckList.push({
|
||||
isCheck: arbitrationRules,
|
||||
msg: this.$t("trials:readingUnit:adRules"), // '仲裁规则'
|
||||
});
|
||||
}
|
||||
var readingRules = await this.$refs[
|
||||
"readingRules" + this.TrialReadingCriterionId
|
||||
][0].handleSave(false);
|
||||
isCheckList.push({
|
||||
isCheck: readingRules,
|
||||
msg: this.$t("trials:readingUnit:readingRules"), // '阅片规则'
|
||||
});
|
||||
// var readingCriterions = await this.$refs['readingCriterions' + this.TrialReadingCriterionId][0].handleSave(false)
|
||||
// isCheckList.push({
|
||||
// isCheck: readingCriterions,
|
||||
// msg: '阅片标准'
|
||||
// })
|
||||
if (
|
||||
this.$refs["globalReading" + this.TrialReadingCriterionId] &&
|
||||
this.$refs["globalReading" + this.TrialReadingCriterionId]
|
||||
.length
|
||||
) {
|
||||
var globalReading = await this.$refs[
|
||||
"globalReading" + this.TrialReadingCriterionId
|
||||
][0].handleSave(false);
|
||||
isCheckList.push({
|
||||
isCheck: globalReading,
|
||||
msg: this.$t("trials:readingUnit:GlobalReading"), // '全局阅片'
|
||||
});
|
||||
}
|
||||
if (
|
||||
this.$refs["oncologyForm" + this.TrialReadingCriterionId] &&
|
||||
this.$refs["oncologyForm" + this.TrialReadingCriterionId].length
|
||||
) {
|
||||
var oncologyForm = await this.$refs[
|
||||
"oncologyForm" + this.TrialReadingCriterionId
|
||||
][0].handleSave(false);
|
||||
isCheckList.push({
|
||||
isCheck: oncologyForm,
|
||||
msg: this.$t("trials:readingUnit:oncologyReading"), // '肿瘤学阅片配置'
|
||||
});
|
||||
}
|
||||
if (isCheckList.every((v) => v.isCheck === true)) {
|
||||
trialReadingInfoSignVerify({
|
||||
trialId: this.$route.query.trialId,
|
||||
TrialReadingCriterionId: this.TrialReadingCriterionId,
|
||||
}).then((res) => {
|
||||
if (res.IsSuccess) {
|
||||
const { ReadingUnitConfirmation } = const_.processSignature;
|
||||
this.signCode = ReadingUnitConfirmation;
|
||||
this.signVisible = true;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
var notCheckList = isCheckList.filter(
|
||||
(v) => v.isCheck === false
|
||||
);
|
||||
var msg = notCheckList.map((v) => v.msg);
|
||||
msg = this.$t("trials:readingUnit:message:msg2").replace(
|
||||
"xxx",
|
||||
msg
|
||||
);
|
||||
this.$alert(msg); // ${msg}区域信息不完整,请完成后确认!
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
console.log(222);
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 关闭签名框并设置确认状态
|
||||
closeSignDialog(isSign, signInfo) {
|
||||
if (isSign) {
|
||||
this.signConfirm(signInfo)
|
||||
this.signConfirm(signInfo);
|
||||
} else {
|
||||
this.signVisible = false
|
||||
this.signVisible = false;
|
||||
}
|
||||
},
|
||||
// 签名确认
|
||||
signConfirm(signInfo) {
|
||||
this.loading = true
|
||||
this.loading = true;
|
||||
const params = {
|
||||
data: {
|
||||
trialId: this.$route.query.trialId,
|
||||
TrialReadingCriterionId: this.TrialReadingCriterionId
|
||||
TrialReadingCriterionId: this.TrialReadingCriterionId,
|
||||
},
|
||||
signInfo: signInfo
|
||||
}
|
||||
trialReadingInfoSign(params).then(res => {
|
||||
if (res.IsSuccess) {
|
||||
try {
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
this.isConfirm = true
|
||||
signInfo: signInfo,
|
||||
};
|
||||
trialReadingInfoSign(params)
|
||||
.then((res) => {
|
||||
if (res.IsSuccess) {
|
||||
try {
|
||||
this.$refs['readingRules' + this.TrialReadingCriterionId][0].initPage()
|
||||
this.$message.success(
|
||||
this.$t("common:message:savedSuccessfully")
|
||||
);
|
||||
this.isConfirm = true;
|
||||
try {
|
||||
this.$refs[
|
||||
"readingRules" + this.TrialReadingCriterionId
|
||||
][0].initPage();
|
||||
} catch (e) {}
|
||||
try {
|
||||
this.$refs[
|
||||
"readingCriterions" + this.TrialReadingCriterionId
|
||||
][0].initPage();
|
||||
} catch (e) {}
|
||||
try {
|
||||
this.$refs[
|
||||
"arbitrationRules" + this.TrialReadingCriterionId
|
||||
][0].getList();
|
||||
} catch (e) {}
|
||||
try {
|
||||
this.$refs[
|
||||
"globalReading" + this.TrialReadingCriterionId
|
||||
][0].initForm();
|
||||
} catch (e) {}
|
||||
try {
|
||||
this.$refs[
|
||||
"oncologyForm" + this.TrialReadingCriterionId
|
||||
][0].initForm();
|
||||
} catch (e) {}
|
||||
this.$refs["signForm"].btnLoading = false;
|
||||
this.signVisible = false;
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
try {
|
||||
this.$refs['readingCriterions' + this.TrialReadingCriterionId][0].initPage()
|
||||
} catch (e) {
|
||||
}
|
||||
try {
|
||||
this.$refs['arbitrationRules' + this.TrialReadingCriterionId][0].getList()
|
||||
} catch (e) {
|
||||
}
|
||||
try {
|
||||
this.$refs['globalReading' + this.TrialReadingCriterionId][0].initForm()
|
||||
} catch (e) {
|
||||
}
|
||||
try {
|
||||
this.$refs['oncologyForm' + this.TrialReadingCriterionId][0].initForm()
|
||||
} catch (e) {
|
||||
}
|
||||
this.$refs['signForm'].btnLoading = false
|
||||
this.signVisible = false
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
}
|
||||
this.loading = false
|
||||
}).catch(_ => {
|
||||
this.loading = false
|
||||
this.$refs['signForm'].btnLoading = false
|
||||
})
|
||||
this.loading = false;
|
||||
})
|
||||
.catch((_) => {
|
||||
this.loading = false;
|
||||
this.$refs["signForm"].btnLoading = false;
|
||||
});
|
||||
},
|
||||
reloadArbitrationRules() {
|
||||
this.$refs['arbitrationRules' + this.TrialReadingCriterionId][0].getList()
|
||||
this.$refs['arbitrationRules' + this.TrialReadingCriterionId][0].getTrialJudgyInfo()
|
||||
}
|
||||
}
|
||||
}
|
||||
this.$refs[
|
||||
"arbitrationRules" + this.TrialReadingCriterionId
|
||||
][0].getList();
|
||||
this.$refs[
|
||||
"arbitrationRules" + this.TrialReadingCriterionId
|
||||
][0].getTrialJudgyInfo();
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.reading-unit-wrapper{
|
||||
.reading-unit-wrapper {
|
||||
height: 100%;
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.content{
|
||||
.content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
}
|
||||
/deep/ .el-collapse-item__header{
|
||||
background:#e5ecef;
|
||||
padding-left:10px;
|
||||
/deep/ .el-collapse-item__header {
|
||||
background: #e5ecef;
|
||||
padding-left: 10px;
|
||||
}
|
||||
/deep/ .el-collapse-item__content{
|
||||
/deep/ .el-collapse-item__content {
|
||||
padding: 10px;
|
||||
}
|
||||
.bottom{
|
||||
.bottom {
|
||||
height: 50px;
|
||||
display:flex;
|
||||
align-items:center;
|
||||
justify-content:center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
border-top: 1px solid #e1e1e1;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue