add alerts
This commit is contained in:
@@ -151,7 +151,7 @@ const CreateFactorContent = ({ row, mutate, rowId, setOpenCreateFactorDialog })
|
|||||||
<Grid item xs={12}>
|
<Grid item xs={12}>
|
||||||
<Stack spacing={1}>
|
<Stack spacing={1}>
|
||||||
<Alert severity="warning">
|
<Alert severity="warning">
|
||||||
بعد از صدور فاکتور، ویرایش اطلاعات کاربر و مبالغ امکانپذیر نخواهد بود.
|
پس از صدور فاکتور، امکان ویرایش مبالغ بیمه و داغی وجود نخواهد داشت
|
||||||
</Alert>
|
</Alert>
|
||||||
<Alert severity="info">
|
<Alert severity="info">
|
||||||
لینک پرداخت فاکتور به شماره {row.original?.driver_phone_number} ارسال می شود.
|
لینک پرداخت فاکتور به شماره {row.original?.driver_phone_number} ارسال می شود.
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ const EditController = ({ rowId, mutate, setOpenEditDialog }) => {
|
|||||||
}, [rowId]);
|
}, [rowId]);
|
||||||
|
|
||||||
const today = new Date().toISOString().split("T")[0];
|
const today = new Date().toISOString().split("T")[0];
|
||||||
const plaqueNumber = damageItemDetails?.plaque.split("-") || [];
|
const plaqueNumber = damageItemDetails?.is_foreign == 0 ? damageItemDetails?.plaque.split("-") || [] : [];
|
||||||
const defaultData = {
|
const defaultData = {
|
||||||
isForeign: damageItemDetails?.is_foreign,
|
isForeign: String(damageItemDetails?.is_foreign),
|
||||||
damage_picture1: damageItemDetails?.damage_picture1 || null,
|
damage_picture1: damageItemDetails?.damage_picture1 || null,
|
||||||
damage_picture2: damageItemDetails?.damage_picture2 || null,
|
damage_picture2: damageItemDetails?.damage_picture2 || null,
|
||||||
accident_date: new Date(damageItemDetails?.accident_date) || "",
|
accident_date: new Date(damageItemDetails?.accident_date) || "",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button, DialogActions, DialogContent, Stack, Typography } from "@mui/material";
|
import { Alert, Button, DialogActions, DialogContent, Stack, Typography } from "@mui/material";
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import useRequest from "@/lib/hooks/useRequest";
|
import useRequest from "@/lib/hooks/useRequest";
|
||||||
import { GET_INSURANCE, GET_INSURANCE_PAGE } from "@/core/utils/routes";
|
import { GET_INSURANCE, GET_INSURANCE_PAGE } from "@/core/utils/routes";
|
||||||
@@ -24,6 +24,9 @@ const SendToInsuranceContent = ({ setOpenSendInsuranceDialog, rowId, mutate }) =
|
|||||||
<DialogContent>
|
<DialogContent>
|
||||||
<Stack spacing={2}>
|
<Stack spacing={2}>
|
||||||
<Typography mt={2}>آیا از صدور نامه بیمه اطمینان دارید؟</Typography>
|
<Typography mt={2}>آیا از صدور نامه بیمه اطمینان دارید؟</Typography>
|
||||||
|
<Alert color="warning" icon={false}>
|
||||||
|
در صورت صدور نامه بیمه، اطلاعات قابل ویرایش یا حذف نخواهند بود
|
||||||
|
</Alert>
|
||||||
</Stack>
|
</Stack>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
<DialogActions>
|
<DialogActions>
|
||||||
|
|||||||
Reference in New Issue
Block a user