From 5bffb48b99b3d797ef739bfe951d8d18edd3a625 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 27 Feb 2025 16:32:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E5=88=B0=E5=BD=B1=E5=83=8F=E4=B8=8A=E4=BC=A0=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E5=BD=B1=E5=83=8F=E8=B4=A8=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/none-dicom-show/index.vue | 30 ++++++- .../components/uploadDicomFiles2.vue | 36 ++++++++ .../components/uploadNonDicomFiles.vue | 60 +++++++++++++- .../qc-check/components/qualityAssurance.vue | 83 ++++++++++++++++++- 4 files changed, 202 insertions(+), 7 deletions(-) diff --git a/src/views/none-dicom-show/index.vue b/src/views/none-dicom-show/index.vue index 0c5506b7..375e8232 100644 --- a/src/views/none-dicom-show/index.vue +++ b/src/views/none-dicom-show/index.vue @@ -11,6 +11,9 @@ {{ study.CodeView }} {{ study.Modality }} {{ getBodyPart(study.BodyPart) }} + {{ + study.StudyName + }}
-
+
+
+ +
+ + + + + + + { diff --git a/src/views/trials/trials-panel/visit/crc-upload/components/uploadNonDicomFiles.vue b/src/views/trials/trials-panel/visit/crc-upload/components/uploadNonDicomFiles.vue index 8ec06152..57a1e608 100644 --- a/src/views/trials/trials-panel/visit/crc-upload/components/uploadNonDicomFiles.vue +++ b/src/views/trials/trials-panel/visit/crc-upload/components/uploadNonDicomFiles.vue @@ -29,6 +29,12 @@ prop="CodeView" :label="$t('trials:uploadNonDicoms:table:studyId')" /> + + + + + + + +
{{ - $t('trials:uploadNonDicoms:label:fileType') + $t('trials:uploadNonDicoms:label:fileType').replace( + 'xxx', + relationInfo.ImageFormatList.join('/') + ) }}
@@ -602,6 +635,7 @@ export default { BodyParts: [], Modality: '', ImageDate: '', + StudyName: '', }, pickerOption: { disabledDate: (time) => { @@ -627,6 +661,7 @@ export default { moment, BodyPart: {}, studyMonitorId: null, + relationInfo: {}, } }, async mounted() { @@ -666,12 +701,22 @@ export default { store.dispatch('trials/setUnLock', false) this.OSSclient.close() }, + computed: { + isEN() { + return this.$i18n.locale !== 'zh' + }, + }, methods: { // 初始化非Dicom列表数据 getNoneDicomList() { this.loading = true getNoneDicomStudyList(this.subjectVisitId) .then((res) => { + this.relationInfo = res.OtherInfo + this.faccept = [] + this.relationInfo.ImageFormatList.forEach((item) => { + this.faccept.push(`.${item}`) + }) this.nonDicomStudyList = res.Result.map((v) => { if (v.VideoObjectName) { v.FileCount += 1 @@ -691,6 +736,7 @@ export default { this.form.CodeView = '' this.form.BodyPart = '' this.form.Modality = '' + this.form.StudyName = '' this.form.ImageDate = '' this.form.BodyParts = [] this.dialogVisible = true @@ -698,11 +744,14 @@ export default { // 打开比编辑弹框,并初始化数据 handleEdit(row) { this.title = this.$t('trials:uploadNonDicoms:dialogTitle:edit') - const { CodeView, Id, BodyPart, Modality, ImageDate } = { ...row } + const { CodeView, Id, BodyPart, Modality, ImageDate, StudyName } = { + ...row, + } this.form.CodeView = CodeView this.form.Id = Id this.form.BodyPart = BodyPart this.form.Modality = Modality + this.form.StudyName = StudyName this.form.ImageDate = ImageDate this.form.BodyParts = this.form.BodyPart.split(', ') this.dialogVisible = true @@ -909,6 +958,13 @@ export default { }) }, handlePreviewImg(row) { + if (!!~row.FileType.indexOf('pdf')) { + return this.$preview({ + path: row.Path || row.fullPath, + type: 'pdf', + title: row.FileName, + }) + } // this.imgUrl = row.FullFilePath // this.previewImgVisible = true // this.imageLoading = true diff --git a/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue b/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue index d1262449..88ff4db2 100644 --- a/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue +++ b/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue @@ -105,6 +105,12 @@ prop="StudyCode" :label="$t('trials:audit:table:studyId')" /> + + - {{ getBodyPart(scope.row.BodyPartForEdit) }} + {{ + getBodyPart(scope.row.BodyPartForEdit) + }} @@ -387,6 +395,12 @@ prop="CodeView" :label="$t('trials:audit:table:nonDicomsStudyId')" /> + + + + + + + + + + + + + + 0 ? 'dicom' : 'none-dicom', @@ -1392,6 +1459,7 @@ export default { BodyParts: [], Modality: '', ImageDate: '', + StudyName: '', }, subjectClinicalData: {}, moment, @@ -2297,6 +2365,7 @@ export default { type: 1, modality: this.studyForm.Modality, bodyPart: this.studyForm.BodyPart, + StudyName: this.studyForm.StudyName, } updateModality(this.data.TrialId, params) .then((res) => { @@ -2328,7 +2397,10 @@ export default { // 打开非Dicom信息编辑框 handleEditNoneDicomInfo(row) { - const { CodeView, Id, BodyPart, Modality, ImageDate } = { ...row } + const { CodeView, Id, BodyPart, Modality, ImageDate, StudyName } = { + ...row, + } + this.noneDicomForm.StudyName = StudyName this.noneDicomForm.CodeView = CodeView this.noneDicomForm.Id = Id this.noneDicomForm.BodyPart = BodyPart @@ -2375,6 +2447,13 @@ export default { }, // 预览文件 previewFile(row) { + if (!!~row.FileType.indexOf('pdf')) { + return this.$preview({ + path: row.Path || row.fullPath, + type: 'pdf', + title: row.FileName, + }) + } // window.open(row.FullFilePath, '_blank') // this.imgObj.url = row.FullFilePath // this.imgObj.loading = true