Merge branch 'feature/amin_add_history_facility' into 'develop'
Feature/amin add history facility See merge request witel-front-end/loan-facilities/user-v2!5
This commit is contained in:
@@ -157,6 +157,7 @@
|
||||
"back_to_dashboard": "پیگیری درخواست ها",
|
||||
"cityList_empty": "ابتدا استان را وارد کنید",
|
||||
"cityList_loading": "درحال دریافت لیست شهر ها ...",
|
||||
"history_facilities": "دارای سابقه استفاده از تسهیلات تکلیفی می باشم .",
|
||||
"loan_request_page": "ثبت درخواست وام",
|
||||
"personal_info": "اطلاعات شخصی",
|
||||
"real_person": "شخص حقیقی",
|
||||
|
||||
@@ -71,6 +71,7 @@ const LegalPersonForm = ({setFinishLoanRequest}) => {
|
||||
education_id: "",
|
||||
occupation_id: "",
|
||||
checkedBox: false,
|
||||
history_facilities: false,
|
||||
};
|
||||
|
||||
const validationSchema = Yup.object().shape({
|
||||
@@ -197,6 +198,7 @@ const LegalPersonForm = ({setFinishLoanRequest}) => {
|
||||
birthday: values.birthday.locale("en").format("YYYY-MM-DD"),
|
||||
education_id: values.education_id,
|
||||
occupation_id: values.occupation_id,
|
||||
facility_usage_history: values.history_facilities === true ? 1 : 0,
|
||||
..._national_card,
|
||||
..._national_number,
|
||||
..._father_name
|
||||
@@ -805,6 +807,22 @@ const LegalPersonForm = ({setFinishLoanRequest}) => {
|
||||
/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid container sx={{padding: 2}}>
|
||||
<Grid item xs={12}>
|
||||
<FormControlLabel
|
||||
color={"error.main"}
|
||||
control={
|
||||
<Checkbox
|
||||
checked={formik.values.history_facilities}
|
||||
onChange={(event) => {
|
||||
formik.setFieldValue("history_facilities", event.target.checked);
|
||||
}}
|
||||
/>
|
||||
}
|
||||
label={`${t("LoanRequest.history_facilities")}`}
|
||||
/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid container spacing={2} sx={{padding: 2}}>
|
||||
<Grid item xs={12}>
|
||||
<FormControlLabel
|
||||
|
||||
@@ -66,6 +66,7 @@ const RealPersonForm = ({setFinishLoanRequest}) => {
|
||||
plate_part4: "",
|
||||
birthday: "",
|
||||
checkedBox: false,
|
||||
history_facilities: false,
|
||||
};
|
||||
|
||||
const validationSchema = Yup.object().shape({
|
||||
@@ -166,6 +167,7 @@ const RealPersonForm = ({setFinishLoanRequest}) => {
|
||||
plate_part2: values.plate_part2,
|
||||
plate_part3: values.plate_part3,
|
||||
plate_part4: values.plate_part4,
|
||||
facility_usage_history: values.history_facilities === true ? 1 : 0,
|
||||
birthday: values.birthday.locale("en").format("YYYY-MM-DD"),
|
||||
..._national_card,
|
||||
..._father_name
|
||||
@@ -195,7 +197,6 @@ const RealPersonForm = ({setFinishLoanRequest}) => {
|
||||
onSubmit: handleSubmit,
|
||||
});
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<Grid container spacing={2} sx={{p: 2}}>
|
||||
@@ -688,7 +689,23 @@ const RealPersonForm = ({setFinishLoanRequest}) => {
|
||||
/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid container spacing={2} sx={{padding: 2}}>
|
||||
<Grid container sx={{padding: 2}}>
|
||||
<Grid item xs={12}>
|
||||
<FormControlLabel
|
||||
color={"error.main"}
|
||||
control={
|
||||
<Checkbox
|
||||
checked={formik.values.history_facilities}
|
||||
onChange={(event) => {
|
||||
formik.setFieldValue("history_facilities", event.target.checked);
|
||||
}}
|
||||
/>
|
||||
}
|
||||
label={`${t("LoanRequest.history_facilities")}`}
|
||||
/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid container sx={{px: 2}}>
|
||||
<Grid item xs={12}>
|
||||
<FormControlLabel
|
||||
color={"error.main"}
|
||||
|
||||
Reference in New Issue
Block a user