From 1a69bd90033a78ca24bdee9e03956f90d77a1162 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Fri, 19 Jul 2024 10:11:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9Edicom=E9=98=85=E7=89=87=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=B7=B3=E8=BF=87=E5=8F=8A=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trials-panel/reading/ad-review/index.vue | 11 +- .../trials-panel/reading/dicoms/index.vue | 9 +- .../reading/global-review/index.vue | 8 +- .../reading/none-dicoms/components/AdEcrf.vue | 237 -------- .../none-dicoms/components/AdReview.vue | 543 ------------------ .../reading/none-dicoms/components/ECRF.vue | 234 ++++---- .../none-dicoms/components/EditGlobalForm.vue | 155 ----- .../none-dicoms/components/FormItem.vue | 34 +- .../none-dicoms/components/GlobalReview.vue | 324 ----------- .../none-dicoms/components/OncologyReview.vue | 427 -------------- .../none-dicoms/components/VisitReview.vue | 27 +- .../reading/none-dicoms/index.vue | 25 +- .../reading/oncology-review/index.vue | 12 +- 13 files changed, 197 insertions(+), 1849 deletions(-) delete mode 100644 src/views/trials/trials-panel/reading/none-dicoms/components/AdEcrf.vue delete mode 100644 src/views/trials/trials-panel/reading/none-dicoms/components/AdReview.vue delete mode 100644 src/views/trials/trials-panel/reading/none-dicoms/components/EditGlobalForm.vue delete mode 100644 src/views/trials/trials-panel/reading/none-dicoms/components/GlobalReview.vue delete mode 100644 src/views/trials/trials-panel/reading/none-dicoms/components/OncologyReview.vue diff --git a/src/views/trials/trials-panel/reading/ad-review/index.vue b/src/views/trials/trials-panel/reading/ad-review/index.vue index 593bef07..acd730ee 100644 --- a/src/views/trials/trials-panel/reading/ad-review/index.vue +++ b/src/views/trials/trials-panel/reading/ad-review/index.vue @@ -317,7 +317,7 @@ import const_ from '@/const/sign-code' import { getToken } from '@/utils/auth' import SignForm from '@/views/trials/components/newSignForm' import DicomEvent from '@/views/trials/trials-panel/reading/dicoms/components/DicomEvent' -import store from '@/store' +// import store from '@/store' import { changeURLStatic } from '@/utils/history.js' import Viewer from 'v-viewer' export default { @@ -566,8 +566,8 @@ export default { const res = await getAutoCutNextTask() var isAutoTask = res.Result.AutoCutNextTask if (isAutoTask) { - store.dispatch('reading/resetVisitTasks') - DicomEvent.$emit('getNextTask') + // store.dispatch('reading/resetVisitTasks') + window.location.reload() } else { // '当前阅片任务已完成,是否进入下一个阅片任务?' const confirm = await this.$confirm( @@ -578,8 +578,9 @@ export default { } ) if (confirm === 'confirm') { - store.dispatch('reading/resetVisitTasks') - DicomEvent.$emit('getNextTask') + // store.dispatch('reading/resetVisitTasks') + // DicomEvent.$emit('getNextTask') + window.location.reload() } else { changeURLStatic('visitTaskId', this.visitTaskId) } diff --git a/src/views/trials/trials-panel/reading/dicoms/index.vue b/src/views/trials/trials-panel/reading/dicoms/index.vue index 1c4cd72c..e353be3f 100644 --- a/src/views/trials/trials-panel/reading/dicoms/index.vue +++ b/src/views/trials/trials-panel/reading/dicoms/index.vue @@ -475,14 +475,17 @@ export default { }) }) }, - handleConfirmCD() { + async handleConfirmCD() { this.loading = true var visitTaskId = this.visitTaskId - readClinicalData({ visitTaskId }).then(res => { + try { + await readClinicalData({ visitTaskId }) this.loading = false this.dialogVisible = false this.isReadClinicalData = true - }).catch(() => { this.loading = false }) + } catch (e) { + this.loading = false + } }, previewCD() { this.closeCDVisible = true diff --git a/src/views/trials/trials-panel/reading/global-review/index.vue b/src/views/trials/trials-panel/reading/global-review/index.vue index cbee1109..96f8c387 100644 --- a/src/views/trials/trials-panel/reading/global-review/index.vue +++ b/src/views/trials/trials-panel/reading/global-review/index.vue @@ -408,7 +408,8 @@ export default { const res = await getAutoCutNextTask() var isAutoTask = res.Result.AutoCutNextTask if (isAutoTask) { - DicomEvent.$emit('getNextTask') + // DicomEvent.$emit('getNextTask') + window.location.reload() } else { // 当前阅片任务已完成,是否进入下一个阅片任务 const confirm = await this.$confirm( @@ -419,8 +420,9 @@ export default { } ) if (confirm === 'confirm') { - store.dispatch('reading/resetVisitTasks') - DicomEvent.$emit('getNextTask') + // store.dispatch('reading/resetVisitTasks') + // DicomEvent.$emit('getNextTask') + window.location.reload() } else { changeURLStatic('visitTaskId', this.visitTaskId) } diff --git a/src/views/trials/trials-panel/reading/none-dicoms/components/AdEcrf.vue b/src/views/trials/trials-panel/reading/none-dicoms/components/AdEcrf.vue deleted file mode 100644 index 7e92e86f..00000000 --- a/src/views/trials/trials-panel/reading/none-dicoms/components/AdEcrf.vue +++ /dev/null @@ -1,237 +0,0 @@ - - - - diff --git a/src/views/trials/trials-panel/reading/none-dicoms/components/AdReview.vue b/src/views/trials/trials-panel/reading/none-dicoms/components/AdReview.vue deleted file mode 100644 index 72f97ffb..00000000 --- a/src/views/trials/trials-panel/reading/none-dicoms/components/AdReview.vue +++ /dev/null @@ -1,543 +0,0 @@ - - - diff --git a/src/views/trials/trials-panel/reading/none-dicoms/components/ECRF.vue b/src/views/trials/trials-panel/reading/none-dicoms/components/ECRF.vue index 07e56751..95a11518 100644 --- a/src/views/trials/trials-panel/reading/none-dicoms/components/ECRF.vue +++ b/src/views/trials/trials-panel/reading/none-dicoms/components/ECRF.vue @@ -77,8 +77,15 @@
- {{ $t('common:button:save') }} - {{ $t('common:button:submit') }} + + {{ $t('trials:readingReport:button:skip') }} + + + {{ $t('common:button:save') }} + + + {{ $t('common:button:submit') }} +
@@ -104,11 +111,12 @@ diff --git a/src/views/trials/trials-panel/reading/none-dicoms/components/FormItem.vue b/src/views/trials/trials-panel/reading/none-dicoms/components/FormItem.vue index 32fbab6f..bc9b032e 100644 --- a/src/views/trials/trials-panel/reading/none-dicoms/components/FormItem.vue +++ b/src/views/trials/trials-panel/reading/none-dicoms/components/FormItem.vue @@ -39,27 +39,27 @@ :disabled="readingTaskState >= 2" /> - - - - - - - - - - - - - - + + + + + + + + + + + + + + - diff --git a/src/views/trials/trials-panel/reading/none-dicoms/components/OncologyReview.vue b/src/views/trials/trials-panel/reading/none-dicoms/components/OncologyReview.vue deleted file mode 100644 index 7e9e5420..00000000 --- a/src/views/trials/trials-panel/reading/none-dicoms/components/OncologyReview.vue +++ /dev/null @@ -1,427 +0,0 @@ - - - diff --git a/src/views/trials/trials-panel/reading/none-dicoms/components/VisitReview.vue b/src/views/trials/trials-panel/reading/none-dicoms/components/VisitReview.vue index 21282d84..d6c92fc4 100644 --- a/src/views/trials/trials-panel/reading/none-dicoms/components/VisitReview.vue +++ b/src/views/trials/trials-panel/reading/none-dicoms/components/VisitReview.vue @@ -2,7 +2,7 @@
- {{$t('trials:auditRecord:table:subject')}}:{{ otherInfo.SubjectCode }} + {{ $t('trials:auditRecord:table:subject') }}:{{ otherInfo.SubjectCode }} ({{ otherInfo.TaskBlindName }})
@@ -41,7 +41,7 @@
- {{$t('trials:audit:message:noData')}} + {{ $t('trials:audit:message:noData') }}
- - {{ $t('trials:crcUpload:label:clinicalData') }} - +
+ + {{ $t('trials:crcUpload:label:clinicalData') }} + +
-1) { @@ -281,7 +282,7 @@ export default { } var arr = bodyPart.split(separator) var newArr = arr.map(i => { - return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:this.bp},'Name') + return this.$fd('Bodypart', i.trim(), 'Code', { Bodypart: this.bp }, 'Name') }) return newArr.join(' | ') } diff --git a/src/views/trials/trials-panel/reading/none-dicoms/index.vue b/src/views/trials/trials-panel/reading/none-dicoms/index.vue index 442dc086..dfc43b00 100644 --- a/src/views/trials/trials-panel/reading/none-dicoms/index.vue +++ b/src/views/trials/trials-panel/reading/none-dicoms/index.vue @@ -70,7 +70,7 @@
- {{$t("common:button:confirm")}} + {{ $t("common:button:confirm") }} @@ -87,7 +87,7 @@ import VisitReview from './components/VisitReview' import GlobalReview from '@/views/trials/trials-panel/reading/global-review' import AdReview from '@/views/trials/trials-panel/reading/ad-review' import ClinicalData from '@/views/trials/trials-panel/reading/clinical-data' -import { getToken } from '@/utils/auth' +// import { getToken } from '@/utils/auth' import OncologyReview from '@/views/trials/trials-panel/reading/oncology-review' export default { name: 'NoneDicomReading', @@ -136,7 +136,7 @@ export default { this.readingTool = this.$router.currentRoute.query.readingTool this.isNewSubject = this.$router.currentRoute.query.isNewSubject if (this.isNewSubject && this.isReadingTaskViewInOrder) { - let message = this.$t('trials:reading:noneDicom:message:startRead').replace("xxx",this.subjectCode); + const message = this.$t('trials:reading:noneDicom:message:startRead').replace('xxx', this.subjectCode) this.$message.success(message) changeURLStatic('isNewSubject', '') } @@ -164,11 +164,11 @@ export default { this.isShow = false getNextTask(param).then(res => { this.readingCategory = res.Result.ReadingCategory - if (this.subjectId !== res.Result.SubjectId && this.isReadingTaskViewInOrder) { - store.dispatch('reading/resetVisitTasks') - var token = getToken() - window.location.href = `/noneDicomReading?trialId=${this.trialId}&subjectCode=${res.Result.SubjectCode}&subjectId=${res.Result.SubjectId}&isReadingShowPreviousResults=${this.isReadingShowPreviousResults}&isReadingShowSubjectInfo=${this.isReadingShowSubjectInfo}&criterionType=${this.criterionType}&readingTool=${this.readingTool}&isNewSubject=1&isReadingTaskViewInOrder=${res.Result.IsReadingTaskViewInOrder}&TokenKey=${token}` - } + // if (this.subjectId !== res.Result.SubjectId && this.isReadingTaskViewInOrder) { + // store.dispatch('reading/resetVisitTasks') + // var token = getToken() + // window.location.href = `/noneDicomReading?trialId=${this.trialId}&subjectCode=${res.Result.SubjectCode}&subjectId=${res.Result.SubjectId}&isReadingShowPreviousResults=${this.isReadingShowPreviousResults}&isReadingShowSubjectInfo=${this.isReadingShowSubjectInfo}&criterionType=${this.criterionType}&readingTool=${this.readingTool}&isNewSubject=1&isReadingTaskViewInOrder=${res.Result.IsReadingTaskViewInOrder}&TokenKey=${token}` + // } this.subjectId = res.Result.SubjectId this.visitTaskId = res.Result.VisitTaskId this.subjectCode = res.Result.SubjectCode @@ -190,14 +190,17 @@ export default { this.loading = false }).catch(() => { this.loading = false }) }, - handleConfirmCD() { + async handleConfirmCD() { this.loading = true var visitTaskId = this.visitTaskId - readClinicalData({ visitTaskId }).then(res => { + try { + await readClinicalData({ visitTaskId }) this.loading = false this.dialogVisible = false this.isReadClinicalData = true - }).catch(() => { this.loading = false }) + } catch (e) { + this.loading = false + } } } } 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 940dc5a2..07cf129b 100644 --- a/src/views/trials/trials-panel/reading/oncology-review/index.vue +++ b/src/views/trials/trials-panel/reading/oncology-review/index.vue @@ -265,7 +265,7 @@ import { setSkipReadingCache } from '@/api/reading' import { getAutoCutNextTask } from '@/api/user' import const_ from '@/const/sign-code' import { getToken } from '@/utils/auth' -import store from '@/store' +// import store from '@/store' import { changeURLStatic } from '@/utils/history.js' import DicomEvent from '@/views/trials/trials-panel/reading/dicoms/components/DicomEvent' import SignForm from '@/views/trials/components/newSignForm' @@ -498,8 +498,9 @@ export default { const res = await getAutoCutNextTask() var isAutoTask = res.Result.AutoCutNextTask if (isAutoTask) { - store.dispatch('reading/resetVisitTasks') - DicomEvent.$emit('getNextTask') + // store.dispatch('reading/resetVisitTasks') + // DicomEvent.$emit('getNextTask') + window.location.reload() } else { // '当前阅片任务已完成,是否进入下一个阅片任务?' const confirm = await this.$confirm( @@ -510,8 +511,9 @@ export default { } ) if (confirm === 'confirm') { - store.dispatch('reading/resetVisitTasks') - DicomEvent.$emit('getNextTask') + // store.dispatch('reading/resetVisitTasks') + // DicomEvent.$emit('getNextTask') + window.location.reload() } else { changeURLStatic('visitTaskId', this.visitTaskId) }