From f5bfa06e0bbec3724f7a6e58e3377949456930b0 Mon Sep 17 00:00:00 2001
From: tangjie <122778500@qq.com>
Date: Wed, 15 Jul 2026 16:35:04 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=8A=A4bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../EnterpriseInfo/PersonnelInfo/Certificate/index.js | 2 +-
.../EnterpriseInfo/PersonnelInfo/List/index.js | 2 +-
.../EnterpriseInfo/QualificationCert/index.js | 2 +-
.../FilingForm/components/CommitmentStep.jsx | 2 +-
.../FilingForm/components/FilingUpload.jsx | 11 +++++++++--
.../FilingForm/components/MaterialStep.jsx | 2 +-
src/pages/Container/Supervision/ExperManage/index.js | 2 +-
7 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/src/pages/Container/EnterpriseInfo/PersonnelInfo/Certificate/index.js b/src/pages/Container/EnterpriseInfo/PersonnelInfo/Certificate/index.js
index 1706c3b..9864db7 100644
--- a/src/pages/Container/EnterpriseInfo/PersonnelInfo/Certificate/index.js
+++ b/src/pages/Container/EnterpriseInfo/PersonnelInfo/Certificate/index.js
@@ -375,7 +375,7 @@ function CertModal({
-
diff --git a/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js b/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js
index 31b5813..fb07ff3 100644
--- a/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js
+++ b/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js
@@ -742,7 +742,7 @@ function StaffFormModal({
name="proofMaterialUrl"
label="申报专业能力证明材料"
extra={'最多上传5个pdf,doc,docx,图片格式文件'}
- accept={'.pdf,.doc,.docx,image/*'}
+ accept={'.pdf,.doc,.docx,.png,.jpg,.jpeg,.bmp,.webp'}
maxCount={5}
/>
diff --git a/src/pages/Container/EnterpriseInfo/QualificationCert/index.js b/src/pages/Container/EnterpriseInfo/QualificationCert/index.js
index d8fd629..b5378ea 100644
--- a/src/pages/Container/EnterpriseInfo/QualificationCert/index.js
+++ b/src/pages/Container/EnterpriseInfo/QualificationCert/index.js
@@ -405,7 +405,7 @@ function CertFormModal({
-
+
);
diff --git a/src/pages/Container/QualApplication/FilingForm/components/CommitmentStep.jsx b/src/pages/Container/QualApplication/FilingForm/components/CommitmentStep.jsx
index 7f74fe6..5d9ba18 100644
--- a/src/pages/Container/QualApplication/FilingForm/components/CommitmentStep.jsx
+++ b/src/pages/Container/QualApplication/FilingForm/components/CommitmentStep.jsx
@@ -126,7 +126,7 @@ export default function CommitmentStep({
label="电子签名"
disabled={disabled}
maxCount={1}
- accept="image/*"
+ accept=".png,.jpg,.jpeg,.bmp,.webp"
/>
diff --git a/src/pages/Container/QualApplication/FilingForm/components/FilingUpload.jsx b/src/pages/Container/QualApplication/FilingForm/components/FilingUpload.jsx
index e10325d..7f9e540 100644
--- a/src/pages/Container/QualApplication/FilingForm/components/FilingUpload.jsx
+++ b/src/pages/Container/QualApplication/FilingForm/components/FilingUpload.jsx
@@ -1,4 +1,4 @@
-import { Upload, Button } from "antd";
+import { Upload, Button, message } from "antd";
import { UploadOutlined } from "@ant-design/icons";
import { parseUploadFileList, resolveUploadFileId } from "~/utils/mockUpload";
@@ -18,7 +18,14 @@ export default function FilingUpload({
action={`${window.process.env.app.API_HOST}/safetyEval/file/upload`}
disabled={disabled}
fileList={fileList}
-
+ beforeUpload={(file) => {
+ const ext = "." + file.name.split(".").pop().toLowerCase();
+ if (ext === ".gif") {
+ message.error("不支持 GIF 格式图片上传");
+ return Upload.LIST_IGNORE;
+ }
+ return true;
+ }}
onChange={(info) => {
if (disabled) return;
onChange?.(info.fileList);
diff --git a/src/pages/Container/QualApplication/FilingForm/components/MaterialStep.jsx b/src/pages/Container/QualApplication/FilingForm/components/MaterialStep.jsx
index 8e2befc..69d1089 100644
--- a/src/pages/Container/QualApplication/FilingForm/components/MaterialStep.jsx
+++ b/src/pages/Container/QualApplication/FilingForm/components/MaterialStep.jsx
@@ -62,7 +62,7 @@ export default function MaterialStep({
{!disabled && (
onUpload?.(record, data)}
- uploadProps={{ accept: ".pdf,.doc,.docx,.xls,.xlsx,.png,.jpg,.jpeg,.gif,.bmp,.webp" }}
+ uploadProps={{ accept: ".pdf,.doc,.docx,.xls,.xlsx,.png,.jpg,.jpeg,.bmp,.webp" }}
>
{record.attachmentUrl ? "重新上传" : "上传"}
diff --git a/src/pages/Container/Supervision/ExperManage/index.js b/src/pages/Container/Supervision/ExperManage/index.js
index bb2ae81..5754385 100644
--- a/src/pages/Container/Supervision/ExperManage/index.js
+++ b/src/pages/Container/Supervision/ExperManage/index.js
@@ -353,7 +353,7 @@ const ExperManage = (props) => {
name="certificate"
label="证书"
maxCount={10}
- accept="image/*,.pdf"
+ accept=".png,.jpg,.jpeg,.bmp,.webp,.pdf"
extra="支持上传图片和PDF文件,最多10个"
/>