From 799c25ecc91bd69731397c4e6f1f932461f3faec Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Wed, 17 Jan 2024 11:21:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=82=BF=E7=98=A4=E5=AD=A6=E9=98=85=E7=89=87?= =?UTF-8?q?=EF=BC=8C=E5=9F=BA=E7=BA=BF=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=EF=BC=8C=E9=9A=8F=E8=AE=BF=E7=BB=93=E8=AE=BA=E4=B8=8E?= =?UTF-8?q?=E9=98=85=E7=89=87=E7=BB=93=E6=9E=9C=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=8E=9F=E5=9B=A0=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/oncology-review/index.vue | 39 ++++++++++++++----- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/src/views/trials/trials-panel/reading/oncology-review/index.vue b/src/views/trials/trials-panel/reading/oncology-review/index.vue index 46e2241b..bab2ddc5 100644 --- a/src/views/trials/trials-panel/reading/oncology-review/index.vue +++ b/src/views/trials/trials-panel/reading/oncology-review/index.vue @@ -93,7 +93,7 @@ {{ $fd('YesOrNo', scope.row.IsHaveChange ) }} - + - {{ $t('trials:oncologyReview:title:findings') }} - * + {{ $t('trials:oncologyReview:title:findings') }} + * @@ -139,6 +139,7 @@ > !item.EvaluationResult && !item.IsBaseLine) - if (index > -1) { + // var index = this.oncologyInfo.OncologyVisits.findIndex(item => !item.EvaluationResult && !item.IsBaseLine) + var isDiffer = this.checkDifferResult() + if (isDiffer) { this.loading = false - // '肿瘤学阅片结论不能为空!' - this.$confirm(this.$t('trials:oncologyReview:message:msg1'), { + // '肿瘤学阅片结论不能为空!' this.$t('trials:oncologyReview:message:msg1' + this.$confirm('肿瘤学阅片结果与影像学整体肿瘤评估不一致,请填写原因!', { type: 'warning', distinguishCancelAndClose: true }) @@ -394,7 +396,7 @@ export default { oncologyTaskId: this.visitTaskId, oncologyQuestionList: oncologyQuestionList, globalTaskId: this.oncologyInfo.GlobalTaskId, - relatedTaskId:this.oncologyInfo.RelatedTaskId + relatedTaskId: this.oncologyInfo.RelatedTaskId } return new Promise((resolve, reject) => { setOncologyReadingInfo(params).then(res => { @@ -411,6 +413,25 @@ export default { }) } }, + checkDifferResult() { + var isDiffer = false + var criterionType = parseInt(this.$route.query.criterionType) + if (criterionType === 2) { + for (let i = 0; i < this.oncologyInfo.OncologyVisits.length; i++) { + if (this.oncologyInfo.OncologyVisits[i].IsBaseLine) continue + var tumorAssessment = '' + var idx = this.oncologyInfo.OncologyVisits[i].QuestionList.findIndex(v => v.DictionaryCode === 'ImagingOverallAssessment_Lugano') + if (idx > -1) { + tumorAssessment = this.oncologyInfo.OncologyVisits[i].QuestionList[idx].Answer + if (tumorAssessment !== this.oncologyInfo.OncologyVisits[i].EvaluationResult) { + isDiffer = true + break + } + } + } + } + return isDiffer + }, handleSubmit() { this.$refs['adForm'].validate((valid) => { if (!valid) return