From 6d0b3928ee1d2b8ff2ab453c057dafbca97071a0 Mon Sep 17 00:00:00 2001
From: wangxiaoshuang <825034831@qq.com>
Date: Thu, 4 Sep 2025 13:49:10 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E9=98=85=E5=88=97=E8=A1=A8=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E5=8F=8C=E5=B1=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../trials-panel/reading/read-task/index.vue | 471 +++++-------------
1 file changed, 132 insertions(+), 339 deletions(-)
diff --git a/src/views/trials/trials-panel/reading/read-task/index.vue b/src/views/trials/trials-panel/reading/read-task/index.vue
index cc5d317..fe25296 100644
--- a/src/views/trials/trials-panel/reading/read-task/index.vue
+++ b/src/views/trials/trials-panel/reading/read-task/index.vue
@@ -1,15 +1,8 @@
-
+
-
+
@@ -31,57 +24,24 @@
-->
-
+
-
+
-
-
+
+
-
-
+
+
-
-
-
+
+
+
@@ -104,65 +64,35 @@
-->
-
+ :end-placeholder="$t('trials:uploadClinicalData:table:endDate')" clearable
+ :default-time="['00:00:00', '23:59:59']">
-
+
{{ $t('common:button:search') }}
-
+
{{ $t('common:button:reset') }}
-
+
-
+
-
+
-
+
{{
index === scope.row.PatientList.length - 1
? item.PatientIdStr
@@ -172,37 +102,18 @@
-
+
-
+
-
+
-
+
{{
$fd('TaskState', scope.row.TaskState)
@@ -245,13 +156,8 @@
-->
-
+
-
+
-
+
-
+
-
+ :disabled="scope.row.ReadingTaskState !== 2" />
-
+ :disabled="scope.row.ReadingTaskState !== 2" />
-
+ " />
-
+
-
-
+
+
{{
$t('trials:readTask:title:applyReason')
}}
-
+
{{
@@ -422,36 +278,19 @@
-
-
+
+
-
+
- {{ item.label }}
+ {{
+ item.label }}
@@ -459,42 +298,22 @@
{{
$t('trials:readTask:title:influenceList')
}}
-
-
+ ">
+
-
+
-
+
-
+
-
+
-
+
-
+
{{
$fd('TaskState', scope.row.TaskState)
@@ -567,12 +374,8 @@
-->
-
+
{{
$fd('ReadingTaskState', scope.row.ReadingTaskState)
@@ -583,12 +386,8 @@
-
+
{{
$fd('ReReadingOrBackOptType', scope.row.OptType)
@@ -602,12 +401,8 @@
-
+
{{ scope.row.DoctorUser.UserName }}({{
scope.row.DoctorUser.FullName
@@ -618,42 +413,23 @@
-
-
+
+
@@ -671,10 +447,12 @@ import ChatForm from './components/ChatForm'
import { getToken } from '@/utils/auth'
import { showReadReport, showTumorReport } from '@/api/export'
import { downLoadFile } from '@/utils/stream.js'
+import { getAutoCutNextTask } from '@/api/user'
import {
getDownloadSubjectVisitStudyInfo,
downloadImageSuccess,
} from '@/api/trials.js'
+import { openWindow } from "@/utils/splitScreen";
const searchDataDefault = () => {
return {
SubjectCode: '',
@@ -780,9 +558,9 @@ export default {
this.reportFlag[item.Id] = true
}
let res = null;
- if(key === 'evaluate'){
+ if (key === 'evaluate') {
res = await showReadReport(data);
- }else{
+ } else {
res = await showTumorReport(data);
}
if (res.IsSuccess) {
@@ -852,11 +630,9 @@ export default {
series.InstanceList.forEach((instance) => {
let fileName = instance.Path.split('/').pop()
let obj = {
- name: `${data.SubjectCode}_${data.VisitName}/${
- study.StudyCode
- }_${study.StudyTime.split(' ')[0]}_${
- series.Modality
- }/${fileName}`,
+ name: `${data.SubjectCode}_${data.VisitName}/${study.StudyCode
+ }_${study.StudyTime.split(' ')[0]}_${series.Modality
+ }/${fileName}`,
url: this.OSSclientConfig.basePath + instance.Path,
}
files.push(obj)
@@ -887,7 +663,7 @@ export default {
this.TrialReadingCriterionId =
this.trialCriterionList[0].TrialReadingCriterionId
})
- .catch(() => {})
+ .catch(() => { })
},
// 重阅历史
reReadingHistory(row) {
@@ -929,7 +705,7 @@ export default {
this.dateValue = []
this.getList()
},
- handleReadImage(row) {
+ async handleReadImage(row) {
if (this.openWindow) {
this.openWindow.close()
}
@@ -950,7 +726,24 @@ export default {
path = `/noneDicomReading?TrialReadingCriterionId=${row.TrialReadingCriterionId}&trialId=${this.trialId}&subjectCode=${row.SubjectCode}&subjectId=${row.SubjectId}&visitTaskId=${row.Id}&isReadingTaskViewInOrder=${row.IsReadingTaskViewInOrder}&criterionType=${row.CriterionType}&readingTool=${row.ReadingTool}&TokenKey=${token}`
}
var routeData = this.$router.resolve({ path })
- this.openWindow = window.open(routeData.href, '_blank')
+ const res = await getAutoCutNextTask()
+ let IsDoubleScreen = false
+ if (res.IsSuccess) {
+ IsDoubleScreen = res.Result.IsDoubleScreen
+ }
+ if (IsDoubleScreen) {
+ this.openWindow = await openWindow(routeData.href)
+ if (!this.openWindow) {
+ let html = `
`
+ let confirm = await this.$confirm(html, '', { dangerouslyUseHTMLString: true })
+ if (!confirm) return false
+ this.openWindow = await openWindow(routeData.href, '', true)
+ }
+ } else {
+ this.openWindow = window.open(routeData.href, "_blank");
+ }
},
async openApplyReReading(row) {
try {