diff --git a/src/pages/Bid/BiddingAnnouncement/components/BiddingDocument.tsx b/src/pages/Bid/BiddingAnnouncement/components/BiddingDocument.tsx index d6e4064..f16a050 100644 --- a/src/pages/Bid/BiddingAnnouncement/components/BiddingDocument.tsx +++ b/src/pages/Bid/BiddingAnnouncement/components/BiddingDocument.tsx @@ -41,7 +41,6 @@ const BiddingDocument: React.FC = (props) => { const [docSaveBtn, setDocSaveBtn] = useState("compact");//保存按钮是否展示 const [UploadList, setUploadList] = useState(); //存upload列表 const [UploadID, setUploadID] = useState("empty"); //upload 业务id - const [docName, setDocName] = useState('');//文件名称格式化 const UploadProps: UploadProps = { name: "file", @@ -287,8 +286,9 @@ const BiddingDocument: React.FC = (props) => { message: '当前项不可为空', }, ]} + normalize={(value) => trim(value)} > - setDocName(trim(e.target.value))} /> + {//单一来源简化流程 diff --git a/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationChoose.tsx b/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationChoose.tsx index baf0dd0..e862b3d 100644 --- a/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationChoose.tsx +++ b/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationChoose.tsx @@ -46,8 +46,6 @@ const PackageInformationChoose: React.FC = (props) => { const [spinningload, setSpinningload] = useState(false); //保存loading const [saveLoading, setSaveLoading] = useState(false); - //名称格式化 - const [bidSectName, setBidSectName] = useState(''); useEffect(() => { if (values.status == 0 || values.status == 1) { setStatus(false); @@ -258,8 +256,9 @@ const PackageInformationChoose: React.FC = (props) => { name="bidSectName" label="采购包名称" rules={[{ required: controlDisplay }, { max: 100, message: '最大不能超过100字' }]} + normalize={(value) => trim(value)} > - setBidSectName(trim(e.target.value))} /> + diff --git a/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationEnquiry.tsx b/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationEnquiry.tsx index 3b25bfc..4c5d34e 100644 --- a/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationEnquiry.tsx +++ b/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationEnquiry.tsx @@ -45,8 +45,6 @@ const PackageInformationEnquiry: React.FC = (props) => const [spinningload, setSpinningload] = useState(false); //loading const [saveLoading, setSaveLoading] = useState(false); - //名称格式化 - const [bidSectName, setBidSectName] = useState(''); useEffect(() => { if (values.status == 1 || values.status == 0) { setStatus(false); @@ -159,8 +157,9 @@ const PackageInformationEnquiry: React.FC = (props) => name="bidSectName" label="采购包名称" rules={[{ required: controlDisplay }, { max: 100, message: '最大不能超过100字' }]} + normalize={(value) => trim(value)} > - setBidSectName(trim(e.target.value))} /> + = (props) => { const [spinningload, setSpinningload] = useState(false); //loading const [saveLoading, setSaveLoading] = useState(false); - //名称格式化 - const [bidSectName, setBidSectName] = useState(''); useEffect(() => { if (values.status == 0 || values.status == 1) { setStatus(false); @@ -187,8 +185,9 @@ const PackageInformationInvite: React.FC = (props) => { name="bidSectName" label="标段名称" rules={[{ required: controlDisplay }, { max: 100, message: '最大不能超过100字' }]} + normalize={(value) => trim(value)} > - setBidSectName(trim(e.target.value))} /> + diff --git a/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationInviteBid.tsx b/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationInviteBid.tsx index 5e98156..bee3b9c 100644 --- a/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationInviteBid.tsx +++ b/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationInviteBid.tsx @@ -47,8 +47,6 @@ const PackageInformationInviteBid: React.FC = (props) = const [spinningload, setSpinningload] = useState(false); //loading const [saveLoading, setSaveLoading] = useState(false); - //名称格式化 - const [bidSectName, setBidSectName] = useState(''); useEffect(() => { if (values.status == 1 || values.status == 0) { setStatus(false); @@ -268,8 +266,9 @@ const PackageInformationInviteBid: React.FC = (props) = name="bidSectName" label="标段名称" rules={[{ required: controlDisplay }, { max: 100, message: '最大不能超过100字' }]} + normalize={(value) => trim(value)} > - setBidSectName(trim(e.target.value))} /> + diff --git a/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationNegotiate.tsx b/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationNegotiate.tsx index e7a772f..8334924 100644 --- a/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationNegotiate.tsx +++ b/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationNegotiate.tsx @@ -47,8 +47,6 @@ const PackageInformationNegotiate: React.FC = (props) = const [spinningload, setSpinningload] = useState(false); //保存loading const [saveLoading, setSaveLoading] = useState(false); - //名称格式化 - const [bidSectName, setBidSectName] = useState(''); useEffect(() => { if (values.status == 0 || values.status == 1) { setStatus(false); @@ -177,8 +175,9 @@ const PackageInformationNegotiate: React.FC = (props) = name="bidSectName" label="采购包名称" rules={[{ required: controlDisplay }, { max: 100, message: '最大不能超过100字' }]} + normalize={(value) => trim(value)} > - setBidSectName(trim(e.target.value))} /> + diff --git a/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationOnly.tsx b/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationOnly.tsx index 08ac3e8..7c4bff0 100644 --- a/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationOnly.tsx +++ b/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationOnly.tsx @@ -44,8 +44,6 @@ const PackageInformationOnly: React.FC = (props) => { const [spinningload, setSpinningload] = useState(false); //保存loading const [saveLoading, setSaveLoading] = useState(false); - //名称格式化 - const [bidSectName, setBidSectName] = useState(''); useEffect(() => { if (values.status == 0 || values.status == 1) { setStatus(false); @@ -145,8 +143,8 @@ const PackageInformationOnly: React.FC = (props) => { - - setBidSectName(trim(e.target.value))} /> + trim(value)}> + diff --git a/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationRecruit.tsx b/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationRecruit.tsx index 5794157..42c2faf 100644 --- a/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationRecruit.tsx +++ b/src/pages/Project/ProjectManage/PackageDivided/components/PackageInformationRecruit.tsx @@ -46,8 +46,6 @@ const PackageInformationRecruit: React.FC = (props) => const [spinningload, setSpinningload] = useState(false); //保存loading const [saveLoading, setSaveLoading] = useState(false); - //名称格式化 - const [bidSectName, setBidSectName] = useState(''); useEffect(() => { if (values.status == 0 || values.status == 1) { setStatus(false); @@ -189,8 +187,9 @@ const PackageInformationRecruit: React.FC = (props) => name="bidSectName" label="包件名称" rules={[{ required: controlDisplay }, { max: 100, message: '最大不能超过100字' }]} + normalize={(value) => trim(value)} > - setBidSectName(trim(e.target.value))} /> + = (props) => { const openTenderFormSelect = createSelect(dictData['open_tender_form=record']); //是否需要供应商ipass解密显隐 const [isIPassDecode, isIPassDecodeSet] = useState(false); - //项目名称格式化 - const [projectName, setProjectName] = useState(''); function onChangeIpass(e: any) {//是否使用ipass制作 isIPassDecodeSet(e.target.value === '0'); } @@ -306,8 +304,9 @@ const ProjectDocumentation: React.FC = (props) => { label="项目名称" name="projectName" rules={[{ required: true }]} + normalize={(value) => trim(value)} > - setProjectName(trim(e.target.value))} /> + diff --git a/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod2.tsx b/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod2.tsx index df33145..05d3de9 100644 --- a/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod2.tsx +++ b/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod2.tsx @@ -71,8 +71,6 @@ const ProjectDocumentation: React.FC = (props) => { const bidMethodSubDictSelect = createSelect(dictData['bid_method_sub=record']); //适用法律 const openTenderFormSelect = createSelect(dictData['open_tender_form=record']); - //项目名称格式化 - const [projectName, setProjectName] = useState(''); useEffect(() => { /** * 根据id获取数据 @@ -296,8 +294,9 @@ const ProjectDocumentation: React.FC = (props) => { label="项目名称" name="projectName" rules={[{ required: true }]} + normalize={(value) => trim(value)} > - setProjectName(trim(e.target.value))} /> + diff --git a/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod3.tsx b/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod3.tsx index 2d96eac..08e567e 100644 --- a/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod3.tsx +++ b/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod3.tsx @@ -77,8 +77,6 @@ const ProjectDocumentation: React.FC = (props) => { const [noInformationFlag, setNoInformationFlag] = useState(String(status) === '0'); //是否需要供应商ipass解密显隐 const [isIPassDecode, isIPassDecodeSet] = useState(false); - //项目名称格式化 - const [projectName, setProjectName] = useState(''); useEffect(() => { /** * 根据id获取数据 @@ -309,8 +307,9 @@ const ProjectDocumentation: React.FC = (props) => { label="项目名称" name="projectName" rules={[{ required: true }]} + normalize={(value) => trim(value)} > - setProjectName(trim(e.target.value))} /> + diff --git a/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod4.tsx b/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod4.tsx index 6a1fc54..7663330 100644 --- a/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod4.tsx +++ b/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod4.tsx @@ -74,8 +74,6 @@ const ProjectDocumentation: React.FC = (props) => { const [noInformationFlag, setNoInformationFlag] = useState(String(status) === '0'); //是否需要供应商ipass解密显隐 const [isIPassDecode, isIPassDecodeSet] = useState(false); - //项目名称格式化 - const [projectName, setProjectName] = useState(''); useEffect(() => { /** * 根据id获取数据 @@ -282,8 +280,9 @@ const ProjectDocumentation: React.FC = (props) => { label="项目名称" name="projectName" rules={[{ required: true }]} + normalize={(value) => trim(value)} > - setProjectName(trim(e.target.value))} /> + diff --git a/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod5.tsx b/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod5.tsx index 6aaacc7..82c17ed 100644 --- a/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod5.tsx +++ b/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod5.tsx @@ -73,8 +73,6 @@ const ProjectDocumentation: React.FC = (props) => { const [noInformationFlag, setNoInformationFlag] = useState(String(status) === '0'); //是否需要供应商ipass解密显隐 const [isIPassDecode, isIPassDecodeSet] = useState(false); - //项目名称格式化 - const [projectName, setProjectName] = useState(''); function onChangeIpass(e: any) {//是否使用ipass制作 isIPassDecodeSet(e.target.value === '0'); } @@ -307,8 +305,9 @@ const ProjectDocumentation: React.FC = (props) => { label="项目名称" name="projectName" rules={[{ required: true }]} + normalize={(value) => trim(value)} > - setProjectName(trim(e.target.value))} /> + diff --git a/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod6.tsx b/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod6.tsx index da4adf8..5de2020 100644 --- a/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod6.tsx +++ b/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod6.tsx @@ -71,8 +71,6 @@ const ProjectDocumentation: React.FC = (props) => { const [noInformationFlag, setNoInformationFlag] = useState(String(status) === '0'); //是否需要供应商ipass解密显隐 const [isIPassDecode, isIPassDecodeSet] = useState(false); - //项目名称格式化 - const [projectName, setProjectName] = useState(''); function onChangeIpass(e: any) {//是否使用ipass制作 isIPassDecodeSet(e.target.value === '0'); } @@ -306,8 +304,9 @@ const ProjectDocumentation: React.FC = (props) => { label="项目名称" name="projectName" rules={[{ required: true }]} + normalize={(value) => trim(value)} > - setProjectName(trim(e.target.value))} /> + diff --git a/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod9.tsx b/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod9.tsx index 861f96f..6f9e174 100644 --- a/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod9.tsx +++ b/src/pages/Project/ProjectManage/ProjectManager/ProjectInformationManagement/components/ProcurementMethod9.tsx @@ -71,8 +71,6 @@ const ProjectDocumentation: React.FC = (props) => { const [noInformationFlag, setNoInformationFlag] = useState(String(status) === '0'); //是否需要供应商ipass解密显隐 const [isIPassDecode, isIPassDecodeSet] = useState(false); - //项目名称格式化 - const [projectName, setProjectName] = useState(''); function onChangeIpass(e: any) {//是否使用ipass制作 isIPassDecodeSet(e.target.value === '0'); } @@ -306,8 +304,9 @@ const ProjectDocumentation: React.FC = (props) => { label="项目名称" name="projectName" rules={[{ required: true }]} + normalize={(value) => trim(value)} > - setProjectName(trim(e.target.value))} /> + diff --git a/src/pages/ZYuShen/Bid/BiddingAnnouncement/components/BiddingDocument.tsx b/src/pages/ZYuShen/Bid/BiddingAnnouncement/components/BiddingDocument.tsx index 6a36ae1..b18c045 100644 --- a/src/pages/ZYuShen/Bid/BiddingAnnouncement/components/BiddingDocument.tsx +++ b/src/pages/ZYuShen/Bid/BiddingAnnouncement/components/BiddingDocument.tsx @@ -38,7 +38,6 @@ const BiddingDocument: React.FC = (props) => { const [docSaveBtn, setDocSaveBtn] = useState("compact");//保存按钮是否展示 const [UploadList, setUploadList] = useState(); //存upload列表 const [UploadID, setUploadID] = useState("empty"); //upload 业务id - const [docName, setDocName] = useState('');//文件名称格式化 const UploadProps: UploadProps = { name: "file", disabled: editInformation @@ -244,8 +243,9 @@ const BiddingDocument: React.FC = (props) => { message: '当前项不可为空', }, ]} + normalize={(value) => trim(value)} > - setDocName(trim(e.target.value))} /> +