This commit is contained in:
zlwu committed 2026-07-01 16:37:33 +08:00
1 parent 28f233c922
commit 038a60b09e
478 files changed
+67530 -51951

No files matched your search

@@ -149,7 +149,11 @@
<div v-if="bizConfig.showConsent" class="form-col-full">
<div class="section-subtitle" style="margin-bottom: 12px">知情同意书</div>
<div class="attachment-upload">
<div
class="attachment-upload"
:class="{ 'is-dragover': isConsentAttachDragover }"
v-bind="consentAttachDropHandlers"
>
<div class="attachment-list">
<el-upload
ref="consentUploadRef"
@@ -205,13 +209,20 @@
</div>
</div>
</div>
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等常见文件格式,可稍后补充</span>
<span class="upload-hint"
>支持拖拽或点击上传图片、视频、PDF、Word、Excel 等常见文件格式,可稍后补充,单文件不超过
20MB</span
>
</div>
</div>
<div v-if="bizConfig.showOtherAttachments" class="form-col-full">
<div class="section-subtitle" style="margin-top: 8px; margin-bottom: 12px">附件</div>
<div class="attachment-upload">
<div
class="attachment-upload"
:class="{ 'is-dragover': isOtherAttachDragover }"
v-bind="otherAttachDropHandlers"
>
<div class="attachment-list">
<el-upload
ref="otherUploadRef"
@@ -267,7 +278,9 @@
</div>
</div>
</div>
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等常见文件格式</span>
<span class="upload-hint"
>支持拖拽或点击上传图片、视频、PDF、Word、Excel 等常见文件格式,单文件不超过 20MB</span
>
</div>
</div>
@@ -277,7 +290,11 @@
class="form-grid form-grid--attachment"
>
<el-form-item label="标准附件">
<div class="attachment-upload">
<div
class="attachment-upload"
:class="{ 'is-dragover': isStandardAttachDragover }"
v-bind="standardAttachDropHandlers"
>
<div class="attachment-list">
<el-upload
ref="standardUploadRef"
@@ -325,7 +342,9 @@
</div>
</div>
</div>
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等常见文件格式</span>
<span class="upload-hint"
>支持拖拽或点击上传图片、视频、PDF、Word、Excel 等常见文件格式,单文件不超过 20MB</span
>
</div>
</el-form-item>
</div>
@@ -426,7 +445,11 @@
/>
</el-form-item>
<el-form-item label="诊断附件" class="form-col-span-2">
<div class="attachment-upload">
<div
class="attachment-upload"
:class="{ 'is-dragover': isDiagnosisAttachDragover }"
v-bind="diagnosisAttachDropHandlers"
>
<div class="attachment-list">
<el-upload
ref="diagnosisUploadRef"
@@ -482,7 +505,9 @@
</div>
</div>
</div>
<span class="upload-hint">支持图片、视频、PDF、Word、Excel等文件</span>
<span class="upload-hint"
>支持拖拽或点击上传图片、视频、PDF、Word、Excel等文件,单文件不超过 20MB</span
>
</div>
</el-form-item>
</div>
@@ -1016,6 +1041,7 @@
:sections="serviceOrderViewSections"
:loading="serviceOrderViewLoading"
width="960px"
:grid-columns="4"
append-to-body
>
<template v-if="serviceOrderViewData.orderType === 'gmcp'" #order-products>
@@ -1092,6 +1118,7 @@
:sections="agreementViewSections"
:loading="agreementViewLoading"
width="960px"
:grid-columns="4"
append-to-body
>
<template #agreement-prices>
@@ -1173,6 +1200,7 @@
fetchCreateCustomer
} from '@/api/admin'
import { fetchUploadAttachment } from '@/api/business'
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
import { fetchAllPagedRecords } from '@/utils/fetch-paged-list'
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
import SystemViewDialog, {
@@ -2250,6 +2278,42 @@
diagnosisFileList.value.splice(idx, 1)
}
const { isDragover: isConsentAttachDragover, dropZoneHandlers: consentAttachDropHandlers } =
useAttachmentDropZone({
onFiles: (files) => {
for (const file of files) {
void handleConsentFileChange({ raw: file })
}
}
})
const { isDragover: isOtherAttachDragover, dropZoneHandlers: otherAttachDropHandlers } =
useAttachmentDropZone({
onFiles: (files) => {
for (const file of files) {
void handleOtherFileChange({ raw: file })
}
}
})
const { isDragover: isStandardAttachDragover, dropZoneHandlers: standardAttachDropHandlers } =
useAttachmentDropZone({
onFiles: (files) => {
for (const file of files) {
void handleOtherFileChange({ raw: file })
}
}
})
const { isDragover: isDiagnosisAttachDragover, dropZoneHandlers: diagnosisAttachDropHandlers } =
useAttachmentDropZone({
onFiles: (files) => {
for (const file of files) {
void handleDiagnosisFileChange({ raw: file })
}
}
})
const downloadFile = (file: any) => {
const link = document.createElement('a')
link.href = fullFileUrl(file.fileUrl || file.url)