layout worked with backend
This commit is contained in:
@@ -149,7 +149,7 @@ export default function ROIData() {
|
||||
}
|
||||
console.log('selectedProduct.productUuid: ', selectedProduct.productUuid);
|
||||
|
||||
saveSimulationData({ key: selectedProduct.productUuid, data: data });
|
||||
// saveSimulationData({ key: selectedProduct.productUuid, data: data });
|
||||
const datas = {
|
||||
roi: data
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ export default function ProductionCapacityData() {
|
||||
const Monthly_working_days = workingDaysPerYear / 12;
|
||||
const Production_capacity_per_month = throughputData * Monthly_working_days;
|
||||
const data = Number(Production_capacity_per_month.toFixed(2));
|
||||
saveSimulationData({ key: 'productionCapacity', data: data });
|
||||
// saveSimulationData({ key: 'productionCapacity', data: data });
|
||||
setMaterialData({ ...materialData, productionCapacity: data });
|
||||
setProductionCapacityData(Number(Production_capacity_per_month.toFixed(2)));
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ export default function ThroughPutData() {
|
||||
const Throughput_per_day = Units_per_shift * shiftsPerDay * (yieldRate / 100);
|
||||
const data = Number(Throughput_per_day.toFixed(2))
|
||||
console.log('data: ', data);
|
||||
saveSimulationData({ key: selectedProduct.productUuid, data: data });
|
||||
// saveSimulationData({ key: selectedProduct.productUuid, data: data });
|
||||
|
||||
setMaterialData({ ...materialData, throughput: data });
|
||||
setThroughputData(Number(Throughput_per_day.toFixed(2))); // Keep as number
|
||||
|
||||
Reference in New Issue
Block a user