对接注册

This commit is contained in:
linxd
2025-07-16 10:51:30 +08:00
parent 27d6d10d27
commit 1f3a4909f7
8 changed files with 83 additions and 90 deletions

View File

@ -72,13 +72,12 @@ const DomesticForm: React.FC<DomesticFormProps> = ({
<Form.Item
name={['coscoSupplierBase', 'licenceAccessory']}
label="营业执照附件"
extra="pdf,jpg,jpeg,png类型的文件,大小不超过10MB"
rules={[{ required: true, message: '请上传营业执照附件' }]}
// getValueProps={(value) => {
// return {
// value: value?.length > 0 ? value[0]?.url : undefined,
// };
// }}
getValueProps={(value) => {
return {
value: value?.length > 0 ? value[0]?.url : undefined,
};
}}
getValueFromEvent={(value) => {
return value?.length > 0 ? value[0]?.url : undefined;
}}
@ -88,6 +87,7 @@ const DomesticForm: React.FC<DomesticFormProps> = ({
maxCount={1}
maxSize={10}
allowedTypes={['pdf', 'jpg', 'jpeg', 'png']}
tip="pdf,jpg,jpeg,png类型的文件,大小不超过10MB"
>
<Button icon={<UploadOutlined />}></Button>
</FileUpload>
@ -220,7 +220,11 @@ const DomesticForm: React.FC<DomesticFormProps> = ({
</Form.Item>
</Col>
<Col span={8}>
<Form.Item name="officeAddress" label="办公地址" rules={[{ required: true, message: '请输入办公地址' }]}>
<Form.Item
name="officeAddress"
label="办公地址"
rules={[{ required: true, message: '请输入办公地址' }]}
>
<Input
prefix={<EnvironmentOutlined />}
placeholder="请具体注明省、市、区、路、门牌号"