From 2a11d3f01266d93b35e42660e5d6e8c35f1d052f Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 29 Oct 2024 16:57:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8E=86=E4=B8=B4=E5=BA=8A=E5=AE=9E?= =?UTF-8?q?=E9=AA=8C=E7=BB=8F=E5=8E=86=E5=8C=BA=E5=88=86=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=92=8C=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/reviewers.js | 6 +- .../reviewers/components/TrialExperience.vue | 67 ++++++++++++++++--- .../components/info/clinicalTrials.vue | 49 +++++++++++--- 3 files changed, 98 insertions(+), 24 deletions(-) diff --git a/src/api/reviewers.js b/src/api/reviewers.js index 8f160acc..8fa8a272 100644 --- a/src/api/reviewers.js +++ b/src/api/reviewers.js @@ -138,13 +138,11 @@ export function addOrUpdateResearchPublication(param) { }) } -export function getTrialExperience(doctorId) { +export function getTrialExperience(data) { return request({ url: `/trialExperience/getTrialExperience`, method: 'post', - data: { - DoctorId: doctorId - } + data }) } diff --git a/src/views/reviewers/components/TrialExperience.vue b/src/views/reviewers/components/TrialExperience.vue index 6f926892..bf0676b3 100644 --- a/src/views/reviewers/components/TrialExperience.vue +++ b/src/views/reviewers/components/TrialExperience.vue @@ -72,7 +72,16 @@ prop="EvaluationContent" :label="$t('system:TrialExperience:Indication')" min-width="70" - /> + > + + - + - + + + + + + @@ -281,6 +303,7 @@ const getClinicalTrialDefault = () => { EndTime: null, OtherStages: '', OtherCriterion: '', + IndicationEnum: null, } } export default { @@ -320,6 +343,9 @@ export default { { required: true, message: 'Please specify', trigger: 'blur' }, { max: 300, message: 'The maximum length is 300' }, ], + IndicationEnum: [ + { required: true, message: 'Please select', trigger: 'blur' }, + ], StartTime: [ { required: true, message: 'Please specify', trigger: 'blur' }, ], @@ -351,6 +377,13 @@ export default { } }, computed: { + IndicationEnum_isOther() { + if (!this.clinicalTrialForm.IndicationEnum) return false + let value = this.$d.Indication.find( + (item) => item.value === this.clinicalTrialForm.IndicationEnum + ).label + return value === '其它' || value === 'Other' + }, Trial_Phase_isOther() { if (!this.clinicalTrialForm.PhaseId) return false let value = this.dictionaryList.Trial_Phase.find( @@ -368,10 +401,10 @@ export default { this.otherId ) }, - ReadingStandard() { - if (!this.dictionaryList.ReadingStandard) return [] + CriterionType() { + if (!this.dictionaryList.CriterionType) return [] return [ - ...this.dictionaryList.ReadingStandard, + ...this.dictionaryList.CriterionType, { Id: this.otherId, Value: 'Other', @@ -396,6 +429,11 @@ export default { this.clinicalTrialForm.OtherCriterion = null } }, + IndicationEnum_isOther() { + if (!this.IndicationEnum_isOther) { + this.form.EvaluationContent = null + } + }, }, created() { this.initForm() @@ -406,7 +444,13 @@ export default { const id = this.$route.query.Id || this.reviewerId if (id) { this.loading = true - getTrialExperience(id) + let data = { + DoctorId: id, + } + if (this.$route.query.trialId) { + data.TrialId = this.$route.query.trialId + } + getTrialExperience(data) .then((res) => { this.clinicalTrialList = res.Result.ClinicalTrialExperienceList this.GCP = res.Result.GCP @@ -422,7 +466,7 @@ export default { } }, getDicData() { - getBasicDataSelects(['Trial_Phase', 'ReadingStandard']).then((res) => { + getBasicDataSelects(['Trial_Phase', 'CriterionType']).then((res) => { this.dictionaryList = { ...res.Result } }) }, @@ -478,6 +522,9 @@ export default { 'YYYY' ) + '-01' } + if (this.$route.query.trialId) { + this.clinicalTrialForm.TrialId = this.$route.query.trialId + } addOrUpdateTrialExperience(this.clinicalTrialForm) .then((res) => { this.isDisabled = false diff --git a/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue b/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue index 8fe3a0ed..18be2ec1 100644 --- a/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue +++ b/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue @@ -48,6 +48,12 @@ prop="EvaluationContent" :label="$t('curriculumVitae:clinicalTrials:table:indication')" > + + {{ scope.row.EvaluationContent }} + + + {{ $fd('Indication', scope.row.IndicationEnum) }} + -