|
@@ -32,6 +32,7 @@ import axios from "axios"; |
|
|
import {POST_PUBLIC_USER_REGISTER} from "utils/ApiPathConst"; |
|
|
import {POST_PUBLIC_USER_REGISTER} from "utils/ApiPathConst"; |
|
|
import * as HttpUtils from 'utils/HttpUtils'; |
|
|
import * as HttpUtils from 'utils/HttpUtils'; |
|
|
import UploadFileTable from './UploadFileTable'; |
|
|
import UploadFileTable from './UploadFileTable'; |
|
|
|
|
|
import LoadingComponent from "../../extra-pages/LoadingComponent"; |
|
|
|
|
|
|
|
|
// assets |
|
|
// assets |
|
|
import { EyeInvisibleOutlined, EyeOutlined } from '@ant-design/icons'; |
|
|
import { EyeInvisibleOutlined, EyeOutlined } from '@ant-design/icons'; |
|
@@ -74,6 +75,7 @@ const CustomFormWizard = (props) => { |
|
|
const [termsAndConAccept, setTermsAndConAccept] = useState(false); |
|
|
const [termsAndConAccept, setTermsAndConAccept] = useState(false); |
|
|
const [termsAndConNotAccept, setTermsAndConNotAccept] = useState(false); |
|
|
const [termsAndConNotAccept, setTermsAndConNotAccept] = useState(false); |
|
|
const [isValid, setisValid] = useState(false); |
|
|
const [isValid, setisValid] = useState(false); |
|
|
|
|
|
const [isLoading, setLoding] = useState(true); |
|
|
|
|
|
|
|
|
const idDocTypeComboList = ComboData.idDocType; |
|
|
const idDocTypeComboList = ComboData.idDocType; |
|
|
const address4ComboList = ComboData.district; |
|
|
const address4ComboList = ComboData.district; |
|
@@ -166,6 +168,7 @@ const CustomFormWizard = (props) => { |
|
|
|
|
|
|
|
|
const {handleSubmit} = useForm({}) |
|
|
const {handleSubmit} = useForm({}) |
|
|
const _onSubmit = () => { |
|
|
const _onSubmit = () => { |
|
|
|
|
|
setLoding(true); |
|
|
values.idDocType = selectedIdDocType |
|
|
values.idDocType = selectedIdDocType |
|
|
values.address4 = selectedAddress4 |
|
|
values.address4 = selectedAddress4 |
|
|
values.address5 = selectedAddress5 |
|
|
values.address5 = selectedAddress5 |
|
@@ -225,13 +228,17 @@ const CustomFormWizard = (props) => { |
|
|
onSuccess: (response)=>{ |
|
|
onSuccess: (response)=>{ |
|
|
console.log(response); |
|
|
console.log(response); |
|
|
// setOpen(true); |
|
|
// setOpen(true); |
|
|
|
|
|
setLoding(false); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
); |
|
|
); |
|
|
}) |
|
|
}) |
|
|
.catch(error => { |
|
|
.catch(error => { |
|
|
console.error(error); |
|
|
console.error(error); |
|
|
|
|
|
setLoding(false); |
|
|
}); |
|
|
}); |
|
|
|
|
|
}else{ |
|
|
|
|
|
setLoding(false); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@@ -1230,6 +1237,8 @@ const CustomFormWizard = (props) => { |
|
|
{/* Submit page */} |
|
|
{/* Submit page */} |
|
|
<FormGroup id={"submitForm"} sx={{ display: props.step === 2 ? "" : "none"}}> |
|
|
<FormGroup id={"submitForm"} sx={{ display: props.step === 2 ? "" : "none"}}> |
|
|
<Grid container spacing={3}> |
|
|
<Grid container spacing={3}> |
|
|
|
|
|
{isLoading ? |
|
|
|
|
|
<LoadingComponent/>: |
|
|
<Grid item xs={12}> |
|
|
<Grid item xs={12}> |
|
|
{checkUpload? |
|
|
{checkUpload? |
|
|
// SUCCESS page |
|
|
// SUCCESS page |
|
@@ -1249,6 +1258,7 @@ const CustomFormWizard = (props) => { |
|
|
</Stack> |
|
|
</Stack> |
|
|
} |
|
|
} |
|
|
</Grid> |
|
|
</Grid> |
|
|
|
|
|
} |
|
|
</Grid> |
|
|
</Grid> |
|
|
</FormGroup> |
|
|
</FormGroup> |
|
|
</form> |
|
|
</form> |
|
|