ConpanyDirectorAuthPersonBeneficiary.jsx 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. import { UploadImage } from "@/components/Upload";
  2. import { Button, Form, Input, InputNumber, Radio, Select } from "antd";
  3. import React from "react";
  4. import { useTranslation } from "react-i18next";
  5. export default (props) => {
  6. const { title, identity, key } = props;
  7. console.log(props);
  8. const { t } = useTranslation();
  9. const directorRule = {
  10. [`${identity}-directorCountry`]: [{ require: true, message: "请选择国家" }],
  11. [`${identity}-directorIdType`]: [
  12. { require: true, message: "请选择证件类型" },
  13. ],
  14. [`${identity}-directorIdFront`]: [
  15. { require: true, message: "请上传证件正面" },
  16. ],
  17. [`${identity}-directorIdBack`]: [
  18. { require: true, message: "请上传证件反面" },
  19. ],
  20. [`${identity}-directorNameCn`]: [
  21. { require: true, message: "请输入中文名" },
  22. ],
  23. [`${identity}-directorIdNo`]: [
  24. { require: true, message: "请输入证件证件号码" },
  25. ],
  26. };
  27. return (
  28. <>
  29. <div
  30. style={{
  31. fontSize: "16px",
  32. fontWeight: "600",
  33. marginBottom: "36px",
  34. }}
  35. >
  36. {title}
  37. </div>
  38. <Form.Item name={`${identity}-companyLegalId`} />
  39. <Form.Item name={`${identity}-companyBeneficiaryItemId`} />
  40. <Form.Item
  41. // label={t("authentication.directorInfoLabel1")}
  42. label="受益所有人国籍"
  43. wrapperCol={{ span: 17 }}
  44. name={`${identity}-directorCountry`}
  45. rules={directorRule[`${identity}-directorCountry`]}
  46. >
  47. <Select placeholder={t("authentication.directorInfoPlaceholder1")}>
  48. <Select.Option value={t("authentication.directorInfoSelectValue1")}>
  49. {t("authentication.directorInfoSelectValue1")}
  50. </Select.Option>
  51. </Select>
  52. </Form.Item>
  53. <Form.Item
  54. label={t("authentication.directorInfoLabel2")}
  55. name={`${identity}-directorIdType`}
  56. rules={directorRule[`${identity}-directorIdType`]}
  57. initialValue="1"
  58. >
  59. <Radio.Group>
  60. <Radio style={{ fontSize: "16px" }} value="1">
  61. {t("authentication.directorInfoRadioValue")}
  62. </Radio>
  63. </Radio.Group>
  64. </Form.Item>
  65. {/* 请用手机扫描二维码拍摄上传 */}
  66. <div
  67. style={{
  68. fontSize: "16px",
  69. fontWeight: "600",
  70. marginBottom: "12px",
  71. }}
  72. >
  73. {t("authentication.directorInfoTitle")}
  74. </div>
  75. <Form.Item>
  76. <div style={{ color: "#bfbfbf" }}>
  77. {t("authentication.directorInfoContent1")}
  78. </div>
  79. <div style={{ color: "#bfbfbf" }}>
  80. {t("authentication.directorInfoContent2")}
  81. </div>
  82. <div style={{ color: "#bfbfbf" }}>
  83. {t("authentication.directorInfoContent3")}
  84. </div>
  85. <div style={{ color: "red" }}>
  86. {t("authentication.directorInfoContent4")}
  87. </div>
  88. <Button type="link" style={{ padding: "4px 0" }}>
  89. {t("authentication.uploadBtnText")}
  90. </Button>
  91. </Form.Item>
  92. <Form.Item
  93. name={`${identity}-directorIdFront`}
  94. label={t("authentication.directorInfoSubTitle1")}
  95. rules={directorRule[`${identity}-directorIdFront`]}
  96. >
  97. <UploadImage />
  98. {/*
  99. <div className="image_box">
  100. <div className="directorInfo-img-right-text">
  101. {t("authentication.directorInfoIDCardRightText")}
  102. </div>
  103. </div> */}
  104. </Form.Item>
  105. <Form.Item
  106. name={`${identity}-directorIdBack`}
  107. label={t("authentication.directorInfoSubTitle2")}
  108. rules={directorRule[`${identity}-directorIdBack`]}
  109. >
  110. <UploadImage />
  111. {/* <div style={{ marginTop: "24px", fontSize: "16px" }}>
  112. {t("authentication.directorInfoSubTitle2")}
  113. </div> */}
  114. {/* <div className="image_box"> */}
  115. {/* <div className="directorInfo-img-right-text">
  116. {t("authentication.directorInfoIDCardRightText")}
  117. </div> */}
  118. {/* </div> */}
  119. </Form.Item>
  120. <Form.Item
  121. label={t("authentication.directorInfoLabel3")}
  122. wrapperCol={{ span: 17 }}
  123. name={`${identity}-directorNameCn`}
  124. rules={directorRule[`${identity}-directorNameCn`]}
  125. >
  126. <Input
  127. placeholder={t("authentication.directorInfoInputPlaceholder2")}
  128. />
  129. </Form.Item>
  130. <Form.Item
  131. label={t("authentication.directorInfoLabel4")}
  132. wrapperCol={{ span: 17 }}
  133. name={`${identity}-directorIdNo`}
  134. rules={directorRule[`${identity}-directorIdNo`]}
  135. >
  136. <Input
  137. placeholder={t("authentication.directorInfoInputPlaceholder3")}
  138. size="large"
  139. />
  140. </Form.Item>
  141. <Form.Item
  142. label="持股比例"
  143. name={`${identity}-shareholdingRatio`}
  144. wrapperCol={{ span: 18 }}
  145. >
  146. <InputNumber
  147. placeholder=">=25"
  148. style={{ width: '100%' }}
  149. formatter={(value) => `${value}%`}
  150. min={25}
  151. />
  152. </Form.Item>
  153. </>
  154. );
  155. };