bitrix_task_control/src/departments/salesOriginal/profile.ts

45 lines
1.7 KiB
TypeScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { DepartmentProfile } from '../../reports/types';
import { bigSmallPlugin } from '../../reports/bigSmall';
import { selfTasksPlugin } from '../../reports/selfTasks';
import { effectivenessPlugin } from '../../reports/effectiveness';
import { newTemplatesPlugin } from '../../reports/newTemplates';
import { planOverduePlugin } from '../../reports/planOverdue';
import { singleTimePlugin } from './singleTime';
import { waitingControlPlugin } from './waitingControl';
import { overduePlugin } from './overdue';
import { completedPlugin } from './completed';
import { workloadPlugin } from './workload';
import { currentTasksPlugin } from './currentTasks';
import { salesOriginalColumnWidths } from './columnWidths';
import { withAppendFromConfig, withMenuTitle } from './pluginUtils';
import { deleteOldReportsPlugin } from '../../reports/deleteOldReports';
export const salesOriginalProfile: DepartmentProfile = {
id: 'salesOriginal',
reportColumnWidths: salesOriginalColumnWidths,
reportSheetExtras: {
freezeHeader: true,
appendDates: true,
},
plugins: [
withAppendFromConfig(bigSmallPlugin, ['createBigSmallTasksReport']),
singleTimePlugin,
waitingControlPlugin,
overduePlugin,
withAppendFromConfig(selfTasksPlugin, ['buildSelfAssignedTasksReport']),
planOverduePlugin,
workloadPlugin,
currentTasksPlugin,
completedPlugin,
withMenuTitle(
withAppendFromConfig(effectivenessPlugin, ['saveDateRange', 'repPreviousWeek']),
'🔟 🆕 Лист эффективности'
),
withMenuTitle(
withAppendFromConfig(newTemplatesPlugin, ['createNewTemplatesRepors']),
'1️⃣1️⃣ 🆕 Новые шаблоны'
),
deleteOldReportsPlugin,
],
};