Compare commits

...

2 Commits

Author SHA1 Message Date
luotaiqian d9552440d2 Merge remote-tracking branch 'origin/dev' into dev 2026-07-10 09:52:30 +08:00
luotaiqian a3a84e7d24 bug fix 2026-07-10 09:52:23 +08:00
1 changed files with 83 additions and 18 deletions

View File

@ -38,7 +38,7 @@ export default function BasicInfoStep({ form, disabled }) {
</Col> </Col>
<Col span={12}> <Col span={12}>
<Form.Item name="filingUnitName" label="备案单位"> <Form.Item name="filingUnitName" label="备案单位">
<Input placeholder="备案单位" /> <Input placeholder="备案单位" maxLength={64} />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={12}> <Col span={12}>
@ -48,81 +48,146 @@ export default function BasicInfoStep({ form, disabled }) {
</Col> </Col>
<Col span={12}> <Col span={12}>
<Form.Item name="creditCode" label="统一社会信用代码"> <Form.Item name="creditCode" label="统一社会信用代码">
<Input placeholder="统一社会信用代码" /> <Input placeholder="统一社会信用代码" maxLength={18} />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={24}> <Col span={24}>
<Form.Item name="officeAddress" label="办公地址"> <Form.Item name="officeAddress" label="办公地址">
<Input placeholder="办公地址" /> <Input placeholder="办公地址" maxLength={128} />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={24}> <Col span={24}>
<Form.Item name="registerAddress" label="注册地址"> <Form.Item name="registerAddress" label="注册地址">
<Input placeholder="注册地址" /> <Input placeholder="注册地址" maxLength={128} />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Form.Item name="qualCertNo" label="资质证书编号"> <Form.Item name="qualCertNo" label="资质证书编号">
<Input placeholder="资质证书编号" /> <Input placeholder="资质证书编号" maxLength={32} />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Form.Item name="infoDisclosureUrl" label="信息公开网址"> <Form.Item
<Input placeholder="信息公开网址" /> name="infoDisclosureUrl"
label="信息公开网址"
rules={[
{
pattern: /^https?:\/\/[^\s]+$/,
message: "请输入正确的网址,需以 http:// 或 https:// 开头",
},
]}
>
<Input placeholder="信息公开网址" maxLength={128} />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Form.Item name="legalPersonPhone" label="法人代表及电话"> <Form.Item name="legalPersonPhone" label="法人代表及电话">
<Input placeholder="姓名 / 电话" /> <Input placeholder="姓名 / 电话" maxLength={32} />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Form.Item name="contactPhone" label="联系人及电话"> <Form.Item name="contactPhone" label="联系人及电话">
<Input placeholder="姓名 / 电话" /> <Input placeholder="姓名 / 电话" maxLength={32} />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Form.Item <Form.Item
name="fixedAssetAmount" name="fixedAssetAmount"
label="固定资产总值(万元)" label="固定资产总值(万元)"
rules={[{ required: !disabled, message: "请输入固定资产总值" }]} 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位")),
},
]}
> >
<InputNumber style={{ width: "100%" }} min={0} placeholder="万元" /> <InputNumber
style={{ width: "100%" }}
min={0}
max={100000000}
precision={2}
placeholder="万元"
/>
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Form.Item <Form.Item
name="workplaceArea" name="workplaceArea"
label="工作场所建筑面积(㎡)" label="工作场所建筑面积(㎡)"
rules={[{ required: !disabled, message: "请输入工作场所建筑面积" }]} 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位")),
},
]}
> >
<InputNumber style={{ width: "100%" }} min={0} placeholder="㎡" /> <InputNumber
style={{ width: "100%" }}
min={0}
max={100000000}
precision={2}
placeholder="㎡"
/>
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Form.Item name="archiveRoomArea" label="档案室面积(㎡)"> <Form.Item
<InputNumber style={{ width: "100%" }} min={0} placeholder="㎡" /> name="archiveRoomArea"
label="档案室面积(㎡)"
rules={[
{ 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位")),
},
]}
>
<InputNumber
style={{ width: "100%" }}
min={0}
max={100000000}
precision={2}
placeholder="㎡"
/>
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Form.Item <Form.Item
name="fulltimeEvaluatorCount" name="fulltimeEvaluatorCount"
label="专职安全评价师数量(人)" label="专职安全评价师数量(人)"
rules={[{ type: "number", max: 100000000, min: 0, message: "请输入0-100000000之间的数字最多9位" }]}
> >
<InputNumber style={{ width: "100%" }} min={0} placeholder="人" /> <InputNumber style={{ width: "100%" }} min={0} max={100000000} maxLength={9} placeholder="人" />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Form.Item <Form.Item
name="registeredEngineerCount" name="registeredEngineerCount"
label="注册安全工程师数量(人)" label="注册安全工程师数量(人)"
rules={[{ type: "number", max: 100000000, min: 0, message: "请输入0-100000000之间的数字最多9位" }]}
> >
<InputNumber style={{ width: "100%" }} min={0} placeholder="人" /> <InputNumber style={{ width: "100%" }} min={0} max={100000000} maxLength={9} placeholder="人" />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={24}> <Col span={24}>
<Form.Item name="unitIntro" label="单位基本情况介绍"> <Form.Item name="unitIntro" label="单位基本情况介绍">
<Input.TextArea rows={3} placeholder="请输入单位基本情况介绍" /> <Input.TextArea rows={3} placeholder="请输入单位基本情况介绍" maxLength={500} showCount />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={24}> <Col span={24}>