|
|
@@ -34,13 +34,13 @@ const PagesMainCompanyListCreate: React.FC<PagesMainCompanyListCreateProps> = ({ |
|
|
|
}; |
|
|
|
|
|
|
|
const [uploadedFilelicenseName, setUploadedFilelicenseName] = useState<string>(''); |
|
|
|
const handleFileUploadedlicense = (filename: string) => { |
|
|
|
const handleFileUploadedlicense = (filename: string) => { |
|
|
|
setUploadedFilelicenseName(filename); |
|
|
|
}; |
|
|
|
|
|
|
|
const [uploadedFilephotosName, setUploadedFilephotosName] = useState<object[]>([]); |
|
|
|
|
|
|
|
const handleFileUploadedphotos = (filename: string) => { |
|
|
|
const handleFileUploadedphotos = (filename: string) => { |
|
|
|
setUploadedFilephotosName([...uploadedFilephotosName, { photo: filename }]); |
|
|
|
}; |
|
|
|
|
|
|
@@ -83,6 +83,7 @@ const PagesMainCompanyListCreate: React.FC<PagesMainCompanyListCreateProps> = ({ |
|
|
|
if (open && id) { |
|
|
|
GetCompanyInfo({ id: id }).then(res => { |
|
|
|
formMapRef?.current?.forEach((formInstanceRef) => { |
|
|
|
res.data.establishment_date = res.data.establishment_date ? res.data.establishment_date : null |
|
|
|
res.data.industry_arr = [res.data.industry]; |
|
|
|
res.data.nature_arr = findAncestors(dictModel.natureList, res.data.nature).concat([res.data.nature]) |
|
|
|
res.data.scale_arr = findAncestors(dictModel.scaleList, res.data.scale).concat([res.data.scale]) |