Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
commit
60d3b25041
|
@ -661,17 +661,23 @@ export default {
|
||||||
return this.$message.warning(
|
return this.$message.warning(
|
||||||
this.$t('trials:uploadDicomList:message:maxFileSize')
|
this.$t('trials:uploadDicomList:message:maxFileSize')
|
||||||
)
|
)
|
||||||
let StudyInstanceUidList = []
|
let StudyInstanceUidList = [],
|
||||||
|
confirmMessage = null
|
||||||
for (let i = 0; i < checkFiles.length; i++) {
|
for (let i = 0; i < checkFiles.length; i++) {
|
||||||
let item = checkFiles[i]
|
let item = checkFiles[i]
|
||||||
var dicom = await parseDicom(item, 'StudyInstanceUid')
|
var dicom = await parseDicom(item, 'StudyInstanceUid')
|
||||||
let has = true,
|
let has = true,
|
||||||
has2 = false,
|
has2 = false,
|
||||||
has3 = false
|
has3 = false
|
||||||
|
|
||||||
if (!this.VisitTaskId) {
|
if (!this.VisitTaskId) {
|
||||||
has = this.StudyInstanceUidList.some(
|
has = this.StudyInstanceUidList.some(
|
||||||
(item) => item.StudyInstanceUid === dicom.StudyInstanceUid
|
(item) => item.StudyInstanceUid === dicom.StudyInstanceUid
|
||||||
)
|
)
|
||||||
|
if (!has)
|
||||||
|
confirmMessage = this.$t(
|
||||||
|
'upload:dicom:confirmMessage:hasNotStudyUid'
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
has2 = this.StudyInstanceUidList.some((item) => {
|
has2 = this.StudyInstanceUidList.some((item) => {
|
||||||
return (
|
return (
|
||||||
|
@ -685,6 +691,10 @@ export default {
|
||||||
item.VisitTaskId !== this.VisitTaskId
|
item.VisitTaskId !== this.VisitTaskId
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
if (has2 || has3)
|
||||||
|
confirmMessage = this.$t(
|
||||||
|
'upload:dicom:confirmMessage:visitTaskIdNormal'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!has || has2 || has3) {
|
if (!has || has2 || has3) {
|
||||||
|
@ -714,11 +724,14 @@ export default {
|
||||||
this.hasOtherStudy = true
|
this.hasOtherStudy = true
|
||||||
checkFiles.splice(i, 1)
|
checkFiles.splice(i, 1)
|
||||||
i--
|
i--
|
||||||
|
confirmMessage = this.$t(
|
||||||
|
'upload:dicom:confirmMessage:uploadOtherSubject'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.hasOtherStudy) {
|
if (this.hasOtherStudy) {
|
||||||
this.$confirm(this.$t('upload:dicom:confirmMessage:hasNotStudyUid'), {
|
this.$confirm(confirmMessage, {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
distinguishCancelAndClose: true,
|
distinguishCancelAndClose: true,
|
||||||
confirmButtonText: this.$t('common:button:confirm'),
|
confirmButtonText: this.$t('common:button:confirm'),
|
||||||
|
|
Loading…
Reference in New Issue