根据不同的阅片标准打包下载文件
continuous-integration/drone/push Build is passing Details

uat_us
DESKTOP-6C3NK6N\WXS 2024-09-19 10:20:19 +08:00
parent d0281abfee
commit d7b11c02e5
1 changed files with 27 additions and 2 deletions

View File

@ -214,6 +214,7 @@ export default {
IsDicom: true, IsDicom: true,
open: null, open: null,
downloadId: null, downloadId: null,
IsReadingTaskViewInOrder: 0, //
bodyPart: [], bodyPart: [],
} }
}, },
@ -325,7 +326,8 @@ export default {
let res = await getIRReadingDownloadStudyInfo(data) let res = await getIRReadingDownloadStudyInfo(data)
this.btnLoading = false this.btnLoading = false
if (res.IsSuccess) { if (res.IsSuccess) {
this.downloadId = res.OtherInfo this.downloadId = res.OtherInfo.PreDownloadId
this.IsReadingTaskViewInOrder = res.OtherInfo.IsReadingTaskViewInOrder
this.downloadImage(res.Result) this.downloadImage(res.Result)
} }
} catch (err) { } catch (err) {
@ -349,6 +351,12 @@ export default {
formatDownloadFile(list) { formatDownloadFile(list) {
let files = [], let files = [],
name = `${list[0].SubjectCode}_${new Date().getTime()}.zip` name = `${list[0].SubjectCode}_${new Date().getTime()}.zip`
if (this.IsReadingTaskViewInOrder === 1) {
name = `${list[0].SubjectCode}_${list[0].TaskBlindName}.zip`
}
if (this.IsReadingTaskViewInOrder === 0) {
name = `${list[0].TaskBlindName}.zip`
}
list.forEach((data) => { list.forEach((data) => {
if (data.StudyList && data.StudyList.length > 0) { if (data.StudyList && data.StudyList.length > 0) {
let StudyList = data.StudyList let StudyList = data.StudyList
@ -366,6 +374,15 @@ export default {
}/${fileName}`, }/${fileName}`,
url: this.OSSclientConfig.basePath + instance.Path, url: this.OSSclientConfig.basePath + instance.Path,
} }
if (this.IsReadingTaskViewInOrder === 0) {
obj = {
name: `${data.TaskBlindName}/${this.$fd(
'IsDicom',
true
)}/${fileName}`,
url: this.OSSclientConfig.basePath + instance.Path,
}
}
files.push(obj) files.push(obj)
}) })
} }
@ -386,13 +403,21 @@ export default {
)}/${study.StudyCode}/${item.FileName}`, )}/${study.StudyCode}/${item.FileName}`,
url: this.OSSclientConfig.basePath + item.Path, url: this.OSSclientConfig.basePath + item.Path,
} }
if (this.IsReadingTaskViewInOrder === 0) {
obj = {
name: `${data.TaskBlindName}/${this.$fd(
'IsDicom',
false
)}/${item.FileName}`,
url: this.OSSclientConfig.basePath + item.Path,
}
}
files.push(obj) files.push(obj)
}) })
} }
}) })
} }
}) })
return { files, name } return { files, name }
}, },
// //