This commit is contained in:
ditiqi 2025-01-26 21:56:05 +08:00
parent 18088dd732
commit bb5ae7dcec
3 changed files with 23 additions and 21 deletions

View File

@ -123,7 +123,7 @@ export const RegisterForm = ({ onSubmit, isLoading }: RegisterFormProps) => {
</Form.Item>
<Form.Item noStyle name={"office"}>
<Input
placeholder="请输入办公地点"
placeholder="请输入办公地点"
autoComplete="off"
spellCheck={false}
allowClear
@ -151,10 +151,10 @@ export const RegisterForm = ({ onSubmit, isLoading }: RegisterFormProps) => {
noStyle
rules={[
{ message: "请输入证件号" },
{
pattern: /^\d{5,12}$/,
message: "请输入有效的证件号5-12位数字",
},
// {
// pattern: /^\d{5,12}$/,
// message: "请输入有效的证件号5-12位数字",
// },
]}>
<Input placeholder="证件号" />
</Form.Item>

View File

@ -185,13 +185,13 @@ export default function StaffForm() {
/>
</Form.Item>
<Form.Item
rules={[
{
required: false,
pattern: /^\d{5,18}$/,
message: "请输入正确的证件号(数字)",
},
]}
// rules={[
// {
// required: false,
// pattern: /^\d{5,18}$/,
// message: "请输入正确的证件号(数字)",
// },
// ]}
noStyle
name={"officerId"}>
<Input
@ -229,7 +229,7 @@ export default function StaffForm() {
</Form.Item>
<Form.Item noStyle name={"office"}>
<Input
placeholder="请输入办公地点(可选)"
placeholder="请输入办公地点(可选)"
autoComplete="off"
spellCheck={false}
allowClear

View File

@ -204,13 +204,15 @@ export default function StaffForm() {
</Form.Item>
<Form.Item
noStyle
rules={[
{
required: false,
pattern: /^\d{5,18}$/,
message: "请输入正确的证件号(数字)",
},
]}
rules={
[
// {
// required: false,
// pattern: /^\d{5,18}$/,
// message: "请输入正确的证件号(数字)",
// },
]
}
name={"officerId"}
label="证件号">
<Input
@ -248,7 +250,7 @@ export default function StaffForm() {
</Form.Item>
<Form.Item noStyle name={"office"}>
<Input
placeholder="请输入办公地点(可选)"
placeholder="请输入办公地点(可选)"
autoComplete="off"
spellCheck={false}
allowClear