From 68182377e01ca8e14c4f7251fca88a58018fcce7 Mon Sep 17 00:00:00 2001 From: tangjie <122778500@qq.com> Date: Fri, 10 Jul 2026 14:38:17 +0800 Subject: [PATCH] fix --- .../PersonnelInfo/List/index.js | 4 +-- .../FilingForm/components/BasicInfoStep.jsx | 36 +++---------------- .../FilingForm/components/PersonnelStep.jsx | 8 +++-- 3 files changed, 12 insertions(+), 36 deletions(-) diff --git a/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js b/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js index af22ee7..e0aeb64 100644 --- a/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js +++ b/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js @@ -681,9 +681,9 @@ function StaffFormModal({ - + diff --git a/src/pages/Container/QualApplication/FilingForm/components/BasicInfoStep.jsx b/src/pages/Container/QualApplication/FilingForm/components/BasicInfoStep.jsx index 157c3ff..8a2fb8e 100644 --- a/src/pages/Container/QualApplication/FilingForm/components/BasicInfoStep.jsx +++ b/src/pages/Container/QualApplication/FilingForm/components/BasicInfoStep.jsx @@ -96,15 +96,7 @@ export default function BasicInfoStep({ form, disabled }) { label="固定资产总值(万元)" rules={[ { required: !disabled, message: "请输入固定资产总值" }, - { type: "number", max: 100000000, min: 0, message: "请输入0-100000000之间的数字,最多9位整数" }, - { - validator: (_, value) => - value === undefined || value === null || value === "" - ? Promise.resolve() - : /^\d{1,9}(\.\d{1,2})?$/.test(String(value)) - ? Promise.resolve() - : Promise.reject(new Error("整数最多9位,小数最多2位")), - }, + ]} > - value === undefined || value === null || value === "" - ? Promise.resolve() - : /^\d{1,9}(\.\d{1,2})?$/.test(String(value)) - ? Promise.resolve() - : Promise.reject(new Error("整数最多9位,小数最多2位")), - }, + ]} > - value === undefined || value === null || value === "" - ? Promise.resolve() - : /^\d{1,9}(\.\d{1,2})?$/.test(String(value)) - ? Promise.resolve() - : Promise.reject(new Error("整数最多9位,小数最多2位")), - }, - ]} + > @@ -180,7 +154,7 @@ export default function BasicInfoStep({ form, disabled }) { diff --git a/src/pages/Container/QualApplication/FilingForm/components/PersonnelStep.jsx b/src/pages/Container/QualApplication/FilingForm/components/PersonnelStep.jsx index 0a6f0eb..2bfcf65 100644 --- a/src/pages/Container/QualApplication/FilingForm/components/PersonnelStep.jsx +++ b/src/pages/Container/QualApplication/FilingForm/components/PersonnelStep.jsx @@ -1,15 +1,14 @@ import { Button, Modal, Space, Table } from "antd"; import { useState } from "react"; import StaffViewModal from "~/components/StaffViewModal"; - import OrgPersonnelSelectModal from "./OrgPersonnelSelectModal"; -export default function PersonnelStep({ +const PersonnelStep=({ personnelList = [], disabled, onAdd, onRemove, -}) { +})=> { const [selectOpen, setSelectOpen] = useState(false); const [viewId, setViewId] = useState(""); @@ -32,6 +31,7 @@ export default function PersonnelStep({ size="small" rowKey="id" pagination={false} + scroll={{ y: 400 }} dataSource={personnelList} columns={[ { title: "序号", width: 60, render: (_, __, index) => index + 1 }, @@ -77,3 +77,5 @@ export default function PersonnelStep({ ); } + +export default PersonnelStep;