shared-ritm 1.2.58 → 1.2.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/README.md +103 -103
  2. package/dist/index.css +1 -1
  3. package/dist/shared-ritm.es.js +4787 -4771
  4. package/dist/shared-ritm.umd.js +7 -7
  5. package/dist/types/api/services/VideoService.d.ts +6 -0
  6. package/dist/types/index.d.ts +2 -1
  7. package/package.json +63 -63
  8. package/src/api/services/ControlsService.ts +64 -64
  9. package/src/api/services/GanttService.ts +17 -17
  10. package/src/api/services/MetricsService.ts +109 -109
  11. package/src/api/services/ProjectsService.ts +67 -67
  12. package/src/api/services/RepairsService.ts +100 -100
  13. package/src/api/services/VideoService.ts +14 -0
  14. package/src/api/types/Api_Files.ts +1 -1
  15. package/src/api/types/Api_Projects.ts +55 -55
  16. package/src/api/types/Api_Repairs.ts +93 -93
  17. package/src/api/types/Api_Tasks.ts +155 -155
  18. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  19. package/src/common/app-dialogs/AppConfirmDialog.vue +99 -99
  20. package/src/common/app-dropdown/AppDropdown.vue +31 -31
  21. package/src/common/app-select/AppSelect.vue +157 -157
  22. package/src/common/app-sheet/AppSheet.vue +120 -120
  23. package/src/common/app-sidebar/components/SidebarMenuItem.vue +148 -148
  24. package/src/common/app-table/AppTable.vue +241 -241
  25. package/src/common/app-table/AppTableLayout.vue +102 -102
  26. package/src/common/app-table/components/ModalSelect.vue +264 -264
  27. package/src/common/app-table/components/TableModal.vue +329 -329
  28. package/src/common/app-table/components/TablePagination.vue +150 -150
  29. package/src/common/app-table/components/TableSearch.vue +76 -76
  30. package/src/common/app-table/controllers/useBaseTable.ts +42 -42
  31. package/src/common/app-table/controllers/useColumnSelector.ts +38 -38
  32. package/src/common/app-table/controllers/useTableModel.ts +93 -93
  33. package/src/common/app-toggle/AppToggle.vue +23 -23
  34. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  35. package/src/icons/components/table-filter-icon.vue +30 -30
  36. package/src/icons/dialogs/RemoveIcon.vue +12 -12
  37. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  38. package/src/icons/task/attention-icon.vue +13 -13
  39. package/src/icons/task/clock-icon.vue +10 -10
  40. package/src/icons/task/delete-icon.vue +10 -10
  41. package/src/icons/task/fire-icon.vue +16 -16
  42. package/src/index.ts +86 -84
  43. package/src/shared/fonts/Inter_18pt-Black.ttf +0 -0
  44. package/src/shared/fonts/Inter_18pt-Bold.ttf +0 -0
  45. package/src/shared/fonts/Inter_18pt-Regular.ttf +0 -0
  46. package/src/shared/fonts/Inter_18pt-SemiBold.ttf +0 -0
  47. package/src/shared/styles/general.css +125 -96
  48. package/src/styles/variables.sass +12 -12
  49. package/src/utils/confirm.ts +12 -12
  50. package/src/utils/helpers.ts +39 -39
  51. package/src/utils/notification.ts +9 -9
@@ -0,0 +1,6 @@
1
+ import ApiService from '@/api/settings/ApiService';
2
+ declare class VideoService extends ApiService {
3
+ startVideoAnalytics(): Promise<boolean>;
4
+ }
5
+ export default function useVideoService(): VideoService;
6
+ export {};
@@ -28,10 +28,11 @@ import useRepairsService from '@/api/services/RepairsService';
28
28
  import useTasksService from '@/api/services/TasksService';
29
29
  import useAuthService from '@/api/services/AuthService';
30
30
  import useFileService from '@/api/services/FileService';
31
+ import useVideoService from '@/api/services/VideoService';
31
32
  import ApiService from '@/api/settings/ApiService';
32
33
  import useControlsService from '@/api/services/ControlsService';
