add damages
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
import WithPermission from "@/core/middlewares/withPermission";
|
|
||||||
import ActivityCodeLog from "@/core/components/ActivityCodeLog";
|
|
||||||
import OperatorPage from "@/components/dashboard/damages/operator";
|
import OperatorPage from "@/components/dashboard/damages/operator";
|
||||||
|
import ActivityCodeLog from "@/core/components/ActivityCodeLog";
|
||||||
|
import WithPermission from "@/core/middlewares/withPermission";
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
title: "کارتابل عملیات خسارات وارد بر ابنیه فنی",
|
title: "کارتابل عملیات خسارات وارد بر ابنیه فنی",
|
||||||
};
|
};
|
||||||
const Page = () => {
|
const Page = () => {
|
||||||
return (
|
return (
|
||||||
<WithPermission permission_name={["all"]}>
|
<WithPermission permission_name={["show-receipt", "show-receipt-province"]}>
|
||||||
<OperatorPage />
|
<OperatorPage />
|
||||||
{/*<ActivityCodeLog activity_code={1152} /> change permission */}
|
<ActivityCodeLog activity_code={1122} /> change permission
|
||||||
</WithPermission>
|
</WithPermission>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -477,17 +477,17 @@ export const pageMenu = [
|
|||||||
id: "receiptManagmentOparationCartable",
|
id: "receiptManagmentOparationCartable",
|
||||||
label: "کارتابل",
|
label: "کارتابل",
|
||||||
type: "page",
|
type: "page",
|
||||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/receipt",
|
route: "/dashboard/damages/operator",
|
||||||
permissions: ["all"],
|
permissions: ["show-receipt", "show-receipt-province"],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "receiptManagmentReport",
|
id: "damagesManagmentReport",
|
||||||
label: "گزارش ها",
|
label: "گزارش ها",
|
||||||
type: "page",
|
type: "page",
|
||||||
route: "/dashboard/damages/report",
|
route: "/dashboard/damages/report",
|
||||||
icon: <ReportIcon sx={{ width: "inherit", height: "inherit" }} />,
|
icon: <AssessmentIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||||
permissions: ["show-receipt", "show-receipt-province"],
|
permissions: ["show-receipt", "show-receipt-province"],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user