提交
This commit is contained in:
1 parent
09afdb1d65
commit
afd517ce10
215 files changed
+32936
-23862
No files matched your search
@@ -131,6 +131,22 @@
|
||||
<div class="data-value data-value--muted">{{ dash(applicationDetail.remark) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="consentAttachmentFiles.length" class="attachment-row">
|
||||
<div class="data-label">知情同意书</div>
|
||||
<ProtocolAttachmentReadonly
|
||||
:files="consentAttachmentFiles"
|
||||
@preview="openPreview"
|
||||
@download="downloadFile"
|
||||
/>
|
||||
</div>
|
||||
<div v-if="otherAttachmentFiles.length" class="attachment-row">
|
||||
<div class="data-label">其他附件</div>
|
||||
<ProtocolAttachmentReadonly
|
||||
:files="otherAttachmentFiles"
|
||||
@preview="openPreview"
|
||||
@download="downloadFile"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 患者信息 -->
|
||||
@@ -911,6 +927,30 @@
|
||||
})
|
||||
})
|
||||
|
||||
const consentAttachmentFiles = computed(() => {
|
||||
const files = applicationDetail.value?.consentAttachmentFiles
|
||||
if (Array.isArray(files) && files.length) return files
|
||||
const str = String(applicationDetail.value?.consentFormUrls || '').trim()
|
||||
if (!str) return []
|
||||
return str.split(',').filter(Boolean).map((url: string, idx: number) => {
|
||||
const parts = url.split('/')
|
||||
const name = decodeURIComponent(parts[parts.length - 1] || '附件')
|
||||
return { id: `consent_${idx}`, fileName: name, fileUrl: url }
|
||||
})
|
||||
})
|
||||
|
||||
const otherAttachmentFiles = computed(() => {
|
||||
const files = applicationDetail.value?.attachmentFiles
|
||||
if (Array.isArray(files) && files.length) return files
|
||||
const str = String(applicationDetail.value?.attachmentUrls || '').trim()
|
||||
if (!str) return []
|
||||
return str.split(',').filter(Boolean).map((url: string, idx: number) => {
|
||||
const parts = url.split('/')
|
||||
const name = decodeURIComponent(parts[parts.length - 1] || '附件')
|
||||
return { id: `other_${idx}`, fileName: name, fileUrl: url }
|
||||
})
|
||||
})
|
||||
|
||||
const checkupReportFiles = computed(() => {
|
||||
const urls = (checkupData.value?.reportAttachments || '').split(',').filter(Boolean)
|
||||
return urls.map((url: string, idx: number) => {
|
||||
|
||||
Reference in new issue
Block a user