33
34
  export { AppButton, AppCheckbox, AppDatePicker, AppInput, AppInputSearch, AppLayout, AppLayoutHeader, AppLayoutPage, AppLoader, AppSelect, AppSheet, AppSidebar, AppToggle, AppWrapper, AppConfirmDialog, AppDropdown, AppTablePagination, AppTableSearch, AppTableModal, AppTable, AppTableLayout, AppModalSelect, };
34
- export { ApiService, useAuthService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService, useFileService, useControlsService, };
35
+ export { ApiService, useAuthService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService, useFileService, useControlsService, useVideoService, };
35
36
  export { useBaseTable } from './common/app-table/controllers/useBaseTable';
36
37
  export { useTableModel } from './common/app-table/controllers/useTableModel';
37
38
  export { useColumnSelector } from './common/app-table/controllers/useColumnSelector';
package/package.json CHANGED
@@ -1,63 +1,63 @@
1
- {
2
- "name": "shared-ritm",
3
- "version": "1.2.58",
4
- "private": false,
5
- "files": [
6
- "dist",
7
- "src"
8
- ],
9
- "main": "dist/shared-ritm.umd.js",
10
- "type": "module",
11
- "module": "./dist/shared-ritm.es.js",
12
- "types": "./dist/types/index.d.ts",
13
- "exports": {
14
- ".": {
15
- "import": "./dist/shared-ritm.es.js",
16
- "require": "./dist/shared-ritm.umd.js",
17
- "default": "./dist/shared-ritm.es.js",
18
- "types": "./dist/types/index.d.ts"
19
- },
20
- "./style": "./dist/index.css"
21
- },
22
- "scripts": {
23
- "dev": "vite",
24
- "build": "vite build && tsc --emitDeclarationOnly",
25
- "typecheck": "vue-tsc --noEmit",
26
- "lint": "eslint --fix",
27
- "format": "prettier -w -u ."
28
- },
29
- "dependencies": {
30
- "@quasar/extras": "^1.16.17",
31
- "@vueuse/core": "^10.1.2",
32
- "axios": "^1.7.7",
33
- "vue": "^3.5.12",
34
- "vue-router": "^4.0.3"
35
- },
36
- "peerDependencies": {
37
- "quasar": "^2.18.1"
38
- },
39
- "devDependencies": {
40
- "@quasar/vite-plugin": "^1.9.0",
41
- "@rollup/pluginutils": "^5.1.3",
42
- "@types/node": "^22.7.9",
43
- "@typescript-eslint/eslint-plugin": "^4.25.0",
44
- "@typescript-eslint/parser": "^4.25.0",
45
- "@vitejs/plugin-vue": "^5.1.4",
46
- "@vue/compiler-sfc": "^3.0.5",
47
- "@vue/eslint-config-prettier": "^6.0.0",
48
- "@vue/eslint-config-typescript": "^7.0.0",
49
- "eslint": "^7.27.0",
50
- "eslint-plugin-prettier": "^3.4.0",
51
- "eslint-plugin-vue": "^7.10.0",
52
- "install": "^0.13.0",
53
- "npm": "^11.4.0",
54
- "prettier": "^2.3.0",
55
- "quasar": "^2.18.1",
56
- "rollup-plugin-visualizer": "^5.14.0",
57
- "sass": "^1.80.4",
58
- "typescript": "^5.6.3",
59
- "vite": "^5.4.9",
60
- "vite-plugin-css-modules": "^0.0.1",
61
- "vue-tsc": "^2.1.6"
62
- }
63
- }
1
+ {
2
+ "name": "shared-ritm",
3
+ "version": "1.2.59",
4
+ "private": false,
5
+ "files": [
6
+ "dist",
7
+ "src"
8
+ ],
9
+ "main": "dist/shared-ritm.umd.js",
10
+ "type": "module",
11
+ "module": "./dist/shared-ritm.es.js",
12
+ "types": "./dist/types/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "import": "./dist/shared-ritm.es.js",
16
+ "require": "./dist/shared-ritm.umd.js",
17
+ "default": "./dist/shared-ritm.es.js",
18
+ "types": "./dist/types/index.d.ts"
19
+ },
20
+ "./style": "./dist/index.css"
21
+ },
22
+ "scripts": {
23
+ "dev": "vite",
24
+ "build": "vite build && tsc --emitDeclarationOnly",
25
+ "typecheck": "vue-tsc --noEmit",
26
+ "lint": "eslint --fix",
27
+ "format": "prettier -w -u ."
28
+ },
29
+ "dependencies": {
30
+ "@quasar/extras": "^1.16.17",
31
+ "@vueuse/core": "^10.1.2",
32
+ "axios": "^1.7.7",
33
+ "vue": "^3.5.12",
34
+ "vue-router": "^4.0.3"
35
+ },
36
+ "peerDependencies": {
37
+ "quasar": "^2.18.1"
38
+ },
39
+ "devDependencies": {
40
+ "@quasar/vite-plugin": "^1.9.0",
41
+ "@rollup/pluginutils": "^5.1.3",
42
+ "@types/node": "^22.7.9",
43
+ "@typescript-eslint/eslint-plugin": "^4.25.0",
44
+ "@typescript-eslint/parser": "^4.25.0",
45
+ "@vitejs/plugin-vue": "^5.1.4",
46
+ "@vue/compiler-sfc": "^3.0.5",
47
+ "@vue/eslint-config-prettier": "^6.0.0",
48
+ "@vue/eslint-config-typescript": "^7.0.0",
49
+ "eslint": "^7.27.0",
50
+ "eslint-plugin-prettier": "^3.4.0",
51
+ "eslint-plugin-vue": "^7.10.0",
52
+ "install": "^0.13.0",
53
+ "npm": "^11.4.0",
54
+ "prettier": "^2.3.0",
55
+ "quasar": "^2.18.1",
56
+ "rollup-plugin-visualizer": "^5.14.0",
57
+ "sass": "^1.80.4",
58
+ "typescript": "^5.6.3",
59
+ "vite": "^5.4.9",
60
+ "vite-plugin-css-modules": "^0.0.1",
61
+ "vue-tsc": "^2.1.6"
62
+ }
63
+ }
@@ -1,64 +1,64 @@
1
- import ApiService, { ResponseApi } from '@/api/settings/ApiService'
2
-
3
- import { Api_ControlLogs_Dto, Api_ControlZones_Dto } from '@/api/types/Api_Controls'
4
-
5
- class ControlsService extends ApiService {
6
- public fetchControlZones(params: Record<string, any>): Promise<ResponseApi<Api_ControlZones_Dto[]>> {
7
- return this.get('/frame/list', { params })
8
- }
9
-
10
- public async fetchControlZone(id: string): Promise<ResponseApi<Api_ControlZones_Dto>> {
11
- return this.get(`/frame/${id}`)
12
- }
13
-
14
- public createControlZone(params: any): Promise<ResponseApi<any>> {
15
- return this.post<any, ResponseApi<any>>('/frame', params)
16
- }
17
-
18
- public editControlZone(id: string, params: any): Promise<ResponseApi<any>> {
19
- return this.put<any, ResponseApi<any>>(`/frame/${id}`, params)
20
- }
21
-
22
- public deleteControlZone(id: string): Promise<any> {
23
- return this.delete<ResponseApi<any>>(`/frame/${id}`)
24
- }
25
-
26
- public fetchControlLogs(params: Record<string, any>): Promise<ResponseApi<Api_ControlLogs_Dto[]>> {
27
- return this.get('/exposed_equipment_zones/list', { params })
28
- }
29
-
30
- public fetchControllers(params: Record<string, any>): Promise<ResponseApi<Api_ControlLogs_Dto[]>> {
31
- return this.get('/frame/controllers/list', { params })
32
- }
33
-
34
- public fetchUsersWithPasses(): Promise<any> {
35
- return this.get('inspector/users-with-passes')
36
- }
37
-
38
- public fetchWarehousesList(): Promise<any> {
39
- return this.get('tasks/warehouse/list?only_outside_exposed_equipment_zone=1')
40
- }
41
-
42
- public manualEntry(params: any): Promise<ResponseApi<any>> {
43
- return this.post<any, ResponseApi<any>>('exposed_equipment_zones/hand/enter', params)
44
- }
45
-
46
- public manualExit(params: any): Promise<ResponseApi<any>> {
47
- return this.post<any, ResponseApi<any>>('exposed_equipment_zones/hand/exit', params)
48
- }
49
-
50
- public deleteControlLogs(params: any): Promise<any> {
51
- return this.delete<ResponseApi<any>>(`exposed_equipment_zones`, params)
52
- }
53
-
54
- public fetchInstrumentTypeList(params: any): Promise<any> {
55
- return this.get<ResponseApi<any>>(`search/instrument_types`, { params })
56
- }
57
- }
58
-
59
- let api: ControlsService
60
-
61
- export default function useControlsService() {
62
- if (!api) api = new ControlsService()
63
- return api
64
- }
1
+ import ApiService, { ResponseApi } from '@/api/settings/ApiService'
2
+
3
+ import { Api_ControlLogs_Dto, Api_ControlZones_Dto } from '@/api/types/Api_Controls'
4
+
5
+ class ControlsService extends ApiService {
6
+ public fetchControlZones(params: Record<string, any>): Promise<ResponseApi<Api_ControlZones_Dto[]>> {
7
+ return this.get('/frame/list', { params })
8
+ }
9
+
10
+ public async fetchControlZone(id: string): Promise<ResponseApi<Api_ControlZones_Dto>> {
11
+ return this.get(`/frame/${id}`)
12
+ }
13
+
14
+ public createControlZone(params: any): Promise<ResponseApi<any>> {
15
+ return this.post<any, ResponseApi<any>>('/frame', params)
16
+ }
17
+
18
+ public editControlZone(id: string, params: any): Promise<ResponseApi<any>> {
19
+ return this.put<any, ResponseApi<any>>(`/frame/${id}`, params)
20
+ }
21
+
22
+ public deleteControlZone(id: string): Promise<any> {
23
+ return this.delete<ResponseApi<any>>(`/frame/${id}`)
24
+ }
25
+
26
+ public fetchControlLogs(params: Record<string, any>): Promise<ResponseApi<Api_ControlLogs_Dto[]>> {
27
+ return this.get('/exposed_equipment_zones/list', { params })
28
+ }
29
+
30
+ public fetchControllers(params: Record<string, any>): Promise<ResponseApi<Api_ControlLogs_Dto[]>> {
31
+ return this.get('/frame/controllers/list', { params })
32
+ }
33
+
34
+ public fetchUsersWithPasses(): Promise<any> {
35
+ return this.get('inspector/users-with-passes')
36
+ }
37
+
38
+ public fetchWarehousesList(): Promise<any> {
39
+ return this.get('tasks/warehouse/list?only_outside_exposed_equipment_zone=1')
40
+ }
41
+
42
+ public manualEntry(params: any): Promise<ResponseApi<any>> {
43
+ return this.post<any, ResponseApi<any>>('exposed_equipment_zones/hand/enter', params)
44
+ }
45
+
46
+ public manualExit(params: any): Promise<ResponseApi<any>> {
47
+ return this.post<any, ResponseApi<any>>('exposed_equipment_zones/hand/exit', params)
48
+ }
49
+
50
+ public deleteControlLogs(params: any): Promise<any> {
51
+ return this.delete<ResponseApi<any>>(`exposed_equipment_zones`, params)
52
+ }
53
+
54
+ public fetchInstrumentTypeList(params: any): Promise<any> {
55
+ return this.get<ResponseApi<any>>(`search/instrument_types`, { params })
56
+ }
57
+ }
58
+
59
+ let api: ControlsService
60
+
61
+ export default function useControlsService() {
62
+ if (!api) api = new ControlsService()
63
+ return api
64
+ }
@@ -1,17 +1,17 @@
1
- import ApiService from '@/api/settings/ApiService'
2
-
3
- class GanttService extends ApiService {
4
- public async fetchCriticalPathTasks(params: string): Promise<any> {
5
- return await this.get(`gantt/get_list_task_on_critical_path?${params}`)
6
- }
7
- public async fetchGanttList(params: string): Promise<any> {
8
- return await this.get(`/list/tasks/search?${params}&gantt=1`)
9
- }
10
- }
11
-
12
- let api: GanttService
13
-
14
- export default function useGanttService() {
15
- if (!api) api = new GanttService()
16
- return api
17
- }
1
+ import ApiService from '@/api/settings/ApiService'
2
+
3
+ class GanttService extends ApiService {
4
+ public async fetchCriticalPathTasks(params: string): Promise<any> {
5
+ return await this.get(`gantt/get_list_task_on_critical_path?${params}`)
6
+ }
7
+ public async fetchGanttList(params: string): Promise<any> {
8
+ return await this.get(`/list/tasks/search?${params}&gantt=1`)
9
+ }
10
+ }
11
+
12
+ let api: GanttService
13
+
14
+ export default function useGanttService() {
15
+ if (!api) api = new GanttService()
16
+ return api
17
+ }
@@ -1,109 +1,109 @@
1
- import ApiService, { ResponseApi } from '@/api/settings/ApiService'
2
-
3
- class MetricsService extends ApiService {
4
- public async fetchPieProjects(queryString: string): Promise<ResponseApi<any>> {
5
- return await this.get('repairs/pie/projects' + '?' + queryString)
6
- }
7
-
8
- public async fetchPieTasks(queryString: string): Promise<ResponseApi<any>> {
9
- return await this.get('repairs/pie/tasks' + '?' + queryString)
10
- }
11
-
12
- public async fetchPiePersonnel(queryString: string): Promise<ResponseApi<any>> {
13
- return await this.get('repairs/metrics/get_list_position' + '?' + queryString)
14
- }
15
-
16
- public async fetchPersonnelData(queryString: string): Promise<ResponseApi<any>> {
17
- return await this.get('repairs/metrics/list_position_intersection_group_by_status' + '?' + queryString)
18
- }
19
-
20
- public async fetchPersonnelInfo(params: string): Promise<ResponseApi<any>> {
21
- return await this.get(`repairs/metrics/list_position_intersection_details?${params}`)
22
- }
23
-
24
- public async fetchPiePersonnelInfo(params: string): Promise<any> {
25
- return await this.get(`repairs/metrics/get_list_user_by_position?${params}`)
26
- }
27
-
28
- public async fetchPieCriticalPath(queryString: string): Promise<any[]> {
29
- return await this.get('repairs/metrics/get_critical_path_group_by_status' + '?' + queryString)
30
- }
31
-
32
- public async fetchPieCriticalPathInfo(params: string): Promise<any> {
33
- return await this.get(`repairs/metrics/get_list_task_critical_path_by_status?${params}`)
34
- }
35
-
36
- public async fetchPieTmc(queryString: string): Promise<ResponseApi<any>> {
37
- return await this.get('repairs/metrics/get_list_instrument_type' + '?' + queryString)
38
- }
39
-
40
- public async fetchPieTmcInfo(params: string): Promise<any> {
41
- return await this.get(`repairs/metrics/get_list_warehouse_by_instrument_type?${params}`)
42
- }
43
-
44
- public async fetchPieUntimelyClosedTask(queryString: string): Promise<any[]> {
45
- return await this.get('repairs/metrics/get_list_comment_type' + '?' + queryString)
46
- }
47
-
48
- public async fetchPieUntimelyClosedTaskInfo(params: string): Promise<any> {
49
- return await this.get(`repairs/metrics/get_list_task_by_comment_type?${params}`)
50
- }
51
-
52
- public async fetchPieAdditionalTasks(queryString: string): Promise<any[]> {
53
- return await this.get('repairs/metrics/get_list_task_after_plan_fixate_group_by_status' + '?' + queryString)
54
- }
55
-
56
- public async fetchPieAdditionalTasksInfo(params: string): Promise<any> {
57
- return await this.get(`repairs/metrics/get_list_task_after_plan_fixate_by_status?${params}`)
58
- }
59
-
60
- public async fetchPersonnel(queryString: string): Promise<any[]> {
61
- return await this.get('repairs/statistic/personnel' + '?' + queryString)
62
- }
63
-
64
- public async fetchPieExpired(queryString: string): Promise<any[]> {
65
- return await this.get('repairs/metrics/get_list_task_expired_group_by_status' + '?' + queryString)
66
- }
67
-
68
- public async fetchPieExpiredInfo(params: string): Promise<any> {
69
- return await this.get(`repairs/metrics/get_list_task_expired?${params}`)
70
- }
71
-
72
- public async fetchEconomicsPerformance(params: string): Promise<any> {
73
- return await this.get(`repairs/metrics/get_economic_performance?${params}`)
74
- }
75
-
76
- public async fetchEconomicsInfo(params: string): Promise<any> {
77
- return await this.get(`repairs/metrics/get_list_task_economic_performance?${params}`)
78
- }
79
- public async fetchQualityMetrics(params: string): Promise<any> {
80
- return await this.get(`repairs/metrics/get_quality_metrics?${params}`)
81
- }
82
-
83
- public async fetchQualityInfo(params: string): Promise<any> {
84
- return await this.get(`repairs/metrics/get_list_task_by_quality?${params}`)
85
- }
86
-
87
- public async fetchPieWorkZone(queryString: string): Promise<ResponseApi<any>> {
88
- return await this.get('repairs/metrics/get_list_work_zone_instrument' + '?' + queryString)
89
- }
90
-
91
- public async fetchWorkZoneInfo(queryString: string): Promise<ResponseApi<any>> {
92
- return await this.get('repairs/metrics/get_list_work_zone_instrument_by_status' + '?' + queryString)
93
- }
94
-
95
- public async fetchPieAllTasks(queryString: string): Promise<ResponseApi<any>> {
96
- return await this.get('repairs/metrics/get_list_task_group_by_status' + '?' + queryString)
97
- }
98
-
99
- public async fetchPieAllTasksInfo(queryString: string): Promise<ResponseApi<any>> {
100
- return await this.get('repairs/metrics/get_list_task_by_status' + '?' + queryString)
101
- }
102
- }
103
-
104
- let api: MetricsService
105
-
106
- export default function useMetricsService() {
107
- if (!api) api = new MetricsService()
108
- return api
109
- }
1
+ import ApiService, { ResponseApi } from '@/api/settings/ApiService'
2
+
3
+ class MetricsService extends ApiService {
4
+ public async fetchPieProjects(queryString: string): Promise<ResponseApi<any>> {
5
+ return await this.get('repairs/pie/projects' + '?' + queryString)
6
+ }
7
+
8
+ public async fetchPieTasks(queryString: string): Promise<ResponseApi<any>> {
9
+ return await this.get('repairs/pie/tasks' + '?' + queryString)
10
+ }
11
+
12
+ public async fetchPiePersonnel(queryString: string): Promise<ResponseApi<any>> {
13
+ return await this.get('repairs/metrics/get_list_position' + '?' + queryString)
14
+ }
15
+
16
+ public async fetchPersonnelData(queryString: string): Promise<ResponseApi<any>> {
17
+ return await this.get('repairs/metrics/list_position_intersection_group_by_status' + '?' + queryString)
18
+ }
19
+
20
+ public async fetchPersonnelInfo(params: string): Promise<ResponseApi<any>> {
21
+ return await this.get(`repairs/metrics/list_position_intersection_details?${params}`)
22
+ }
23
+
24
+ public async fetchPiePersonnelInfo(params: string): Promise<any> {
25
+ return await this.get(`repairs/metrics/get_list_user_by_position?${params}`)
26
+ }
27
+
28
+ public async fetchPieCriticalPath(queryString: string): Promise<any[]> {
29
+ return await this.get('repairs/metrics/get_critical_path_group_by_status' + '?' + queryString)
30
+ }
31
+
32
+ public async fetchPieCriticalPathInfo(params: string): Promise<any> {
33
+ return await this.get(`repairs/metrics/get_list_task_critical_path_by_status?${params}`)
34
+ }
35
+
36
+ public async fetchPieTmc(queryString: string): Promise<ResponseApi<any>> {
37
+ return await this.get('repairs/metrics/get_list_instrument_type' + '?' + queryString)
38
+ }
39
+
40
+ public async fetchPieTmcInfo(params: string): Promise<any> {
41
+ return await this.get(`repairs/metrics/get_list_warehouse_by_instrument_type?${params}`)
42
+ }
43
+
44
+ public async fetchPieUntimelyClosedTask(queryString: string): Promise<any[]> {
45
+ return await this.get('repairs/metrics/get_list_comment_type' + '?' + queryString)
46
+ }
47
+
48
+ public async fetchPieUntimelyClosedTaskInfo(params: string): Promise<any> {
49
+ return await this.get(`repairs/metrics/get_list_task_by_comment_type?${params}`)
50
+ }
51
+
52
+ public async fetchPieAdditionalTasks(queryString: string): Promise<any[]> {
53
+ return await this.get('repairs/metrics/get_list_task_after_plan_fixate_group_by_status' + '?' + queryString)
54
+ }
55
+
56
+ public async fetchPieAdditionalTasksInfo(params: string): Promise<any> {
57
+ return await this.get(`repairs/metrics/get_list_task_after_plan_fixate_by_status?${params}`)
58
+ }
59
+
60
+ public async fetchPersonnel(queryString: string): Promise<any[]> {
61
+ return await this.get('repairs/statistic/personnel' + '?' + queryString)
62
+ }
63
+
64
+ public async fetchPieExpired(queryString: string): Promise<any[]> {
65
+ return await this.get('repairs/metrics/get_list_task_expired_group_by_status' + '?' + queryString)
66
+ }
67
+
68
+ public async fetchPieExpiredInfo(params: string): Promise<any> {
69
+ return await this.get(`repairs/metrics/get_list_task_expired?${params}`)
70
+ }
71
+
72
+ public async fetchEconomicsPerformance(params: string): Promise<any> {
73
+ return await this.get(`repairs/metrics/get_economic_performance?${params}`)
74
+ }
75
+
76
+ public async fetchEconomicsInfo(params: string): Promise<any> {
77
+ return await this.get(`repairs/metrics/get_list_task_economic_performance?${params}`)
78
+ }
79
+ public async fetchQualityMetrics(params: string): Promise<any> {
80
+ return await this.get(`repairs/metrics/get_quality_metrics?${params}`)
81
+ }
82
+
83
+ public async fetchQualityInfo(params: string): Promise<any> {
84
+ return await this.get(`repairs/metrics/get_list_task_by_quality?${params}`)
85
+ }
86
+
87
+ public async fetchPieWorkZone(queryString: string): Promise<ResponseApi<any>> {
88
+ return await this.get('repairs/metrics/get_list_work_zone_instrument' + '?' + queryString)
89
+ }
90
+
91
+ public async fetchWorkZoneInfo(queryString: string): Promise<ResponseApi<any>> {
92
+ return await this.get('repairs/metrics/get_list_work_zone_instrument_by_status' + '?' + queryString)
93
+ }
94
+
95
+ public async fetchPieAllTasks(queryString: string): Promise<ResponseApi<any>> {
96
+ return await this.get('repairs/metrics/get_list_task_group_by_status' + '?' + queryString)
97
+ }
98
+
99
+ public async fetchPieAllTasksInfo(queryString: string): Promise<ResponseApi<any>> {
100
+ return await this.get('repairs/metrics/get_list_task_by_status' + '?' + queryString)
101
+ }
102
+ }
103
+
104
+ let api: MetricsService
105
+
106
+ export default function useMetricsService() {
107
+ if (!api) api = new MetricsService()
108
+ return api
109
+ }