Merge branch 'bugfix/refer_info' into 'develop'
show refer information See merge request witel-front-end/loan-facilities/expert-v2!11
This commit is contained in:
@@ -15,7 +15,7 @@ const vehicle_amount = {
|
||||
"مینی بوس": 2000,
|
||||
};
|
||||
|
||||
const ConfirmContent = ({ rowId, mutate, setOpenConfirmDialog, vehicle_type }) => {
|
||||
const ConfirmContent = ({ rowId, mutate, setOpenConfirmDialog, vehicle_type, row }) => {
|
||||
const t = useTranslations();
|
||||
const [expertImg, setExpertImg] = useState("");
|
||||
const [expertFileType, setExpertFileType] = useState(null);
|
||||
@@ -69,17 +69,17 @@ const ConfirmContent = ({ rowId, mutate, setOpenConfirmDialog, vehicle_type }) =
|
||||
|
||||
const formik = useFormik({
|
||||
initialValues: {
|
||||
description: "",
|
||||
approved_amount: "",
|
||||
facility_bank: "",
|
||||
facility_gov: "",
|
||||
facility_person: "",
|
||||
physical_progress: "",
|
||||
repayment_period: "",
|
||||
committed_employment: "",
|
||||
sakht_period: "",
|
||||
tanafos_period: "",
|
||||
existing_employment: "",
|
||||
description: row.original.description || "",
|
||||
approved_amount: row.original.approved_amount / 1000000 || "",
|
||||
facility_bank: row.original.facility_bank / 1000000 || "",
|
||||
facility_gov: row.original.facility_gov / 1000000 || "",
|
||||
facility_person: row.original.facility_person / 1000000 || "",
|
||||
physical_progress: row.original.physical_progress || "",
|
||||
repayment_period: row.original.repayment_period || "",
|
||||
committed_employment: row.original.committed_employment || "",
|
||||
sakht_period: row.original.sakht_period || "",
|
||||
tanafos_period: row.original.tanafos_period || "",
|
||||
existing_employment: row.original.existing_employment || "",
|
||||
expert_img: null,
|
||||
},
|
||||
validationSchema,
|
||||
|
||||
@@ -4,7 +4,7 @@ import {useEffect, useState} from "react";
|
||||
import ConfirmContent from "./ConfirmContent";
|
||||
import CallMadeIcon from '@mui/icons-material/CallMade';
|
||||
|
||||
const Confirm = ({rowId, mutate, vehicle_type}) => {
|
||||
const Confirm = ({rowId, mutate, vehicle_type, row}) => {
|
||||
const t = useTranslations();
|
||||
const [openConfirmDialog, setOpenConfirmDialog] = useState(false);
|
||||
const [dialogSize, setDialogSize] = useState('sm');
|
||||
@@ -35,7 +35,7 @@ const Confirm = ({rowId, mutate, vehicle_type}) => {
|
||||
PaperProps={{sx: {transition: 'all .3s' , boxShadow: 'rgba(60, 64, 67, 0.3) 0px 1px 16px 0px, rgba(60, 64, 67, 0.15) 0px 1px 10px 0px'}}} maxWidth={dialogSize}>
|
||||
<DialogTitle>{t("PassengerBoss.confirm")}</DialogTitle>
|
||||
<ConfirmContent mutate={mutate} rowId={rowId} setOpenConfirmDialog={setOpenConfirmDialog} handleSizeChangeClick={handleSizeChangeClick}
|
||||
vehicle_type={vehicle_type}/>
|
||||
vehicle_type={vehicle_type} row={row}/>
|
||||
</Dialog>
|
||||
</>
|
||||
)
|
||||
|
||||
@@ -11,6 +11,7 @@ const TableRow = ({row, mutate}) => {
|
||||
rowId={row.getValue("id")}
|
||||
vehicle_type={row.original.vehicle_type}
|
||||
mutate={mutate}
|
||||
row={row}
|
||||
/>
|
||||
<ReserveForm
|
||||
rowId={row.getValue("id")}
|
||||
|
||||
Reference in New Issue
Block a user