feat/green-innovation #6
File diff suppressed because it is too large
Load Diff
|
|
@ -121,7 +121,7 @@ export function ProcessInnovationPage() {
|
||||||
direction: "asc",
|
direction: "asc",
|
||||||
});
|
});
|
||||||
const [selectedProjects, setSelectedProjects] = useState<Set<string>>(
|
const [selectedProjects, setSelectedProjects] = useState<Set<string>>(
|
||||||
new Set(),
|
new Set()
|
||||||
);
|
);
|
||||||
const [detailsDialogOpen, setDetailsDialogOpen] = useState(false);
|
const [detailsDialogOpen, setDetailsDialogOpen] = useState(false);
|
||||||
const [selectedProjectDetails, setSelectedProjectDetails] =
|
const [selectedProjectDetails, setSelectedProjectDetails] =
|
||||||
|
|
@ -167,7 +167,7 @@ export function ProcessInnovationPage() {
|
||||||
title: "جلوگیری از توقفات تولید",
|
title: "جلوگیری از توقفات تولید",
|
||||||
value: formatNumber(
|
value: formatNumber(
|
||||||
stats.productionStopsPreventionSum.toFixed?.(1) ??
|
stats.productionStopsPreventionSum.toFixed?.(1) ??
|
||||||
stats.productionStopsPreventionSum,
|
stats.productionStopsPreventionSum
|
||||||
),
|
),
|
||||||
description: "تن افزایش یافته",
|
description: "تن افزایش یافته",
|
||||||
icon: <CirclePause />,
|
icon: <CirclePause />,
|
||||||
|
|
@ -186,7 +186,7 @@ export function ProcessInnovationPage() {
|
||||||
id: "currency-reduction",
|
id: "currency-reduction",
|
||||||
title: "کاهش ارز بری",
|
title: "کاهش ارز بری",
|
||||||
value: formatNumber(
|
value: formatNumber(
|
||||||
stats.currencyReductionSum.toFixed?.(0) ?? stats.currencyReductionSum,
|
stats.currencyReductionSum.toFixed?.(0) ?? stats.currencyReductionSum
|
||||||
),
|
),
|
||||||
description: "دلار کاهش یافته",
|
description: "دلار کاهش یافته",
|
||||||
icon: <DollarSign />,
|
icon: <DollarSign />,
|
||||||
|
|
@ -197,7 +197,7 @@ export function ProcessInnovationPage() {
|
||||||
title: "کاهش خرابی های پرتکرار",
|
title: "کاهش خرابی های پرتکرار",
|
||||||
value: formatNumber(
|
value: formatNumber(
|
||||||
stats.frequentFailuresReductionSum.toFixed?.(1) ??
|
stats.frequentFailuresReductionSum.toFixed?.(1) ??
|
||||||
stats.frequentFailuresReductionSum,
|
stats.frequentFailuresReductionSum
|
||||||
),
|
),
|
||||||
description: "مجموع درصد کاهش خرابی",
|
description: "مجموع درصد کاهش خرابی",
|
||||||
icon: <Wrench />,
|
icon: <Wrench />,
|
||||||
|
|
@ -418,22 +418,22 @@ export function ProcessInnovationPage() {
|
||||||
totalProjects: parseNum(payload?.count_innovation_process_projects),
|
totalProjects: parseNum(payload?.count_innovation_process_projects),
|
||||||
averageScore: parseNum(payload?.average_project_score),
|
averageScore: parseNum(payload?.average_project_score),
|
||||||
productionStopsPreventionSum: parseNum(
|
productionStopsPreventionSum: parseNum(
|
||||||
payload?.sum_stopping_production,
|
payload?.sum_stopping_production
|
||||||
),
|
),
|
||||||
bottleneckRemovalCount: parseNum(payload?.count_throat_removal),
|
bottleneckRemovalCount: parseNum(payload?.count_throat_removal),
|
||||||
currencyReductionSum: parseNum(payload?.sum_reduction_value_currency),
|
currencyReductionSum: parseNum(payload?.sum_reduction_value_currency),
|
||||||
frequentFailuresReductionSum: parseNum(
|
frequentFailuresReductionSum: parseNum(
|
||||||
payload?.sum_reducing_breakdowns,
|
payload?.sum_reducing_breakdowns
|
||||||
),
|
),
|
||||||
percentProductionStops: parseNum(
|
percentProductionStops: parseNum(
|
||||||
payload?.percent_sum_stopping_production,
|
payload?.percent_sum_stopping_production
|
||||||
),
|
),
|
||||||
percentBottleneckRemoval: parseNum(payload?.percent_throat_removal),
|
percentBottleneckRemoval: parseNum(payload?.percent_throat_removal),
|
||||||
percentCurrencyReduction: parseNum(
|
percentCurrencyReduction: parseNum(
|
||||||
payload?.percent_reduction_value_currency,
|
payload?.percent_reduction_value_currency
|
||||||
),
|
),
|
||||||
percentFailuresReduction: parseNum(
|
percentFailuresReduction: parseNum(
|
||||||
payload?.percent_reducing_breakdowns,
|
payload?.percent_reducing_breakdowns
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -841,7 +841,7 @@ export function ProcessInnovationPage() {
|
||||||
{formatNumber(
|
{formatNumber(
|
||||||
((stats.averageScore ?? 0) as number).toFixed?.(1) ??
|
((stats.averageScore ?? 0) as number).toFixed?.(1) ??
|
||||||
stats.averageScore ??
|
stats.averageScore ??
|
||||||
0,
|
0
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -882,7 +882,7 @@ export function ProcessInnovationPage() {
|
||||||
{selectedProjectDetails?.start_date
|
{selectedProjectDetails?.start_date
|
||||||
? moment(
|
? moment(
|
||||||
selectedProjectDetails?.start_date,
|
selectedProjectDetails?.start_date,
|
||||||
"YYYY-MM-DD",
|
"YYYY-MM-DD"
|
||||||
).format("YYYY/MM/DD")
|
).format("YYYY/MM/DD")
|
||||||
: "-"}
|
: "-"}
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -897,7 +897,7 @@ export function ProcessInnovationPage() {
|
||||||
{selectedProjectDetails?.done_date
|
{selectedProjectDetails?.done_date
|
||||||
? moment(
|
? moment(
|
||||||
selectedProjectDetails?.done_date,
|
selectedProjectDetails?.done_date,
|
||||||
"YYYY-MM-DD",
|
"YYYY-MM-DD"
|
||||||
).format("YYYY/MM/DD")
|
).format("YYYY/MM/DD")
|
||||||
: "-"}
|
: "-"}
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -913,9 +913,9 @@ export function ProcessInnovationPage() {
|
||||||
Number(
|
Number(
|
||||||
selectedProjectDetails?.approved_budget.replaceAll(
|
selectedProjectDetails?.approved_budget.replaceAll(
|
||||||
",",
|
",",
|
||||||
"",
|
""
|
||||||
),
|
)
|
||||||
),
|
)
|
||||||
) || "-"}
|
) || "-"}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,18 @@ export default [
|
||||||
"dashboard/innovation-basket/process-innovation",
|
"dashboard/innovation-basket/process-innovation",
|
||||||
"routes/innovation-basket.process-innovation.tsx"
|
"routes/innovation-basket.process-innovation.tsx"
|
||||||
),
|
),
|
||||||
|
route(
|
||||||
|
"dashboard/innovation-basket/green-innovation",
|
||||||
|
"routes/green-innovation.tsx"
|
||||||
|
),
|
||||||
route(
|
route(
|
||||||
"/dashboard/innovation-basket/digital-innovation",
|
"/dashboard/innovation-basket/digital-innovation",
|
||||||
"routes/digital-innovation-page.tsx"
|
"routes/digital-innovation-page.tsx"
|
||||||
),
|
),
|
||||||
|
route(
|
||||||
|
"dashboard/innovation-basket/green-innovation",
|
||||||
|
"routes/green-innovation.tsx"
|
||||||
|
),
|
||||||
route("projects", "routes/projects.tsx"),
|
route("projects", "routes/projects.tsx"),
|
||||||
route("dashboard/ecosystem", "routes/ecosystem.tsx"),
|
route("dashboard/ecosystem", "routes/ecosystem.tsx"),
|
||||||
route("404", "routes/404.tsx"),
|
route("404", "routes/404.tsx"),
|
||||||
|
|
|
||||||
17
app/routes/green-innovation.tsx
Normal file
17
app/routes/green-innovation.tsx
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
import { ProtectedRoute } from "~/components/auth/protected-route";
|
||||||
|
import GreenInnovationPage from "~/components/dashboard/project-management/green-innovation-page";
|
||||||
|
|
||||||
|
export function meta() {
|
||||||
|
return [
|
||||||
|
{ title: "نوآوری در فرآیند - سیستم مدیریت فناوری و نوآوری" },
|
||||||
|
{ name: "description", content: "مدیریت پروژههای نوآوری در فرآیند" },
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function GreenInnovation() {
|
||||||
|
return (
|
||||||
|
<ProtectedRoute requireAuth={true}>
|
||||||
|
<GreenInnovationPage />
|
||||||
|
</ProtectedRoute>
|
||||||
|
);
|
||||||
|
}
|
||||||
6859
package-lock.json
generated
6859
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
1917
pnpm-lock.yaml
1917
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user