fix
parent
994b24a8c3
commit
b32d56fc97
|
|
@ -531,10 +531,10 @@ function StaffFormModal({
|
||||||
label="账号"
|
label="账号"
|
||||||
rules={[
|
rules={[
|
||||||
mobileRule("账号", true),
|
mobileRule("账号", true),
|
||||||
{ max: 50, message: "账号不能超过50个字符" },
|
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Input placeholder="请输入账号" maxLength={50} showCount />
|
<Input placeholder="请输入账号" />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
|
|
@ -624,9 +624,9 @@ function StaffFormModal({
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="evaluatorCertNo"
|
name="evaluatorCertNo"
|
||||||
label="证书编号"
|
label="证书编号"
|
||||||
rules={[{ max: 100, message: "证书编号不能超过100个字符" }]}
|
rules={[{ max: 50, message: "证书编号不能超过100个字符" }]}
|
||||||
>
|
>
|
||||||
<Input placeholder="请输入安全评价师证书编号" maxLength={100} showCount />
|
<Input placeholder="请输入安全评价师证书编号" maxLength={50} showCount />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
|
|
@ -683,18 +683,18 @@ function StaffFormModal({
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="publications"
|
name="publications"
|
||||||
label="出版学术专著、专利、获奖、发表学术论文等"
|
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>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={24}>
|
<Col span={24}>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="abilityDeclaration"
|
name="abilityDeclaration"
|
||||||
label="自我申报的专业能力及认定方式"
|
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>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={24}>
|
<Col span={24}>
|
||||||
|
|
@ -703,7 +703,7 @@ function StaffFormModal({
|
||||||
label="主要学习工作经历"
|
label="主要学习工作经历"
|
||||||
|
|
||||||
>
|
>
|
||||||
<Input.TextArea rows={3} placeholder="请输入" maxLength={1000} showCount />
|
<Input.TextArea rows={3} placeholder="请输入" maxLength={500} showCount />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={24}>
|
<Col span={24}>
|
||||||
|
|
@ -718,18 +718,18 @@ function StaffFormModal({
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="currentAddress"
|
name="currentAddress"
|
||||||
label="现住地址"
|
label="现住地址"
|
||||||
rules={[{ max: 500, message: "现住地址不能超过500个字符" }]}
|
rules={[{ max: 300, message: "现住地址不能超过300个字符" }]}
|
||||||
>
|
>
|
||||||
<Input placeholder="请输入现住地址" maxLength={500} showCount />
|
<Input placeholder="请输入现住地址" maxLength={300} showCount />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="officeAddress"
|
name="officeAddress"
|
||||||
label="办公地址"
|
label="办公地址"
|
||||||
rules={[{ max: 500, message: "办公地址不能超过500个字符" }]}
|
rules={[{ max: 300, message: "办公地址不能超过300个字符" }]}
|
||||||
>
|
>
|
||||||
<Input placeholder="请输入办公地址" maxLength={500} showCount />
|
<Input placeholder="请输入办公地址" maxLength={300} showCount />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
|
|
|
||||||
|
|
@ -162,6 +162,18 @@ function FilingFormPage(props) {
|
||||||
setSubmitting(true);
|
setSubmitting(true);
|
||||||
|
|
||||||
const currentDetail = collectCurrentDetail();
|
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 word = mode === "change" ? "Change" : "";
|
||||||
const body = {
|
const body = {
|
||||||
[`qualFiling${word}AddCmd`]: {
|
[`qualFiling${word}AddCmd`]: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue