import type { ItemConvertedToActs } from '@/types/productions/summarySection'
import type { RersourceResultType, PieData, PieLabels, ConvertedEqItemType, NonWorkItemType, ConvertedHrItemType, AcivitiesSummaryData } from '@/types/components/productions/typesComponentsProductionsSummary'
import type { ActiviTyStatistcsType } from '@/types/resourcesTypes.ts'
const productionStore = useProductionStore()
const globalStore = useGlobalStore()
export function getActivitiesStatistics(acivitiesSummaryData: AcivitiesSummaryData): ActiviTyStatistcsType[] {
console.time('getActivitiesStatistics')
...
for (let i = 0; i < activitiesStatisticsWithActCode.length; i++) {
...
const actDataArrayByType = **productionStore**.activitiesTabData[statisticItem.actType]
...
}
const newItem: ActiviTyStatistcsWithActCode = {
'actCode': actItem.actCode,
'center': globalStore.pickedCenter.code!,
...
}
}
}
import type { ItemConvertedToActs } from '@/types/productions/summarySection'
import type { RersourceResultType, PieData, PieLabels, ConvertedEqItemType, NonWorkItemType, ConvertedHrItemType, AcivitiesSummaryData } from '@/types/components/productions/typesComponentsProductionsSummary'
import type { ActiviTyStatistcsType } from '@/types/resourcesTypes.ts'
const productionStore = useProductionStore()
const globalStore = useGlobalStore()
export function getActivitiesStatistics(acivitiesSummaryData: AcivitiesSummaryData): ActiviTyStatistcsType[] {
console.time('getActivitiesStatistics')
...
for (let i = 0; i < activitiesStatisticsWithActCode.length; i++) {
...
const actDataArrayByType = **productionStore**.activitiesTabData[statisticItem.actType]
...
}
const newItem: ActiviTyStatistcsWithActCode = {
'actCode': actItem.actCode,
'center': globalStore.pickedCenter.code!,
...
}
}
}