diff --git a/src/components/dashboard/roadMissions/operator/Actions/CreateWithoutProcess/Form/Verify/index.jsx b/src/components/dashboard/roadMissions/operator/Actions/CreateWithoutProcess/Form/Verify/index.jsx
index 48516b0..d55de17 100644
--- a/src/components/dashboard/roadMissions/operator/Actions/CreateWithoutProcess/Form/Verify/index.jsx
+++ b/src/components/dashboard/roadMissions/operator/Actions/CreateWithoutProcess/Form/Verify/index.jsx
@@ -3,6 +3,14 @@ import { missionRegions } from "@/core/utils/missionRegions";
import { Box, Button, Chip, DialogActions, DialogContent, Divider, Stack, Typography } from "@mui/material";
import moment from "jalali-moment";
import { useCallback } from "react";
+// import ShowBound from "../../../showBound";
+// import MapLoading from "@/core/components/MapLayer/Loading";
+// import dynamic from "next/dynamic";
+//
+// const MapLayer = dynamic(() => import("@/core/components/MapLayer"), {
+// loading: () => ,
+// ssr: false,
+// });
const Verify = ({ allData, handlePrev, submitForm, submitting }) => {
const handleNext = useCallback(() => {
@@ -14,6 +22,11 @@ const Verify = ({ allData, handlePrev, submitForm, submitting }) => {
+ {/**/}
+ {/* */}
+ {/* */}
+ {/* */}
+ {/**/}
diff --git a/src/components/dashboard/roadMissions/operator/Actions/CreateWithoutProcess/Form/index.jsx b/src/components/dashboard/roadMissions/operator/Actions/CreateWithoutProcess/Form/index.jsx
index 0d60270..a36981c 100644
--- a/src/components/dashboard/roadMissions/operator/Actions/CreateWithoutProcess/Form/index.jsx
+++ b/src/components/dashboard/roadMissions/operator/Actions/CreateWithoutProcess/Form/index.jsx
@@ -1,4 +1,4 @@
-import { AccessTime, Engineering, InsertDriveFile, LocalShipping, Verified } from "@mui/icons-material";
+import { AccessTime, Engineering, InsertDriveFile, LocalShipping, Route, Verified } from "@mui/icons-material";
import { Box, Tab, Tabs } from "@mui/material";
import { useReducer, useState } from "react";
import GetDateTime from "./GetDateTime";
@@ -6,6 +6,7 @@ import GetItemInfo from "./GetItemInfo";
import MachineAndDriver from "./MachineAndDriver";
import Rahdaran from "./Rahdaran";
import Verify from "./Verify";
+import Area from "@/components/dashboard/roadMissions/operator/Actions/Create/Form/Area";
function TabPanel(props) {
const { children, value, index } = props;
@@ -60,6 +61,7 @@ const CreateForm = ({ defaultValues, submitForm, setOpen, submitting }) => {
>
} label="مشخصات" />
} label="زمانبندی" />
+ {/*} label="منطقه عملیاتی" />*/}
} label="خودرو و راننده" />
} label="همراهان" />
} label="بررسی نهایی" />
@@ -84,6 +86,16 @@ const CreateForm = ({ defaultValues, submitForm, setOpen, submitting }) => {
setTabState={setTabState}
/>
+ {/**/}
+ {/* {*/}
+ {/* dispatch({ type: "changeData", data });*/}
+ {/* }}*/}
+ {/* handlePrev={handlePrev}*/}
+ {/* setTabState={setTabState}*/}
+ {/* />*/}
+ {/**/}
{
const submitForm = async (result) => {
setSubmitting(true);
+ // const bound = result.bound.getLatLngs();
+ // let area =
+ // result.bound_type === "polygon"
+ // ? bound.map((ring) => ring.map((latlng) => [latlng.lng, latlng.lat]))[0]
+ // : bound.map((latlng) => [latlng.lng, latlng.lat]);
+ //
+ // // بستن polygon
+ // if (result.bound_type === "polygon" && area.length > 0) {
+ // const firstPoint = area[0];
+ // area.push({ ...firstPoint });
+ // }
await requestServer(REQUEST_MISSION_WITHOUT_PROCESS, "post", {
data: {
@@ -27,6 +38,10 @@ const CreateWithoutProcess = ({ mutate }) => {
...(result.rahdaran.length != 0 ? { rahdaran: result.rahdaran.map((r) => r.id) } : {}),
zone: result.region,
end_point: result.end_point,
+ // area: {
+ // type: result.bound_type,
+ // coordinates: area,
+ // },
start_date: `${result.start_date} ${moment(result.start_time).format("HH:mm")}`,
end_date: `${result.end_date} ${moment(result.end_time).format("HH:mm")}`,
driver: result.driver.id,
@@ -85,6 +100,8 @@ const CreateWithoutProcess = ({ mutate }) => {
start_date: "",
start_time: null,
end_date: "",
+ // bound: null,
+ // bound_type: "polyline",
end_time: null,
end_point: "",
region: "",