formatting
This commit is contained in:
@@ -175,7 +175,7 @@ const CreateFormContent = ({ setOpen, SubmitDamage, defaultData }) => {
|
|||||||
"damage_picture2",
|
"damage_picture2",
|
||||||
];
|
];
|
||||||
} else if (tabState === 1) {
|
} else if (tabState === 1) {
|
||||||
fieldsToValidate = ["report_base", "police_file", "police_file_date", "police_serial", 'driver_rate'];
|
fieldsToValidate = ["report_base", "police_file", "police_file_date", "police_serial", "driver_rate"];
|
||||||
} else if (tabState === 2) {
|
} else if (tabState === 2) {
|
||||||
fieldsToValidate = ["items_damage"];
|
fieldsToValidate = ["items_damage"];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ const OperatorCreateForm = ({ open, setOpen, mutate }) => {
|
|||||||
mutate();
|
mutate();
|
||||||
setOpen(false);
|
setOpen(false);
|
||||||
})
|
})
|
||||||
.catch(() => { });
|
.catch(() => {});
|
||||||
};
|
};
|
||||||
const defaultData = {
|
const defaultData = {
|
||||||
isForeign: "0",
|
isForeign: "0",
|
||||||
|
|||||||
@@ -113,7 +113,9 @@ const CreateFactorContent = ({ row, mutate, rowId, setOpenCreateFactorDialog })
|
|||||||
{(row.original?.driver_share_amount / 1).toLocaleString() || "0"} ریال
|
{(row.original?.driver_share_amount / 1).toLocaleString() || "0"} ریال
|
||||||
</Typography>
|
</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item xs={12} sm={12} sx={{ display: "flex" }}><Divider sx={{ flex: 1 }} /></Grid>
|
<Grid item xs={12} sm={12} sx={{ display: "flex" }}>
|
||||||
|
<Divider sx={{ flex: 1 }} />
|
||||||
|
</Grid>
|
||||||
<Grid item xs={12} sm={12} sx={{ display: "flex", alignItems: "center" }}>
|
<Grid item xs={12} sm={12} sx={{ display: "flex", alignItems: "center" }}>
|
||||||
<Box sx={{ display: "flex", alignItems: "center" }}>
|
<Box sx={{ display: "flex", alignItems: "center" }}>
|
||||||
<Chip
|
<Chip
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ const EditController = ({ rowId, mutate, setOpenEditDialog }) => {
|
|||||||
mutate();
|
mutate();
|
||||||
setOpenEditDialog(false);
|
setOpenEditDialog(false);
|
||||||
})
|
})
|
||||||
.catch(() => { });
|
.catch(() => {});
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ const RegisterInsuranceContent = ({ setOpenRegisterInsuranceDialog, row, mutate,
|
|||||||
});
|
});
|
||||||
mutate();
|
mutate();
|
||||||
setOpenRegisterInsuranceDialog(false);
|
setOpenRegisterInsuranceDialog(false);
|
||||||
} catch (error) { }
|
} catch (error) {}
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<StyledForm onSubmit={handleSubmit(onSubmitBase)}>
|
<StyledForm onSubmit={handleSubmit(onSubmitBase)}>
|
||||||
|
|||||||
@@ -162,8 +162,8 @@ const OperatorList = () => {
|
|||||||
props.dependencyFieldValue?.value === ""
|
props.dependencyFieldValue?.value === ""
|
||||||
? "empty"
|
? "empty"
|
||||||
: loadingCityList
|
: loadingCityList
|
||||||
? "loading"
|
? "loading"
|
||||||
: props.filterParameters.value
|
: props.filterParameters.value
|
||||||
}
|
}
|
||||||
columnSelectOption={getColumnSelectOptions}
|
columnSelectOption={getColumnSelectOptions}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user