diff --git a/src/api/export.js b/src/api/export.js index 77d99a12..93067284 100644 --- a/src/api/export.js +++ b/src/api/export.js @@ -230,3 +230,12 @@ export function getCommonJudgeRatioList_Export(data) { data }) } +// 导出国际化列表 +export function GetInternationalizationList_Export(data) { + return requestDownload({ + url: `/ExcelExport/GetInternationalizationList_Export`, + responseType: 'blob', + method: 'post', + data + }) +} 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..5f761976 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" - /> + > + + - {{ $t('common:button:edit') }} + {{ $t('common:button:edit') }} + {{ $t('common:button:delete') }} + {{ $t('common:button:delete') }} + @@ -189,9 +199,9 @@ v-model="clinicalTrialForm.EvaluationCriteriaIdList" multiple > - + + + + + + + - + + + + + + @@ -281,6 +324,8 @@ const getClinicalTrialDefault = () => { EndTime: null, OtherStages: '', OtherCriterion: '', + IndicationEnum: null, + IndicationTypeId: null, } } export default { @@ -320,6 +365,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 +399,24 @@ export default { } }, computed: { + IndicationOptions() { + if (!this.clinicalTrialForm.IndicationTypeId) return [] + let indicationGrouping = this.$d.IndicationType.filter( + (item) => item.id === this.clinicalTrialForm.IndicationTypeId + )[0].raw.ChildGroup + let arr = + this.$d.Indication.filter( + (item) => indicationGrouping === item.raw.ChildGroup + ) || [] + return arr + }, + 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 +434,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 +462,11 @@ export default { this.clinicalTrialForm.OtherCriterion = null } }, + IndicationEnum_isOther() { + if (!this.IndicationEnum_isOther) { + this.clinicalTrialForm.EvaluationContent = null + } + }, }, created() { this.initForm() @@ -406,7 +477,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 +499,7 @@ export default { } }, getDicData() { - getBasicDataSelects(['Trial_Phase', 'ReadingStandard']).then((res) => { + getBasicDataSelects(['Trial_Phase', 'CriterionType']).then((res) => { this.dictionaryList = { ...res.Result } }) }, @@ -443,6 +520,8 @@ export default { VisitReadingCount, OtherStages, OtherCriterion, + IndicationEnum, + IndicationTypeId, } = row this.clinicalTrialForm = Object.assign({}, getClinicalTrialDefault()) this.clinicalTrialDialogTitle = 'Edit' @@ -456,6 +535,8 @@ export default { this.clinicalTrialForm.EvaluationContent = EvaluationContent this.clinicalTrialForm.OtherStages = OtherStages this.clinicalTrialForm.OtherCriterion = OtherCriterion + this.clinicalTrialForm.IndicationEnum = IndicationEnum + this.clinicalTrialForm.IndicationTypeId = IndicationTypeId }, handleSave() { this.$refs.clinicalTrialForm.validate((valid) => { @@ -478,6 +559,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 @@ -536,6 +620,10 @@ export default { } }) }, + handleIndicationTypeChange(val) { + this.clinicalTrialForm.EvaluationContent = null + this.clinicalTrialForm.IndicationEnum = null + }, }, } diff --git a/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue b/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue index 8fe3a0ed..fd809c46 100644 --- a/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue +++ b/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue @@ -48,6 +48,14 @@ prop="EvaluationContent" :label="$t('curriculumVitae:clinicalTrials:table:indication')" > + - {{ $fd('YesOrNo', scope.row.IsEnable) }} - {{ $fd('YesOrNo', scope.row.IsEnable) }} + {{ + $fd('YesOrNo', scope.row.IsEnable) + }} @@ -255,11 +300,20 @@ width="160" /> - +