fix
parent
2d08e2e9e5
commit
628cbfd793
|
|
@ -62,11 +62,11 @@ export default function BasicInfoStep({ form, disabled, mode }) {
|
|||
<Input placeholder="注册地址" maxLength={128} />
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
{mode!=='application' &&<Col span={12}>
|
||||
<Form.Item name="qualCertNo" label="资质证书编号" rules={[{ required: !disabled, message: "请输入资质证书编号" }]}>
|
||||
<Input placeholder="资质证书编号" maxLength={32} />
|
||||
</Form.Item>
|
||||
</Col>
|
||||
</Col>}
|
||||
<Col span={12}>
|
||||
<Form.Item
|
||||
name="infoDisclosureUrl"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import { DatePicker, Form, Input, Row, Col, Select, Image } from "antd";
|
||||
import { DatePicker, Form, Input, Row, Col, Select, Image, Tag, Flex } from "antd";
|
||||
import { COMMITMENT_PARAGRAPHS } from "../../filingCommitment";
|
||||
import FilingUpload, { resolveFilingUploadUrl } from "./FilingUpload";
|
||||
import AttachmentUpload from "~/components/AttachmentUpload";
|
||||
|
||||
|
||||
const BLANK_STYLE = {
|
||||
display: "inline-block",
|
||||
|
|
@ -53,10 +52,11 @@ export default function CommitmentStep({
|
|||
}) {
|
||||
const legalRepName = Form.useWatch("legalRepName", form);
|
||||
const filingUnitName = Form.useWatch("filingUnitName", form);
|
||||
const legalRepSignatureUrl= Form.useWatch('legalRepSignatureUrl', form);
|
||||
|
||||
const handleLegalRepChange = (personnelId) => {
|
||||
if (!personnelId) {
|
||||
form.setFieldsValue({ legalRepPersonnelId: undefined, legalRepName: "" });
|
||||
form.setFieldsValue({ legalRepPersonnelId: undefined, legalRepName: "", legalRepSignatureUrl: null });
|
||||
return;
|
||||
}
|
||||
const selected = personnelOptions.find(
|
||||
|
|
@ -65,6 +65,7 @@ export default function CommitmentStep({
|
|||
form.setFieldsValue({
|
||||
legalRepPersonnelId: personnelId,
|
||||
legalRepName: selected?.staffName || selected?.label || "",
|
||||
legalRepSignatureUrl: null
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -103,9 +104,11 @@ export default function CommitmentStep({
|
|||
</Form.Item>
|
||||
</Col>
|
||||
<Col xs={24} sm={12} md={8}>
|
||||
<Flex align="center" gap={6}>
|
||||
<Form.Item
|
||||
name="legalRepPersonnelId"
|
||||
label="法定代表人"
|
||||
style={{width: '100%'}}
|
||||
rules={[{ required: !disabled, message: "请选择法定代表人" }]}
|
||||
>
|
||||
<Select
|
||||
|
|
@ -117,13 +120,18 @@ export default function CommitmentStep({
|
|||
onChange={handleLegalRepChange}
|
||||
/>
|
||||
</Form.Item>
|
||||
<Tag color={legalRepSignatureUrl ? "green" : "default"}>
|
||||
{legalRepSignatureUrl ? "已签字" : "未签字"}
|
||||
</Tag>
|
||||
</Flex>
|
||||
<Form.Item noStyle name='legalRepSignatureUrl' />
|
||||
</Col>
|
||||
</Row>
|
||||
</Form>
|
||||
{commitment?.legalRepSignatureUrl&&<>
|
||||
{legalRepSignatureUrl&&<>
|
||||
<h3>电子签名</h3>
|
||||
<Image
|
||||
src={commitment?.legalRepSignatureUrl}
|
||||
src={legalRepSignatureUrl}
|
||||
alt="电子签名"
|
||||
style={{ width: 120, height: 120 }}
|
||||
hidden
|
||||
|
|
|
|||
Loading…
Reference in New Issue