tangjie 2026-07-13 15:57:17 +08:00
parent 994b24a8c3
commit b32d56fc97
2 changed files with 25 additions and 13 deletions

View File

@ -531,10 +531,10 @@ function StaffFormModal({
label="账号"
rules={[
mobileRule("账号", true),
{ max: 50, message: "账号不能超过50个字符" },
]}
>
<Input placeholder="请输入账号" maxLength={50} showCount />
<Input placeholder="请输入账号" />
</Form.Item>
</Col>
<Col span={12}>
@ -624,9 +624,9 @@ function StaffFormModal({
<Form.Item
name="evaluatorCertNo"
label="证书编号"
rules={[{ max: 100, message: "证书编号不能超过100个字符" }]}
rules={[{ max: 50, message: "证书编号不能超过100个字符" }]}
>
<Input placeholder="请输入安全评价师证书编号" maxLength={100} showCount />
<Input placeholder="请输入安全评价师证书编号" maxLength={50} showCount />
</Form.Item>
</Col>
<Col span={12}>
@ -683,18 +683,18 @@ function StaffFormModal({
<Form.Item
name="publications"
label="出版学术专著、专利、获奖、发表学术论文等"
rules={[{ max: 1000, message: "不能超过1000个字符" }]}
rules={[{ max: 500, message: "不能超过1000个字符" }]}
>
<Input.TextArea rows={2} placeholder="请输入" maxLength={1000} showCount />
<Input.TextArea rows={2} placeholder="请输入" maxLength={500} showCount />
</Form.Item>
</Col>
<Col span={24}>
<Form.Item
name="abilityDeclaration"
label="自我申报的专业能力及认定方式"
rules={[{ max: 1000, message: "不能超过1000个字符" }]}
rules={[{ max: 500, message: "不能超过1000个字符" }]}
>
<Input.TextArea rows={2} placeholder="请输入" maxLength={1000} showCount />
<Input.TextArea rows={2} placeholder="请输入" maxLength={500} showCount />
</Form.Item>
</Col>
<Col span={24}>
@ -703,7 +703,7 @@ function StaffFormModal({
label="主要学习工作经历"
>
<Input.TextArea rows={3} placeholder="请输入" maxLength={1000} showCount />
<Input.TextArea rows={3} placeholder="请输入" maxLength={500} showCount />
</Form.Item>
</Col>
<Col span={24}>
@ -718,18 +718,18 @@ function StaffFormModal({
<Form.Item
name="currentAddress"
label="现住地址"
rules={[{ max: 500, message: "现住地址不能超过500个字符" }]}
rules={[{ max: 300, message: "现住地址不能超过300个字符" }]}
>
<Input placeholder="请输入现住地址" maxLength={500} showCount />
<Input placeholder="请输入现住地址" maxLength={300} showCount />
</Form.Item>
</Col>
<Col span={12}>
<Form.Item
name="officeAddress"
label="办公地址"
rules={[{ max: 500, message: "办公地址不能超过500个字符" }]}
rules={[{ max: 300, message: "办公地址不能超过300个字符" }]}
>
<Input placeholder="请输入办公地址" maxLength={500} showCount />
<Input placeholder="请输入办公地址" maxLength={300} showCount />
</Form.Item>
</Col>
<Col span={12}>

View File

@ -162,6 +162,18 @@ function FilingFormPage(props) {
setSubmitting(true);
const currentDetail = collectCurrentDetail();
if (!currentDetail?.personnelList?.length) {
message.warning("请至少添加一位备案人员");
setActiveStep("personnel");
setSubmitting(false);
return;
}
if (!currentDetail?.equipmentList?.length) {
message.warning("请至少添加一条装备清单");
setActiveStep("equipment");
setSubmitting(false);
return;
}
const word = mode === "change" ? "Change" : "";
const body = {
[`qualFiling${word}AddCmd`]: {